diff --git a/src/views/rwa/product/components/allocations.vue b/src/views/rwa/product/components/allocations.vue
new file mode 100644
index 0000000..1816c54
--- /dev/null
+++ b/src/views/rwa/product/components/allocations.vue
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
diff --git a/src/views/rwa/product/components/editions.vue b/src/views/rwa/product/components/editions.vue
index 75b52ee..0f1fc81 100644
--- a/src/views/rwa/product/components/editions.vue
+++ b/src/views/rwa/product/components/editions.vue
@@ -8,6 +8,7 @@ import type { TableBaseColumns, TableFetchData, TableInst } from '@/components/t
import { RwaEditionStatusEnum } from '@/enum';
import AddEdition from './add-edition.vue';
import EditEdition from './edit-edition.vue';
+import Allocations from './allocations.vue';
defineOptions({ name: 'RwaProductEditions' });
@@ -132,6 +133,14 @@ const columns: TableBaseColumns = [
});
}
},
+ {
+ contentText: '申购记录',
+ type: 'primary',
+ ghost: true,
+ size: 'small',
+ visible: row.status === 'scheduled',
+ onClick: () => handleAllocations(row)
+ },
{
contentText: '编辑',
type: 'primary',
@@ -199,6 +208,14 @@ function handleEdit(row: any) {
}
});
}
+function handleAllocations(row: any) {
+ const dialogInstance = dialog.create({
+ title: '分配记录',
+ content: () => h(Allocations, { id: row.id }),
+ style: { width: '800px', height: '600px' },
+ showIcon: false
+ });
+}
diff --git a/src/views/rwa/product/index.vue b/src/views/rwa/product/index.vue
index 901d9e5..5a24961 100644
--- a/src/views/rwa/product/index.vue
+++ b/src/views/rwa/product/index.vue
@@ -253,7 +253,7 @@ function handleViewEditions(row: any) {
tableInst.value?.reload();
}
}),
- style: { width: '1200px' },
+ style: { width: '80vw', minWidth: '1000px', height: '80vh' },
showIcon: false,
onPositiveClick: () => {
message.success('添加成功');