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', 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 @@ + + + + + \ 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 @@ + + + + + \ 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 @@ + + + + + \ 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 @@ + + + + + \ 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 @@ + + + + + \ No newline at end of file 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, 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 @@ - + + \ No newline at end of file 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({