{"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\\dialog\\warnInfoDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\DeviceManagement\\dialog\\warnInfoDialog.vue","mtime":1702408125205},{"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/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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';\nimport routerManagement from '@/api/BasicDataManagement/tollStationManagement.js';\nexport default {\n name: 'warnInfoDialog',\n components: {\n DictSelect: DictSelect\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n disabledDetils: false,\n rules: {},\n dialogForm: '',\n id: '',\n dialog: {\n title: '添加',\n visible: false\n },\n disabled: false,\n // 是否禁止输入输入\n edit: true,\n row: '',\n roadOptions: ''\n };\n },\n created: function created() {\n this.id = this.$route.query.id;\n this.getWarnInfo();\n this.loadRoad();\n },\n mounted: function mounted() {},\n methods: {\n handleChangeRoad: function handleChangeRoad(data) {\n var target = this.roadOptions.filter(function (item) {\n return item.id == data;\n })[0];\n this.dialogForm.roadName = target.name;\n },\n // 路段数据\n loadRoad: function loadRoad() {\n var _this = this;\n\n var params = {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n };\n routerManagement.queryRoad(params).then(function (res) {\n _this.roadOptions = res.rows || [];\n\n if (_this.roadOptions.length) {\n _this.dialogForm.roadName = _this.roadOptions[0].name;\n _this.dialogForm.roadId = _this.roadOptions[0].id;\n }\n });\n },\n getWarnInfo: function getWarnInfo() {\n var _this2 = this;\n\n warn.queryOneWarnInfo(this.id).then(function (res) {\n _this2.dialogForm = res.data;\n _this2.row = res.data;\n });\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n },\n // 编辑\n handleEdit: function handleEdit() {\n this.edit = true;\n this.disabledDetils = false;\n this.dialogForm = JSON.parse(JSON.stringify(this.row));\n this.dialog.title = '编辑';\n this.dialog.visible = true;\n },\n submit: function submit() {\n var _this3 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this3.loading = true;\n warn.addInfo(_this3.dialogForm).then(function (res) {\n if (res.data.state) {\n _this3.dialog.visible = false;\n }\n\n if (!res.errorMsg) {\n _this3.$message({\n message: '修改成功',\n type: 'success'\n });\n\n _this3.editVisible = false;\n }\n\n _this3.loading = false;\n\n _this3.getWarnInfo();\n }).catch(function () {\n _this3.loading = false;\n });\n } else {\n return false;\n }\n });\n }\n }\n};",null]}