From 1c2803cd16525ef3ce773323723c4cbc3a38b174 Mon Sep 17 00:00:00 2001
From: dsh <15569653818@163.com>
Date: Mon, 22 Apr 2024 09:46:42 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/CustomTable/CustomTable.vue | 3 +-
src/views/reward/apply/index.vue | 37 ++++++++++++++--------
2 files changed, 25 insertions(+), 15 deletions(-)
diff --git a/src/components/CustomTable/CustomTable.vue b/src/components/CustomTable/CustomTable.vue
index 654a7e9..a868f9d 100644
--- a/src/components/CustomTable/CustomTable.vue
+++ b/src/components/CustomTable/CustomTable.vue
@@ -8,7 +8,6 @@
icon="el-icon-plus"
size="mini"
@click="handleAdd(applyType)"
- v-hasPermi="['system:notice:add']"
>申请
@@ -35,7 +34,7 @@
- {{ action.text }}
+ {{ action.text }}
diff --git a/src/views/reward/apply/index.vue b/src/views/reward/apply/index.vue
index b4d59dd..cbed2e0 100644
--- a/src/views/reward/apply/index.vue
+++ b/src/views/reward/apply/index.vue
@@ -143,9 +143,9 @@ export default {
],
//操作列
tableActions: [
- { text: '查看', icon: 'el-icon-view', handler: this.handleView, permissions: ['system:notice:edit'] },
- { text: '修改', icon: 'el-icon-edit', handler: this.handleUpdate, permissions: ['system:notice:edit'],type:'hidden' },
- { text: '删除', icon: 'el-icon-delete', handler: this.handleDelete, permissions: ['system:notice:remove'],type:'hidden' }
+ { text: '查看', icon: 'el-icon-view', handler: this.handleView,},
+ { text: '修改', icon: 'el-icon-edit', handler: this.handleUpdate, },
+ { text: '删除', icon: 'el-icon-delete', handler: this.handleDelete,}
],
//文件上传配置项
fileData:[
@@ -218,7 +218,21 @@ export default {
expanded: false,
childrenList: [],
fileCode:'rew_excellent_category_10',
- }
+ },
+ {
+ name: '盖章后的申报表',
+ status: '',
+ expanded: false,
+ childrenList: [],
+ fileCode:'rew_excellent_category_11',
+ },
+ {
+ name: '综述材料',
+ status: '',
+ expanded: false,
+ childrenList: [],
+ fileCode:'rew_excellent_category_12',
+ },
],
// 遮罩层
@@ -376,16 +390,13 @@ export default {
this.form.isReward = response.data.isReward;
this.editOpen = true;
this.title = "修改奖项";
- });
- this.getFileList(row.applyId)
- },
- getFileList(applyId){
- listFile(applyId).then((res) => {
- if (res.code === 200) {
- res.data.forEach((item) => {
+ this.fileData.forEach((item)=>{
+ item.childrenList = []
+ })
+ if (response.code === 200) {
+ response.data.fileRelationVOList.forEach((item) => {
let index = this.fileData.findIndex(i => i.fileCode === item.fileCode);
if (index !== -1) {
- this.fileData[index].childrenList = []
this.fileData[index].childrenList.push({
name: item.fileName,
url: item.filePath,
@@ -397,7 +408,7 @@ export default {
});
}
- })
+ });
},
/** 提交按钮 */
submitForm: function() {