From cdd5b449130ea4d7223fde4f414a11a7d0c33d6d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 07 三月 2024 17:52:16 +0800
Subject: [PATCH] 2024-03-07

---
 src/menu/components/table/edit-table/options.jsx |   35 +++++++++++++++++++++++++++++++----
 1 files changed, 31 insertions(+), 4 deletions(-)

diff --git a/src/menu/components/table/edit-table/options.jsx b/src/menu/components/table/edit-table/options.jsx
index 2c88ad3..7773bdf 100644
--- a/src/menu/components/table/edit-table/options.jsx
+++ b/src/menu/components/table/edit-table/options.jsx
@@ -54,17 +54,33 @@
       required: false
     },
     {
-      type: 'radio',
+      type: 'select',
       field: 'commit',
       label: '鏁版嵁鎻愪氦',
       initval: wrap.commit || 'all',
-      tooltip: '璁剧疆涓轰慨鏀归」鏃讹紝鍦ㄥけ鍘荤劍鐐逛笖涓嶅瓨鍦ㄥ繀濉」涓虹┖鏃惰Е鍙戞彁浜ゃ�傝缃负淇敼椤癸紙鍏級鏃讹紝鍦ㄧ偣鍑绘彁浜ゆ寜閽椂瑙﹀彂鎻愪氦銆�',
+      tooltip: '璁剧疆涓轰慨鏀归」鏃讹紝鍦ㄥけ鍘荤劍鐐逛笖涓嶅瓨鍦ㄥ繀濉」涓虹┖鏃惰Е鍙戞彁浜ゃ�傝缃负淇敼椤癸紙鍏級鏃讹紝鍦ㄧ偣鍑绘彁浜ゆ寜閽椂瑙﹀彂鎻愪氦銆傝缃负鍕鹃�夐」鏃讹紝鍙彁浜ら�変腑鐨勬暟鎹紝鏈�変腑鏁版嵁鏃朵笉鍙彁浜ゃ��',
       required: false,
       options: [
         {value: 'all', label: '鍏ㄩ儴'},
         {value: 'change', label: '淇敼椤�'},
         {value: 'amend', label: '淇敼椤癸紙鍏級'},
-      ]
+        {value: 'check', label: '鍕鹃�夐」'},
+      ],
+      reset_source: true,
+      callback: (map, record, MKEmitter) => {
+        let _tableType = map.get('tableType')
+
+        _tableType.options[0].disabled = record.commit === 'check'
+        _tableType.oriOptions[0].disabled = record.commit === 'check'
+
+        map.set('tableType', _tableType)
+
+        if (record.commit === 'check' && !record.tableType) {
+          setTimeout(() => {
+            MKEmitter.emit('mkFC', 'input', 'tableType', 'radio')
+          }, 50)
+        }
+      }
     },
     {
       type: 'radio',
@@ -97,7 +113,7 @@
       initval: wrap.tableType || '',
       required: false,
       options: [
-        {value: '', label: '涓嶅彲閫�'},
+        {value: '', label: '涓嶅彲閫�', disabled: wrap.commit === 'check'},
         {value: 'radio', label: '鍗曢��'},
         {value: 'checkbox', label: '澶氶��'},
       ]
@@ -205,6 +221,17 @@
       options: columns
     },
     {
+      type: 'number',
+      field: 'maxPageSize',
+      label: '姣忛〉鏈�澶ф暟',
+      initval: wrap.maxPageSize || '',
+      tooltip: '鍒嗛〉鏃舵瘡椤靛彲鏄剧ず鐨勬渶澶ф暟閲忋��',
+      min: 10,
+      max: 500,
+      precision: 0,
+      required: false
+    },
+    {
       type: 'multiselect',
       field: 'blacklist',
       label: '榛戝悕鍗�',

--
Gitblit v1.8.0