From bbb03ff09f77e4ece3dfcf80df855829399528ae Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 27 九月 2022 16:21:43 +0800
Subject: [PATCH] 1.新增cookie参数 rediskey

---
 src/views/jcsz/jsqd.vue |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/src/views/jcsz/jsqd.vue b/src/views/jcsz/jsqd.vue
index bc703f2..490040f 100644
--- a/src/views/jcsz/jsqd.vue
+++ b/src/views/jcsz/jsqd.vue
@@ -511,6 +511,7 @@
           <input
             class="myCheckboxInput"
             type="checkbox"
+            :disabled="rightFrom.usercode==='S001'"
             :value="item.code"
             :name="item.name"
             :style="{color:item.isSelected2?'#42b983':'#fff'}"
@@ -794,6 +795,10 @@
     },
     // 淇敼鎸夐挳
     edit(operation, row) {
+      if (row.role_code === 'S001') {
+        return this.$message.info('姝よ鑹叉棤娉曟搷浣滐紒')
+      }
+
       this.operation = operation
       this.dialogVisible = true
 
@@ -808,6 +813,9 @@
     },
     // 鍒犻櫎鎸夐挳
     del(row) {
+      if (row.role_code === 'S001') {
+        return this.$message.info('姝よ鑹叉棤娉曟搷浣滐紒')
+      }
       this.$confirm('鏄惁纭鍒犻櫎?', '鎻愮ず', {
         confirmButtonText: '纭畾',
         cancelButtonText: '鍙栨秷',
@@ -953,6 +961,9 @@
 
     /* 鍏宠仈鐢ㄦ埛妯″潡*/
     userClick(row) {
+      if (row.role_code === 'S001') {
+        return this.$message.info('姝よ鑹叉棤娉曟搷浣滐紒')
+      }
       this.userDialogVisible = true
       this.userForm.roleName = row.role_name
       this.dialogFormUser.rolecode = row.role_code
@@ -1072,6 +1083,19 @@
         this.dialogFormRight.rightPCArr[0].children = this.dialogFormRight.rightPCArr[0].children.filter(item => item.is_delete === '0')
         this.dialogFormRight.rightPCArr[0].children.forEach(item => {
           item.children = item.children.filter(it => it.is_delete === '0')
+
+          if (this.rightFrom.usercode === 'S001') { // Admin绯荤粺绠$悊鍛樿彍鍗曞仛鍒板彧澧炰笉鍑�
+            if (item.flag === 'Y') {
+              item.disabled = true
+            }
+            if (item.children && item.children.length > 0) {
+              item.children.forEach(it => {
+                if (it.flag === 'Y') {
+                  it.disabled = true
+                }
+              })
+            }
+          }
         })
       }
 
@@ -1080,6 +1104,19 @@
         this.dialogFormRight.rightAPPArr[0].children.forEach(item => {
           item.children = item.children.filter(it => it.is_delete === '0' || it.is_delete === null)
           // item.children = item.children.filter(it => it.is_delete !== '1')
+
+          if (this.rightFrom.usercode === 'S001') { // Admin绯荤粺绠$悊鍛樿彍鍗曞仛鍒板彧澧炰笉鍑�
+            if (item.flag === 'Y') {
+              item.disabled = true
+            }
+            if (item.children && item.children.length > 0) {
+              item.children.forEach(it => {
+                if (it.flag === 'Y') {
+                  it.disabled = true
+                }
+              })
+            }
+          }
         })
       }
       // console.log(this.dialogFormRight.rightAPPArr[0], 234)
@@ -1233,9 +1270,15 @@
       }
       if (this.PCTrue) {
         this.dialogFormRight.rightPCArr[0].name = '鍏ㄩ儴'
+        if (this.rightFrom.usercode === 'S001') { // Admin绯荤粺绠$悊鍛樿彍鍗曞仛鍒板彧澧炰笉鍑�
+          this.dialogFormRight.rightPCArr[0].disabled = true
+        }
       }
       if (this.APPTrue) {
         this.dialogFormRight.rightAPPArr[0].name = '鍏ㄩ儴'
+        if (this.rightFrom.usercode === 'S001') { // Admin绯荤粺绠$悊鍛樿彍鍗曞仛鍒板彧澧炰笉鍑�
+          this.dialogFormRight.rightAPPArr[0].disabled = true
+        }
       }
 
       // 鏍戝舰鍥炴樉閮ㄥ垎

--
Gitblit v1.9.3