From bdb6774090463465a84abe8b8903533dc000463b Mon Sep 17 00:00:00 2001 From: wanglei Date: Fri, 21 Jun 2024 11:42:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E5=90=88=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dangan-ui/src/views/dangan/birthDJ/index.vue | 106 +++++++++-------- dangan-ui/src/views/dangan/czrkdj/index.vue | 108 +++++++++-------- dangan-ui/src/views/dangan/qyz/index.vue | 106 +++++++++-------- dangan-ui/src/views/dangan/ytzm/index.vue | 102 +++++++++------- dangan-ui/src/views/dangan/zfnyhkcg/index.vue | 108 +++++++++-------- dangan-ui/src/views/dangan/zqz/index.vue | 110 ++++++++++-------- 6 files changed, 356 insertions(+), 284 deletions(-) diff --git a/dangan-ui/src/views/dangan/birthDJ/index.vue b/dangan-ui/src/views/dangan/birthDJ/index.vue index eb5cd8d..343c0e8 100644 --- a/dangan-ui/src/views/dangan/birthDJ/index.vue +++ b/dangan-ui/src/views/dangan/birthDJ/index.vue @@ -215,8 +215,14 @@ - - + + + + + + @@ -447,8 +453,8 @@ - - + + @@ -698,37 +704,26 @@ - - - - - - - - - - - - - - - - - - + +
+ +
+ +
@@ -798,8 +793,8 @@ export default { shiBieList: [], // 表单校验 rules: { - muId: [ - { required: true, message: "档案目录ID不能为空", trigger: "blur" } + muPath: [ + { required: true, message: "档案目录路径不能为空", trigger: "blur" } ], name: [ { required: true, message: "婴儿姓名不能为空", trigger: "blur" } @@ -843,10 +838,6 @@ export default { visible: false, // 遮罩层 loading: false, - // 是否展开,默认全部折叠 - isExpandAll: false, - // 重新渲染表格状态 - refreshTable: true, // 查询参数 queryParams:{ ywType: 'option4', @@ -854,7 +845,7 @@ export default { // 查询列表 list: [], // 选中数据 - selectRow: null + node: null } }; }, @@ -884,6 +875,7 @@ export default { id: null, ywType: 'option4', muId: null, + muPath: null, birthNum: null, name: null, birthday: null, @@ -1054,10 +1046,10 @@ export default { this.damlInfo.loading = false; }); }, - // 双击选择档案目录 - damlInfoDblclick(row){ - this.damlInfo.selectRow = row; - this.form.muId = row.id + // 点击选择档案目录 + damlInfoSubmit(){ + this.form.muId = this.damlInfo.node.data.id; + this.form.muPath = this.getAllLabels(this.damlInfo.node); this.damlInfo.visible = false }, /** 新增手动识别提交按钮 */ @@ -1098,13 +1090,33 @@ export default { this.getList(); }); }else { - this.$alert(`请先点击【选择档案记录】或【直接上传】选择识别图片`, `提示`, { + this.$alert(`请先点击【选择档案记录】选择识别图片`, `提示`, { type: 'warning' }); } } }); }, + // 获取所有label + getAllLabels(obj) { + let values = ''; + function getValues(obj) { + if(values.length>0){ + values = obj.label+'/'+values + }else { + values = obj.label + } + if(obj.level>1){ + getValues(obj.parent); + } + } + getValues(obj); + return values; + }, + // 节点单击事件 + handleNodeClick(data, Node) { + this.damlInfo.node = Node; + }, } }; diff --git a/dangan-ui/src/views/dangan/czrkdj/index.vue b/dangan-ui/src/views/dangan/czrkdj/index.vue index b927813..dd0a930 100644 --- a/dangan-ui/src/views/dangan/czrkdj/index.vue +++ b/dangan-ui/src/views/dangan/czrkdj/index.vue @@ -327,7 +327,13 @@ - + + + + + @@ -640,7 +646,7 @@ - + @@ -650,14 +656,14 @@ - - - + + + - + 选择档案记录 @@ -970,37 +976,26 @@
- - - - - - - - - - - - - - - - - - + +
+ +
+ +
@@ -1087,8 +1082,8 @@ export default { ywType: [ { required: true, message: "业务类型不能为空", trigger: "blur" } ], - muId: [ - { required: true, message: "目录ID不能为空", trigger: "blur" } + muPath: [ + { required: true, message: "档案目录路径不能为空", trigger: "blur" } ] }, // 审核 @@ -1129,10 +1124,6 @@ export default { visible: false, // 遮罩层 loading: false, - // 是否展开,默认全部折叠 - isExpandAll: false, - // 重新渲染表格状态 - refreshTable: true, // 查询参数 queryParams:{ ywType: null, @@ -1140,7 +1131,7 @@ export default { // 查询列表 list: [], // 选中数据 - selectRow: null + node: null } }; }, @@ -1170,6 +1161,7 @@ export default { id: null, ywType: null, muId: null, + muPath: null, relation: null, name: null, otherName: null, @@ -1373,10 +1365,10 @@ export default { this.damlInfo.loading = false; }); }, - // 双击选择档案目录 - damlInfoDblclick(row){ - this.damlInfo.selectRow = row; - this.form.muId = row.id + // 点击选择档案目录 + damlInfoSubmit(){ + this.form.muId = this.damlInfo.node.data.id; + this.form.muPath = this.getAllLabels(this.damlInfo.node); this.damlInfo.visible = false }, /** 新增手动识别提交按钮 */ @@ -1424,6 +1416,26 @@ export default { } }); }, + // 获取所有label + getAllLabels(obj) { + let values = ''; + function getValues(obj) { + if(values.length>0){ + values = obj.label+'/'+values + }else { + values = obj.label + } + if(obj.level>1){ + getValues(obj.parent); + } + } + getValues(obj); + return values; + }, + // 节点单击事件 + handleNodeClick(data, Node) { + this.damlInfo.node = Node; + }, } }; diff --git a/dangan-ui/src/views/dangan/qyz/index.vue b/dangan-ui/src/views/dangan/qyz/index.vue index 5fcbe95..9a1bbd3 100644 --- a/dangan-ui/src/views/dangan/qyz/index.vue +++ b/dangan-ui/src/views/dangan/qyz/index.vue @@ -231,8 +231,14 @@ - - + + + + + + @@ -467,8 +473,8 @@ - - + + @@ -721,37 +727,26 @@
- - - - - - - - - - - - - - - - - - + +
+ +
+ +
@@ -821,8 +816,8 @@ export default { shiBieList: [], // 表单校验 rules: { - muId: [ - { required: true, message: "档案目录ID不能为空", trigger: "blur" } + muPath: [ + { required: true, message: "档案目录路径不能为空", trigger: "blur" } ], fwUnit: [ { required: true, message: "发文单位不能为空", trigger: "blur" } @@ -869,10 +864,6 @@ export default { visible: false, // 遮罩层 loading: false, - // 是否展开,默认全部折叠 - isExpandAll: false, - // 重新渲染表格状态 - refreshTable: true, // 查询参数 queryParams:{ ywType: 'option5', @@ -880,7 +871,7 @@ export default { // 查询列表 list: [], // 选中数据 - selectRow: null + node: null } }; }, @@ -910,6 +901,7 @@ export default { id: null, ywType: 'option5', muId: null, + muPath: null, fwUnit: null, wjXh: null, name1: null, @@ -1080,10 +1072,10 @@ export default { this.damlInfo.loading = false; }); }, - // 双击选择档案目录 - damlInfoDblclick(row){ - this.damlInfo.selectRow = row; - this.form.muId = row.id + // 点击选择档案目录 + damlInfoSubmit(){ + this.form.muId = this.damlInfo.node.data.id; + this.form.muPath = this.getAllLabels(this.damlInfo.node); this.damlInfo.visible = false }, /** 新增手动识别提交按钮 */ @@ -1124,13 +1116,33 @@ export default { this.getList(); }); }else { - this.$alert(`请先点击【选择档案记录】或【直接上传】选择识别图片`, `提示`, { + this.$alert(`请先点击【选择档案记录】选择识别图片`, `提示`, { type: 'warning' }); } } }); }, + // 获取所有label + getAllLabels(obj) { + let values = ''; + function getValues(obj) { + if(values.length>0){ + values = obj.label+'/'+values + }else { + values = obj.label + } + if(obj.level>1){ + getValues(obj.parent); + } + } + getValues(obj); + return values; + }, + // 节点单击事件 + handleNodeClick(data, Node) { + this.damlInfo.node = Node; + }, } }; diff --git a/dangan-ui/src/views/dangan/ytzm/index.vue b/dangan-ui/src/views/dangan/ytzm/index.vue index 36b38ac..859dd8e 100644 --- a/dangan-ui/src/views/dangan/ytzm/index.vue +++ b/dangan-ui/src/views/dangan/ytzm/index.vue @@ -183,6 +183,12 @@ + + + + @@ -394,8 +400,8 @@ - - + + @@ -624,37 +630,26 @@
- - - - - - - - - - - - - - - - - - + +
+ +
+ +
@@ -720,9 +715,9 @@ export default { shiBieList: [], // 表单校验 rules: { - muId: [ - { required: true, message: "档案目录ID不能为空", trigger: "blur" } - ], + muPath: [ + { required: true, message: "档案目录路径不能为空", trigger: "blur" } + ] }, // 审核 shenHe:{ @@ -762,10 +757,6 @@ export default { visible: false, // 遮罩层 loading: false, - // 是否展开,默认全部折叠 - isExpandAll: false, - // 重新渲染表格状态 - refreshTable: true, // 查询参数 queryParams:{ ywType: 'option6', @@ -773,7 +764,7 @@ export default { // 查询列表 list: [], // 选中数据 - selectRow: null + node: null } }; }, @@ -803,6 +794,7 @@ export default { id: null, ywType: 'option6', muId: null, + muPath: null, year: null, xh: null, wName: null, @@ -969,10 +961,10 @@ export default { this.damlInfo.loading = false; }); }, - // 双击选择档案目录 - damlInfoDblclick(row){ - this.damlInfo.selectRow = row; - this.form.muId = row.id + // 点击选择档案目录 + damlInfoSubmit(){ + this.form.muId = this.damlInfo.node.data.id; + this.form.muPath = this.getAllLabels(this.damlInfo.node); this.damlInfo.visible = false }, /** 新增手动识别提交按钮 */ @@ -1020,6 +1012,26 @@ export default { } }); }, + // 获取所有label + getAllLabels(obj) { + let values = ''; + function getValues(obj) { + if(values.length>0){ + values = obj.label+'/'+values + }else { + values = obj.label + } + if(obj.level>1){ + getValues(obj.parent); + } + } + getValues(obj); + return values; + }, + // 节点单击事件 + handleNodeClick(data, Node) { + this.damlInfo.node = Node; + }, } }; diff --git a/dangan-ui/src/views/dangan/zfnyhkcg/index.vue b/dangan-ui/src/views/dangan/zfnyhkcg/index.vue index 4bdf53d..a413c57 100644 --- a/dangan-ui/src/views/dangan/zfnyhkcg/index.vue +++ b/dangan-ui/src/views/dangan/zfnyhkcg/index.vue @@ -247,6 +247,12 @@ + + + + @@ -496,8 +502,8 @@ - - + + @@ -731,9 +737,9 @@ - - - + + +