From e8dbf78f731167a803e99a2407eea1ed6efb6d2c Mon Sep 17 00:00:00 2001 From: monkeyhouyi Date: Thu, 12 Dec 2024 11:18:58 +0800 Subject: [PATCH] 设置id=77777的人员可以删除基础信息,增加应用字段限长 --- src/components/InfoForm/index.vue | 16 ++++++++-------- src/views/baseComapnyInfo/index.vue | 10 +++++++++- src/views/baseSystemInfo/index.vue | 7 ++++++- 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/src/components/InfoForm/index.vue b/src/components/InfoForm/index.vue index 40fbe2d..c7926ba 100644 --- a/src/components/InfoForm/index.vue +++ b/src/components/InfoForm/index.vue @@ -82,7 +82,7 @@ @@ -126,7 +126,7 @@ - @@ -148,7 +148,7 @@ @@ -158,7 +158,7 @@ @@ -223,7 +223,7 @@ @@ -258,7 +258,7 @@ @@ -267,7 +267,7 @@ @@ -276,7 +276,7 @@ diff --git a/src/views/baseComapnyInfo/index.vue b/src/views/baseComapnyInfo/index.vue index bce46a2..a79c3b3 100644 --- a/src/views/baseComapnyInfo/index.vue +++ b/src/views/baseComapnyInfo/index.vue @@ -70,7 +70,7 @@ @@ -133,6 +133,14 @@ export default { }; }, computed: { + isSHILevel() { + // 判断角色是否为‘市级办公室’ + return this.$store.state.user.islader; + }, + userId() { + // admin1这个人可以删除数据 + return this.$store.state.user.id; + }, laderType() { return this.$store.state.user.laderType; } diff --git a/src/views/baseSystemInfo/index.vue b/src/views/baseSystemInfo/index.vue index 9ba7973..62f26c7 100644 --- a/src/views/baseSystemInfo/index.vue +++ b/src/views/baseSystemInfo/index.vue @@ -99,7 +99,7 @@ 查看 归属地变更 - + 删除 @@ -218,6 +218,7 @@ export default { this.initSystemTypeList(); this.initAreaTypeList(); this.initList(); + console.log(this.userId) }, mounted() {}, computed: { @@ -225,6 +226,10 @@ export default { // 判断角色是否为‘市级办公室’ return this.$store.state.user.islader; }, + userId() { + // admin1这个人可以删除数据 + return this.$store.state.user.id; + }, laderType() { return this.$store.state.user.laderType; } -- libgit2 0.21.4