{"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\\CulvertManagement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\basicDataManagement\\children\\CulvertManagement.vue","mtime":1706175429053},{"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 \"core-js/modules/es6.object.keys\";\nimport _typeof from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/typeof.js\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.map\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 RoadInfoDialog from '@/components/dialog/RoadInfoDialog.vue';\nimport eipOrgSelector from '@/components/eipControl/selector/EipOrgSelector.vue';\nimport sctionInfoSelector from '@/components/selector/sctionInfoSelector.vue';\nimport companyInfoSelector from '@/components/selector/companyInfoSelector.vue';\nimport routerInfoSelectorcopy from '@/components/selector/routerInfoSelectorcopy.vue';\nimport CascaderCompany from '@/components/selector/CascaderCompany.vue';\nvar ImgPreviewUpload = function ImgPreviewUpload() {\n return import('@/components/common/ImgPreviewUploadAccessor.vue');\n};\nexport default {\n name: 'CulvertManagement',\n components: {\n RoadInfoDialog: RoadInfoDialog,\n // eipOrgSelector,\n sctionInfoSelector: sctionInfoSelector,\n // companyInfoSelector,\n routerInfoSelectorcopy: routerInfoSelectorcopy,\n ImgPreviewUpload: ImgPreviewUpload,\n CascaderCompany: CascaderCompany\n },\n data: function data() {\n return {\n activeName: 'first',\n functionTypeData: [{\n value: '1',\n label: '公路'\n }, {\n value: '2',\n label: '公铁两用'\n }],\n basicFormData: [{\n value: '1',\n label: '一字墙'\n }, {\n value: '2',\n label: '八字墙'\n }, {\n value: '3',\n label: '扇形'\n }, {\n value: '4',\n label: '跌水井'\n }, {\n value: '5',\n label: '端墙'\n }, {\n value: '6',\n label: '直翼墙'\n }, {\n value: '7',\n label: '锥坡'\n }, {\n value: '8',\n label: '竖井'\n }, {\n value: '9',\n label: '排水沟'\n }, {\n value: '10',\n label: '急流槽'\n }, {\n value: '11',\n label: '挡墙'\n }, {\n value: '12',\n label: '挡墙+跌水井'\n }, {\n value: '13',\n label: '其他'\n }],\n roadData: [],\n company: [],\n // roadData: [],\n searchForm: {},\n companyOptions: [],\n dataBaseOptions: {\n dataBaseId: '',\n tableName: 'biz_culvert_information',\n // 必填\n tableSchema: ''\n },\n originAPIOptions: {\n url: '/bizCulvertInformation/bizCulvertInformationmanager/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 roadSegmentName: '',\n //所属路段\n type: '1',\n //涵洞类型\n typeValue: '盖板涵',\n direction: '1',\n //方向\n directionValue: '上行方向',\n topMaterial: '1',\n //上层材料\n topMaterialValue: '预应力混凝土',\n //上层材料\n bodyMaterial: '1',\n //身体材料\n bodyMaterialValue: '预应力混凝土',\n //身体材料\n entranceMaterial: '1',\n //入口材料\n entranceMaterialValue: '预应力混凝土',\n //入口材料\n exitMaterial: '1',\n //出口材料\n exitMaterialValue: '预应力混凝土',\n //出口材料\n entranceForm: '1',\n //入口形式\n entranceFormValue: '一字墙',\n //入口形式\n exitForm: '1',\n //exitForm\n exitFormValue: '一字墙',\n //exitForm\n companyName: '',\n uses: '1',\n //用途\n usesValue: '排水' //用途\n },\n\n permission: 'b',\n drivewayTypeArray: [{\n text: '盖板涵',\n value: '1'\n }, {\n text: '管涵',\n value: '2'\n }, {\n text: '箱涵',\n value: '3'\n }, {\n text: '供涵',\n value: '4'\n }, {\n text: '倒虹吸',\n value: '5'\n }],\n rules: {\n number: {\n required: true,\n message: '请输入涵洞编号',\n trigger: 'blur'\n },\n roadSegmentName: {\n required: true,\n message: '请选择所属路段',\n trigger: 'blur'\n },\n companyName: {\n required: true,\n message: '请选择所属公司',\n trigger: 'blur'\n },\n officeName: {\n required: true,\n message: '请输入管养单位',\n trigger: 'blur'\n },\n name: {\n required: true,\n message: '请输入涵洞名称',\n trigger: 'blur'\n },\n type: {\n required: true,\n message: '请输入涵洞类型',\n trigger: 'blur'\n },\n direction: {\n required: true,\n message: '请输入方向',\n trigger: 'blur'\n },\n height: {\n required: true,\n message: '请输入涵洞高度(m)',\n trigger: 'blur'\n },\n length: {\n required: true,\n message: '请输入涵洞长度(m)',\n trigger: 'blur'\n },\n centPeg: {\n required: true,\n message: '请输入中心桩号',\n trigger: 'blur'\n },\n centPegAndRampPegK: {\n required: true,\n message: '请输入匝道桩号',\n trigger: 'blur'\n },\n holeCount: {\n required: true,\n message: '请输入孔数',\n trigger: 'blur'\n },\n topMaterial: {\n required: true,\n message: '请输入上层材料',\n trigger: 'blur'\n },\n bodyMaterial: {\n required: true,\n message: '请输入身体材料',\n trigger: 'blur'\n },\n entranceMaterial: {\n required: true,\n message: '请输入入口材料',\n trigger: 'blur'\n },\n exitMaterial: {\n required: true,\n message: '请输入出口材料',\n trigger: 'blur'\n },\n entranceForm: {\n required: true,\n message: '请输入入口形式',\n trigger: 'blur'\n },\n exitForm: {\n required: true,\n message: '请输入出口形式',\n trigger: 'blur'\n },\n uses: {\n required: true,\n message: '请输入用途',\n trigger: 'blur'\n },\n finishDay: {\n required: true,\n message: '请输入完成日期',\n trigger: 'blur'\n }\n // lng: {\n // required: true,\n // message: '请输入横坐标',\n // trigger: 'blur',\n // },\n // lat: {\n // required: true,\n // message: '请输入纵坐标',\n // trigger: 'blur',\n // },\n },\n\n frontView: {\n fileList: []\n },\n lateralView: {\n fileList: []\n },\n twoDimensionalView: {\n fileList: []\n },\n loading: false //保存之后全局加载等待\n };\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 if (this.$route.query) {\n //需要监听的参数\n var querys = this.$route.query;\n this.searchForm = _objectSpread(_objectSpread({}, this.searchForm), querys);\n if (querys.companylds && typeof querys.companylds == 'string') {\n this.searchForm.companyIds = querys.companylds.split(',') || [];\n }\n this.$nextTick(function () {\n _this.findinfo();\n });\n }\n }\n }\n },\n created: function created() {\n this.company = this.getCompany();\n this.roadData = this.getroad();\n },\n computed: {\n deleteUrl: function deleteUrl() {\n return window.context.yhxt + '/bizCulvertInformation/bizCulvertInformationmanager/v1/updateCulvertInformation';\n }\n },\n methods: {\n getImageUrl: function getImageUrl(source) {\n var data = [];\n if (source && source.length !== 0) {\n source.forEach(function (item) {\n data.push(item.url);\n });\n }\n return data;\n },\n sonToDad: function sonToDad(data, key) {\n if (key == 'frontView') {\n //正面图\n this.form.accessoriesFrontView = data;\n } else if (key == 'lateralView') {\n //侧面图\n this.form.accessoriesLateralView = data;\n } else if (key == 'twoDimensionalView') {\n //二维平面图\n this.form.accessoriesTwoDimensionalView = data;\n }\n },\n //字典触发回调事件\n handleDict: function handleDict(val, obj, str) {\n // console.log(val, obj, str)\n // this.form.direction = obj.name\n if (str === 'fx') {\n this.form.directionValue = obj.name;\n } else if (str === 'hdlx') {\n this.form.typeValue = obj.name;\n } else if (str === 'sccl') {\n this.form.topMaterialValue = obj.name;\n } else if (str === 'stcl') {\n this.form.bodyMaterialValue = obj.name;\n } else if (str === 'rkcl') {\n this.form.entranceMaterialValue = obj.name;\n } else if (str === 'rkxs') {\n this.form.entranceFormValue = obj.name;\n } else if (str === 'yt') {\n this.form.usesValue = obj.name;\n } else if (str === 'ckcl') {\n this.form.exitMaterialValue = obj.name;\n } else if (str === 'ckxs') {\n this.form.exitFormValue = obj.name;\n }\n },\n //所属路段获取焦点触发事件\n handleFocusRoad: function handleFocusRoad() {\n this.$refs.road.open();\n },\n // //路段类型下拉事件\n // handleSelectType(value) {\n // if (value === '1') {\n // this.form.typeValue = '检查路段'\n // } else {\n // this.form.typeValue = '费用路段'\n // }\n // },\n //所属路线打开弹框\n openRoad: function openRoad() {\n this.$refs.road.open();\n },\n //选取路线回填数据\n handleSelectRoad: function handleSelectRoad(data) {\n // console.log(data.name, '路线信息')\n this.form.roadSegmentName = data.name;\n this.form.roadSegmentId = data.id;\n this.$refs.roadSegmentName.focus();\n this.$refs.roadSegmentName.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 _this2 = this;\n this.type = 'edit';\n this.form = _objectSpread({}, data);\n this.$http.get('${yhxt}/bizCulvertInformation/bizCulvertInformationmanager/v1/get/' + data.id).then(function (res) {\n var data = res.data;\n _this2.frontView.fileList = data.accessoriesFrontView;\n _this2.lateralView.fileList = data.accessoriesLateralView;\n _this2.twoDimensionalView.fileList = data.accessoriesTwoDimensionalView;\n _this2.form.accessoriesFrontView = data.accessoriesFrontView;\n _this2.form.accessoriesLateralView = data.accessoriesLateralView;\n _this2.form.accessoriesTwoDimensionalView = data.accessoriesTwoDimensionalView;\n _this2.dialogVisible = true;\n });\n },\n handleClose: function handleClose(done) {\n //清空表单\n // this.form = {companyName: '', companyId: ''}\n ;\n this.form = {\n roadSegmentName: '',\n //所属路段\n type: '1',\n //涵洞类型\n typeValue: '盖板涵',\n direction: '1',\n //方向\n directionValue: '上行方向',\n topMaterial: '1',\n //上层材料\n topMaterialValue: '预应力混凝土',\n //上层材料\n bodyMaterial: '1',\n //身体材料\n bodyMaterialValue: '预应力混凝土',\n //身体材料\n entranceMaterial: '1',\n //入口材料\n entranceMaterialValue: '预应力混凝土',\n //入口材料\n exitMaterial: '1',\n //出口材料\n exitMaterialValue: '预应力混凝土',\n //出口材料\n entranceForm: '1',\n //入口形式\n entranceFormValue: '一字墙',\n //入口形式\n exitForm: '1',\n //exitForm\n exitFormValue: '一字墙',\n //exitForm\n companyName: '',\n uses: '1',\n //用途\n usesValue: '排水' //用途\n }, done();\n },\n //取消弹窗\n handleCancel: function handleCancel() {\n //清空表单\n // this.form = {companyName: '', companyId: ''}\n ;\n this.form = {\n roadSegmentName: '',\n //所属路段\n type: '1',\n //涵洞类型\n typeValue: '盖板涵',\n direction: '1',\n //方向\n directionValue: '上行方向',\n topMaterial: '1',\n //上层材料\n topMaterialValue: '预应力混凝土',\n //上层材料\n bodyMaterial: '1',\n //身体材料\n bodyMaterialValue: '预应力混凝土',\n //身体材料\n entranceMaterial: '1',\n //入口材料\n entranceMaterialValue: '预应力混凝土',\n //入口材料\n exitMaterial: '1',\n //出口材料\n exitMaterialValue: '预应力混凝土',\n //出口材料\n entranceForm: '1',\n //入口形式\n entranceFormValue: '一字墙',\n //入口形式\n exitForm: '1',\n //exitForm\n exitFormValue: '一字墙',\n //exitForm\n companyName: '',\n uses: '1',\n //用途\n usesValue: '排水' //用途\n }, this.dialogVisible = false;\n },\n //提交保存或者修改\n handleSubmit: function handleSubmit() {\n var _this3 = this;\n //验证表单是否填写完\n this.$refs.form.validate(function (bool) {\n if (bool) {\n _this3.loading = true;\n //请求保存提交\n basicData.addCulvertManagement(_this3.form).then(function (res) {\n _this3.loading = false;\n _this3.$message.success(res.message);\n // this.form = {companyName: '', companyId: ''}\n _this3.dialogVisible = false;\n _this3.form = {\n roadSegmentName: '',\n //所属路段\n type: '1',\n //涵洞类型\n typeValue: '盖板涵',\n direction: '1',\n //方向\n directionValue: '上行方向',\n topMaterial: '1',\n //上层材料\n topMaterialValue: '预应力混凝土',\n //上层材料\n bodyMaterial: '1',\n //身体材料\n bodyMaterialValue: '预应力混凝土',\n //身体材料\n entranceMaterial: '1',\n //入口材料\n entranceMaterialValue: '预应力混凝土',\n //入口材料\n exitMaterial: '1',\n //出口材料\n exitMaterialValue: '预应力混凝土',\n //出口材料\n entranceForm: '1',\n //入口形式\n entranceFormValue: '一字墙',\n //入口形式\n exitForm: '1',\n //exitForm\n exitFormValue: '一字墙',\n //exitForm\n companyName: '',\n uses: '1',\n //用途\n usesValue: '排水' //用途\n };\n\n _this3.$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 routeName: '',\n routeId: '',\n type: '',\n finishDay: ''\n });\n this.findinfo();\n },\n findinfo: function findinfo() {\n var _this4 = this;\n typeof this.$refs.filterTable !== 'undefined' && this.$refs.filterTable.clearFilter();\n var query = [];\n var params = {\n routeId: this.searchForm.routeId\n };\n var search = {\n company_id_: this.searchForm.companyIds,\n road_segment_id_: this.searchForm.roadSegmentId,\n finish_day_: this.searchForm.finishDay,\n type: this.searchForm.type\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: '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 params: params\n };\n this.topQuery = query;\n basicData.getCulvertManagement(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 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 getCompany: function getCompany() {\n var _this5 = this;\n this.$http.post('${yhxt}/Company/v1/getCompany').then(function (res) {\n res.data.forEach(function (item) {\n _this5.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 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 loadData: function loadData(param, cb) {\n var _this6 = this;\n var r = JSON.stringify(param.pageBean);\n var 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 var query = [];\n var params = {\n routeId: this.searchForm.routeId\n };\n var search = {\n company_id_: this.searchForm.companyId,\n road_segment_id_: this.searchForm.roadSegmentId,\n finish_day_: this.searchForm.finishDay,\n type_: this.searchForm.type\n };\n for (var 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 param.params = params;\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.getCulvertManagement(param).then(function (response) {\n console.log(response);\n _this6.data = response.rows;\n _this6.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n if (cb) {\n if (Object.keys(_this6.$route.params).length !== 0 && Object.keys(_this6.$route.params.value).length !== 0 && _this6.$route.params.value.roadSegmentId && !_this6.isFindinfo) {\n _this6.searchForm = {\n roadSegmentId: _this6.$route.params.value.roadSegmentId\n };\n _this6.isFindinfo = true;\n _this6.findinfo();\n }\n cb();\n }\n });\n },\n //路段信息赋值\n changed: function changed(obj) {\n this.form.roadSegmentName = obj.name;\n this.form.roadSegmentId = obj.id;\n this.form.companyName = obj.companyName;\n this.form.companyIds = obj.companyIds;\n this.form.companyId = obj.companyId;\n },\n //默认赋值为第一条数据的值\n value: function value(obj) {\n if (this.type == 'add') {\n this.form.roadSegmentName = obj.name;\n this.form.roadSegmentId = obj.id;\n this.form.companyName = obj.companyName;\n this.form.companyIds = obj.companyIds;\n this.form.companyId = obj.companyId;\n }\n },\n //路段信息赋值\n // changed(obj) {\n // this.form.roadSegmentName = obj.name\n // this.form.roadSegmentId = obj.id\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 //路线信息赋值\n routechanged: function routechanged(obj) {\n // console.log(obj)\n this.searchForm.routeName = obj.name;\n this.searchForm.routeId = 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 clear: function clear() {\n console.log('进来了');\n this.searchForm.name = '';\n this.searchForm.routeId = '';\n }\n }\n};",null]}