{"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\\DataManagement\\eletocData\\deviceWarnLog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\DataManagement\\eletocData\\deviceWarnLog.vue","mtime":1705432123502},{"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\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 deviceWarnLog from '@/api/DataManagement/deviceWarnLog.js';\nimport tollStationManagement from '@/api/BasicDataManagement/tollStationManagement.js';\nimport routerManagement from '@/api/BasicDataManagement/tollStationManagement.js';\nexport default {\n name: 'deviceWarnLog',\n mixins: [TableMixin],\n components: {\n DictSelect: DictSelect\n },\n data: function data() {\n return {\n disabledDetils: false,\n currentPage: 1,\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [],\n multipleSelection: [],\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n searchForm: {},\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n dialog: {\n title: '添加',\n visible: false\n },\n dialogForm: {},\n disabled: false,\n // 是否禁止输入输入\n edit: false,\n // 是否是修改功能\n currentDataDel: [],\n // 删除时排查是否有在审核的数据\n rules: {\n tollStationName: {\n required: true,\n message: '请选择收费站',\n trigger: 'blur'\n },\n hitchDate: {\n required: true,\n message: '请选择故障发现时间',\n trigger: 'blur'\n },\n requirRepairDate: {\n required: true,\n message: '请选择要求修复时间',\n trigger: 'blur'\n },\n level: {\n required: true,\n message: '请选择故障级别',\n trigger: 'blur'\n }\n },\n allData: {\n pageBean: {\n page: 1,\n pageSize: -1,\n total: 0\n }\n },\n tollStationData: [],\n roadData: [],\n tollStationId: '',\n tollStationName: ''\n };\n },\n created: function created() {\n this.tollStationId = sessionStorage.getItem('tollStationId');\n this.loadTollStation();\n this.loadRoad();\n },\n methods: {\n clearSearchForm: function clearSearchForm() {\n this.searchForm = {};\n this.searchForm.tollStationName = this.tollStationName;\n this.handleSearch();\n },\n // 获取收费站数据\n loadTollStation: function loadTollStation() {\n var _this = this;\n\n tollStationManagement.queryTollStation(this.allData).then(function (res) {\n var obj = [];\n\n for (var i = 0; i < res.data.rows.length; i++) {\n if (res.data.rows[i].id == _this.tollStationId) {\n _this.searchForm.tollStationName = res.data.rows[i].name;\n _this.tollStationName = res.data.rows[i].name;\n }\n\n obj = {\n id: res.data.rows[i].id,\n name: res.data.rows[i].name,\n roadName: res.data.rows[i].roadSegmentName,\n roadId: res.data.rows[i].roadSegmentId\n };\n\n _this.tollStationData.push(obj);\n }\n\n _this.loadData(1);\n });\n },\n loadRoad: function loadRoad() {\n var _this2 = this;\n\n routerManagement.queryRoad(this.allData).then(function (res) {\n var obj = [];\n\n for (var i = 0; i < res.rows.length; i++) {\n obj = {\n roadName: res.rows[i].name,\n roadId: res.rows[i].id\n };\n\n _this2.roadData.push(obj);\n }\n });\n },\n //获取数据\n loadData: function loadData(page) {\n var _this3 = this;\n\n if (!this.params.querys) {\n var querys = [];\n querys.push({\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'tollStationName',\n relation: 'AND',\n value: this.tollStationName\n });\n this.params.querys = querys;\n }\n\n if (page) this.params.pageBean.page = page;\n this.tableLoading = true;\n deviceWarnLog.querydeviceWarnLogData(this.params).then(function (res) {\n _this3.tableLoading = false;\n var data = res && res.data || {};\n _this3.tableData = data.rows || [];\n\n if (data.page) {\n _this3.params.pageBean = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total\n };\n }\n });\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 this.dialog.title = '添加';\n this.dialog.visible = true;\n },\n // 编辑\n 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 },\n // 删除\n handleDelete: function handleDelete() {\n var _this4 = 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 deviceWarnLog.DeleteConfig(_this4.deleteIds).then(function (res) {\n _this4.loadData(1);\n\n if (!res.errorMsg) {\n _this4.$message({\n message: '删除成功',\n type: 'success'\n });\n }\n });\n });\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n var obj = this.searchForm;\n var querys = [];\n\n for (var i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: i == 'tollStationName' || i == 'level' || i == 'state' || i == 'roadName' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n this.params.querys = querys;\n this.loadData(1);\n },\n // 表单提交保存\n submit: function submit() {\n var _this5 = this;\n\n this.$refs.form.validate(function (valid) {\n for (var i = 0; i < _this5.tollStationData.length; i++) {\n if (_this5.tollStationData[i].name == _this5.dialogForm.tollStationName) {\n _this5.dialogForm.roadName = _this5.tollStationData[i].roadName;\n _this5.dialogForm.roadId = _this5.tollStationData[i].roadId;\n }\n }\n\n if (_this5.dialogForm.state == '' || !_this5.dialogForm.state) {\n _this5.dialogForm.state = 0;\n }\n\n if (valid) {\n _this5.loading = true;\n deviceWarnLog.savedeviceWarnLogData(_this5.dialogForm).then(function (res) {\n console.log('res', res);\n\n if (res.data.state) {\n _this5.dialog.visible = false;\n\n _this5.loadData(1);\n }\n\n if (!res.errorMsg) {\n _this5.$message({\n message: !_this5.edit ? '添加成功' : '修改成功',\n type: 'success'\n });\n\n _this5.editVisible = false;\n }\n\n _this5.loading = false;\n }).catch(function () {\n _this5.loading = false;\n });\n } else {\n return false;\n }\n });\n }\n },\n computed: {\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }\n};",null]}