{"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\\FireDisasterRecord.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\FireDisasterRecord.vue","mtime":1686186348952},{"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.regexp.split\";\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//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nimport FireDisasterRecord from '@/views/Manage/saftyDanger/api/FireDisasterRecord';\nimport FireDisasterRecordDialog from '@/views/Manage/saftyDanger/components/FireDisasterRecordDialog';\nexport default {\n name: 'nineLittlePlace',\n components: {\n FireDisasterRecordDialog: FireDisasterRecordDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n url: {\n delete: '/manager/cmgtSaftyDangerUnit/delete'\n },\n querys: [{\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'fire_time_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'fire_address_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'fire_reason_',\n relation: 'AND',\n value: ''\n }],\n StshowFormDias: false,\n types: [],\n sorter: [{\n direction: 'ASC',\n property: 'SN_'\n }] // levels:[]\n\n };\n },\n created: function created() {\n this.types = dictContracts.getDictItemsFromCache('cmgt_aqyhpcdwlb');\n this.fxjbList = dictUtils.getDictItemsFromCache('fxjb'); //风险级别\n\n this.zddwflList = dictUtils.getDictItemsFromCache('zddwfl'); //重点单位分类\n\n this.jxcslxList = dictUtils.getDictItemsFromCache('jxcslx'); //九小场所类型\n\n this.jxcspqList = dictUtils.getDictItemsFromCache('jxcspq'); //九小场所片区\n\n this.rlzlList = dictUtils.getDictItemsFromCache('rlzl'); //燃料种类\n\n this.tysfList = dictUtils.getDictItemsFromCache('ty-sf'); //是否三合一\n // this.levels = dictContracts.getDictItemsFromCache('cmgt_aqyhfxjb')\n },\n mounted: function mounted() {},\n methods: {\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].value = '';\n },\n // 获取list\n loadData: function loadData(page) {\n var _this = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n 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 if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n FireDisasterRecord.cmgtSaftyFiredisasterQuery(this.queryParam, function (res) {\n _this.total = res.total;\n _this.tableData = res.rows;\n\n _this.tableData.forEach(function (item) {\n _this.jxcspqList.forEach(function (val) {\n if (item.smallPlaceArea == val.value) {\n item['smallPlaceAreaName'] = val.name;\n }\n });\n\n item['emphasisTypeName'] = '';\n\n _this.zddwflList.forEach(function (val) {\n // console.log(item.emphasisType)\n if (item.emphasisType) {\n item.emphasisType.split(',').forEach(function (e, ei) {\n if (e == val.value) {\n if (ei + 1 < item.emphasisType.split(',').length) {\n item['emphasisTypeName'] += val.name + ',';\n } else {\n item['emphasisTypeName'] += val.name;\n }\n }\n });\n }\n });\n\n _this.fxjbList.forEach(function (val) {\n if (item.riskLevel == val.value) {\n item['riskLevelName'] = val.name;\n }\n });\n\n _this.rlzlList.forEach(function (val) {\n if (item.fuelType == val.value) {\n item['fuelTypeName'] = val.name;\n }\n });\n });\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n });\n },\n // 修改\n handleUpdate: function handleUpdate(row) {\n console.log(row.id);\n this.$refs.formModal.Update(row);\n },\n closeStshowForm: function closeStshowForm() {\n this.StshowFormDias = false;\n },\n handleDelete: function handleDelete() {\n var _this2 = this;\n\n // console.log(this.multipleSelection)\n FireDisasterRecord.deleteCmgtSaftyFiredisaster(this.multipleSelection).then(function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n\n _this2.queryParam.pageBean.page = 1;\n\n _this2.loadData();\n }\n }).catch(function (res) {\n _this2.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n });\n },\n // formartLevelName(row, column, cellValue, index){\n // \tvar obj = this.levels.find(function(item) {\n // \t\tif (item.value === row.level) { //\n // \t\t\treturn item\n // \t\t}\n // \t})\n // \tif (obj !== undefined) {\n // \t\treturn obj.name;\n // \t} else {\n // \t\treturn \"\";\n // \t}\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]}