{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BasicData\\NoiseLevelManage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BasicData\\NoiseLevelManage.vue","mtime":1697168463268},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-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 pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport NoiseLevel from '@/api/basicConfiguration/NoiseLevel';\nimport NoiseLevelDialog from \"./components/NoiseLevelDialog\";\nimport utils from '@/utils.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport NoiseClassify from '@/api/basicConfiguration/NoiseClassify';\nexport default {\n name: 'NoiseLevelManage',\n components: {\n pagination: pagination,\n NoiseLevelDialog: NoiseLevelDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n markLoading: false,\n tableMaxHeight: 400,\n tableData: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'noise_type_id_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'level',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'l.status_',\n relation: 'AND',\n value: ''\n }],\n reqData: {\n querys: [],\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n }\n },\n tableLoading: false,\n deleteIds: '',\n parameter: {\n size: 20,\n page: 1\n },\n sortList: []\n };\n },\n created: function created() {\n this.fljbList = dictUtils.getDictItemsFromCache('fljb');\n this.getData();\n this.getSortData();\n },\n methods: {\n // 获取噪音分类\n getSortData: function getSortData() {\n var _this = this;\n\n NoiseClassify.dataQuery({\n pageBean: {\n page: 1,\n pageSize: -1\n }\n }, function (res) {\n _this.sortList = res.rows;\n });\n },\n selectable: function selectable(row) {\n if (row.isDele === '1') {\n return false;\n } else {\n return true;\n }\n },\n //获取数据\n getData: function getData(page) {\n var _this2 = this;\n\n if (page) {\n this.reqData.pageBean.page = page;\n }\n\n this.reqData.querys = [];\n\n if (this.querys[0].value) {\n this.reqData.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.reqData.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.reqData.querys.push(this.querys[2]);\n }\n\n this.tableLoading = true;\n NoiseLevel.dataQuery(this.reqData, function (res) {\n _this2.pageResult.total = res.total;\n _this2.tableLoading = false;\n _this2.tableData = res.rows;\n\n _this2.tableData.forEach(function (e) {\n _this2.fljbList.forEach(function (f) {\n if (e.level == f.value) {\n e.levelName = f.name;\n }\n });\n });\n });\n },\n // 编辑\n handleEdit: function handleEdit(item) {\n this.$refs.formDialog.edit(item.id);\n },\n //启用or禁止\n enableOrProhibit: function enableOrProhibit(val) {\n var _this3 = this;\n\n NoiseLevel.enableDisable({\n id: val.id\n }, function (res) {\n if (res.state) {\n _this3.$message.success(val.status === '0' ? '启用成功' : val.status === '1' ? '禁用成功' : '');\n\n _this3.getData();\n }\n });\n },\n //获取删除数据id集合\n handleSelectionChange: function handleSelectionChange(val) {\n var arr = val.map(function (item) {\n return item.id;\n });\n this.deleteIds = arr.join(',');\n console.log(this.deleteIds);\n },\n //删除\n handleDelete: function handleDelete(type, val) {\n var _this4 = this;\n\n console.log(val);\n this.$confirm('确认删除吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n _this4.markLoading = true;\n\n if (type === 'delete') {\n NoiseLevel.remove(val.id, function (res) {\n if (res.state) {\n _this4.getData();\n\n _this4.$message.success('删除成功');\n\n _this4.markLoading = false;\n } else {\n _this4.markLoading = false;\n }\n });\n } else {\n NoiseLevel.batchRemove(_this4.deleteIds, function (res) {\n if (res.state) {\n _this4.getData();\n\n _this4.$message.success('删除成功');\n\n _this4.markLoading = false;\n } else {\n _this4.markLoading = false;\n }\n });\n }\n });\n },\n handleSizeChange: function handleSizeChange(val) {\n this.reqData.pageBean.pageSize = val;\n this.getData();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.reqData.pageBean.page = val;\n this.getData();\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n }\n }\n};",null]}