Feature/0723/zr #9

Merged
chenzhen merged 27 commits from feature/0723/ZR into release/0.01 2026-08-08 14:23:42 +08:00
Collaborator
No description provided.
zhurui added 23 commits 2026-08-08 09:52:07 +08:00
chenzhen reviewed 2026-08-08 10:06:17 +08:00
@@ -89,0 +97,4 @@
const playerColumns = computed(() => {
const cols = [...BASE_PLAYER_COLUMNS];
if (detail.value?.isRequireIdCardNo === '1') cols.push(ID_CARD_COLUMN);
if (detail.value?.isRequireIdCardImg === '1') cols.push(ID_CARD_IMG_COLUMN);
Owner

const CONDITIONAL_COLUMNS: ConditionalColumnConfig = [
{ key: 'isRequireIdCardNo', column: ID_CARD_COLUMN },
{ key: 'isRequireIdCardImg', column: ID_CARD_IMG_COLUMN },
];
const cols = [
...BASE_COLUMNS,
...CONDITIONAL_COLUMNS
.filter(({ key }) => detail.value?.[key] === 1)
.map(({ column }) => column),
]; 这个只是一个 示例 你按照这个来优化下 这样 可维护性高

const CONDITIONAL_COLUMNS: ConditionalColumnConfig<DetailInfo> = [ { key: 'isRequireIdCardNo', column: ID_CARD_COLUMN }, { key: 'isRequireIdCardImg', column: ID_CARD_IMG_COLUMN }, ]; const cols = [ ...BASE_COLUMNS, ...CONDITIONAL_COLUMNS .filter(({ key }) => detail.value?.[key] === 1) .map(({ column }) => column), ]; 这个只是一个 示例 你按照这个来优化下 这样 可维护性高
chenzhen reviewed 2026-08-08 10:09:46 +08:00
@@ -0,0 +63,4 @@
} catch {
return;
}
Owner

你这个 formRef.value?.validate() 你看下 需要手动return吗

你这个 formRef.value?.validate() 你看下 需要手动return吗
zhurui added 1 commit 2026-08-08 10:38:53 +08:00
zhurui added 1 commit 2026-08-08 14:11:31 +08:00
zhurui added 2 commits 2026-08-08 14:22:43 +08:00
chenzhen merged commit 6f8e5036f7 into release/0.01 2026-08-08 14:23:42 +08:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cpms_org/cpms_operation_platform#9