diff --git a/README.md b/README.md index 8f8cbbdd..1583efc9 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ npm run dev * 命名风格:所有的包(文件夹)、文件名以小驼峰的风格命名,比如xxxAaa,禁止XxxAaa或者xxx-aaa。 * 命名语义:禁止中文命名或拼音,英文命名借用下工具,稍微准确一点,不要与实际业务相差太远。 * 功能组件创建风格:以**功能名称**命名文件夹,每个功能下以**index.vue**作为该功能的组件入口。正确示例参考:/src/views/auth/menu/index.vue。 + ![组件层级图](./src/assets/readme/moduleLevel.png) + * todo...:待后续补充。 diff --git a/src/api/advance-boot/sgGroven/incomingLine.ts b/src/api/advance-boot/sgGroven/incomingLine.ts new file mode 100644 index 00000000..e8c8ce05 --- /dev/null +++ b/src/api/advance-boot/sgGroven/incomingLine.ts @@ -0,0 +1,40 @@ +import createAxios from '@/utils/request' + +const ADVANCE_BOOT = '/advance-boot' + +/** + * 新增业务用户 + */ +export const addSgIncomingLine = (data: any) => { + return createAxios({ + url: ADVANCE_BOOT + '/sgIncomingLine/add', + method: 'POST', + data: data + }) +} + + +/** + * 更新业务用户 + */ +export const updateSgIncomingLine = (data: any) => { + return createAxios({ + url: ADVANCE_BOOT + '/sgIncomingLine/update', + method: 'POST', + data: data + }) +} + + +/** + * 删除业务用户 + */ +export const deleteSgIncomingLine = (data: any) => { + let ids = [data] + return createAxios({ + url: ADVANCE_BOOT + '/sgIncomingLine/delete', + method: 'POST', + data: ids + }) +} + diff --git a/src/api/advance-boot/sgGroven/sgUser.ts b/src/api/advance-boot/sgGroven/sgUser.ts new file mode 100644 index 00000000..ea4da555 --- /dev/null +++ b/src/api/advance-boot/sgGroven/sgUser.ts @@ -0,0 +1,40 @@ +import createAxios from '@/utils/request' + +const ADVANCE_BOOT = '/advance-boot' + +/** + * 新增业务用户 + */ +export const addSgUser = (data: any) => { + return createAxios({ + url: ADVANCE_BOOT + '/sgUser/add', + method: 'POST', + data: data + }) +} + + +/** + * 更新业务用户 + */ +export const updateSgUser = (data: any) => { + return createAxios({ + url: ADVANCE_BOOT + '/sgUser/update', + method: 'POST', + data: data + }) +} + + +/** + * 删除业务用户 + */ +export const deleteSgUser = (data: any) => { + let ids = [data] + return createAxios({ + url: ADVANCE_BOOT + '/sgUser/delete', + method: 'POST', + data: ids + }) +} + diff --git a/src/api/system-boot/file.ts b/src/api/system-boot/file.ts new file mode 100644 index 00000000..19bf5816 --- /dev/null +++ b/src/api/system-boot/file.ts @@ -0,0 +1,62 @@ +import createAxios from '@/utils/request' + + +const SYSTEM_PREFIX = '/system-boot' + + +/** + * 上传文件 + * @param file + */ +export const uploadFile = (file: any, path: string) => { + let form = new FormData() + form.append('file', file) + form.append('path', path) + return createAxios({ + url: SYSTEM_PREFIX + '/file/upload', + method: 'POST', + headers: { + 'Content-Type': 'multipart/form-data' + }, + data: form + }) +} + + +/** + * 删除文件 + */ +export const deleteFile = (filePath: string) => { + let form = new FormData() + form.append('filePath', filePath) + return createAxios({ + url: SYSTEM_PREFIX + '/file/delete', + method: 'POST', + data: form + }) +} + + +/** + * 下载文件 + */ +export const downloadFile = (filePath: string) => { + let form = new FormData() + form.append('filePath', filePath) + return createAxios({ + url: SYSTEM_PREFIX + '/file/download', + method: 'GET' + }) +} + +/** + * 获取文件的短期url展示 + */ +export const getFileUrl = (filePath: string) => { + let form = new FormData() + form.append('filePath', filePath) + return createAxios({ + url: SYSTEM_PREFIX + '/file/getFileUrl', + method: 'POST' + }) +} \ No newline at end of file diff --git a/src/assets/sgGovern/defaultLogo.png b/src/assets/sgGovern/defaultLogo.png new file mode 100644 index 00000000..57b770fe Binary files /dev/null and b/src/assets/sgGovern/defaultLogo.png differ diff --git a/src/components/form/areaCascard/index.vue b/src/components/form/areaCascard/index.vue new file mode 100644 index 00000000..11c241f6 --- /dev/null +++ b/src/components/form/areaCascard/index.vue @@ -0,0 +1,121 @@ + + + + + + \ No newline at end of file diff --git a/src/router/static.ts b/src/router/static.ts index d433dfcf..e3dcb83a 100644 --- a/src/router/static.ts +++ b/src/router/static.ts @@ -24,6 +24,43 @@ export const adminBaseRoute = { meta: { title: `pagesTitle.loading` } + }, + // { + // path: 'businessUser/eventView', + // name: 'eventView', + // component: () => import('@/views/pqs/voltageSags/sagGovern/businessUser/eventView.vue'), + // meta: { + // title: `router.eventView` + // } + // }, + // { + // path: 'businessUser/eventView', + // name: 'eventView', + // component: () => import('@/views/pqs/voltageSags/sagGovern/businessUser/index.vue'), + // meta: { + // title: `router.eventView` + // } + // }, + { + path: 'businessUserRouter', + name: '业务管理员页面', + meta: { + title: pageTitle('businessUser'), + icon: 'ep:management', + alwaysShow: true + }, + children: [ + + { + path: 'eventView', + component: () => import('@/views/pqs/voltageSags/sagGovern/businessUser/eventView.vue'), + name: '暂降事件查看页面', + meta: { + title: pageTitle('router.eventView') + } + } + + ] } ] } @@ -56,7 +93,6 @@ const staticRoutes: Array = [ redirect: '/404' }, { - // 404 path: '/404', name: 'notFound', component: () => import('@/views/common/error/404.vue'), diff --git a/src/views/pqs/voltageSags/sagGovern/businessUser/IncomingTable.vue b/src/views/pqs/voltageSags/sagGovern/businessUser/IncomingTable.vue new file mode 100644 index 00000000..221171b3 --- /dev/null +++ b/src/views/pqs/voltageSags/sagGovern/businessUser/IncomingTable.vue @@ -0,0 +1,97 @@ + + + \ No newline at end of file diff --git a/src/views/pqs/voltageSags/sagGovern/businessUser/eventView.vue b/src/views/pqs/voltageSags/sagGovern/businessUser/eventView.vue new file mode 100644 index 00000000..58f9263a --- /dev/null +++ b/src/views/pqs/voltageSags/sagGovern/businessUser/eventView.vue @@ -0,0 +1,20 @@ + + \ No newline at end of file diff --git a/src/views/pqs/voltageSags/sagGovern/businessUser/incomingLinePopup.vue b/src/views/pqs/voltageSags/sagGovern/businessUser/incomingLinePopup.vue new file mode 100644 index 00000000..ddd44cf9 --- /dev/null +++ b/src/views/pqs/voltageSags/sagGovern/businessUser/incomingLinePopup.vue @@ -0,0 +1,115 @@ + + + + \ No newline at end of file diff --git a/src/views/pqs/voltageSags/sagGovern/businessUser/index.vue b/src/views/pqs/voltageSags/sagGovern/businessUser/index.vue new file mode 100644 index 00000000..ba052142 --- /dev/null +++ b/src/views/pqs/voltageSags/sagGovern/businessUser/index.vue @@ -0,0 +1,173 @@ + + + + diff --git a/src/views/pqs/voltageSags/sagGovern/businessUser/userPopup.vue b/src/views/pqs/voltageSags/sagGovern/businessUser/userPopup.vue new file mode 100644 index 00000000..408c8639 --- /dev/null +++ b/src/views/pqs/voltageSags/sagGovern/businessUser/userPopup.vue @@ -0,0 +1,258 @@ + + + + \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 09695162..da673a21 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,16 +11,14 @@ export default defineConfig({ host: '0.0.0.0', proxy: { '/api': { - // target: 'http://192.168.1.81:10215', //数据中心 - target: 'http://192.168.1.31:10215', //数据中心 + target: 'http://192.168.1.125:10215', //数据中心 changeOrigin: true, rewrite: path => path.replace(/^\/api/, '') //路径重写,把'/api'替换为'' }, '/map': { - target: 'http://192.168.1.81:8088', //数据中心 + target: 'http://192.168.1.125:8088', //数据中心 changeOrigin: true, - }, - + } } }, resolve: {