You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rcgy_xmf_qrcode/js/chunk-52aa51c6.95da685f.js.map

1 line
18 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"version":3,"sources":["webpack:///./src/plugins/DownloadExcel.js","webpack:///./src/views/daily/page/facilitiesExecute.vue","webpack:///src/views/daily/page/facilitiesExecute.vue","webpack:///./src/views/daily/page/facilitiesExecute.vue?d844","webpack:///./src/views/daily/page/facilitiesExecute.vue?ca0f"],"names":["async","DownloadExcel","params","that","Excel","response","GetTableData","push","tableList","pageCount","i","pageNum","data","ExcelLoading","partDownloadExcel","console","log","render","_vm","this","_c","_self","staticClass","_m","staticStyle","attrs","fetchData","json_fields","finishDownload","_v","ref","config","on","tableCheck","slot","handleClick","model","value","activeName","callback","$$v","expression","staticRenderFns","add_vrisible","addDate","loading","table_row","检查执行记录编号","分类名称","检查人姓名","检查人联系方式","状态","field","thead","label","type","width","prop","table_data","url","search_item","placeholder","options","size","methods","lock","text","spinner","background","Loading","status","component"],"mappings":"kHAAA,8FAEOA,eAAeC,EAAcC,EAAQC,GACxC,IAAIC,EAAQ,GACZ,MAAMC,QAAiBC,eAAaJ,GAEpC,GADAE,EAAMG,QAAQF,EAASG,WACnBH,EAASI,UAAY,EACrB,IAAK,IAAIC,EAAI,EAAGA,EAAIL,EAASI,UAAWC,IAAK,CACzCR,EAAOS,QAAUD,EAAI,EACrB,MAAME,QAAaN,eAAaJ,GAChCC,EAAKU,aAAaH,EAAGL,EAASI,WAC9BL,EAAMG,QAAQK,EAAKJ,WAG3B,OAAOJ,EAGJJ,eAAec,EAAkBZ,GACpC,IAAIE,EAAQ,GACZ,MAAMC,QAAiBC,eAAaJ,GAGpC,OAFAa,QAAQC,IAAIX,GACZD,EAAMG,QAAQF,EAASG,WAChBJ,I,yCCtBX,IAAIa,EAAS,WA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CAACF,EAAIW,GAAG,kB,YC+D/G,GACfjB,OACA,OACA+B,gBACAC,aACAC,WACAC,aACAR,eACAX,aACAoB,kBACAC,sBACA,2BACAC,uBACAC,wBACAC,MACAC,eACAb,aACA,UACA,OACA,YAEA,OACA,YAEA,OACA,eAKA,WACAa,kBACAb,aACA,UACA,OACA,WAEA,OACA,cAKA,qBACA,2BAEAR,QACAsB,OACA,CACAC,WACAC,aACAC,YAEA,CACAF,iBACAG,YACAD,cAEA,CACAF,aACAG,oBACAD,cAEA,CACAF,gBACAG,sBACAD,cAEA,CACAF,cACAG,oBACAD,cAEA,CACAF,gBACAG,mBACAD,cAEA,CACAF,WACAG,cACAD,aACAD,gBACAhB,iBACA,iBACA,OACA,YAEA,OACA,YAEA,OACA,eAKA,CACAe,gBACAG,iBACAD,aACAD,gBACAhB,iBACA,oBACA,OACA,WAEA,OACA,cAIA,CACAe,kBACAG,cACAD,cAEA,CACAF,oBACAG,iBACAD,eAGAE,cACAC,gCACAC,aACA,CACAL,cACAD,WACAO,kBACAJ,YACAK,SACA,CACAzB,QACAiB,YAEA,CACAjB,QACAiB,cAIA,CACAC,aACAD,iBACAO,kBACAJ,aAEA,CACAF,aACAD,gBACAO,kBACAJ,uBAEA,CACAF,aACAD,gBACAO,kBACAJ,YAEA,CACAF,cACAD,aACAO,kBACAJ,cACAK,SACA,CACAzB,QACAiB,aAEA,CACAjB,QACAiB,aAEA,CACAjB,QACAiB,gBAOA1C,MACAD,UACAoD,YAKAC,SAEA,kBACA,IACA,GACAL,gCACA/C,MACAD,UACAoD,WAGA,qCACA,UAGAlD,kBACA,uBACAoD,QACAC,mBACAC,0BACAC,kCAEAC,8BACAtD,qBAGAa,iBACA,wBACAyC,WAGAlC,iBACA,WAEAmC,EADA,mBACAA,gBAEAA,KAEA,SACA3D,UACAoD,QACAO,UAEA,iCAIArC,cACA,oBC/SyX,I,YCOrXsC,EAAY,eACd,EACAtD,EACAyB,GACA,EACA,KACA,KACA,MAIa,aAAA6B,E","file":"js/chunk-52aa51c6.95da685f.js","sourcesContent":["import JsonExcel from 'vue-json-excel'\nimport { GetTableData } from '@/api/basic'\nexport async function DownloadExcel(params, that) {\n let Excel = []\n const response = await GetTableData(params)\n Excel.push(...response.tableList)\n if (response.pageCount > 1) {\n for (let i = 1; i < response.pageCount; i++) {\n params.pageNum = i + 1\n const data = await GetTableData(params)\n that.ExcelLoading(i, response.pageCount)\n Excel.push(...data.tableList)\n }\n }\n return Excel\n}\n\nexport async function partDownloadExcel(params) {\n let Excel = []\n const response = await GetTableData(params)\n console.log(response);\n Excel.push(...response.tableList)\n return Excel\n}\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"main-content\"},[_vm._m(0),_c('div',{staticClass:\"content\"},[_c('div',{staticStyle:{\"width\":\"50px\"}},[_c('download-excel',{staticClass:\"export-excel-wrapper\",attrs:{\"fetch\":_vm.fetchData,\"fields\":_vm.json_fields,\"before-finish\":_vm.finishDownload,\"name\":\"设施设备检查记录.xls\"}},[_c('el-button',{attrs:{\"size\":\"mini\",\"icon\":\"el-icon-folder-add\",\"plain\":\"\"}},[_vm._v(\"导出Excel\")])],1)],1),_c('div',{},[_c('VueTable',{ref:\"table\",attrs:{\"config\":_vm.config},on:{\"tableCheck\":_vm.tableCheck}},[_c('template',{slot:\"tabs\"},[_c('el-tabs',{on:{\"tab-click\":_vm.handleClick},model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:\"activeName\"}},[_c('el-tab-pane',{attrs:{\"label\":\"全部\",\"name\":\"0\"}}),_c('el-tab-pane',{attrs:{\"label\":\"待完成\",\"name\":\"1\"}}),_c('el-tab-pane',{attrs:{\"label\":\"已完成\",\"name\":\"2\"}}),_c('el-tab-pane',{attrs:{\"label\":\"未完成\",\"name\":\"3\"}})],1)],1),_c('template',{slot:\"footer\"},[_c('div',{staticClass:\"table-footer\"})])],2)],1)])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"main-titel\"},[_c('span',[_vm._v(\"设施设备检查记录\")])])\n}]\n\nexport { render, staticRenderFns }","<template>\n <div>\n <div class=\"main-content\">\n <div class=\"main-titel\">\n <span>设施设备检查记录</span>\n </div>\n <div class=\"content\">\n <div style=\"width: 50px\"><download-excel\n class=\"export-excel-wrapper\"\n :fetch=\"fetchData\"\n :fields=\"json_fields\"\n :before-finish=\"finishDownload\"\n name=\"设施设备检查记录.xls\"\n >\n <!-- 上面可以自定义自己的样式还可以引用其他组件button -->\n <el-button\n size=\"mini\"\n icon=\"el-icon-folder-add\"\n plain\n >导出Excel</el-button\n >\n </download-excel></div>\n <div class=\"\">\n <VueTable\n ref=\"table\"\n :config=\"config\"\n @tableCheck=\"tableCheck\"\n >\n <template slot=\"tabs\">\n <el-tabs\n v-model=\"activeName\"\n @tab-click=\"handleClick\"\n >\n <el-tab-pane\n label=\"全部\"\n name=\"0\"\n ></el-tab-pane>\n <el-tab-pane\n label=\"待完成\"\n name=\"1\"\n ></el-tab-pane>\n <el-tab-pane\n label=\"已完成\"\n name=\"2\"\n ></el-tab-pane>\n <el-tab-pane\n label=\"未完成\"\n name=\"3\"\n ></el-tab-pane>\n </el-tabs>\n </template>\n <template slot=\"footer\">\n <div class=\"table-footer\">\n <!-- <button>编辑</button> -->\n </div>\n </template>\n </VueTable>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { DownloadExcel } from '@/plugins/DownloadExcel'\nexport default {\n data() {\n return {\n add_vrisible: false,\n addDate: null,\n loading: false,\n table_row: [],\n activeName: '0',\n json_fields: {\n 检查执行记录编号: 'code',\n 分类名称: 'categoryName',\n '设施/设备名称':'facilitiesName',\n 检查人姓名:'examinerName',\n 检查人联系方式:'examinerTel',\n 状态: {\n field: 'status',\n callback: (value) => {\n switch (value) {\n case 1:\n return '待完成'\n break\n case 2:\n return '已完成'\n break\n case 3:\n return '未完成'\n break\n }\n }\n },\n '设施/设备情况':{\n field: 'situation',\n callback: (value) => {\n switch (value) {\n case 1:\n return '正常'\n break\n case 2:\n return '异常'\n break\n }\n }\n },\n '设施/设备检查报告':'detail',\n '设施/设备实际检查时间':'checkDate',\n },\n config: {\n thead: [\n {\n label: '序号',\n type: 'index',\n width: '80'\n },\n {\n label: '检查执行记录编号',\n prop: 'code',\n width: 'auto'\n },\n {\n label: '分类名称',\n prop: 'categoryName',\n width: 'auto'\n },\n {\n label: '设施/设备名称',\n prop: 'facilitiesName',\n width: 'auto'\n },\n {\n label: '检查人姓名',\n prop: 'examinerName',\n width: 'auto'\n },\n {\n label: '检查人联系方式',\n prop: 'examinerTel',\n width: 'auto'\n },\n {\n label: '状态',\n prop: 'status',\n width: 'auto',\n type: 'function',\n callback: (row, prop) => {\n switch (row.status) {\n case 1:\n return '待完成'\n break\n case 2:\n return '已完成'\n break\n case 3:\n return '未完成'\n break\n }\n }\n },\n {\n label: '设施/设备情况',\n prop: 'situation',\n width: 'auto',\n type: 'function',\n callback: (row, prop) => {\n switch (row.situation) {\n case 1:\n return '正常'\n break\n case 2:\n return '异常'\n break\n }\n }\n },{\n label: '设施/设备检查报告',\n prop: 'detail',\n width: 'auto'\n },\n {\n label: '设施/设备实际检查时间',\n prop: 'checkDate',\n width: 'auto'\n },\n ],\n table_data: [],\n url: 'facilitiesPlanExecuteList',\n search_item: [\n {\n type: 'select',\n label: '类型',\n placeholder: '请输入',\n prop: 'type',\n options:[\n {\n value:1,\n label:'设施'\n },\n {\n value:2,\n label:'设备'\n },\n ]\n },\n {\n type: 'Input',\n label: '检查执行记录编号',\n placeholder: '请输入',\n prop: 'code'\n },\n {\n type: 'Input',\n label: '设施/设备名称',\n placeholder: '请输入',\n prop: 'facilitiesName'\n },\n {\n type: 'Input',\n label: '检查人联系方式',\n placeholder: '请输入',\n prop: 'tel'\n },\n {\n type: 'select',\n label: '任务状态',\n placeholder: '请选择',\n prop: 'status',\n options:[\n {\n value:1,\n label:'待完成'\n },\n {\n value:2,\n label:'已完成'\n },\n {\n value:3,\n label:'未完成'\n },\n ]\n },\n\n // Slot\n ],\n data: {\n pageNum: 1,\n size: 10\n }\n }\n }\n },\n methods: {\n // Excel导出\n async fetchData() {\n let Excel = []\n let params = {\n url: 'facilitiesPlanExecuteList',\n data: {\n pageNum: 1,\n size: 100,\n }\n }\n const data = await DownloadExcel(params, this)\n return data\n },\n // Excel进度\n ExcelLoading(page, pageCount) {\n const Loading = this.$loading({\n lock: true,\n text: `正在导出Excel${page}`,\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.7)'\n })\n Loading.text = `正在导出Excel ${page}/${pageCount}`\n console.log(Loading.text)\n },\n // Excel导出结束\n finishDownload() {\n const Loading = this.$loading()\n Loading.close()\n },\n // tabs切换\n handleClick(tab, event) {\n let status = null\n if (this.activeName != 0) {\n status = this.activeName\n } else {\n status = null\n }\n const requestData = {\n pageNum: 1,\n size: 10,\n status: status\n }\n this.$refs.table.requestData(requestData)\n },\n\n // 表格选中\n tableCheck(data) {\n this.table_row = data\n },\n },\n}\n</script>","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./facilitiesExecute.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./facilitiesExecute.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./facilitiesExecute.vue?vue&type=template&id=6313ec6b&\"\nimport script from \"./facilitiesExecute.vue?vue&type=script&lang=js&\"\nexport * from \"./facilitiesExecute.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}