|
@@ -2,7 +2,7 @@
|
|
* @Author: code4eat awesomedema@gmail.com
|
|
* @Author: code4eat awesomedema@gmail.com
|
|
* @Date: 2023-03-03 11:30:33
|
|
* @Date: 2023-03-03 11:30:33
|
|
* @LastEditors: code4eat awesomedema@gmail.com
|
|
* @LastEditors: code4eat awesomedema@gmail.com
|
|
- * @LastEditTime: 2023-04-14 10:18:29
|
|
|
|
|
|
+ * @LastEditTime: 2023-04-21 11:16:00
|
|
* @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/index.tsx
|
|
* @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
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
*/
|
|
@@ -258,12 +258,14 @@ export default function IndicGroupWeightSet() {
|
|
const resp = await getAllUnit();
|
|
const resp = await getAllUnit();
|
|
if (resp) {
|
|
if (resp) {
|
|
|
|
|
|
- set_datasource(resp);
|
|
|
|
-
|
|
|
|
if (record && record.unitInfoVos) {
|
|
if (record && record.unitInfoVos) {
|
|
|
|
|
|
const defaultSelctedkeys = record.unitInfoVos.map((item: any) => item.unitCode);
|
|
const defaultSelctedkeys = record.unitInfoVos.map((item: any) => item.unitCode);
|
|
|
|
|
|
|
|
+ set_datasource([...resp,...(record.unitInfoVos.map((a:any)=>({...a,code:a.unitCode})))]);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
setTargetKeys(defaultSelctedkeys);
|
|
setTargetKeys(defaultSelctedkeys);
|
|
}
|
|
}
|
|
|
|
|