Forráskód Böngészése

调整新增表单弹窗添加关闭销毁配置

code4eat 2 éve
szülő
commit
fc68d9d0d9

+ 1 - 1
src/global.less

@@ -39,7 +39,7 @@ textarea {
                 .bms-ant-modal-confirm-body {
                     .bms-ant-modal-confirm-content {
                         max-width: 100% !important;
-                        max-height: 70vh !important;
+                        max-height: 80vh !important;
                         overflow-y: scroll;
 
                         .TableTransfer {

+ 2 - 1
src/pages/setting/baseSetting/businessDicMana/index.tsx

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2023-03-03 11:30:33
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-04-11 18:56:47
+ * @LastEditTime: 2023-04-14 10:20:18
  * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -164,6 +164,7 @@ const BusinessDicMana = () => {
                 trigger={
                     type == 'EDIT' ? <a key="edit" >编辑</a> : <span className='add'>新增</span>
                 }
+                modalProps={{destroyOnClose:true}}
                 onFinish={(val) => {
                     return updateTable(type == 'EDIT' ? { ...record,...val} : val, type);
                 }}

+ 2 - 1
src/pages/setting/baseSetting/dicClassfication/index.tsx

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2023-03-03 11:30:33
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-03-23 15:32:19
+ * @LastEditTime: 2023-04-14 10:19:25
  * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -132,6 +132,7 @@ export default function DicClassfication() {
                 onFinish={(val) => {
                     return updateTable(type == 'EDIT'?{...record,...val}:{...val}, type);
                 }}
+                modalProps={{destroyOnClose:true}}
                 colProps={{span:24}}
                 grid
             >

+ 2 - 1
src/pages/setting/baseSetting/paramsMana/index.tsx

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2023-03-03 11:30:33
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-03-28 16:10:58
+ * @LastEditTime: 2023-04-14 10:20:46
  * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -140,6 +140,7 @@ export default function ParamsMana() {
                 onFinish={(val) => {
                     return updateTable(type == 'EDIT'?{...record,...val}:{...val}, type);
                 }}
+                modalProps={{destroyOnClose:true}}
                 colProps={{span:24}}
                 grid
             >

+ 2 - 4
src/pages/setting/baseSetting/positionLevelRateSet/index.tsx

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2023-03-03 11:30:33
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-04-12 17:23:49
+ * @LastEditTime: 2023-04-14 09:40:21
  * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -141,10 +141,8 @@ export default function PositionLevelRateSet() {
             const resp = await getPositionDicData();
             if (resp) {
 
-                set_datasource(resp);
-        
                 const defaultSelctedkeys = record.position.map((item: any) => item.code);
-
+                set_datasource([...resp,...record.position]);
                 setTargetKeys(defaultSelctedkeys);
 
             }

+ 2 - 1
src/pages/setting/manaPerformanceSet/indicGroupWeightSet/index.tsx

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2023-03-03 11:30:33
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-04-06 18:25:55
+ * @LastEditTime: 2023-04-14 10:18:29
  * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -469,6 +469,7 @@ export default function IndicGroupWeightSet() {
                 trigger={
                     triggerNode()
                 }
+                modalProps={{destroyOnClose:true}}
                 onFinish={(val) => {
                     if (type == 'ADD') {
                         return updateTable({ ...val }, type)

+ 2 - 1
src/pages/setting/manaPerformanceSet/manaIndicItemSet/index.tsx

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2023-03-03 11:30:33
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-03-31 14:40:32
+ * @LastEditTime: 2023-04-14 10:17:59
  * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -144,6 +144,7 @@ export default function manaIndicItemSet() {
                 onFinish={(val) => {
                     return updateTable(type == 'EDIT' ? { ...record, ...val,sql:val.sql?val.sql:'' } : { ...val }, type);
                 }}
+                modalProps={{destroyOnClose:true}}
                 colProps={{ span: 24 }}
                 grid
             >

+ 4 - 13
src/pages/setting/reportSet/diySqlMana/index.tsx

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2023-03-03 11:30:33
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-04-13 18:42:55
+ * @LastEditTime: 2023-04-14 10:23:41
  * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -46,6 +46,8 @@ export default function DiySqlMana() {
         },
         {
             title: 'SQL语句',
+            width:500,
+            ellipsis:true,
             dataIndex: 'sql',
         },
         {
@@ -156,6 +158,7 @@ export default function DiySqlMana() {
                 onFinish={(val) => {
                     return updateTable(type == 'EDIT' ? { ...record, ...val } : { ...val }, type);
                 }}
+                modalProps={{destroyOnClose:true}}
                 colProps={{ span: 24 }}
                 grid
             >
@@ -200,19 +203,7 @@ export default function DiySqlMana() {
         )
     }
 
-    const tableDataSearchHandle = (paramName: string) => {
 
-        set_tableDataFilterParams({
-            ...tableDataFilterParams,
-            [`${paramName}`]: tableDataSearchKeywords
-        })
-
-    }
-
-
-    useEffect(() => {
-
-    }, [])
 
     return (
         <BMSPagecontainer className='DiySqlMana' title={false}>

+ 2 - 1
src/pages/setting/reportSet/reportNavSet/index.tsx

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2023-03-03 11:30:33
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-04-13 18:49:46
+ * @LastEditTime: 2023-04-14 10:17:17
  * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -179,6 +179,7 @@ export default function ReportNavSet() {
                 onFinish={(val) => {
                     return updateTable(type == 'EDIT' ? { ...record, ...val } : { ...val }, type);
                 }}
+                modalProps={{destroyOnClose:true}}
                 colProps={{ span: 24 }}
                 grid
             >

+ 5 - 2
src/pages/setting/reportSet/reportSetting/index.tsx

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2023-03-03 11:30:33
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-04-11 19:18:27
+ * @LastEditTime: 2023-04-14 10:05:44
  * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -69,6 +69,7 @@ const ReportSetting = () => {
         {
             title: '列名称',
             width: 120,
+            ellipsis:true,
             dataIndex: 'columnName',
 
         },
@@ -269,8 +270,9 @@ const ReportSetting = () => {
         {
             title: '列名称',
             dataIndex: 'name',
+            with:100,
+            ellipsis:true,
             key: 'name',
-
         },
         {
             title: '列标题',
@@ -289,6 +291,7 @@ const ReportSetting = () => {
             title: `选择报表列`,
             icon: <></>,
             width: 750,
+            centered:true,
             content: <TableTransfer
                 ref={ref}
                 record={undefined}