{"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":1667326393888},{"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":315532800000},{"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.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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';\nexport default {\n components: {\n fileUpload: fileUpload,\n sctionInfoSelector: sctionInfoSelector\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 activeSelection: [],\n selectedId: null,\n form: {\n direction: 1,\n temporary: '0',\n roadName: '',\n checkDate: '' // 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 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 methods: {\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\n if (selectRow == {}) {\n console.log('空的');\n } else {\n if (this.ishave) {\n this.$message.info('该病害已经添加了,请重新选择'); // this.$emit('select', {id: ''})\n } else {\n this.$emit('select', selectRow);\n }\n }\n\n this.selectedId = null;\n this.activeRow = {};\n this.dialogVisible = false; // this.activeSelection = []\n },\n getIsHave: function getIsHave() {\n var _this = this;\n\n var selectRow = utils.deepClone(this.activeRow);\n var arr = this.ids && this.ids.split(';');\n console.log(arr, selectRow.id, 'eeeeeeeeeeeeee');\n\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\n param.querys = [{\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'handlingSituation',\n relation: 'AND',\n value: [0]\n }];\n this.exportQuery = param;\n this.$http.post('${form}/disease/v1/getJson', param).then(function (resp) {\n var res = resp.data.rows;\n var arr = [];\n res.filter(function (item) {\n if (item.temporary == 0) {\n arr = arr.concat(item);\n }\n });\n _this2.data = arr;\n _this2.pageBean = {\n page: resp.data.page,\n pageSize: resp.data.pageSize,\n total: arr.length\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\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\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\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\n _this4.$message.success('保存成功');\n\n _this4.options = [];\n _this4.cbkm = [];\n _this4.dadToSon = {\n fileList: []\n };\n _this4.selectedId = res.value;\n _this4.dialogVisibleAdd = false;\n\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') {// 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 }\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 }\n};",null]}