From dcab88137a9150f0dc1bb50092af7eff1b2b6e82 Mon Sep 17 00:00:00 2001 From: shen_yan_pu <1975145892@qq.com> Date: Wed, 4 Aug 2021 17:56:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E7=AC=A6=E5=90=88=E9=A1=B9=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/wfhxzg/step4.vue | 10 +---- .../pages/creatProcess/wfhxzg/step5.vue | 39 ++++++++++++++----- 2 files changed, 31 insertions(+), 18 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step4.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step4.vue index 627b58150..a684c38a4 100644 --- a/src/pages/processCenter/pages/creatProcess/wfhxzg/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step4.vue @@ -312,8 +312,7 @@ export default { } else { this.dataList = [listJSON] } - this.newDataList = [] - this.dataList.forEach(item => { + this.dataList.forEach(item => { if (item.fileText.length !== 0) { item.fileText.forEach(item1 => { this.fileTextList.push({ @@ -340,12 +339,7 @@ export default { id: res.data.attId, name: res.data.standName }) - this.newDataList.forEach(item =>{ - this.fileListData.fileText.push({ - id: item.id, - name: item.name - }) - }) + this.fileListData.fileText = this.newDataList this.$message({ showClose: true, message: res.message, diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue index 073001399..ab8c6df90 100644 --- a/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue @@ -107,15 +107,9 @@ - + @@ -212,6 +206,15 @@ submitBTNText="同意" > + + + + @@ -226,6 +229,7 @@ export default { name: "wfhxzgStep5", data() { return { + fileMadel: false, detailData: [], loading: false, commentText: '', @@ -271,6 +275,10 @@ export default { } }, methods: { + queryFile(row) { + this.fileTextList = row.fileText + this.fileMadel = true + }, processTable() { this.$http.get("lawss/activiti/get_list_by_instance", { prcNum: this.$route.query.prcNum, @@ -297,14 +305,14 @@ export default { getFormFieldList (item) { this.$nextTick(() => { this.dataList = JSON.parse(JSON.stringify(item)).info.fileDataList - this.dataList.forEach(item => { + /*this.dataList.forEach(item => { item.fileText.forEach(item1 => { this.fileTextList.push({ id: item1.id, name: item1.name }) }) - }) + })*/ }) }, @@ -351,6 +359,9 @@ export default { handleSubmitNo() { if (this.commentText) { var json = { + responUserInfo: { + info: this.dataList + }, actionFlag: 1, commentText: this.commentText } @@ -361,6 +372,7 @@ export default { }, {}, res => { if (res.success) { this.$message.success('驳回成功') + this.fileTextList = [] this.$router.push('/processCenter') } }) @@ -452,6 +464,13 @@ export default { /deep/.el-upload{ display: block; } + // 上传信息回显多余隐藏 + /deep/.el-upload-list__item .el-icon-close { + font-size: 0; + } + /deep/.el-upload-list__item .el-icon-close-tip { + font-size: 0; + } .content-center { padding: 10px 0px 10px 10px; }