修改交互逻辑.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
/**
|
||||
* tag 颜色
|
||||
*/
|
||||
export const tagColor = ['#FF5E5E', '#0FC6C2', '#CE36FF', '#14C93E', '#168CFF'];
|
||||
export const tagColor = [
|
||||
'#52C41A',
|
||||
'#13C2C2',
|
||||
'#1890FF',
|
||||
'#9254de',
|
||||
'#F759AB'
|
||||
];
|
||||
|
||||
@@ -31,8 +31,8 @@ const columns = [
|
||||
}, {
|
||||
title: '操作',
|
||||
slotName: 'handle',
|
||||
width: 130,
|
||||
align: 'center',
|
||||
width: 170,
|
||||
align: 'right',
|
||||
fixed: 'right',
|
||||
},
|
||||
] as TableColumnData[];
|
||||
|
||||
Reference in New Issue
Block a user