修改交互逻辑.

This commit is contained in:
lijiahang
2023-09-14 17:24:18 +08:00
parent f8b694c16a
commit a210fb93fd
15 changed files with 67 additions and 43 deletions

View File

@@ -93,7 +93,8 @@
const openUpdate = (record: any) => {
title.value = '修改主机';
isAddHandle.value = false;
renderForm({ ...defaultForm(), ...record });
const tags = record?.tags?.map((s: { id: any; }) => s.id);
renderForm({ ...defaultForm(), ...record, tags });
setVisible(true);
};

View File

@@ -1,4 +1,10 @@
/**
* tag 颜色
*/
export const tagColor = ['#FF5E5E', '#0FC6C2', '#CE36FF', '#14C93E', '#168CFF'];
export const tagColor = [
'#52C41A',
'#13C2C2',
'#1890FF',
'#9254de',
'#F759AB'
];

View File

@@ -31,8 +31,8 @@ const columns = [
}, {
title: '操作',
slotName: 'handle',
width: 130,
align: 'center',
width: 170,
align: 'right',
fixed: 'right',
},
] as TableColumnData[];