From 72b9d69a1e7be66f9386e3744785d02d3cdd39b8 Mon Sep 17 00:00:00 2001 From: dsh <15569653818@163.com> Date: Tue, 23 Apr 2024 14:22:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E7=A7=80=E5=AD=A6=E6=A0=A1=E5=A5=96?= =?UTF-8?q?=EF=BC=88=E5=9F=B9=E8=AE=AD=E6=9C=BA=E6=9E=84=E7=B1=BB=EF=BC=89?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/trainAward.js | 36 ++ src/views/reward/aduit/index.vue | 11 +- src/views/reward/apply/index.vue | 13 +- src/views/reward/score/index.vue | 13 +- src/views/trainAward/aduit/index.vue | 438 +++++++++++++++++++++++ src/views/trainAward/apply/index.vue | 509 +++++++++++++++++++++++++++ src/views/trainAward/score/index.vue | 508 ++++++++++++++++++++++++++ 7 files changed, 1511 insertions(+), 17 deletions(-) create mode 100644 src/store/modules/trainAward.js create mode 100644 src/views/trainAward/aduit/index.vue create mode 100644 src/views/trainAward/apply/index.vue create mode 100644 src/views/trainAward/score/index.vue diff --git a/src/store/modules/trainAward.js b/src/store/modules/trainAward.js new file mode 100644 index 0000000..c74355f --- /dev/null +++ b/src/store/modules/trainAward.js @@ -0,0 +1,36 @@ +const state = { + applyType:'', + applyId:'' +} +const mutations = { + SET_APPLYTYPE: (state, { key, value }) => { + if (key !== null && key !== "") { + state.applyType = value + } + }, + SET_APPLYID: (state, { key, value }) => { + if (key !== null && key !== "") { + state.applyId = value + } + } +} + +const actions = { + // 设置字典 + setApplyType({ commit }, data) { + commit('SET_APPLYTYPE', data) + }, + // 设置字典 + setApplyId({ commit }, data) { + localStorage.setItem('applyId', data.value) + commit('SET_APPLYID', data) + }, +} + +export default { + namespaced: true, + state, + mutations, + actions +} + diff --git a/src/views/reward/aduit/index.vue b/src/views/reward/aduit/index.vue index bd98647..06bb93b 100644 --- a/src/views/reward/aduit/index.vue +++ b/src/views/reward/aduit/index.vue @@ -72,8 +72,8 @@
@@ -301,7 +301,8 @@ export default { pageSize: 10, applyName: undefined, createBy: undefined, - applyStatus: undefined + applyStatus: undefined, + applyType: this.applyParam.applyType }; this.resetForm("queryForm"); this.handleQuery(); @@ -323,7 +324,7 @@ export default { console.log(this.form) this.editOpen = true; this.isReadOnly = true - this.isView = true + this.isView = false this.fileData.forEach((item) => { item.childrenList = [] }) @@ -348,7 +349,7 @@ export default { /** 修改按钮操作 */ handleUpdate(row) { this.reset(); - this.isView = false; + this.isView = true; this.applyId = row.applyId this.isReadOnly = true this.isShowButton = true diff --git a/src/views/reward/apply/index.vue b/src/views/reward/apply/index.vue index ccef8b3..013493a 100644 --- a/src/views/reward/apply/index.vue +++ b/src/views/reward/apply/index.vue @@ -94,7 +94,7 @@ @@ -127,7 +127,7 @@ @@ -361,7 +361,8 @@ export default { pageSize: 10, applyName: undefined, createBy: undefined, - applyStatus: undefined + applyStatus: undefined, + applyType: this.applyParam.applyType }; this.resetForm("queryForm"); this.handleQuery(); @@ -390,7 +391,7 @@ export default { console.log(this.form) this.editOpen = true; this.isReadOnly = true - this.isView = true + this.isView = false this.fileData.forEach((item)=>{ item.childrenList = [] }) @@ -415,7 +416,7 @@ export default { /** 新增按钮操作 */ handleAdd(applyType) { this.reset(); - this.isView=false; + this.isView=true; this.open = true; this.isReadOnly = false this.isShowButton = true @@ -436,7 +437,7 @@ export default { /** 修改按钮操作 */ handleUpdate(row) { this.reset(); - this.isView=false; + this.isView=true; this.applyId = row.applyId this.isReadOnly = false this.isShowButton = true diff --git a/src/views/reward/score/index.vue b/src/views/reward/score/index.vue index 2dd6b50..e430457 100644 --- a/src/views/reward/score/index.vue +++ b/src/views/reward/score/index.vue @@ -69,7 +69,7 @@ :template-type="templateType" ref="childComponent" > - +