feat: 更新 @riwa/api-types 依赖至 0.0.84,并调整相关组件的属性和 API 调用
This commit is contained in:
@@ -13,7 +13,7 @@ interface LockOption {
|
||||
|
||||
const props = defineProps<{
|
||||
options: LockOption[];
|
||||
productId: string;
|
||||
id: string;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
@@ -45,7 +45,7 @@ function handleSubmit() {
|
||||
formRef.value?.validate(async errors => {
|
||||
if (!errors) {
|
||||
await safeClient(() =>
|
||||
client.api.admin.rwa.tokenization_schema.config({ productId: props.productId }).put({
|
||||
client.api.admin.rwa.tokenization_schema({ id: props.id }).lock_options.patch({
|
||||
lockOptions: lockOptions.value
|
||||
})
|
||||
);
|
||||
|
||||
@@ -12,7 +12,7 @@ const tableInst = useTemplateRef<TableInst>('tableInst');
|
||||
|
||||
const fetchData: TableFetchData = ({ pagination, filter }) => {
|
||||
return safeClient(() =>
|
||||
client.api.admin.rwa.tokenization_schema.configs.get({
|
||||
client.api.admin.rwa.tokenization_schema.get({
|
||||
query: {
|
||||
...pagination,
|
||||
...filter
|
||||
@@ -104,7 +104,7 @@ const columns: TableBaseColumns = [
|
||||
size: 'small',
|
||||
visible: row.enabled === true,
|
||||
onClick: async () => {
|
||||
await safeClient(client.api.admin.rwa.tokenization_schema.disable({ productId: row.productId }).delete());
|
||||
await safeClient(client.api.admin.rwa.tokenization_schema({ id: row.id }).disable.patch());
|
||||
window.$message?.success('资产化已关闭。');
|
||||
tableInst.value?.reload();
|
||||
}
|
||||
@@ -134,7 +134,7 @@ function handleUpdateLockOptions(row: any) {
|
||||
content: () =>
|
||||
h(LockOptions, {
|
||||
options: row.lockOptions,
|
||||
productId: row.productId,
|
||||
id: row.id,
|
||||
onClose: () => {
|
||||
dialogInstance.destroy();
|
||||
tableInst.value?.reload();
|
||||
|
||||
Reference in New Issue
Block a user