{"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\\children\\SectionManagement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\basicDataManagement\\children\\SectionManagement.vue","mtime":1710180839147},{"path":"D:\\jenkins\\workspace\\yhxt-web\\babel.config.js","mtime":1667326389982},{"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":456789000000},{"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 _typeof from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/typeof.js\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.map\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/es6.function.name\";\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : 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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 dictUtils from '@/components/dict/DictSelectUtils';\nimport req from '@/request.js';\nimport basicData from '@/api/basicData.js';\nimport RouteInfoDialog from '@/components/dialog/RouteInfoDialog.vue';\nimport eipOrgSelector from '@/components/eipControl/selector/EipOrgSelector.vue';\nimport routerInfoSelector from '@/components/selector/routerInfoSelector.vue';\nimport companyInfoSelector from '@/components/selector/companyInfoSelector.vue';\nimport routerInfoSelectorcopy from '@/components/selector/routerInfoSelectorcopy.vue';\nimport CascaderCompany from '@/components/selector/CascaderCompany.vue';\nexport default {\n name: 'SectionManagement',\n components: {\n RouteInfoDialog: RouteInfoDialog,\n // eipOrgSelector,\n routerInfoSelector: routerInfoSelector,\n companyInfoSelector: companyInfoSelector,\n routerInfoSelectorcopy: routerInfoSelectorcopy,\n CascaderCompany: CascaderCompany\n },\n data: function data() {\n return {\n restaurants: [],\n roadData: [],\n company: [],\n searchForm: {},\n companyOptions: [],\n dataBaseOptions: {\n dataBaseId: '',\n tableName: 'biz_road_section',\n // 必填\n tableSchema: ''\n },\n originAPIOptions: {\n url: '/road/roadmanage/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 routeName: '',\n //所属路线名称\n type: '1',\n //路段类型\n typeValue: '',\n //路段类型值\n roadsurfaceType: '11',\n //路面类型\n technologyClass: '10',\n //技术等级\n companyName: '',\n drivewayType: '2',\n //车道类型\n dwStartPegLng: '',\n dwStartPegLat: '',\n dwEndPegLng: '',\n dwEndPegLat: ''\n },\n drivewayType: '',\n //车道类型值\n permission: 'b',\n drivewayTypeArray: [{\n text: '双向二车道',\n value: '2'\n }, {\n text: '双向四车道',\n value: '4'\n }, {\n text: '双向六车道',\n value: '6'\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 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 + '/road/roadmanage/v1/updateRoad';\n }\n },\n mounted: function mounted() {},\n created: function created() {\n this.company = this.getCompany();\n this.roadData = this.getroad();\n this.restaurants = this.getroad();\n },\n methods: {\n handleChangedLatLng: function handleChangedLatLng(val, key) {\n if (key == 'upStartPegLng') {\n this.form.dwEndPegLng = val;\n } else if (key == 'upStartPegLat') {\n this.form.dwEndPegLat = val;\n } else if (key == 'upEndPegLng') {\n this.form.dwStartPegLng = val;\n } else if (key == 'upEndPegLat') {\n this.form.dwStartPegLat = val;\n }\n },\n querySearch: function querySearch(queryString, cb) {\n var restaurants = this.restaurants;\n var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;\n // 调用 callback 返回建议列表的数据\n cb(results);\n },\n createFilter: function createFilter(queryString) {\n return function (restaurant) {\n return restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;\n };\n },\n //所属路段获取焦点触发事件\n handleFocusRouter: function handleFocusRouter() {\n this.$refs.route.open();\n },\n //路段类型下拉事件\n handleSelectType: function handleSelectType(value) {\n if (value === '1') {\n this.form.typeValue = '检查路段';\n } else {\n this.form.typeValue = '费用路段';\n }\n },\n //所属路线打开弹框\n openRoute: function openRoute() {\n this.$refs.route.open();\n },\n //选取路线回填数据\n handleSelectRoute: function handleSelectRoute(data) {\n // console.log(data.name, '路线信息')\n this.form.routeName = data.name;\n this.form.routeId = data.id;\n this.$refs.routeName.focus();\n this.$refs.routeName.blur();\n // console.log(this.form.routeName)\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 var form = {\n routeName: '',\n //所属路线名称\n type: '1',\n //路段类型\n typeValue: '',\n //路段类型值\n roadsurfaceType: '11',\n //路面类型\n technologyClass: '10',\n //技术等级\n companyName: '',\n drivewayType: '2' //车道类型\n };\n\n this.type = 'edit';\n this.dialogVisible = true;\n this.form = _objectSpread(_objectSpread({}, form), data);\n },\n handleClose: function handleClose(done) {\n //清空表单\n // this.form = {companyName: '', companyId: ''}\n this.form = {\n routeName: '',\n //所属路线名称\n type: '1',\n //路段类型\n typeValue: '',\n //路段类型值\n roadsurfaceType: '11',\n //路面类型\n technologyClass: '10',\n //技术等级\n companyName: '',\n drivewayType: '2' //车道类型\n };\n\n done();\n },\n getroad: function getroad() {\n var arr = [];\n basicData.getRoadManagement().then(function (res) {\n res.rows.forEach(function (item) {\n arr.push({\n value: item.name,\n key: item.id\n });\n });\n console.log(arr, '12');\n });\n return arr;\n },\n //取消弹窗\n handleCancel: function handleCancel() {\n //清空表单\n // this.form = {companyName: '', companyId: ''}\n this.form = {\n routeName: '',\n //所属路线名称\n type: '1',\n //路段类型\n typeValue: '',\n //路段类型值\n roadsurfaceType: '11',\n //路面类型\n technologyClass: '10',\n //技术等级\n companyName: '',\n drivewayType: '2' //车道类型\n };\n\n this.dialogVisible = false;\n },\n //提交保存或者修改\n handleSubmit: function handleSubmit() {\n var _this = this;\n //验证表单是否填写完\n this.$refs.form.validate(function (bool) {\n if (bool) {\n _this.dialogVisible = false;\n //请求保存提交\n basicData.addRoadManagement(_this.form).then(function (res) {\n _this.$message.success(res.message);\n // this.form = {companyName: '', companyId: ''}\n _this.form = {\n routeName: '',\n //所属路线名称\n type: '1',\n //路段类型\n typeValue: '',\n //路段类型值\n roadsurfaceType: '11',\n //路面类型\n technologyClass: '10',\n //技术等级\n drivewayType: '2',\n //车道类型\n companyName: ''\n };\n _this.$refs.htTable.load(); //重新获取数据\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 handleReset: function handleReset() {\n this.searchForm = _objectSpread(_objectSpread({}, this.searchForm), {}, {\n companyId: ['1419863231459102720'],\n companyIds: '',\n routeName: '',\n drivewayType: ''\n });\n this.findinfo();\n },\n findinfo: function findinfo() {\n var _this2 = this;\n typeof this.$refs.filterTable !== 'undefined' && this.$refs.filterTable.clearFilter();\n var query = [];\n var search = {\n id: this.searchForm.id,\n company_id_: this.searchForm.companyIds,\n NAME_: this.searchForm.name,\n route_name_: this.searchForm.routeName,\n driveway_type_: this.searchForm.drivewayType\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: 'id',\n // 'company_id',\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 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.getRoadManagement(data).then(function (res) {\n console.log(res, '11');\n _this2.data = res.rows;\n _this2.pageResult = {\n page: res.page,\n pageSize: res.pageSize,\n total: res.total\n };\n });\n },\n loadData: function loadData(param, cb) {\n var _this3 = this;\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 // name_: this.searchForm.name,\n // company_id: this.searchForm.companyId,\n // route_name_: this.searchForm.routeName,\n // driveway_type_: this.searchForm.drivewayType\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 this.exportQuery = param;\n if (param.querys) {\n param.querys.forEach(function (item) {\n if (item.property == 'companyName') {\n item.property = 'COMPANY_NAME';\n }\n });\n }\n basicData.getRoadManagement(param).then(function (response) {\n //获取字典数据\n // this.initDictData('cdlx')\n // console.log(response)\n _this3.data = response.rows;\n _this3.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n if (cb) {\n if (Object.keys(_this3.$route.params).length !== 0 && Object.keys(_this3.$route.params.value).length !== 0 && _this3.$route.params.value.roadSegmentId && !_this3.isFindinfo) {\n _this3.searchForm = {\n id: _this3.$route.params.value.roadSegmentId\n };\n _this3.isFindinfo = true;\n _this3.findinfo();\n }\n cb();\n }\n });\n },\n //路线信息赋值\n changed: function changed(obj) {\n // console.log(obj)\n this.form.routeName = obj.name;\n this.form.routeId = obj.id;\n },\n value: function value(obj) {\n if (this.type == 'add') {\n this.form.routeName = obj.name;\n this.form.routeId = obj.id;\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;\n this.form.companyIds = JSON.stringify(obj.id.split(' ')); //必须是空格\n },\n //字典回调\n handleDict: function handleDict(val, obj, str) {\n if (str === 'mclx') {\n this.form.roadsurfaceTypeValue = obj.name;\n } else if (str === 'ldlx') {\n this.form.typeValue = obj.name;\n } else if (str === 'jsdj') {\n this.form.technologyClassValue = obj.name;\n } else if (str === 'cdlx') {\n this.form.drivewayTypeValue = obj.name;\n }\n },\n getCompany: function getCompany() {\n var _this4 = this;\n this.$http.post('${yhxt}/Company/v1/getCompany').then(function (res) {\n res.data.forEach(function (item) {\n _this4.companyOptions.push({\n id: item.id,\n name: item.name\n });\n });\n });\n // basicData.getCompanyInfo('1258608622670319616').then(res => {\n // console.log(res, '123')\n // this.deepClone(res[0])\n // })\n },\n //深层拷贝回去公司名称\n deepClone: function deepClone(obj) {\n var objClone = Array.isArray(obj) ? [] : {};\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 objClone[key] = obj[key];\n }\n }\n }\n }\n },\n //路线信息赋值\n routechanged: function routechanged(obj) {\n // console.log(obj)\n this.searchForm.routeName = 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 this.searchForm.routeName = '';\n }\n }\n};",null]}