From 7ada8888d77674a03a226c3d8894475f188b2cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=9B=84?= Date: Tue, 9 Apr 2024 11:19:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common-vue3 | 2 +- .../component/classifyUpdateDialog.vue | 64 ++++++++++ src/views/supplier/component/updateDialog.vue | 117 ++++++++++-------- src/views/supplier/index.vue | 28 ++++- src/views/supplier/mockData.ts | 14 ++- src/views/supplier/types.ts | 2 + 6 files changed, 171 insertions(+), 56 deletions(-) create mode 100644 src/views/supplier/component/classifyUpdateDialog.vue diff --git a/common-vue3 b/common-vue3 index 80df44c..fdaf57a 160000 --- a/common-vue3 +++ b/common-vue3 @@ -1 +1 @@ -Subproject commit 80df44c74f019217741217a12f9955faf08da497 +Subproject commit fdaf57a038e1c12527ed873b8ecdfdfa8a40a735 diff --git a/src/views/supplier/component/classifyUpdateDialog.vue b/src/views/supplier/component/classifyUpdateDialog.vue new file mode 100644 index 0000000..81ffc5c --- /dev/null +++ b/src/views/supplier/component/classifyUpdateDialog.vue @@ -0,0 +1,64 @@ + + + + + diff --git a/src/views/supplier/component/updateDialog.vue b/src/views/supplier/component/updateDialog.vue index f5872da..40f97d5 100644 --- a/src/views/supplier/component/updateDialog.vue +++ b/src/views/supplier/component/updateDialog.vue @@ -1,6 +1,6 @@ diff --git a/src/views/userManagement/index.vue b/src/views/userManagement/index.vue new file mode 100644 index 0000000..5d778a2 --- /dev/null +++ b/src/views/userManagement/index.vue @@ -0,0 +1,111 @@ + + + + + diff --git a/src/views/userManagement/mockData.ts b/src/views/userManagement/mockData.ts new file mode 100644 index 0000000..70e255b --- /dev/null +++ b/src/views/userManagement/mockData.ts @@ -0,0 +1,39 @@ +import { UserTableData, TableColumn} from './types.ts' + +// 表格数据 +export const userTableList: UserTableData[] = [ + { userName: '用户1', employeeId: '工号001', personnelID: '编号001', name: '张三', userStatus: '活跃' }, + { userName: '用户2', employeeId: '工号002', personnelID: '编号002', name: '李四', userStatus: '停用' }, + { userName: '用户3', employeeId: '工号003', personnelID: '编号003', name: '王五', userStatus: '活跃' }, + { userName: '用户4', employeeId: '工号004', personnelID: '编号004', name: '赵六', userStatus: '停用' }, + { userName: '用户5', employeeId: '工号005', personnelID: '编号005', name: '钱七', userStatus: '活跃' }, + { userName: '用户6', employeeId: '工号006', personnelID: '编号006', name: '孙八', userStatus: '停用' }, + { userName: '用户7', employeeId: '工号007', personnelID: '编号007', name: '周九', userStatus: '活跃' }, + { userName: '用户8', employeeId: '工号008', personnelID: '编号008', name: '吴十', userStatus: '停用' }, + { userName: '用户9', employeeId: '工号009', personnelID: '编号009', name: '郑十一', userStatus: '活跃' }, + { userName: '用户10', employeeId: '工号010', personnelID: '编号010', name: '周十二', userStatus: '停用' } +] + +// 表格列参数 +export const tableColumnList: TableColumn[] = [ + { + "prop": "userName", + "label": "用户名" + }, + { + "prop": "employeeId", + "label": "工号" + }, + { + "prop": "personnelID", + "label": "人员编号" + }, + { + "prop": "name", + "label": "姓名" + }, + { + "prop": "userStatus", + "label": "用户状态" + } +] diff --git a/src/views/userManagement/types.ts b/src/views/userManagement/types.ts new file mode 100644 index 0000000..cdaf918 --- /dev/null +++ b/src/views/userManagement/types.ts @@ -0,0 +1,12 @@ +export interface UserTableData { + userName: string; + employeeId: string; + personnelID: string; + name: string; + userStatus: string, +} + +export interface TableColumn { + prop: string; + label: string; +} -- Gitee