{"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\\MaintenanceWorkArea.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\basicDataManagement\\children\\MaintenanceWorkArea.vue","mtime":1706175429069},{"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.string.iterator\";\nimport \"core-js/modules/es6.map\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\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\nimport basicData from '@/api/basicData.js';\nimport CascaderCompany from '@/components/selector/CascaderCompany.vue';\nexport default {\n components: {\n CascaderCompany: CascaderCompany\n },\n data: function data() {\n return {\n searchForm: {},\n roadData: [],\n companyOptions: [],\n data: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n type: '',\n dialogVisible: false,\n loading: false,\n form: {},\n rules: {}\n };\n },\n created: function created() {\n this.roadData = this.getroad();\n this.getCompany();\n },\n mounted: function mounted() {},\n computed: {\n deleteUrl: function deleteUrl() {\n return window.context.yhxt + '/bizMaintenanceWorkArea/v1/';\n }\n },\n methods: {\n getCompany: function getCompany() {\n var _this = this;\n this.$http.post('${yhxt}/Company/v1/getCompany').then(function (res) {\n res.data.forEach(function (item) {\n _this.companyOptions.push({\n id: item.id,\n name: item.name\n });\n });\n });\n },\n handleRoadSegmentChange: function handleRoadSegmentChange(id) {\n var _this2 = this;\n this.roadData.forEach(function (item) {\n if (item.id == id) {\n _this2.form.roadSegmentName = item.name;\n _this2.form.companyName = item.companyName;\n _this2.form.companyId = item.companyId;\n }\n });\n },\n handleCompanyChange: function handleCompanyChange(id) {\n var _this3 = this;\n this.companyOptions.forEach(function (item) {\n if (item.id == id) {\n _this3.form.companyName = item.name;\n }\n });\n },\n handleSubmit: function handleSubmit() {\n var _this4 = this;\n this.$refs.form.validate(function (bool) {\n if (bool) {\n _this4.loading = true;\n _this4.$http.post('${yhxt}/bizMaintenanceWorkArea/v1/', _this4.form).then(function (res) {\n _this4.loading = false;\n _this4.dialogVisible = false;\n _this4.$refs.htTable.load(); //重新获取数据\n });\n }\n });\n },\n handleClose: function handleClose(done) {\n done();\n },\n handleCancel: function handleCancel() {\n this.dialogVisible = false;\n },\n afterDelete: function afterDelete() {\n this.$refs.htTable.load();\n },\n handleAdd: function handleAdd() {\n this.form = {};\n this.dialogVisible = true;\n this.type = 'add';\n },\n loadData: function loadData(param, cb) {\n var _this5 = 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}/bizMaintenanceWorkArea/v1/query', param).then(function (res) {\n var response = res.data;\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 if (Object.keys(_this5.$route.params).length !== 0 && Object.keys(_this5.$route.params.value).length !== 0 && _this5.$route.params.value.roadSegmentId && !_this5.isFindinfo) {\n _this5.searchForm = {\n roadSegmentId: _this5.$route.params.value.roadSegmentId\n };\n _this5.isFindinfo = true;\n _this5.findinfo();\n }\n cb();\n }\n });\n },\n handleEdit: function handleEdit(data) {\n this.dialogVisible = true;\n this.type = 'edit';\n this.form = _objectSpread({}, data);\n },\n findinfo: function findinfo() {\n var _this6 = this;\n var query = [];\n var search = {\n company_id_: this.searchForm.companyIds,\n road_segment_id_: this.searchForm.roadSegmentId\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: 'EQUAL',\n property: i,\n relation: 'AND',\n value: search[i]\n });\n }\n }\n }\n var data = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n querys: query\n };\n this.topQuery = query;\n this.$http.post('${yhxt}/bizMaintenanceWorkArea/v1/query', data).then(function (res) {\n var response = res.data;\n _this6.data = response.rows;\n _this6.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\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 getroad: function getroad() {\n var arr = [];\n basicData.getRoadManagement().then(function (res) {\n res.rows.forEach(function (item) {\n arr.push({\n name: item.name,\n id: item.id,\n companyName: item.companyName,\n companyId: item.companyId\n });\n });\n });\n return arr;\n }\n }\n};",null]}