更新环境配置,修正服务地址,调整表格操作按钮可见性逻辑
This commit is contained in:
@@ -56,6 +56,7 @@ const columns: TableBaseColumns = [
|
||||
strong: true,
|
||||
secondary: true,
|
||||
size: 'small',
|
||||
visible: row.status !== 'approved',
|
||||
onClick: async () => {
|
||||
const amount = ref<string>(row.amount);
|
||||
dialog.create({
|
||||
|
||||
@@ -63,15 +63,17 @@ const columns: TableBaseColumns = [
|
||||
title: '操作',
|
||||
fixed: 'right',
|
||||
key: 'operation',
|
||||
width: 230,
|
||||
width: 140,
|
||||
operations: (row: any) => [
|
||||
{
|
||||
contentText: '批准',
|
||||
size: 'small',
|
||||
visible: row.status === 'pending',
|
||||
onClick: async () => {
|
||||
safeClient(() =>
|
||||
client.api.admin.rwa.issuance.approve.post({
|
||||
productId: row.id as string
|
||||
productId: row.id as string,
|
||||
publishFirstEdition: true
|
||||
})
|
||||
);
|
||||
tableInst.value?.reload();
|
||||
@@ -80,6 +82,7 @@ const columns: TableBaseColumns = [
|
||||
{
|
||||
contentText: '拒绝',
|
||||
size: 'small',
|
||||
visible: row.status === 'pending',
|
||||
onClick: async () => {
|
||||
safeClient(() =>
|
||||
client.api.admin.rwa.issuance.reject.post({
|
||||
@@ -89,14 +92,14 @@ const columns: TableBaseColumns = [
|
||||
);
|
||||
tableInst.value?.reload();
|
||||
}
|
||||
},
|
||||
{
|
||||
contentText: '编辑',
|
||||
size: 'small',
|
||||
onClick: () => {
|
||||
tableInst.value?.reload();
|
||||
}
|
||||
}
|
||||
// {
|
||||
// contentText: '编辑',
|
||||
// size: 'small',
|
||||
// onClick: () => {
|
||||
// tableInst.value?.reload();
|
||||
// }
|
||||
// }
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user