Prechádzať zdrojové kódy

钉钉角色-初始默认普通用户-不能删除

shaogen1995 2 mesiacov pred
rodič
commit
4a42cd71de
2 zmenil súbory, kde vykonal 4 pridanie a 2 odobranie
  1. 1 1
      public/index.html
  2. 3 1
      src/pages/Z_system/Z5role/index.tsx

+ 1 - 1
public/index.html

@@ -16,7 +16,7 @@
       // const baseUrlTempOne = 'http://192.168.20.61:8096'
 
       // 钉钉模式
-      const isDingTemp = false
+      const isDingTemp = true
 
       // const script = document.createElement('script')
       // script.src = `//${window.g_config.cdnHost}/gdt/dd-web-dev-center/3.12.0/assets/js/app_567f70b3-6512-4dca-8683-c2b5e2755fd0.js`

+ 3 - 1
src/pages/Z_system/Z5role/index.tsx

@@ -57,7 +57,9 @@ function Z5role() {
               <Button size='small' type='text' onClick={() => setEditId(item.id)}>
                 编辑
               </Button>
-              <MyPopconfirm txtK='删除' onConfirm={() => delTableFu(item.id)} />
+              {item.id === 13 ? null : (
+                <MyPopconfirm txtK='删除' onConfirm={() => delTableFu(item.id)} />
+              )}
             </>
           )
         }