{"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\\virusManagement\\VirusManagementChild.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\virusManagement\\VirusManagementChild.vue","mtime":1677176004418},{"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.object.keys\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.map\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.array.find-index\";\nimport \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState } from 'vuex';\nimport BridgeDialog from '@/components/dialog/BridgeDialog.vue';\nimport req from '@/request.js';\nimport basicData from '@/api/basicData.js';\nimport DiseaseInforDialog from '@/components/dialog/DiseaseInformationDialog.vue';\nimport sctionInfoSelector from '@/components/selector/sctionInfoSelector.vue';\nimport ImageDialog from '@/components/dialog/ImageDialog.vue';\nimport startFlow from '@/components/flow/taskFlowComponents/startFlow.vue';\nimport CascaderCompany from '@/components/selector/CascaderCompany.vue';\nexport default {\n components: {\n BridgeDialog: BridgeDialog,\n // DiseaseInforDialog,\n sctionInfoSelector: sctionInfoSelector,\n ImageDialog: ImageDialog,\n startFlow: startFlow,\n CascaderCompany: CascaderCompany\n },\n computed: mapState({\n // submitUrl: function () {\n // return `${window.context.portal}/portal/commonBasic/v1/`\n // },\n upload: function upload() {\n return window.context.yhxt + '/bizAccessory/v1/minioUpload';\n },\n downLoad: function downLoad() {\n return \"\".concat(window.context.portal, \"/disease/v1/minioDrawingUpload?sourceId=\").concat(this.sourceId);\n },\n deleteUrl: function deleteUrl() {\n return window.context.yhxt + '/disease/v1/removesDisease';\n },\n headers: function headers(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n }\n }),\n data: function data() {\n return {\n dialogImageUrl: '',\n updialogVisible: false,\n disabled: false,\n roadData: [],\n searchForm: {},\n flowDialogVisible: false,\n defId: '1434715043114651648',\n relationData: {},\n dataBaseOptions: {\n dataBaseId: '',\n tableName: 'biz_disease',\n // 必填\n tableSchema: ''\n },\n originAPIOptions: {\n url: '/disease/v1/getJson',\n // 列表请求接口地址\n method: 'post',\n // 列表请求方法\n moduleRoot: 'yhxt' // 微服务根路径\n\n },\n exportQuery: {},\n //附件数据\n enclosureData: [],\n //附件管理所需id\n sourceId: '',\n //删除附件管理ids\n ids: [],\n loading: false,\n //上传附件加载控制\n // disabled: false, //按钮禁用控制\n downLoading: false,\n //文件导出加载控制\n accept: '.jpg,.jpeg,.png,.bmp,.pdf,.JPG,.JPEG,.PBG,.BMP,.PDF,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.rtf,.txt,.zip,.rar,.vsd,.dwg,',\n dialogVisibleEnclosure: false,\n files: [],\n fileList: [],\n dialogVisible: false,\n data: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n title: '',\n row: [],\n form: {\n direction: 1,\n temporary: 0,\n roadName: '',\n dsubjectName: '',\n diseaseCategory: 1,\n checkDate: this.getTime() // position: '1',\n\n },\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 // detailsId: [{required: true, message: '请输入害细目', trigger: 'blur'}],\n // positionName: [\n // {\n // required: true,\n // message: '请输入病害部位',\n // trigger: 'blur',\n // },\n // ],\n // paramHeight: [\n // {\n // required: true,\n // message: '请输入害高(mm)',\n // trigger: 'blur',\n // },\n // ],\n // paramLength: [\n // {\n // required: true,\n // message: '请输入害长(mm)',\n // trigger: 'blur',\n // },\n // ],\n // paramWidth: [\n // {\n // required: true,\n // message: '请输入病害宽(mm)',\n // trigger: 'blur',\n // },\n // ],\n description: [{\n required: true,\n message: '请输入害描述',\n trigger: 'blur'\n }],\n roadName: [{\n required: true,\n message: '请输入所属路段',\n trigger: 'blur'\n }],\n temporary: [{\n required: true,\n message: '请选择是否暂存',\n trigger: 'blur'\n }]\n },\n options: [],\n cbkm: [],\n updata: {\n bizPath: 'disease'\n },\n optionsss: [{\n value: 0,\n label: '否'\n }, {\n value: 1,\n label: '是'\n }],\n getxu: []\n };\n },\n created: function created() {\n this.roadData = this.getroad();\n this.getxu = this.getxjlb();\n },\n mounted: function mounted() {\n this.loadDef();\n },\n methods: {\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 },\n loadDef: function loadDef() {\n var _this = this;\n\n var data = {\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'defKey',\n relation: 'AND',\n value: 'yhgd'\n }]\n };\n this.$http.post('${yhxt}/flow/def/v1/listJson', data).then(function (res) {\n if (res.status == 200) {\n if (res.data.rows.length) {\n _this.defId = res.data.rows[0].defId;\n }\n }\n });\n },\n handleRemove: function handleRemove(file) {\n // console.log(file, 'dddd')\n var INdex = this.fileList.findIndex(function (item) {\n return item.uid == file.uid;\n });\n this.fileList.splice(INdex, 1);\n var imgList = [];\n this.fileList.forEach(function (item) {\n if (!item.id) {\n if (item.response) {\n imgList.push(item.response.value);\n }\n } else {\n imgList.push(item);\n }\n });\n this.form.accessories = imgList;\n\n if (file.id) {\n basicData.deleteEnclosureManagement(file.id).then(function (res) {});\n }\n },\n handlePictureCardPreview: function handlePictureCardPreview(file) {\n if (file.name.split('.')[1] == 'jpg' || file.name.split('.')[1] == 'JPG' || file.name.split('.')[1] == 'jpeg' || file.name.split('.')[1] == 'JPEG' || file.name.split('.')[1] == 'png' || file.name.split('.')[1] == 'PNG' || file.name.split('.')[1] == 'bmp' || file.name.split('.')[1] == 'BMP' || file.name.split('.')[1] == 'gif' || file.name.split('.')[1] == 'GIF') {\n this.dialogImageUrl = file.url;\n } else {\n this.dialogImageUrl = require(\"../../assets/downImg/\\u6587\\u4EF6\\u5939.png\");\n }\n\n this.updialogVisible = true;\n },\n handleDownload: function handleDownload(file) {\n var _this2 = this;\n\n if (file.id) {\n req.downloadGetCopy(window.context.yhxt + \"/bizAccessory/v1/minIoAllDownFile?bizPath=disease&ids=\".concat(file.id)).then(function (res) {\n if (res) {\n _this2.$message.success('下载成功');\n }\n });\n } else {\n this.$message.info('请先保存附件');\n }\n },\n handleCloseWorkOrder: function handleCloseWorkOrder() {\n this.flowDialogVisible = false;\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 handleSelectionChangeEnclosure: function handleSelectionChangeEnclosure(rows) {\n var _this3 = this;\n\n rows.forEach(function (item) {\n _this3.ids.push(item.id);\n });\n },\n //去重\n unique: function unique(arr) {\n for (var i = 0; i < arr.length; i++) {\n for (var j = i + 1; j < arr.length; j++) {\n if (arr[i] == arr[j]) {\n //第一个等同于第二个,splice方法删除第二个\n arr.splice(j, 1);\n j--;\n }\n }\n }\n\n return arr;\n },\n //附件管理删除\n handleEnclosureDel: function handleEnclosureDel() {\n var _this4 = this;\n\n this.downLoading = true;\n var ids = this.unique(this.ids); // console.log(ids.join(','))\n\n var strs = ids.join(',');\n basicData.deleteEnclosureManagement(strs).then(function (res) {\n if (res.state) {\n _this4.$message.success('附件删除成功');\n\n _this4.downLoading = false;\n } else {\n _this4.$message.error('附件删除失败');\n\n _this4.downLoading = false;\n }\n\n _this4.getEnclosureData(_this4.sourceId); //清空ids\n\n\n _this4.ids = [];\n });\n },\n //附件导出\n downLoadImg: function downLoadImg() {\n var _this5 = this;\n\n this.downLoading = true;\n var ids = this.unique(this.ids);\n var strs = ids.join(',');\n req.download(window.context.portal + '/disease/v1/downloadDiseaseUpload?ids=' + strs).then(function (res) {\n _this5.downLoading = false;\n\n _this5.$refs.multipleTable.clearSelection();\n\n _this5.ids = [];\n }); // basicData.downLoadEnclosureManagement(strs).then(res => {\n // //清空ids\n // this.ids = []\n // })\n },\n progress: function progress(event, file, fileList) {\n //将图标改成加载图标\n this.loading = true; //将按钮禁用\n\n this.disabled = true;\n },\n error: function error(response, file, fileList) {\n this.loading = false;\n this.$message.error('文件上传失败');\n delete this.uploadingFiles[Base64.encode(file.name)];\n },\n uploadBeforeFile: function uploadBeforeFile() {\n this.loading = true;\n },\n success: function success(response, file, fileList) {\n this.loading = false;\n this.$message({\n type: response.state == true ? 'success' : 'warning',\n message: response.state == true ? '上传成功' : '上传失败'\n });\n var imgList = [];\n fileList.forEach(function (item) {\n if (!item.id) {\n if (item.response) {\n imgList.push(item.response.value);\n }\n } else {\n imgList.push(item);\n }\n });\n this.fileList = fileList;\n this.form.accessories = imgList;\n },\n handleChange: function handleChange(file, fileList) {\n console.log(file, fileList, 'dddd');\n },\n handleCloseEnclosure: function handleCloseEnclosure(done) {\n this.enclosureData = [];\n done();\n },\n open: function open(row) {\n // this.row=row\n this.dialogVisible = true;\n },\n getxjlb: function getxjlb() {\n var arr = [];\n var data = 'CBKM';\n basicData.getCostAccountManagement(data).then(function (res) {\n res.data.forEach(function (item) {\n arr.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n return arr;\n },\n handleEdit: function handleEdit(data) {\n var _this6 = this;\n\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 _this6.options.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n }\n\n if (data.categoryId) {\n basicData.getCostAccountManagement(data.categoryId).then(function (res) {\n res.data.forEach(function (item) {\n _this6.cbkm.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n }\n\n this.$http.get('${form}/disease/v1/get/' + data.id).then(function (res) {\n _this6.dialogVisible = true;\n _this6.fileList = res.data.accessories;\n _this6.files = res.data.accessories; //修改时加上原来的图片上传\n\n _this6.form = res.data;\n });\n this.title = '【修改病害】';\n this.form.temporary = 0;\n this.sourceId = data.id; // this.$refs.fredialog.open(data)\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 _this7 = this;\n\n console.log(this.checkTimeSolt, 'this.checkTimeSolt');\n typeof this.$refs.filterTable !== 'undefined' && this.$refs.filterTable.clearFilter();\n var query = [];\n var search = {\n company_id_: this.searchForm.companyIds,\n disease_category_: this.searchForm.diseaseCategory,\n roadId: this.searchForm.roadId,\n type: this.searchForm.type,\n direction: this.searchForm.direction,\n checkMonth: this.searchForm.checkMonth,\n checkDate: this.searchForm.checkDate,\n handlingSituation: this.searchForm.handlingSituation\n };\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 if (i == 'checkMonth') {\n query.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: \"date_format(check_date_,'%Y-%m')\",\n relation: 'AND',\n value: search[i]\n });\n } else if (i == 'checkDate') {\n query.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'check_date_',\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 group: 'advance',\n operation: 'LIKE',\n property: 'temporary',\n relation: 'AND',\n value: 0\n });\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 };\n this.topQuery = query;\n this.$http.post('${form}/disease/v1/getJson', data).then(function (resp) {\n _this7.data = resp.data.rows;\n _this7.pageResult = {\n page: resp.data.page,\n pageSize: resp.data.pageSize,\n total: resp.data.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 loadData: function loadData(param, cb) {\n var _this8 = this;\n\n // let r = JSON.stringify(param.pageBean)\n // let l = JSON.stringify(this.pageResult)\n console.log(param); // if (r == l) {\n // param.querys = [\n // {\n // group: 'advance',\n // operation: 'LIKE',\n // property: 'temporary',\n // relation: 'AND',\n // value: 0,\n // },\n // ]\n // } else {\n // let query = []\n // let search = {\n // categoryId: this.searchForm.categoryId,\n // detailsId: this.searchForm.detailsId,\n // roadName: this.searchForm.roadName,\n // type: this.searchForm.type,\n // direction: this.searchForm.direction,\n // }\n // for (let i in search) {\n // if (search[i]) {\n // query.push(\n // {\n // group: 'advance',\n // operation: 'LIKE',\n // property: i,\n // relation: 'AND',\n // value: search[i],\n // },\n // {\n // group: 'advance',\n // operation: 'LIKE',\n // property: 'temporary',\n // relation: 'AND',\n // value: 0,\n // }\n // )\n // }\n // }\n // param.querys = query\n // }\n\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\n param.sorter && param.sorter.forEach(function (item) {\n if (item.property == 'checkDate') {\n item.property = 'CHECK_DATE_';\n }\n });\n this.exportQuery = param;\n this.$http.post('${form}/disease/v1/getJson', param).then(function (resp) {\n _this8.data = resp.data.rows;\n _this8.pageResult = {\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 if (Object.keys(_this8.$route.params).length !== 0 && Object.keys(_this8.$route.params.value).length !== 0 && _this8.$route.params.value.roadSegmentId && !_this8.isFindinfo) {\n _this8.searchForm = {\n roadId: _this8.$route.params.value.roadSegmentId,\n handlingSituation: 2\n };\n _this8.isFindinfo = true;\n\n _this8.findinfo();\n }\n\n cb();\n }\n });\n },\n changesele: function changesele(value) {\n var _this9 = this;\n\n // console.log(value)\n this.options.forEach(function (item) {\n if (value == item.value) {\n _this9.form.subjectName = item.label;\n _this9.form.categoryId = item.value;\n }\n });\n var arr = [];\n basicData.getCostAccountManagement(value).then(function (res) {\n if (res.data.length > 0) {\n res.data.forEach(function (item) {\n if (item.pcode == value) {\n arr.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n }\n\n _this9.cbkm = arr;\n _this9.form.detailsId = arr[0].value;\n _this9.form.dsubjectName = arr[0].label;\n });\n }\n });\n },\n dsubchange: function dsubchange(val) {\n var _this10 = this;\n\n this.cbkm.forEach(function (item) {\n if (item.value == val) {\n _this10.form.dsubjectName = item.label;\n _this10.form.detailsId = item.value;\n }\n });\n this.$forceUpdate();\n },\n showDialog: function showDialog() {\n var _this11 = this;\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 _this11.options.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n }\n\n this.title = '【添加病害】';\n this.dialogVisible = true;\n },\n handleCommand: function handleCommand(params) {\n console.log(params);\n\n if (params.command == 'Fillin') {\n this.seeImage(params.row);\n } else if (params.command == 'workOrder') {\n this.relationData = params.row;\n this.flowDialogVisible = true;\n }\n },\n seeImage: function seeImage(row) {\n this.$refs.image.open(row);\n },\n getEnclosureData: function getEnclosureData(id) {\n var _this12 = this;\n\n var params = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n params: {},\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'sourceId',\n relation: 'AND',\n value: id\n }],\n sorter: []\n };\n basicData.getEnclosurevirus(params).then(function (res) {\n _this12.enclosureData = res.rows;\n });\n },\n enclosure: function enclosure() {\n var _this13 = this;\n\n this.$refs.ruleForm.validate(function (bool) {\n if (bool) {\n if (_this13.title === '【修改病害】') {\n _this13.dialogVisibleEnclosure = true;\n\n _this13.getEnclosureData(_this13.sourceId);\n } else {\n _this13.$message.error('请先保存该表单才能进入附件管理');\n }\n } else {\n _this13.$message.error('请先保存该表单才能进入附件管理');\n }\n });\n },\n handleCancel: function handleCancel() {\n // this.$refs.htTable.load()\n this.form = {\n direction: '1',\n temporary: 0,\n roadName: ''\n };\n this.files = [];\n this.fileList = [];\n this.dialogVisible = false;\n this.cbkm = [];\n },\n afterDelete: function afterDelete() {},\n handleSubmit: function handleSubmit() {\n var _this14 = this;\n\n console.log(this.form);\n this.$refs.ruleForm.validate(function (bool) {\n if (bool) {\n //请求保存提交\n basicData.addDiseaseSave(_this14.form).then(function (res) {\n console.log(res);\n _this14.dialogVisible = false;\n\n _this14.$message.success('保存成功');\n\n _this14.form = {\n direction: '1',\n temporary: 0,\n roadName: ''\n }; //清空表单\n\n _this14.options = [];\n _this14.cbkm = [];\n\n _this14.$refs.htTable.load();\n });\n }\n });\n },\n handleFocusRouter: function handleFocusRouter() {\n //寻找路段\n this.$refs.route.open();\n },\n openRoute: function openRoute() {\n //寻找路段功能同上\n this.$refs.route.open();\n },\n handleSelectRoute: function handleSelectRoute(data) {\n // console.log(data, '路线信息')\n this.form.roadName = data.name;\n this.form.roadId = data.id; // console.log(this.form.roadName, '进来了')\n\n this.$refs.routeName.blur(); // console.log(this.form.routeName)\n }\n }\n};",null]}