{"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\\components\\dialog\\DiseaseDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\components\\dialog\\DiseaseDialog.vue","mtime":1706175428881},{"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 \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\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\nimport req from '@/request.js';\nimport basicData from '@/api/basicData.js';\nimport utils from '@/hotent-ui-util.js';\nimport fileUpload from '@/components/upload/fileUpload.vue';\nimport sctionInfoSelector from '@/components/selector/sctionInfoSelector.vue';\nimport { duration } from 'moment';\nimport DialogSelectBridge from '@/components/business/DialogSelectBridge.vue';\nimport DialogSelectTunnel from '@/components/business/DialogSelectTunnel.vue';\nimport DialogSelectCulvert from '@/components/business/DialogSelectCulvert.vue';\nimport DialogSelectSideSlope from '@/components/business/DialogSelectSideSlope.vue';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n components: {\n fileUpload: fileUpload,\n sctionInfoSelector: sctionInfoSelector,\n DialogSelectBridge: DialogSelectBridge,\n DialogSelectTunnel: DialogSelectTunnel,\n DialogSelectCulvert: DialogSelectCulvert,\n DialogSelectSideSlope: DialogSelectSideSlope\n },\n props: {\n single: {\n type: Boolean,\n default: false\n },\n ids: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n dialogVisible: false,\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n data: [],\n activeRow: {},\n searchForm: {\n temporary: '0',\n handlingSituation: [0]\n },\n activeSelection: [],\n selectedId: null,\n form: {\n direction: 1,\n temporary: '0',\n roadName: '',\n checkDate: ''\n // position: '1'\n },\n\n dialogVisibleAdd: false,\n options: [],\n title: '',\n optionsss: [{\n value: '0',\n label: '否'\n }, {\n value: '1',\n label: '是'\n }],\n dadToSon: {\n bizPath: 'disease',\n fileList: []\n },\n accessories: [],\n diseaseCategoryList: [],\n rules: {\n type: [{\n required: true,\n message: '巡检类别',\n trigger: 'blur'\n }],\n direction: [{\n required: true,\n message: '方向',\n trigger: 'blur'\n }],\n startPeg: [{\n required: true,\n message: '起点桩号',\n trigger: 'blur'\n }],\n endPeg: [{\n required: true,\n message: '结束桩号',\n trigger: 'blur'\n }],\n diseaseCategory: [{\n required: true,\n message: '病害类别',\n trigger: 'blur'\n }],\n description: [{\n required: true,\n message: '病害描述',\n trigger: 'blur'\n }]\n }\n };\n },\n // watch: {\n // ids: function(newValue) {\n // this.ids = newValue ? newValue : ''\n // }\n // },\n created: function created() {\n this.diseaseCategoryList = dictUtils.getDictItemsFromCache('bhlx');\n },\n methods: {\n handleDialogSubmit: function handleDialogSubmit(data) {\n var obj = this.form;\n this.form = _objectSpread(_objectSpread({}, obj), {}, {\n structureName: data.name,\n structureId: data.id\n });\n },\n rowClick: function rowClick(row) {\n this.activeRow = row;\n this.selectedId = row.id;\n this.ishave = false;\n this.getIsHave();\n },\n select: function select(selection) {\n this.activeSelection = selection;\n },\n open: function open() {\n this.dialogVisible = true;\n },\n handleOK: function handleOK() {\n var selectRow = utils.deepClone(this.activeRow);\n var selecttion = this.activeSelection;\n if (selectRow == {}) {\n console.log('空的');\n } else {\n if (this.ishave) {\n this.$message.info('该病害已经添加了,请重新选择');\n // this.$emit('select', {id: ''})\n } else {\n this.$emit('select', selectRow);\n }\n }\n this.selectedId = null;\n this.activeRow = {};\n this.dialogVisible = false;\n\n // this.activeSelection = []\n },\n getIsHave: function getIsHave() {\n var _this = this;\n var selectRow = utils.deepClone(this.activeRow);\n var arr = this.ids && this.ids.split(';');\n console.log(arr, selectRow.id, 'eeeeeeeeeeeeee');\n if (arr.length != 0) {\n arr.forEach(function (item) {\n if (item == selectRow.id) {\n _this.ishave = true;\n }\n });\n } else {\n this.ishave = false;\n }\n },\n loadData: function loadData(param, cb) {\n var _this2 = this;\n param.querys = [{\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'handlingSituation',\n relation: 'AND',\n value: [0]\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'temporary',\n relation: 'AND',\n value: 0\n }];\n this.exportQuery = param;\n this.$http.post('${form}/disease/v1/getJson', param).then(function (resp) {\n console.log(resp, 'resp');\n _this2.data = resp.data.rows;\n _this2.pageBean = {\n page: resp.data.page,\n pageSize: resp.data.pageSize,\n total: resp.data.total\n };\n }, function (error) {\n reject(error);\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n closeDialog: function closeDialog() {\n this.dialogVisible = false;\n this.activeRow = {};\n },\n showDialog: function showDialog() {\n var _this3 = this;\n var date = this.getTime();\n this.form = {\n type: this.form.type,\n direction: 1,\n temporary: '0',\n roadName: this.form.roadName,\n roadId: this.form.roadId,\n position: '1',\n checkDate: date\n };\n this.dialogVisibleAdd = true;\n this.title = '【添加病害】';\n if (this.options.length == 0) {\n var data = 'CBKM';\n basicData.getCostAccountManagement(data).then(function (res) {\n res.data.forEach(function (item) {\n _this3.options.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n }\n },\n handleCancel: function handleCancel() {\n this.dialogVisibleAdd = false;\n this.dadToSon = {\n fileList: []\n };\n },\n handleSubmit: function handleSubmit() {\n var _this4 = this;\n this.form.relevanceId = this.relevanceId;\n this.$refs.ruleForm.validate(function (bool) {\n if (bool) {\n //请求保存提交\n basicData.addDiseaseSave(_this4.form).then(function (res) {\n console.log(res);\n _this4.$message.success('保存成功');\n _this4.options = [];\n _this4.cbkm = [];\n _this4.dadToSon = {\n fileList: []\n };\n _this4.selectedId = res.value;\n _this4.dialogVisibleAdd = false;\n _this4.$refs.htTable.load();\n });\n }\n });\n },\n sonToDad: function sonToDad(data) {\n console.log(data);\n this.form.accessories = data;\n },\n //路段信息赋值\n changed: function changed(obj) {\n this.form.roadName = obj.name;\n this.form.roadId = obj.id;\n this.form.companyId = obj.companyId;\n this.form.companyName = obj.companyName;\n },\n //默认赋值为第一条数据的值\n value: function value(obj) {\n if (this.title !== '【修改病害】') {\n this.form.roadName = obj.name;\n this.form.roadId = obj.id;\n this.form.companyId = obj.companyId;\n this.form.companyName = obj.companyName;\n }\n },\n //字典回调\n handleDict: function handleDict(val, obj, str) {\n if (str === 'xjlb') {\n this.form.typeName = obj.name;\n } else if (str == 'bhbw') {\n // this.form.positionName = obj.name\n } else if (str == 'qlfx') {\n this.form.directionName = obj.name;\n } else if (str === 'bhlx') {\n this.form.diseaseCategoryValue = obj.name;\n var _val = obj.value;\n if (_val == 3) {\n this.$refs.dialogBridgeTable.open();\n } else if (_val == 4) {\n this.$refs.dialogTunnelTable.open();\n } else if (_val == 5) {\n this.$refs.dialogCulvertTable.open();\n } else if (_val == 6) {\n this.$refs.dialogSideSlopeTable.open();\n }\n }\n },\n findinfo: function findinfo() {\n var _this5 = this;\n var query = [];\n var search = {\n position_name_: this.searchForm.positionName,\n description: this.searchForm.description,\n disease_category_: this.searchForm.diseaseCategory,\n check_date_: this.searchForm.checkDate,\n temporary_: this.searchForm.temporary,\n handlingSituation: this.searchForm.handlingSituation\n };\n console.log(search, 'search');\n for (var i in search) {\n if (search[i]) {\n if (i == 'check_date_') {\n query.push({\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'check_date_',\n relation: 'AND',\n value: search[i]\n });\n } else if (i == 'handlingSituation') {\n query.push({\n group: 'advance',\n operation: 'IN',\n property: i,\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 var data = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n querys: query\n };\n this.$http.post('${form}/disease/v1/getJson', data).then(function (resp) {\n console.log(resp, 'resp');\n _this5.data = resp.data.rows;\n _this5.pageBean = {\n page: resp.data.page,\n pageSize: resp.data.pageSize,\n total: resp.data.total\n };\n }, function (error) {\n reject(error);\n });\n },\n reset: function reset() {\n var _this6 = this;\n var data = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'handlingSituation',\n relation: 'AND',\n value: [0]\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'temporary',\n relation: 'AND',\n value: 0\n }]\n };\n this.$http.post('${form}/disease/v1/getJson', data).then(function (resp) {\n console.log(resp, 'resp');\n _this6.data = resp.data.rows;\n _this6.pageBean = {\n page: resp.data.page,\n pageSize: resp.data.pageSize,\n total: resp.data.total\n };\n }, function (error) {\n reject(error);\n });\n this.searchForm = {\n temporary: '0',\n handlingSituation: [0]\n };\n } // getTime() {\n // const nowDate = new Date()\n // let date = {\n // year: nowDate.getFullYear(),\n // month: nowDate.getMonth() + 1,\n // date: nowDate.getDate(),\n // time: nowDate.toLocaleTimeString()\n // }\n // const newmonth = date.month >= 10 ? date.month : '0' + date.month\n // const day = date.date >= 10 ? date.date : '0' + date.date\n // date = date.year + '-' + newmonth + '-' + day + ' ' + date.time\n // return date\n // }\n }\n};",null]}