From 274c4c5bff973a26b6bcf9d0c6708cb0518b1b12 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 14 五月 2021 17:54:28 +0800
Subject: [PATCH] 2021-05-14

---
 src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx b/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx
index 0b1f3a0..d745175 100644
--- a/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx
+++ b/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx
@@ -9,6 +9,7 @@
  * @param {Array}  menulist   // 鑿滃崟鍒楄〃-鐢ㄤ簬瀛楁閫忚
  */
 export function getColumnForm (card, menulist = [], fields = []) {
+  let appType = sessionStorage.getItem('appType')
   let roleList = sessionStorage.getItem('sysRoles')
   if (roleList) {
     try {
@@ -324,7 +325,8 @@
       }, {
         value: 'linkurl',
         text: '閾炬帴'
-      }]
+      }],
+      forbidden: appType === 'mob'
     },
     {
       type: 'cascader',
@@ -332,14 +334,16 @@
       label: Formdict['model.menu'],
       initVal: card.linkmenu || [],
       required: true,
-      options: menulist
+      options: menulist,
+      forbidden: appType === 'mob'
     },
     {
       type: 'textarea',
       key: 'linkurl',
       label: '閾炬帴鍦板潃',
       initVal: card.linkurl || '',
-      required: true
+      required: true,
+      forbidden: appType === 'mob'
     },
     {
       type: 'multiselect',
@@ -347,7 +351,8 @@
       label: '鍏宠仈瀛楁',
       initVal: card.linkfields || [],
       required: false,
-      options: fields
+      options: fields,
+      forbidden: appType === 'mob'
     },
     {
       type: 'multiselect',

--
Gitblit v1.8.0