From bc266b8d50157a315140b3c47dcc8fd58062c036 Mon Sep 17 00:00:00 2001 From: lilinyuan <1084668738@qq.com> Date: Tue, 19 Mar 2024 17:12:06 +0800 Subject: [PATCH 1/5] =?UTF-8?q?feat:=20=E9=85=8D=E7=BD=AE=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=BC=95=E5=85=A5=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.js b/vite.config.js index 374378a..257398a 100644 --- a/vite.config.js +++ b/vite.config.js @@ -28,6 +28,7 @@ export default defineConfig({ ], }), Components({ + dirs: ['src/components', 'src/fvcomponents'], resolvers: [ // 自动注册图标组件 IconsResolver({ From 9bc14be710a20f0c0fc5385c177fe2f402d1d6db Mon Sep 17 00:00:00 2001 From: lilinyuan <1084668738@qq.com> Date: Tue, 19 Mar 2024 17:12:19 +0800 Subject: [PATCH 2/5] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/common/index.js | 9 +++++++++ src/api/user/user.js | 15 +++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/api/common/index.js diff --git a/src/api/common/index.js b/src/api/common/index.js new file mode 100644 index 0000000..505aa7c --- /dev/null +++ b/src/api/common/index.js @@ -0,0 +1,9 @@ +import request from '@/utils/request.js' + +export const requestList = ( api, params, method = 'get' ) => { + return request({ + url: api, + method, + params + }) +} \ No newline at end of file diff --git a/src/api/user/user.js b/src/api/user/user.js index 519c7b0..e1eefb0 100644 --- a/src/api/user/user.js +++ b/src/api/user/user.js @@ -1,5 +1,20 @@ import request from '@/utils/request.js' +// 根据角色或者部门id获取对应数据 +export const getDeptOpt = () => { + return request({ + url: `/admin/mosr/department/option`, + method: 'get' + }) +} + +export const getSubCompOpt = () => { + return request({ + url: `/admin/mosr/sub/company/option`, + method: 'get' + }) +} + export const getUserList = (params) => { return request({ url: '/admin/user', From 170e758893670590e7eef528c21d99a07c76510c Mon Sep 17 00:00:00 2001 From: lilinyuan <1084668738@qq.com> Date: Tue, 19 Mar 2024 17:12:41 +0800 Subject: [PATCH 3/5] =?UTF-8?q?feat:=20=E5=AF=BC=E5=85=A5=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fvcomponents/fvCheckbox/index.vue | 41 +++++ src/fvcomponents/fvForm/index.vue | 109 +++++++++++++ src/fvcomponents/fvPagination/index.vue | 82 ++++++++++ src/fvcomponents/fvRadio/index.vue | 48 ++++++ src/fvcomponents/fvSearchForm/index.vue | 113 ++++++++++++++ src/fvcomponents/fvSelect/index.vue | 59 +++++++ src/fvcomponents/fvTable/index.vue | 188 +++++++++++++++++++++++ src/fvcomponents/fvTableColumn/index.vue | 58 +++++++ 8 files changed, 698 insertions(+) create mode 100644 src/fvcomponents/fvCheckbox/index.vue create mode 100644 src/fvcomponents/fvForm/index.vue create mode 100644 src/fvcomponents/fvPagination/index.vue create mode 100644 src/fvcomponents/fvRadio/index.vue create mode 100644 src/fvcomponents/fvSearchForm/index.vue create mode 100644 src/fvcomponents/fvSelect/index.vue create mode 100644 src/fvcomponents/fvTable/index.vue create mode 100644 src/fvcomponents/fvTableColumn/index.vue diff --git a/src/fvcomponents/fvCheckbox/index.vue b/src/fvcomponents/fvCheckbox/index.vue new file mode 100644 index 0000000..014fb69 --- /dev/null +++ b/src/fvcomponents/fvCheckbox/index.vue @@ -0,0 +1,41 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/fvcomponents/fvForm/index.vue b/src/fvcomponents/fvForm/index.vue new file mode 100644 index 0000000..2d58b50 --- /dev/null +++ b/src/fvcomponents/fvForm/index.vue @@ -0,0 +1,109 @@ + + + + + + + + + + {{ form[item.prop] || '--' }} + + + + + {{ item?.label || '' }} + + + + + + + + + + + \ No newline at end of file diff --git a/src/fvcomponents/fvPagination/index.vue b/src/fvcomponents/fvPagination/index.vue new file mode 100644 index 0000000..187aebe --- /dev/null +++ b/src/fvcomponents/fvPagination/index.vue @@ -0,0 +1,82 @@ + + + + + + + diff --git a/src/fvcomponents/fvRadio/index.vue b/src/fvcomponents/fvRadio/index.vue new file mode 100644 index 0000000..ea6e821 --- /dev/null +++ b/src/fvcomponents/fvRadio/index.vue @@ -0,0 +1,48 @@ + + + + {{ item.label }} + + + + + + + \ No newline at end of file diff --git a/src/fvcomponents/fvSearchForm/index.vue b/src/fvcomponents/fvSearchForm/index.vue new file mode 100644 index 0000000..2b4f2fc --- /dev/null +++ b/src/fvcomponents/fvSearchForm/index.vue @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + {{ showMore ? '收起' : '展开' }} + + 搜索 + 重置 + + + + + + + + + \ No newline at end of file diff --git a/src/fvcomponents/fvSelect/index.vue b/src/fvcomponents/fvSelect/index.vue new file mode 100644 index 0000000..8d668ca --- /dev/null +++ b/src/fvcomponents/fvSelect/index.vue @@ -0,0 +1,59 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/fvcomponents/fvTable/index.vue b/src/fvcomponents/fvTable/index.vue new file mode 100644 index 0000000..066c029 --- /dev/null +++ b/src/fvcomponents/fvTable/index.vue @@ -0,0 +1,188 @@ + + + + + + {{ btn.name }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/fvcomponents/fvTableColumn/index.vue b/src/fvcomponents/fvTableColumn/index.vue new file mode 100644 index 0000000..243a370 --- /dev/null +++ b/src/fvcomponents/fvTableColumn/index.vue @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + {{ renderCell(scope) }} + + + + + + + + \ No newline at end of file From 95b33a32bdd3e35683763dc996ae3e831946dcd8 Mon Sep 17 00:00:00 2001 From: lilinyuan <1084668738@qq.com> Date: Tue, 19 Mar 2024 17:12:58 +0800 Subject: [PATCH 4/5] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84user?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/index.vue | 646 ++++++-------------------------- 1 file changed, 124 insertions(+), 522 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index f7ec803..0222510 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -1,541 +1,143 @@ - - - - - - - - - - - {{ node.label }} - - - - - - - - - - - - - - - - - - - - - - - - 搜索 - 重置 - - - - 新增 - - - - - - - - - - - - - - - - - - 编辑 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ user.label }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 取消 - 确定 - - - - - - + + - + + \ No newline at end of file From a6c1cd81f1ded322e6a3a1fd0353f4ae8c1ef6a8 Mon Sep 17 00:00:00 2001 From: lilinyuan <1084668738@qq.com> Date: Tue, 19 Mar 2024 17:13:13 +0800 Subject: [PATCH 5/5] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=9A=B4?= =?UTF-8?q?=E9=9C=B2roles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/userstore.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stores/userstore.js b/src/stores/userstore.js index b9d50d5..3c74cf6 100644 --- a/src/stores/userstore.js +++ b/src/stores/userstore.js @@ -46,6 +46,7 @@ export const useAuthStore = defineStore('auth', () => { return { userinfo, permisstions, + roles, casToken, userLogin, userLogout,