From 12e6f9526818cfb62434b37aa0a3169cfc0d3cae Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 24 二月 2021 16:46:06 +0800
Subject: [PATCH] 2021-02-24

---
 src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx |   40 +++++++++++++++++++++++++++++++++++-----
 1 files changed, 35 insertions(+), 5 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 bb35a59..5f55b07 100644
--- a/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx
+++ b/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx
@@ -1,7 +1,7 @@
 import zhCN from '@/locales/zh-CN/model.js'
 import enUS from '@/locales/en-US/model.js'
 
-const Formdict = localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
+const Formdict = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
 
 /**
  * @description 鑾峰彇鏄剧ず鍒楄〃鍗曢厤缃俊鎭�
@@ -38,13 +38,13 @@
   }, {
     value: 'custom',
     text: '鑷畾涔夊垪'
+  }, {
+    value: 'colspan',
+    text: '鍚堝苟鍒�'
   }]
 
   if (!card.isSub) {
     options.push({
-      value: 'colspan',
-      text: '鍚堝苟鍒�'
-    }, {
       value: 'action',
       text: '鎿嶄綔'
     })
@@ -73,6 +73,14 @@
       initVal: card.field,
       required: true,
       options: fields
+    },
+    {
+      type: 'select',
+      key: 'nameField',
+      label: Formdict['model.name'] + Formdict['model.form.field'],
+      initVal: card.nameField || '',
+      required: false,
+      options: [{uuid: 'empty', field: '', label: '绌�'}, ...fields]
     },
     {
       type: 'number',
@@ -118,6 +126,7 @@
       label: Formdict['model.sort'],
       initVal: card.IsSort || 'true',
       required: true,
+      forbidden: card.isSub,
       options: [{
         value: 'true',
         text: Formdict['model.true']
@@ -235,7 +244,7 @@
       readonly: false
     },
     {
-      type: 'select',
+      type: 'radio',
       key: 'lenWidRadio',
       label: '闀垮姣�',
       initVal: card.lenWidRadio || '1:1',
@@ -249,6 +258,27 @@
     },
     {
       type: 'radio',
+      key: 'picSort',
+      label: '鍥剧墖鎺掑垪',
+      initVal: card.picSort || '1',
+      tooltip: '鍚屼竴鍗曞厓鏍煎唴锛屽惈鏈夊寮犲浘鐗囨椂鐨勫垪鏁般��',
+      required: false,
+      options: [{
+        value: '1',
+        text: '1'
+      }, {
+        value: '2',
+        text: '2'
+      }, {
+        value: '3',
+        text: '3'
+      }, {
+        value: '4',
+        text: '4'
+      }]
+    },
+    {
+      type: 'radio',
       key: 'scale',
       label: Formdict['header.form.clickscale'],
       initVal: card.scale || 'false',

--
Gitblit v1.8.0