{"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\\DiseaseInformationDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\components\\dialog\\DiseaseInformationDialog.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.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\nimport { mapState } from 'vuex';\nimport req from '@/request.js';\nimport basicData from '@/api/basicData.js';\nimport BridgeDialog from '@/components/dialog/BridgeDialog.vue';\nimport sctionInfoSelector from '@/components/selector/sctionInfoSelector.vue';\nimport fileUpload from '@/components/upload/fileUpload.vue';\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';\nexport default {\n components: {\n BridgeDialog: BridgeDialog,\n sctionInfoSelector: sctionInfoSelector,\n fileUpload: fileUpload,\n DialogSelectBridge: DialogSelectBridge,\n DialogSelectTunnel: DialogSelectTunnel,\n DialogSelectCulvert: DialogSelectCulvert,\n DialogSelectSideSlope: DialogSelectSideSlope\n },\n computed: mapState({\n // submitUrl: function () {\n // return `${window.context.portal}/portal/commonBasic/v1/`\n // },\n downLoad: function downLoad() {\n return \"\".concat(window.context.portal, \"/bridgeRegularCheck/v1/minioRegularCheckUpload?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 dadToSon: {\n bizPath: 'disease',\n fileList: []\n },\n accessories: [],\n options: [],\n //附件数据\n enclosureData: [],\n //附件管理所需id\n sourceId: '',\n //删除附件管理ids\n ids: [],\n cbkm: [],\n loading: false,\n //上传附件加载控制\n disabled: false,\n //按钮禁用控制\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 dialogVisible: false,\n firdialogVisible: false,\n data: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n optionsss: [{\n value: '0',\n label: '否'\n }, {\n value: '1',\n label: '是'\n }],\n row: [],\n title: '',\n form: {\n direction: 1,\n temporary: '0',\n roadName: ''\n // 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: [{required: true, message: '病害部位', trigger: 'blur'}],\n // paramHeight: [{required: true, message: '病害高(mm)', trigger: 'blur'}],\n // paramLength: [{required: true, message: '病害长(mm)', trigger: 'blur'}],\n // paramWidth: [{required: true, message: '病害宽(mm)', trigger: 'blur'}],\n description: [{\n required: true,\n message: '病害描述',\n trigger: 'blur'\n }]\n },\n relevanceId: ''\n };\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 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 sonToDad: function sonToDad(data) {\n console.log(data);\n this.form.accessories = data;\n },\n handleSelectionChangeEnclosure: function handleSelectionChangeEnclosure(rows) {\n var _this = this;\n rows.forEach(function (item) {\n _this.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 return arr;\n },\n //附件管理删除\n handleEnclosureDel: function handleEnclosureDel() {\n var _this2 = this;\n this.downLoading = true;\n var ids = this.unique(this.ids);\n // console.log(ids.join(','))\n var strs = ids.join(',');\n console.log(strs, '231');\n this.$http.remove('${form}/bridgeRegularCheck/v1/removesRegularCheck?ids=' + strs).then(function (res) {\n console.log(res, 'sc');\n if (res.data.state) {\n _this2.$message.success('附件删除成功');\n _this2.downLoading = false;\n } else {\n _this2.$message.error('附件删除失败');\n _this2.downLoading = false;\n }\n _this2.getEnclosureData(_this2.sourceId);\n //清空ids\n _this2.ids = [];\n });\n },\n //附件导出\n downLoadImg: function downLoadImg() {\n var _this3 = this;\n this.downLoading = true;\n var ids = this.unique(this.ids);\n var strs = ids.join(',');\n req.download(window.context.portal + '/bridgeRegularCheck/v1/downloadRegularCheckUpload?ids=' + strs).then(function (res) {\n _this3.downLoading = false;\n _this3.$refs.multipleTable.clearSelection();\n _this3.ids = [];\n });\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.$message.error('文件上传失败');\n delete this.uploadingFiles[Base64.encode(file.name)];\n },\n success: function success(response, file, fileList) {\n this.$message.success('文件上传成功');\n //重新加载数据\n this.getEnclosureData(this.sourceId);\n //将图标改成上传图标\n this.loading = false;\n //将按钮解禁\n this.disabled = false;\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 changesele: function changesele(value) {\n var _this4 = this;\n this.options.forEach(function (item) {\n if (value == item.value) {\n _this4.form.subjectName = item.label;\n _this4.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 _this4.cbkm = arr;\n _this4.form.detailsId = arr[0].value;\n _this4.form.dsubjectName = arr[0].label;\n });\n }\n });\n },\n dsubchange: function dsubchange(val) {\n var _this5 = this;\n this.cbkm.forEach(function (item) {\n if (item.value == val) {\n _this5.form.dsubjectName = item.label;\n _this5.form.detailsId = item.value;\n }\n });\n this.$forceUpdate();\n },\n getEnclosureData: function getEnclosureData(id) {\n var _this6 = this;\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 _this6.enclosureData = res.rows;\n });\n },\n enclosure: function enclosure() {\n var _this7 = this;\n this.$refs.ruleForm.validate(function (bool) {\n if (bool) {\n if (_this7.title === '【修改病害】') {\n _this7.dialogVisibleEnclosure = true;\n _this7.getEnclosureData(_this7.sourceId);\n } else {\n _this7.$message.error('请先保存该表单才能进入附件管理');\n }\n } else {\n _this7.$message.error('请先保存该表单才能进入附件管理');\n }\n });\n },\n handleSubmit: function handleSubmit() {\n var _this8 = this;\n this.form.relevanceId = this.relevanceId;\n this.$refs.ruleForm.validate(function (bool) {\n if (bool) {\n //请求保存提交\n basicData.addDiseaseSave(_this8.form).then(function (res) {\n console.log(res);\n _this8.$message.success('保存成功');\n _this8.options = [];\n _this8.cbkm = [];\n _this8.dadToSon = {\n fileList: []\n };\n _this8.dialogVisible = false;\n _this8.$refs.htTable.load();\n });\n }\n });\n },\n openRoute: function openRoute() {\n this.$refs.route.open();\n },\n handleFocusRouter: function handleFocusRouter() {\n this.$refs.route.open();\n },\n handleCancel: function handleCancel() {\n this.dialogVisible = false;\n this.dadToSon = {\n fileList: []\n };\n },\n open: function open(row) {\n console.log(row);\n this.form.type = row.type;\n this.form.typeName = row.typeName;\n this.form.roadName = row.roadSegmentName;\n this.form.roadId = row.roadSegmentId;\n this.row = row;\n this.firdialogVisible = true;\n this.relevanceId = row.id;\n },\n handleEdit: function handleEdit(data) {\n var _this9 = this;\n if (this.options.length == 0) {\n var _data = 'CBKM';\n basicData.getCostAccountManagement(_data).then(function (res) {\n res.data.forEach(function (item) {\n _this9.options.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n }\n console.log(data, 'binghai');\n this.$http.get('${form}/disease/v1/get/' + data.id).then(function (res) {\n _this9.dialogVisible = true;\n _this9.dadToSon.fileList = res.data.accessories;\n _this9.files = res.data.accessories; //修改时加上原来的图片上传\n _this9.form = res.data;\n });\n this.title = '【修改病害】';\n // this.form = data\n // this.dialogVisible = true\n this.sourceId = data.id;\n },\n loadData: function loadData(param, cb) {\n var _this10 = this;\n param.querys = [{\n property: 'RELEVANCE_ID_',\n value: this.row.id\n }];\n this.$http.post('${form}/disease/v1/getJson', param).then(function (resp) {\n _this10.data = resp.data.rows;\n _this10.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 cb();\n }\n });\n },\n showDialog: function showDialog() {\n var _this11 = this;\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: this.getTime()\n };\n console.log(this.form, 'ddddddd');\n this.dialogVisible = 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 _this11.options.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n }\n },\n //路段信息赋值\n changed: function changed(obj) {\n this.form.roadName = obj.name;\n this.form.roadName = obj.id;\n },\n //默认赋值为第一条数据的值\n value: function value(obj) {\n console.log(obj);\n if (this.title == '【添加病害】') {\n this.form.roadName = obj.name;\n this.form.roadName = obj.id;\n }\n },\n afterDelete: function afterDelete() {}\n }\n};",null]}