{"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\\CmgtSaftyDangerCheckplanFormDialogTroubleshooting.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\components\\CmgtSaftyDangerCheckplanFormDialogTroubleshooting.vue","mtime":1688109363933},{"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.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//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport nineLittlePlaceApi from '@/views/Manage/saftyDanger/api/nineLittlePlaceApi';\nexport default {\n name: 'CmgtSaftyDangerCheckplanFormDialogTroubleshooting',\n // 排查计划明细\n props: {\n title: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n showTroubleshooting: false,\n // 控制弹层显示与隐藏\n activeName: '九小场所管理',\n jxcspqList: null,\n // 片区字典数据\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'unit_name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'small_place_area_',\n relation: 'AND',\n value: ''\n }],\n sorter: [{\n direction: 'DESC',\n property: 'createTime'\n }] // 排序数据\n\n };\n },\n mixins: [TableMixin],\n created: function created() {\n this.jxcspqList = dictUtils.getDictItemsFromCache('jxcspq'); //九小场所片区\n },\n methods: {\n add: function add() {\n this.showTroubleshooting = true;\n },\n // 切换tab选项\n handleClick: function handleClick(tab, event) {\n console.log(tab, event);\n this.activeName = event.target.innerText;\n this.querys = this.$options.data().querys;\n this.loadData();\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\n this.queryParam.pageBean.pageSize = -1;\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n this.queryParam.sorter = this.sorter;\n\n if (this.activeName === '九小场所管理') {\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 } else if (this.activeName === '重点单位管理') {\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n }\n\n nineLittlePlaceApi.loadCmgtSaftyDangerUnit(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\n _this.$set(_this.tableData);\n\n _this.loading = false;\n });\n },\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n },\n // 点击关闭按钮\n handleClose: function handleClose() {\n this.$refs.multipleSelection.clearSelection();\n this.showTroubleshooting = false;\n },\n // 保存按钮\n handleSave: function handleSave() {\n var _this2 = this;\n\n var list = [];\n this.multipleSelection.forEach(function (item) {\n _this2.tableData.forEach(function (it) {\n if (item === it.id) {\n list.push({\n type: it.type,\n checkCompany: it.id\n });\n }\n });\n });\n this.$emit('addDetail', list);\n this.handleClose();\n }\n }\n};",null]}