{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\views\\basicDataManagement\\RouterManagement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\basicDataManagement\\RouterManagement.vue","mtime":1679422428607},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\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/es6.object.keys\";\nimport _typeof from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/typeof\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.map\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 req from '@/request.js';\nimport basicData from '@/api/basicData.js';\nimport eipOrgSelector from '@/components/eipControl/selector/EipOrgSelector.vue';\nimport companyInfoSelector from '@/components/selector/companyInfoSelector.vue';\nimport routerInfoSelectorcopy from '@/components/selector/routerInfoSelectorcopy.vue';\nimport InputSearch from '@/components/inputSearch/InputSearch.vue';\nimport CascaderCompany from '@/components/selector/CascaderCompany.vue';\nexport default {\n name: 'RouterManagement',\n components: {\n // eipOrgSelector,\n companyInfoSelector: companyInfoSelector,\n routerInfoSelectorcopy: routerInfoSelectorcopy,\n // InputSearch,\n CascaderCompany: CascaderCompany\n },\n data: function data() {\n var _formSection, _rules;\n\n return {\n company: [],\n roadData: [],\n searchForm: {},\n companyOptions: [],\n dataBaseOptions: {\n dataBaseId: '',\n tableName: 'biz_route',\n // 必填\n tableSchema: ''\n },\n originAPIOptions: {\n url: '/route/routemanage/v1/getJson',\n // 列表请求接口地址\n method: 'post',\n // 列表请求方法\n moduleRoot: 'yhxt' // 微服务根路径\n\n },\n exportQuery: {},\n data: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n dialogVisible: false,\n //判断是否是添加还是修改\n type: '',\n form: {\n companyName: ''\n },\n permission: 'b',\n dialogVisibleSection: false,\n formSection: (_formSection = {\n type: '1',\n //路段类型\n typeValue: '检查路段',\n //路段类型值\n roadsurfaceType: '11',\n //路面类型\n roadsurfaceTypeValue: '沥青混凝土',\n technologyClass: '10',\n //技术等级\n technologyClassValue: '高速',\n companyName: '',\n name: '',\n drivewayType: '2'\n }, _defineProperty(_formSection, \"drivewayType\", '双向二车道'), _defineProperty(_formSection, \"routeName\", ''), _defineProperty(_formSection, \"routeId\", ''), _formSection),\n rules: (_rules = {\n code: {\n required: true,\n message: '请输入路线编号',\n trigger: 'blur'\n },\n name: {\n required: true,\n message: '请输入路线名称',\n trigger: 'blur'\n }\n }, _defineProperty(_rules, \"code\", {\n required: true,\n message: '请输入路线编号',\n trigger: 'blur'\n }), _defineProperty(_rules, \"pavementWidth\", {\n required: true,\n message: '请输入路面宽度(米)',\n trigger: 'blur'\n }), _defineProperty(_rules, \"companyName\", {\n required: true,\n trigger: 'blur',\n message: '请选择公司名称'\n }), _rules),\n rulesSection: {\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 // routeName: {\n // required: true,\n // message: '请选择所属路线',\n // trigger: 'blur'\n // },\n companyName: {\n required: true,\n message: '请选择所属公司',\n trigger: 'blur'\n },\n address: {\n required: true,\n message: '请输入路段地址',\n trigger: 'blur'\n }\n }\n };\n },\n computed: {\n deleteUrl: function deleteUrl() {\n return window.context.yhxt + '/route/routemanage/v1/updateRoute';\n }\n },\n // mounted() {\n // let querys = this.$route.query\n // this.searchForm = {...this.searchForm, ...querys}\n // if (querys.companyIds && typeof querys.companyIds == 'string') {\n // let str = querys.companyIds\n // this.searchForm.companyIds = str.split(',') || []\n // }\n // this.$nextTick(() => {\n // this.findinfo()\n // })\n // },\n watch: {\n $route: {\n immediate: true,\n handler: function handler() {\n var _this = this;\n\n if (this.$route.query) {\n //需要监听的参数\n var querys = this.$route.query;\n this.searchForm = _objectSpread(_objectSpread({}, this.searchForm), querys);\n\n if (querys.companylds && typeof querys.companylds == 'string') {\n this.searchForm.companyIds = querys.companylds.split(',') || [];\n }\n\n this.$nextTick(function () {\n _this.findinfo();\n });\n }\n }\n }\n },\n created: function created() {\n this.company = this.getCompany();\n },\n methods: {\n //字典回调\n handleDict: function handleDict(val, obj, str) {\n if (str === 'mclx') {\n this.formSection.roadsurfaceTypeValue = obj.name;\n } else if (str === 'ldlx') {\n this.formSection.typeValue = obj.name;\n } else if (str === 'jsdj') {\n this.formSection.technologyClassValue = obj.name;\n } else if (str === 'cdlx') {\n this.formSection.drivewayTypeValue = obj.name;\n }\n },\n handleAddSection: function handleAddSection(row) {\n this.dialogVisibleSection = true;\n this.formSection.routeName = row.name;\n this.formSection.routeId = row.id;\n },\n afterDelete: function afterDelete() {\n this.$refs.htTable.load();\n },\n //新增\n handleAdd: function handleAdd() {\n this.dialogVisible = true;\n this.type = 'add';\n },\n //修改\n handleEdit: function handleEdit(data) {\n this.type = 'edit';\n this.dialogVisible = true;\n this.form = data;\n },\n handleClose: function handleClose(done) {\n //清空表单\n this.form = {\n companyName: ''\n };\n done();\n },\n //取消弹窗\n handleCancel: function handleCancel() {\n //清空表单\n this.form = {\n companyName: ''\n };\n this.dialogVisible = false;\n this.dialogVisibleSection = false;\n },\n //提交保存或者修改\n handleSubmit: function handleSubmit() {\n var _this2 = this;\n\n //验证表单是否填写完\n console.log(this.form);\n this.$refs.form.validate(function (bool) {\n if (bool) {\n _this2.dialogVisible = false; //请求保存提交\n\n basicData.addRouterManagement(_this2.form).then(function (res) {\n _this2.$message.success(res.message);\n\n _this2.form = {\n companyName: ''\n }; //清空表单\n\n _this2.$refs.htTable.load(); //重新获取数据\n\n });\n }\n });\n },\n //提交保存或者修改\n handleSubmitSection: function handleSubmitSection() {\n var _this3 = this;\n\n //验证表单是否填写完\n this.$refs.formSection.validate(function (bool) {\n console.log(_this3.formSection);\n\n if (bool) {\n _this3.dialogVisibleSection = false; //请求保存提交\n\n basicData.addRoadManagement(_this3.formSection).then(function (res) {\n var _this3$formSection;\n\n _this3.$message.success(res.message);\n\n _this3.formSection = (_this3$formSection = {\n type: '1',\n //路段类型\n typeValue: '检查路段',\n //路段类型值\n roadsurfaceType: '11',\n //路面类型\n roadsurfaceTypeValue: '沥青混凝土',\n technologyClass: '10',\n //技术等级\n technologyClassValue: '高速',\n companyName: '',\n name: '',\n drivewayType: '2'\n }, _defineProperty(_this3$formSection, \"drivewayType\", '双向二车道'), _defineProperty(_this3$formSection, \"routeName\", ''), _defineProperty(_this3$formSection, \"routeId\", ''), _this3$formSection);\n });\n }\n });\n },\n uniqueFunc: function uniqueFunc(arr, uniId) {\n var res = new Map();\n return arr.filter(function (item) {\n return !res.has(item[uniId]) && res.set(item[uniId], 1);\n });\n },\n findinfo: function findinfo() {\n var _this4 = this;\n\n typeof this.$refs.filterTable !== 'undefined' && this.$refs.filterTable.clearFilter();\n var query = [];\n var search = {\n company_id_: this.searchForm.companyIds,\n name: this.searchForm.name\n };\n\n for (var i in search) {\n if (search[i]) {\n if (i == 'company_id_') {\n query.push({\n group: 'companyIds',\n operation: 'IN',\n parentGroup: '',\n property: 'companyId',\n relation: 'AND',\n value: search[i]\n });\n } else {\n query.push({\n group: 'advance',\n operation: 'LIKE',\n property: i,\n relation: 'AND',\n value: search[i]\n });\n }\n }\n }\n\n query = this.uniqueFunc(query, 'property');\n var data = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n querys: query\n };\n this.topQuery = query;\n basicData.getRouterManagement(data).then(function (res) {\n console.log(res, '11');\n _this4.data = res.rows;\n _this4.pageResult = {\n page: res.page,\n pageSize: res.pageSize,\n total: res.total\n };\n });\n },\n loadData: function loadData(param, cb) {\n var _this5 = this;\n\n // let r = JSON.stringify(param.pageBean)\n // let l = JSON.stringify(this.pageResult)\n // console.log(r, l)\n // if (r == l) {\n // console.log('一样')\n // param\n // } else {\n // console.log('不一样')\n // let query = []\n // let search = {\n // companyId: this.searchForm.companyId,\n // name_: this.searchForm.name\n // }\n // for (let i in search) {\n // if (search[i]) {\n // query.push({\n // group: 'advance',\n // operation: 'LIKE',\n // property: i,\n // relation: 'AND',\n // value: search[i]\n // })\n // }\n // }\n // param.querys = query\n // }\n // if (typeof param.querys !== 'undefined' && param.querys.length !== 0) {\n // this.headQuery = param.querys\n // }\n if (typeof this.topQuery !== 'undefined' && this.topQuery.length !== 0) {\n param.querys = typeof param.querys !== 'undefined' ? param.querys : [];\n this.topQuery.forEach(function (item) {\n param.querys.push(item);\n });\n param.querys = this.uniqueFunc(param.querys, 'property');\n }\n\n this.exportQuery = param;\n basicData.getRouterManagement(param).then(function (response) {\n console.log(response);\n _this5.data = response.rows;\n _this5.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n //公司赋值\n handleChanged: function handleChanged(obj) {\n // console.log(obj.valueInfo.join(','))\n this.form.companyIds = JSON.stringify(obj.valueInfo);\n this.form.companyName = obj.name;\n this.form.companyId = obj.id;\n },\n companyValue: function companyValue(obj) {\n // console.log(obj)\n this.form.companyName = obj.name;\n this.form.companyId = obj.id; // console.log(obj.id.split(' '))\n\n this.form.companyIds = JSON.stringify(obj.id.split(' ')); //必须是空格\n },\n //公司赋值\n handleChangedA: function handleChangedA(obj) {\n // console.log(obj.valueInfo.join(','))\n this.formSection.companyIds = JSON.stringify(obj.valueInfo);\n this.formSection.companyName = obj.name;\n this.formSection.companyId = obj.id;\n },\n companyValueA: function companyValueA(obj) {\n // console.log(obj)\n this.formSection.companyName = obj.name;\n this.formSection.companyId = obj.id;\n this.formSection.companyIds = JSON.stringify(obj.id.split(' ')); //必须是空格\n },\n getCompany: function getCompany() {\n var _this6 = this;\n\n // basicData.getCompanyInfo('1258608622670319616').then(res => {\n // console.log(res, '123')\n // this.deepClone(res[0])\n // })\n this.$http.post('${yhxt}/Company/v1/getCompany').then(function (res) {\n res.data.forEach(function (item) {\n _this6.companyOptions.push({\n id: item.id,\n name: item.name\n });\n });\n });\n },\n //深层拷贝回去公司名称\n deepClone: function deepClone(obj) {\n var objClone = Array.isArray(obj) ? [] : {};\n\n if (obj && _typeof(obj) === 'object') {\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n //判断ojb子元素是否为对象,如果是,递归复制\n if (obj[key] && _typeof(obj[key]) === 'object') {\n objClone[key] = this.deepClone(obj[key]);\n } else {\n if (obj[key] == obj.name) {\n this.companyOptions.push({\n id: obj.id,\n name: obj.name\n });\n } //如果不是,简单复制\n\n\n objClone[key] = obj[key];\n }\n }\n }\n }\n },\n //路线信息赋值\n changed: function changed(obj) {\n // console.log(obj)\n this.searchForm.name = obj.name;\n this.searchForm.routeId = obj.id;\n },\n clear: function clear() {\n console.log('进来了');\n this.searchForm.name = '';\n this.searchForm.routeId = '';\n } // value(obj) {\n // this.searchForm.name = obj.name\n // this.searchForm.routeId = obj.id\n // },\n\n }\n};",null]}