{"remainingRequest":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\DeviceManagement\\warnConfig.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\DeviceManagement\\warnConfig.vue","mtime":1702062545495},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/sfz-lh-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.function.name\";\n\nvar _methods;\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 DictSelect from \"../../../components/dict/DictSelect.vue\";\nimport warn from '@/api/DeviceManagement/warn.js';\nexport default {\n name: 'routerManagement',\n components: {\n DictSelect: DictSelect\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n tableMaxHeight: 400,\n searchForm: {},\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n loading: false,\n tableLoading: false,\n tableData: [],\n dialog: {\n title: '添加',\n visible: false\n },\n dialogForm: {\n type: '1'\n },\n disabled: false,\n // 是否禁止输入输入\n edit: false,\n // 是否是修改功能\n rules: {\n name: {\n required: true,\n message: '请输入预警配置名称',\n trigger: 'blur'\n },\n type: {\n required: true,\n message: '请选择设备类型',\n trigger: 'blur'\n },\n thresholdUnit: {\n required: true,\n message: '请输入预警配置单位',\n trigger: 'blur'\n }\n }\n };\n },\n created: function created() {\n this.loadData();\n },\n methods: (_methods = {\n //获取数据\n loadData: function loadData(page) {\n var _this = this;\n\n if (page) this.params.pageBean.page = page;\n this.tableLoading = true;\n warn.queryDataConfig(this.params).then(function (res) {\n _this.tableLoading = false;\n _this.tableData = res.rows || [];\n\n if (res.page) {\n _this.params.pageBean = {\n page: res.page,\n pageSize: res.pageSize,\n total: res.total\n };\n }\n });\n },\n handleSearch: function handleSearch() {\n var querys = [];\n\n for (var key in this.searchForm) {\n if (key == 'name') {\n querys.push({\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: this.searchForm.name\n });\n } else if (key == 'type') {\n querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'type',\n relation: 'AND',\n value: this.searchForm.type\n });\n }\n }\n\n this.params.querys = querys;\n this.loadData(1);\n },\n handleDelete: function handleDelete() {\n var _this2 = this;\n\n this.$confirm(this.$t('common.sureDelete'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n warn.batchDeleteConfig(_this2.deleteIds).then(function (res) {\n _this2.loadData(1);\n\n if (res.data.state) {\n _this2.$message({\n message: '删除成功',\n type: 'success'\n });\n }\n });\n });\n },\n handleEdit: function handleEdit() {},\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n },\n //添加\n handleAdd: function handleAdd() {\n this.edit = false;\n this.disabledDetils = false;\n this.dialogForm = {\n type: '1'\n };\n this.dialog.title = '添加';\n this.dialog.visible = true;\n }\n }, _defineProperty(_methods, \"handleEdit\", function handleEdit(rows) {\n this.$refs.form.clearValidate();\n this.edit = true;\n this.disabledDetils = false;\n this.dialogForm = rows || {};\n this.dialogForm = _objectSpread({}, rows);\n this.dialog.title = '编辑';\n this.dialog.visible = true;\n }), _defineProperty(_methods, \"submit\", function submit() {\n var _this3 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this3.loading = true;\n warn.saveConfig(_this3.dialogForm).then(function (res) {\n console.log('res', res);\n\n if (res.data.state) {\n _this3.dialog.visible = false;\n\n _this3.loadData(1);\n }\n\n if (res.data.state) {\n _this3.$message({\n message: !_this3.edit ? '添加成功' : '修改成功',\n type: 'success'\n });\n\n _this3.editVisible = false;\n }\n\n _this3.loading = false;\n }).catch(function () {\n _this3.loading = false;\n });\n } else {\n return false;\n }\n });\n }), _methods),\n computed: {\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }\n};",null]}