{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\components\\SecurityFileFormDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\components\\SecurityFileFormDialog.vue","mtime":1687342878005},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.array.find\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport SecurityFileApi from '@/views/Manage/saftyDanger/api/SecurityFileApi';\nimport CmgtTSaftyWorkSendFormDialog from '@/views/Manage/saftyDanger/components/CmgtTSaftyWorkSendFormDialog';\nimport hiddenRecordsFormDialog from '@/views/Manage/saftyDanger/components/hiddenRecordsFormDialog';\nimport nineLittlePlaceApi from '@/views/Manage/saftyDanger/api/nineLittlePlaceApi';\nexport default {\n name: 'CmgtSaftyDangerUnitManage',\n components: {\n hiddenRecordsFormDialog: hiddenRecordsFormDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n title: '计划明细',\n showFormDia: false,\n dialogVisible: false,\n gridData: [],\n unitData: [],\n previewUrl: window.context.portal + '/file/onlinePreviewController/v1/getFileById_',\n url: {\n delete: '/manager/cmgtSaftyDangerUnit/delete'\n },\n querys: [{\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'checkDate',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'unitId',\n relation: 'AND',\n value: ''\n }],\n sorter: [{\n direction: 'DESC',\n property: 'checkDate'\n }] // levels:[]\n\n };\n },\n created: function created() {\n this.TypeList = dictUtils.getDictItemsFromCache('pclb');\n this.fuelTypeList = dictUtils.getDictItemsFromCache('rlzl');\n this.getUnit();\n },\n mounted: function mounted() {},\n methods: {\n //获取单位\n getUnit: function getUnit() {\n var _this = this;\n\n nineLittlePlaceApi.loadCmgtSaftyDangerUnit({\n pageBean: {\n pageSize: -1,\n page: 1\n }\n }, function (res) {\n _this.unitData = res.rows;\n });\n },\n // 字典转义\n dictTranslation: function dictTranslation(dictList, value, dictValue, dictLabel) {\n for (var i = 0; i < dictList.length; i++) {\n if (dictList[i][dictValue] === value) {\n return dictList[i][dictLabel];\n }\n }\n },\n //\n ActivateDisable: function ActivateDisable() {},\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n },\n // 获取list\n loadData: function loadData(page) {\n var _this2 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = []; // this.queryParam.sorter = this.sorter\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n SecurityFileApi.cmgtSaftyDangerCheckplanPlan(this.queryParam, function (res) {\n console.log(res);\n _this2.total = res.total;\n _this2.tableData = res.rows;\n\n _this2.tableData.forEach(function (item) {\n _this2.TypeList.forEach(function (val) {\n // console.log(val)\n if (item.checkType == val.value) {\n item.checkType = val.name;\n }\n }); // if ((this.title = '计划明细')) {\n // console.log(1)\n // this.gridData = []\n // }\n // if ((this.title = '方案明细')) {\n // this.gridData = item.scheme\n // }\n\n });\n\n _this2.$set(_this2.tableData);\n\n _this2.loading = false;\n });\n },\n Update: function Update(row) {\n console.log(row);\n this.hiddenRecordsData = row.id;\n this.querys[1].value = row.id;\n this.loadData();\n this.showFormDia = true;\n },\n handleClose: function handleClose() {\n this.queryParam.pageBean.pageSize = 20;\n this.queryParam.pageBean.page = 1;\n this.showFormDia = false;\n },\n //计划明细\n planDetails: function planDetails() {\n var _this3 = this;\n\n this.title = '计划明细';\n this.tableData.forEach(function (item) {\n console.log(item);\n _this3.gridData = [];\n });\n console.log(this.gridData);\n },\n //方案明细\n scenarioBreakdown: function scenarioBreakdown() {\n var _this4 = this;\n\n this.title = '方案明细';\n this.tableData.forEach(function (item) {\n _this4.gridData = item.scheme;\n });\n console.log(this.gridData);\n },\n //隐忠记录\n hiddenRecords: function hiddenRecords() {\n this.title = '隐忠记录';\n },\n // 详情\n detail: function detail(row) {\n // console.log(row)\n this.dialogVisible = true;\n },\n dialogVisibleClose: function dialogVisibleClose() {\n this.dialogVisible = false;\n this.title = '计划明细';\n },\n formartTyepName: function formartTyepName(row, column, cellValue, index) {\n var obj = this.types.find(function (item) {\n if (item.value === row.type) {\n //\n return item;\n }\n });\n\n if (obj !== undefined) {\n return obj.name;\n } else {\n return '';\n }\n }\n }\n};",null]}