From 66fad244d9e22259bcb34d90040d2f6c947c6061 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 14 Mar 2022 11:38:06 +0800 Subject: [PATCH] =?UTF-8?q?oms=E6=8E=A5=E5=85=A53.0=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/router/axios.js | 3 + package.json | 3 +- project/oms/apps.import.json | 3 + .../oms/apps/AppArticles/components/Add.vue | 232 ++++++++++ .../apps/AppArticles/components/Detail.vue | 77 ++++ .../oms/apps/AppArticles/components/Event.vue | 292 ++++++++++++ .../oms/apps/AppCompany/components/List.vue | 223 ++++++++++ .../apps/AppCompany/components/Statistics.vue | 364 +++++++++++++++ .../AppCorpStatistics/AppCorpStatistics.vue | 273 ++++++++++++ project/oms/apps/AppLicense/AppLicense.vue | 178 ++++++++ .../AppRoleRightsManager.vue | 416 ++++++++++++++++++ .../apps/AppRoleRightsManager/rightsAdd.vue | 190 ++++++++ .../apps/AppRoleRightsManager/rightsGraph.vue | 192 ++++++++ project/oms/apps/AppSaas/AppSaas.vue | 197 +++++++++ project/oms/core.import.json | 8 + project/oms/package.json | 15 + vue.config.js | 7 +- 17 files changed, 2666 insertions(+), 7 deletions(-) create mode 100644 project/oms/apps.import.json create mode 100644 project/oms/apps/AppArticles/components/Add.vue create mode 100644 project/oms/apps/AppArticles/components/Detail.vue create mode 100644 project/oms/apps/AppArticles/components/Event.vue create mode 100644 project/oms/apps/AppCompany/components/List.vue create mode 100644 project/oms/apps/AppCompany/components/Statistics.vue create mode 100644 project/oms/apps/AppCorpStatistics/AppCorpStatistics.vue create mode 100644 project/oms/apps/AppLicense/AppLicense.vue create mode 100644 project/oms/apps/AppRoleRightsManager/AppRoleRightsManager.vue create mode 100644 project/oms/apps/AppRoleRightsManager/rightsAdd.vue create mode 100644 project/oms/apps/AppRoleRightsManager/rightsGraph.vue create mode 100644 project/oms/apps/AppSaas/AppSaas.vue create mode 100644 project/oms/core.import.json create mode 100644 project/oms/package.json diff --git a/examples/router/axios.js b/examples/router/axios.js index af136165..09c44703 100644 --- a/examples/router/axios.js +++ b/examples/router/axios.js @@ -12,6 +12,9 @@ instance.interceptors.request.use(config => { if (/\/xiushan/.test(location.pathname)) { config.baseURL = "/xsjr" config.url = config.url.replace(/(app|auth|admin)\//, "") + }else if (/project\/oms/.test(location.pathname)) { + config.baseURL = "/omsapi" + config.url = config.url.replace(/(app|auth|admin)\//, "") } if (!config.withoutToken && localStorage.getItem("ui-token")) { config.headers['Authorization'] = ["Bearer", localStorage.getItem("ui-token")].join(" ") diff --git a/package.json b/package.json index 922dd7e9..3c70065a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "main": "lib/cw-webapps.common.js", "scripts": { "serve": "vue-cli-service serve", - "serve:oms": "npx cross-env NODE_ENV=oms vue-cli-service serve", "build": "vue-cli-service build", "lib": "vue-cli-service build --no-clean --target lib --dest lib packages/index.js&&npm unpublish --force&&npm publish", "lib:core": "vue-cli-service build --target lib --dest core/dist core/index.js --name vc-app-core&&npm unpublish --force&&npm publish", @@ -92,4 +91,4 @@ "last 2 versions", "not ie <= 8" ] -} \ No newline at end of file +} diff --git a/project/oms/apps.import.json b/project/oms/apps.import.json new file mode 100644 index 00000000..b4629da9 --- /dev/null +++ b/project/oms/apps.import.json @@ -0,0 +1,3 @@ +{ + "AppForm": "配置表单" +} diff --git a/project/oms/apps/AppArticles/components/Add.vue b/project/oms/apps/AppArticles/components/Add.vue new file mode 100644 index 00000000..3e2ebafb --- /dev/null +++ b/project/oms/apps/AppArticles/components/Add.vue @@ -0,0 +1,232 @@ + + + + + diff --git a/project/oms/apps/AppArticles/components/Detail.vue b/project/oms/apps/AppArticles/components/Detail.vue new file mode 100644 index 00000000..c1e445db --- /dev/null +++ b/project/oms/apps/AppArticles/components/Detail.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/project/oms/apps/AppArticles/components/Event.vue b/project/oms/apps/AppArticles/components/Event.vue new file mode 100644 index 00000000..bce67543 --- /dev/null +++ b/project/oms/apps/AppArticles/components/Event.vue @@ -0,0 +1,292 @@ + + + + + diff --git a/project/oms/apps/AppCompany/components/List.vue b/project/oms/apps/AppCompany/components/List.vue new file mode 100644 index 00000000..37999c0e --- /dev/null +++ b/project/oms/apps/AppCompany/components/List.vue @@ -0,0 +1,223 @@ + + + + + diff --git a/project/oms/apps/AppCompany/components/Statistics.vue b/project/oms/apps/AppCompany/components/Statistics.vue new file mode 100644 index 00000000..9fc3b3e9 --- /dev/null +++ b/project/oms/apps/AppCompany/components/Statistics.vue @@ -0,0 +1,364 @@ + + + + + diff --git a/project/oms/apps/AppCorpStatistics/AppCorpStatistics.vue b/project/oms/apps/AppCorpStatistics/AppCorpStatistics.vue new file mode 100644 index 00000000..c93eea97 --- /dev/null +++ b/project/oms/apps/AppCorpStatistics/AppCorpStatistics.vue @@ -0,0 +1,273 @@ + + + + + diff --git a/project/oms/apps/AppLicense/AppLicense.vue b/project/oms/apps/AppLicense/AppLicense.vue new file mode 100644 index 00000000..1dbf6c4e --- /dev/null +++ b/project/oms/apps/AppLicense/AppLicense.vue @@ -0,0 +1,178 @@ + + + + + diff --git a/project/oms/apps/AppRoleRightsManager/AppRoleRightsManager.vue b/project/oms/apps/AppRoleRightsManager/AppRoleRightsManager.vue new file mode 100644 index 00000000..87b68366 --- /dev/null +++ b/project/oms/apps/AppRoleRightsManager/AppRoleRightsManager.vue @@ -0,0 +1,416 @@ + + + + + diff --git a/project/oms/apps/AppRoleRightsManager/rightsAdd.vue b/project/oms/apps/AppRoleRightsManager/rightsAdd.vue new file mode 100644 index 00000000..c22c76a7 --- /dev/null +++ b/project/oms/apps/AppRoleRightsManager/rightsAdd.vue @@ -0,0 +1,190 @@ + + + diff --git a/project/oms/apps/AppRoleRightsManager/rightsGraph.vue b/project/oms/apps/AppRoleRightsManager/rightsGraph.vue new file mode 100644 index 00000000..f25b62c2 --- /dev/null +++ b/project/oms/apps/AppRoleRightsManager/rightsGraph.vue @@ -0,0 +1,192 @@ + + + + + diff --git a/project/oms/apps/AppSaas/AppSaas.vue b/project/oms/apps/AppSaas/AppSaas.vue new file mode 100644 index 00000000..c99843b5 --- /dev/null +++ b/project/oms/apps/AppSaas/AppSaas.vue @@ -0,0 +1,197 @@ + + + + + diff --git a/project/oms/core.import.json b/project/oms/core.import.json new file mode 100644 index 00000000..ac27eb29 --- /dev/null +++ b/project/oms/core.import.json @@ -0,0 +1,8 @@ +{ + "AppDictionary": "数据字典", + "AppRightsManager": "权限管理", + "AppMenuManager": "菜单管理", + "AppSystemAccount": "账号管理", + "AppQyWxConfig": "企业微信配置", + "AppUserInfo": "个人中心" +} diff --git a/project/oms/package.json b/project/oms/package.json new file mode 100644 index 00000000..80a4397c --- /dev/null +++ b/project/oms/package.json @@ -0,0 +1,15 @@ +{ + "name": "dvcp-oms", + "description": "运营中心分包", + "version": "2.0.0", + "main": "dist/dvcp-oms.common.js", + "files": [ + "dist" + ], + "publishConfig": { + "registry": "http://192.168.1.87:4873/" + }, + "dependencies": { + "dvcp-ui": "^1.42.2" + } +} diff --git a/vue.config.js b/vue.config.js index 2094746a..4c62f6b4 100644 --- a/vue.config.js +++ b/vue.config.js @@ -71,15 +71,12 @@ module.exports = { '^/lan': '/' } }, - '/oms': { + '/omsapi': { target: 'http://192.168.1.87:19898', changeOrigin: true, pathRewrite: { //地址重写 - '^/oms/app/': '/', - '^/oms/auth/': '/', - '^/oms/admin/': '/', - '^/oms': '/' + '^/omsapi': '/' } }, '/xsjr': {