{"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\\BasicDataManagement\\dialog\\sectionManagementDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\BasicDataManagement\\dialog\\sectionManagementDialog.vue","mtime":1702625396627},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 sectionManagement from '@/api/BasicDataManagement/sectionManagement.js';\nimport routerManagement from '@/api/BasicDataManagement/routerManagement.js';\nimport companyInfoSelector from \"../../components/companyInfoSelector.vue\";\nimport DictSelect from \"../../../../components/dict/DictSelect.vue\";\nexport default {\n name: 'sectionManagementDialog',\n components: {\n companyInfoSelector: companyInfoSelector,\n DictSelect: DictSelect\n },\n data: function data() {\n return {\n dialog: {\n title: '添加',\n visible: false\n },\n dialogForm: {},\n disabled: false,\n // 是否禁止输入输入\n edit: true,\n // 是否是修改功能\n currentDataDel: [],\n // 删除时排查是否有在审核的数据\n rules: {\n code: {\n required: true,\n message: '请输入路段编号',\n trigger: 'blur'\n },\n name: {\n required: true,\n message: '请输入路段名称',\n trigger: 'blur'\n },\n simplicity: {\n required: true,\n message: '请输入路段名称',\n trigger: 'blur'\n },\n address: {\n required: true,\n message: '请输入路段地址',\n trigger: 'blur'\n },\n routeName: {\n required: true,\n message: '请选择所属路线',\n trigger: 'blur'\n },\n companyName: {\n required: true,\n message: '请选择所属公司',\n trigger: 'blur'\n }\n },\n routeNameOptionsForm: [],\n companyNameOptionsForm: [{\n name: '',\n value: ''\n }],\n loading: false,\n allData: {\n pageBean: {\n page: 1,\n pageSize: -1,\n total: 0\n }\n }\n };\n },\n mounted: function mounted() {\n this.getRouterData();\n this.edit = this.$route.params.edit;\n\n if (this.edit) {\n this.dialogForm = this.$route.params.rows;\n }\n },\n methods: {\n // 路面类型字典转化\n RoadsurfaceTypeSelected: function RoadsurfaceTypeSelected(value, obj) {\n this.dialogForm.roadsurfaceTypeValue = obj.name;\n },\n // 路段类型字典转化\n TypeValueSelected: function TypeValueSelected(value, obj) {\n this.dialogForm.typeValueValue = obj.name;\n },\n // 技术等级字典转化\n TechnologyClassSelected: function TechnologyClassSelected(value, obj) {\n this.dialogForm.technologyClassValue = obj.name;\n },\n // 车道类型字典转化\n DrivewayTypeSelected: function DrivewayTypeSelected(value, obj) {\n this.dialogForm.drivewayTypeValue = obj.name;\n },\n handleCompanyChange: function handleCompanyChange(obj) {\n this.dialogForm.companyName = obj.name;\n this.dialogForm.companyId = obj.id;\n },\n // 表单提交保存\n submit: function submit() {\n var _this = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this.loading = true;\n sectionManagement.batchSubmit(_this.dialogForm).then(function (res) {\n console.log('res', res);\n console.log(!res.errorMsg);\n\n if (!res.errorMsg) {\n _this.$message({\n message: !_this.edit ? '添加成功' : '修改成功',\n type: 'success'\n });\n\n setTimeout(_this.$router.push({\n name: 'sectionManagement'\n }), 2000);\n }\n\n _this.loading = false;\n }).catch(function () {\n _this.loading = false;\n });\n } else {\n return false;\n }\n });\n },\n // 获取路线数据\n getRouterData: function getRouterData() {\n var _this2 = this;\n\n routerManagement.queryRouter(this.allData).then(function (res) {\n _this2.getrouteNameOption(res.data.rows);\n });\n },\n // 路线下拉选择\n getrouteNameOption: function getrouteNameOption(allData) {\n var obj = [];\n\n for (var i = 0; i < allData.length; i++) {\n obj = {\n name: allData[i].name,\n value: i\n };\n this.routeNameOptionsForm.push(obj);\n }\n }\n }\n};",null]}