From 5c8860f3cd8921e7eb0da7749628e9dc669b3203 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 17 三月 2020 10:19:16 +0800
Subject: [PATCH] 2020-03-17

---
 src/templates/tableshare/formconfig.js |   30 +++++++++++++++++++++++++++---
 1 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/src/templates/tableshare/formconfig.js b/src/templates/tableshare/formconfig.js
index 57410cd..af50705 100644
--- a/src/templates/tableshare/formconfig.js
+++ b/src/templates/tableshare/formconfig.js
@@ -7,7 +7,7 @@
  * @description 鑾峰彇鎼滅储鏉′欢琛ㄥ崟閰嶇疆淇℃伅
  * @param {*} card 
  */
-export function getSearchForm (card) {
+export function getSearchForm (card, roleList = []) {
   return [
     {
       type: 'text',
@@ -221,6 +221,14 @@
       initVal: '',
       required: false,
       options: []
+    },
+    {
+      type: 'multiselect',
+      key: 'blacklist',
+      label: Formdict['header.form.blacklist'],
+      initVal: card.blacklist || [],
+      required: false,
+      options: roleList
     }
   ]
 }
@@ -587,7 +595,7 @@
  * @description 鑾峰彇鏄剧ず鍒楄〃鍗曢厤缃俊鎭�
  * @param {*} card
  */
-export function getColumnForm (card) {
+export function getColumnForm (card, roleList = []) {
   return [
     {
       type: 'text',
@@ -789,6 +797,14 @@
       label: Formdict['header.form.field.length'],
       initVal: card.fieldlength || (card.type === 'text' ? 50 : 512),
       required: false
+    },
+    {
+      type: 'multiselect',
+      key: 'blacklist',
+      label: Formdict['header.form.blacklist'],
+      initVal: card.blacklist || [],
+      required: false,
+      options: roleList
     }
   ]
 }
@@ -798,7 +814,7 @@
  * @param {*} card 
  * @param {*} inputfields 
  */
-export function getModalForm (card, inputfields, linkableFields, linksupFields, subtable = false) {
+export function getModalForm (card, inputfields, linkableFields, linksupFields, subtable = false, roleList = []) {
   let _openType = []
   let _fieldlength = 50
 
@@ -1122,6 +1138,14 @@
       label: Formdict['header.form.linkForm'],
       initVal: card.linkSubField || [],
       options: inputfields
+    },
+    {
+      type: 'multiselect',
+      key: 'blacklist',
+      label: Formdict['header.form.blacklist'],
+      initVal: card.blacklist || [],
+      required: false,
+      options: roleList
     }
   ]
 }
\ No newline at end of file

--
Gitblit v1.8.0