{"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\\statisticalReport\\StatisticsStructureInspection.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\statisticalReport\\StatisticsStructureInspection.vue","mtime":1667326395310},{"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/es6.string.iterator\";\nimport \"core-js/modules/es6.map\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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';\nexport default {\n name: 'RouterManagement',\n components: {\n eipOrgSelector: eipOrgSelector\n },\n data: function data() {\n var _rules;\n return {\n searchForm: {},\n data: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n dialogVisible: false,\n //判断是否是添加还是修改\n type: '',\n form: {},\n permission: 'b',\n roadData: [],\n //璐段下拉信息\n //检查类别下拉信息\n checkCatgory: [{\n value: '日巡检',\n key: '0'\n }, {\n value: '夜巡检',\n key: '1'\n }, {\n value: '桥梁经常检查',\n key: '2'\n }, {\n value: '隧道经常检查',\n key: '3'\n }, {\n value: '涵洞经常检查',\n key: '4'\n }, {\n value: '边坡经常检查',\n key: '5'\n }, {\n value: '桥梁定期检查',\n key: '6'\n }, {\n value: '隧道定期检查',\n key: '7'\n }, {\n value: '边坡定期检查',\n key: '8'\n }, {\n value: '涵洞定期检查',\n key: '9'\n }],\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, \"start\", {\n required: true,\n message: '请输入起点地址',\n trigger: 'blur'\n }), _defineProperty(_rules, \"end\", {\n required: true,\n message: '请输入止点地址',\n trigger: 'blur'\n }), _defineProperty(_rules, \"startPeg\", {\n required: true,\n message: '请输入起点桩号',\n trigger: 'blur'\n }), _defineProperty(_rules, \"endPeg\", {\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 }), _defineProperty(_rules, \"mileage\", {\n required: true,\n message: '请输入里程(千米)',\n trigger: 'blur'\n }), _rules)\n };\n },\n created: function created() {\n //获取路段下拉信息\n this.roadData = this.getRoadData();\n },\n computed: {\n deleteUrl: function deleteUrl() {\n return window.context.yhxt + '/route/routemanage/v1/updateRoute';\n }\n },\n methods: {\n //获取路段下拉信息\n getRoadData: function getRoadData() {\n var arr = [];\n basicData.getRoadManagement().then(function (res) {\n // console.log(res, 'ffff')\n res.rows.forEach(function (item) {\n arr.push({\n value: item.name,\n key: item.name\n });\n });\n });\n return arr;\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 done();\n },\n //取消弹窗\n handleCancel: function handleCancel() {\n //清空表单\n this.form = {};\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.addRouterManagement(_this.form).then(function (res) {\n _this.$message.success(res.message);\n _this.form = {}; //清空表单\n _this.loadData(); //重新获取数据\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 _this2 = this;\n typeof this.$refs.filterTable !== 'undefined' && this.$refs.filterTable.clearFilter();\n var query = [];\n var search = {\n expectedCompleteTime: this.searchForm.expectedCompleteTime,\n projectName: this.searchForm.projectName,\n portType: this.searchForm.portType\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 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 _this2.data = res.data.rows;\n _this2.pageResult = {\n page: res.data.page,\n pageSize: res.data.pageSize,\n total: res.data.total\n };\n });\n },\n loadData: function loadData(param, cb) {\n var _this3 = this;\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.$http.post('${yhxt}/statisticalStatement/v1/countStructure', param).then(function (response) {\n // console.log(response)\n // this.data = response.rows\n console.log(response);\n _this3.data = response.data.value;\n _this3.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};",null]}