From 38a05a7637af9652874e332db840f3b7af190478 Mon Sep 17 00:00:00 2001 From: xingyuv Date: Wed, 22 Mar 2023 13:17:18 +0800 Subject: [PATCH] refactor: model => modal --- dev.md | 6 +- src/views/base/profile/PasswordModel.vue | 43 ------------- src/views/base/profile/SecureSetting.vue | 4 +- src/views/system/dept/DeptModel.vue | 58 ----------------- src/views/system/dept/index.vue | 4 +- src/views/system/dict/DictData.vue | 4 +- src/views/system/dict/DictDataModel.vue | 62 ------------------- src/views/system/dict/DictTypeModel.vue | 58 ----------------- src/views/system/dict/index.vue | 4 +- src/views/system/errorCode/ErrorCodeModel.vue | 58 ----------------- src/views/system/errorCode/index.vue | 4 +- .../system/mail/account/AccountModel.vue | 58 ----------------- src/views/system/mail/account/index.vue | 4 +- .../system/mail/template/TemplateModel.vue | 58 ----------------- src/views/system/mail/template/index.vue | 4 +- src/views/system/menu/MenuModel.vue | 58 ----------------- src/views/system/menu/index.vue | 4 +- src/views/system/notice/NoticeModel.vue | 58 ----------------- src/views/system/notice/index.vue | 2 +- .../system/oauth2/client/ClientModel.vue | 58 ----------------- src/views/system/oauth2/client/index.vue | 4 +- src/views/system/post/PostModel.vue | 58 ----------------- src/views/system/post/index.vue | 4 +- src/views/system/role/RoleModel.vue | 58 ----------------- src/views/system/role/RoleScopeModel.vue | 58 ----------------- src/views/system/role/index.vue | 4 +- .../sensitiveWord/SensitiveWordModel.vue | 58 ----------------- src/views/system/sensitiveWord/index.vue | 4 +- src/views/system/sms/SmsTemplateModel.vue | 58 ----------------- src/views/system/sms/smsTemplate.vue | 4 +- src/views/system/tenant/TenantModel.vue | 58 ----------------- src/views/system/tenant/index.vue | 4 +- .../tenantPackage/TenantPackageModel.vue | 58 ----------------- src/views/system/tenantPackage/index.vue | 4 +- src/views/system/user/UserModel.vue | 58 ----------------- src/views/system/user/index.vue | 4 +- 36 files changed, 36 insertions(+), 1069 deletions(-) delete mode 100644 src/views/base/profile/PasswordModel.vue delete mode 100644 src/views/system/dept/DeptModel.vue delete mode 100644 src/views/system/dict/DictDataModel.vue delete mode 100644 src/views/system/dict/DictTypeModel.vue delete mode 100644 src/views/system/errorCode/ErrorCodeModel.vue delete mode 100644 src/views/system/mail/account/AccountModel.vue delete mode 100644 src/views/system/mail/template/TemplateModel.vue delete mode 100644 src/views/system/menu/MenuModel.vue delete mode 100644 src/views/system/notice/NoticeModel.vue delete mode 100644 src/views/system/oauth2/client/ClientModel.vue delete mode 100644 src/views/system/post/PostModel.vue delete mode 100644 src/views/system/role/RoleModel.vue delete mode 100644 src/views/system/role/RoleScopeModel.vue delete mode 100644 src/views/system/sensitiveWord/SensitiveWordModel.vue delete mode 100644 src/views/system/sms/SmsTemplateModel.vue delete mode 100644 src/views/system/tenant/TenantModel.vue delete mode 100644 src/views/system/tenantPackage/TenantPackageModel.vue delete mode 100644 src/views/system/user/UserModel.vue diff --git a/dev.md b/dev.md index 02c409d9..7e0ea2df 100644 --- a/dev.md +++ b/dev.md @@ -20,13 +20,13 @@ pnpm dev * 迁移方式 * 1. 在views下找到自己的开发模块 * 2. 复制system/post下三个文件到需要开发的路径下 -* 3. 将post.data.ts 以及 PostModel.vue 更名为需要开发的名称(以下用role代替) -* 4. index.vue 中 修改script lang="ts" setup name="Post"中 name为Role PostModel 为RoleModel 详情看图index.vue +* 3. 将post.data.ts 以及 PostModal.vue 更名为需要开发的名称(以下用role代替) +* 4. index.vue 中 修改script lang="ts" setup name="Post"中 name为Role PostModal 为RoleModal 详情看图index.vue * 5. 修改post.data.ts 更名为role.data.ts 然后打开文档最上面的vue2代码,找到迁移的index.vue文件 * 6. 修改 columns 为 vue2 中 el-table-column 的参数 title 为 vue2中label ,dataIndex 为 prop * 7. 修改 searchFormSchema 为 vue2 中 搜索工作栏 下 el-form-item 的参数,component 可参考其他已完成页面修改 * 8. 修改 formSchema 为 vue2 中 添加或修改参数配置对话框 的参数,component 可参考其他已完成页面修改 -* 9. 修改 PostModel.vue ,更名为RoleModel.vue,如果所示的其他字段index.vue +* 9. 修改 PostModal.vue ,更名为RoleModal.vue,如果所示的其他字段index.vue * 10. 基本上70%以上的页面这样就可以完成了,修改完成后测试一下增删改查,如果没有问题就可以提交pr了 * 最后提交代码,本项目采用了cgz的形式,先git add 自己修改的文件,然后控制台pnpm commit,选择feat输入修改的页面,提交即可,他会自动检测代码是否有问题 diff --git a/src/views/base/profile/PasswordModel.vue b/src/views/base/profile/PasswordModel.vue deleted file mode 100644 index 1ff14eab..00000000 --- a/src/views/base/profile/PasswordModel.vue +++ /dev/null @@ -1,43 +0,0 @@ - - diff --git a/src/views/base/profile/SecureSetting.vue b/src/views/base/profile/SecureSetting.vue index 74c4a786..e03d1b6d 100644 --- a/src/views/base/profile/SecureSetting.vue +++ b/src/views/base/profile/SecureSetting.vue @@ -18,7 +18,7 @@ - + diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 95b101bc..ef1cd0db 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -29,7 +29,7 @@ - + diff --git a/src/views/system/dict/DictTypeModel.vue b/src/views/system/dict/DictTypeModel.vue deleted file mode 100644 index 2b395af1..00000000 --- a/src/views/system/dict/DictTypeModel.vue +++ /dev/null @@ -1,58 +0,0 @@ - - diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 0038672c..03880549 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -25,7 +25,7 @@ - + diff --git a/src/views/system/errorCode/index.vue b/src/views/system/errorCode/index.vue index d33bf4f9..075a12bf 100644 --- a/src/views/system/errorCode/index.vue +++ b/src/views/system/errorCode/index.vue @@ -25,14 +25,14 @@ - + diff --git a/src/views/system/mail/account/index.vue b/src/views/system/mail/account/index.vue index ce9d5036..968c5a0f 100644 --- a/src/views/system/mail/account/index.vue +++ b/src/views/system/mail/account/index.vue @@ -24,14 +24,14 @@ - + diff --git a/src/views/system/mail/template/index.vue b/src/views/system/mail/template/index.vue index b30ebbde..f1d1a091 100644 --- a/src/views/system/mail/template/index.vue +++ b/src/views/system/mail/template/index.vue @@ -24,14 +24,14 @@ - + diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index 9555e3e9..1e0f4d18 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -26,7 +26,7 @@ - + diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue index c9dcb160..23d014dd 100644 --- a/src/views/system/notice/index.vue +++ b/src/views/system/notice/index.vue @@ -31,7 +31,7 @@ import { useI18n } from '@/hooks/web/useI18n' import { useMessage } from '@/hooks/web/useMessage' import { useModal } from '@/components/Modal' -import NoticeModal from './NoticeModel.vue' +import NoticeModal from './NoticeModal.vue' import { BasicTable, useTable, TableAction } from '@/components/Table' import { deleteNoticeApi, getNoticePageApi } from '@/api/system/notice' import { columns, searchFormSchema } from './notice.data' diff --git a/src/views/system/oauth2/client/ClientModel.vue b/src/views/system/oauth2/client/ClientModel.vue deleted file mode 100644 index e2214c5d..00000000 --- a/src/views/system/oauth2/client/ClientModel.vue +++ /dev/null @@ -1,58 +0,0 @@ - - diff --git a/src/views/system/oauth2/client/index.vue b/src/views/system/oauth2/client/index.vue index 42fa4113..38a145e6 100644 --- a/src/views/system/oauth2/client/index.vue +++ b/src/views/system/oauth2/client/index.vue @@ -24,14 +24,14 @@ - + diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 232cc53f..2e53244b 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -25,14 +25,14 @@ - + diff --git a/src/views/system/role/RoleScopeModel.vue b/src/views/system/role/RoleScopeModel.vue deleted file mode 100644 index b324ab6e..00000000 --- a/src/views/system/role/RoleScopeModel.vue +++ /dev/null @@ -1,58 +0,0 @@ - - diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 6d332d74..e396b9f7 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -27,14 +27,14 @@ - + diff --git a/src/views/system/sensitiveWord/index.vue b/src/views/system/sensitiveWord/index.vue index 2f6d7468..252ecb66 100644 --- a/src/views/system/sensitiveWord/index.vue +++ b/src/views/system/sensitiveWord/index.vue @@ -25,7 +25,7 @@ - + diff --git a/src/views/system/sms/smsTemplate.vue b/src/views/system/sms/smsTemplate.vue index a242ed9b..d5e4aa4f 100644 --- a/src/views/system/sms/smsTemplate.vue +++ b/src/views/system/sms/smsTemplate.vue @@ -26,14 +26,14 @@ - + diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue index 9ed68188..8b4742aa 100644 --- a/src/views/system/tenant/index.vue +++ b/src/views/system/tenant/index.vue @@ -25,14 +25,14 @@ - + diff --git a/src/views/system/tenantPackage/index.vue b/src/views/system/tenantPackage/index.vue index 3c3e96de..5916d87e 100644 --- a/src/views/system/tenantPackage/index.vue +++ b/src/views/system/tenantPackage/index.vue @@ -24,14 +24,14 @@ - + diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index c468b87e..3c166f2e 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -26,7 +26,7 @@ - +