From 41dc57f1ac3a11f884efddf35215c1a95d3782db Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 11 Mar 2022 13:48:07 +0800 Subject: [PATCH 1/9] BUG 28163 --- packages/3.0.0/AppPartyHistoryClass/AppPartyHistoryClass.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/3.0.0/AppPartyHistoryClass/AppPartyHistoryClass.vue b/packages/3.0.0/AppPartyHistoryClass/AppPartyHistoryClass.vue index c85c744e..4206cd26 100644 --- a/packages/3.0.0/AppPartyHistoryClass/AppPartyHistoryClass.vue +++ b/packages/3.0.0/AppPartyHistoryClass/AppPartyHistoryClass.vue @@ -14,10 +14,9 @@ v-model="search.title" class="search-input" size="small" - @keyup.enter.native="search.title = 1, search.title, getList()" placeholder="请输入课程主题" clearable - @clear="search.current = 1, search.title = '', getList()" + @change="search.current=1, getList()" suffix-icon="iconfont iconSearch"> From fcb6bbf9569c270108ab1a099ce760fa1dc7945e Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 14 Mar 2022 10:43:58 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E5=AE=9A=E5=88=B6=E5=8C=96=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiushan/apps/AppUserInfo/AppUserInfo.vue | 195 ++++++++++++++++++ project/xiushan/core.import.json | 1 - 2 files changed, 195 insertions(+), 1 deletion(-) create mode 100644 project/xiushan/apps/AppUserInfo/AppUserInfo.vue diff --git a/project/xiushan/apps/AppUserInfo/AppUserInfo.vue b/project/xiushan/apps/AppUserInfo/AppUserInfo.vue new file mode 100644 index 00000000..40e00038 --- /dev/null +++ b/project/xiushan/apps/AppUserInfo/AppUserInfo.vue @@ -0,0 +1,195 @@ + + + + + diff --git a/project/xiushan/core.import.json b/project/xiushan/core.import.json index 49a031d0..d974af81 100644 --- a/project/xiushan/core.import.json +++ b/project/xiushan/core.import.json @@ -1,6 +1,5 @@ { "AppDictionary": "数据字典", - "AppUserInfo": "个人中心", "AppRightsManager": "权限管理", "AppAccountRole": "账号角色", "AppMenuManager": "菜单管理" From 66fad244d9e22259bcb34d90040d2f6c947c6061 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 14 Mar 2022 11:38:06 +0800 Subject: [PATCH 3/9] =?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': { From f2508c58235a398875d088db183897b8634f2b97 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 14 Mar 2022 12:07:48 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/oms/apps/AppCompany/AppCompany.vue | 35 ++ .../oms/apps/AppCompany/components/List.vue | 39 +- .../apps/AppCompany/components/Statistics.vue | 550 +++++++++--------- 3 files changed, 337 insertions(+), 287 deletions(-) create mode 100644 project/oms/apps/AppCompany/AppCompany.vue diff --git a/project/oms/apps/AppCompany/AppCompany.vue b/project/oms/apps/AppCompany/AppCompany.vue new file mode 100644 index 00000000..7606c893 --- /dev/null +++ b/project/oms/apps/AppCompany/AppCompany.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/project/oms/apps/AppCompany/components/List.vue b/project/oms/apps/AppCompany/components/List.vue index 37999c0e..d4bd515d 100644 --- a/project/oms/apps/AppCompany/components/List.vue +++ b/project/oms/apps/AppCompany/components/List.vue @@ -7,10 +7,10 @@ @@ -38,7 +38,7 @@ - + @@ -46,27 +46,28 @@ + v-for="item in saasList" + :key="item.value" + :label="item.name" + :value="item.id"> - + - + - + - + - + { if (v) { this.saasList.map(item => { - if(item.id == this.dialogForm.saasId) { + if (item.id == this.dialogForm.saasId) { this.dialogForm.saasName = item.name } }) @@ -190,7 +191,7 @@ export default { }, handleSync(corpId) { this.$confirm("是否确定同步该企业数据?").then(() => { - this.instance.post("/appCorpStat/syncData?corpId="+corpId, null, {}).then(res => { + this.instance.post("/appCorpStat/syncData?corpId=" + corpId, null, {}).then(res => { if (res?.code == 0) { this.getTableData(); this.$message.success("同步成功!"); @@ -202,10 +203,8 @@ export default { window.open(accessUrl, "_blank"); }, toStatistics(item) { - this.$emit('change', { - type: 'Statistics', - params: item - }) + let {corpId} = item + this.$router.push({query: {corpId}, hash: "#sta"}) }, }, created() { diff --git a/project/oms/apps/AppCompany/components/Statistics.vue b/project/oms/apps/AppCompany/components/Statistics.vue index 9fc3b3e9..b10e11d0 100644 --- a/project/oms/apps/AppCompany/components/Statistics.vue +++ b/project/oms/apps/AppCompany/components/Statistics.vue @@ -10,23 +10,23 @@
群总数
-
{{info.groupCount}}
+
{{ info.groupCount }}
成员总数
-
{{info.userCount}}
+
{{ info.userCount }}
成员活跃总数
-
{{info.activeCount}}
+
{{ info.activeCount }}
居民总人数
-
{{info.residentCount}}
+
{{ info.residentCount }}
群成员总数
-
{{info.groupuserCount}}
+
{{ info.groupuserCount }}
@@ -34,7 +34,9 @@ - - - - - -
    -
  • - 姓名: -

    {{ familyInfo.name }}

    -
  • -
  • - 身份证号: -

    - -

    -
  • -
  • - 性别: -

    {{ dict.getLabel('sex', familyInfo.sex) }}

    -
  • -
  • - 年龄: -

    {{ familyInfo.age }}

    -
  • -
  • - 联系方式: -

    {{ familyInfo.phone }}

    -
  • -
  • - 民族: -

    {{ dict.getLabel('nation', familyInfo.nation) }}

    -
  • -
  • - 籍贯: -

    {{ familyInfo.birthplaceAreaName }}

    -
  • -
  • - 文化程度: -

    {{ dict.getLabel('education', familyInfo.education) }}

    -
  • -
  • - 婚姻状况: -

    {{ dict.getLabel('maritalStatus', familyInfo.maritalStatus) }}

    -
  • -
  • - 政治面貌: -

    {{ dict.getLabel('politicsStatus', familyInfo.politicsStatus) }}

    -
  • -
  • - 兵役状况: -

    {{ dict.getLabel('militaryStatus', familyInfo.militaryStatus) }}

    -
  • -
  • - 宗教信仰: -

    {{ dict.getLabel('faithType', familyInfo.faithType) }}

    -
  • -
  • - 职业: -

    {{ dict.getLabel('job', familyInfo.job) }}

    -
  • -
  • - 现住址: -

    {{ familyInfo.currentAreaName + familyInfo.currentAddress }}

    -
  • -
-
- -
-
-
- 关闭 - -
-
- - - {{ baseInfo.name }} - - - - - - - - - - - - -
- 取消 - - 确认 - -
-
- - - - diff --git a/project/shandong10086/apps/shandong/AppResident/mobileResident.vue b/project/shandong10086/apps/shandong/AppResident/mobileResident.vue deleted file mode 100644 index 072c409c..00000000 --- a/project/shandong10086/apps/shandong/AppResident/mobileResident.vue +++ /dev/null @@ -1,1116 +0,0 @@ - - - diff --git a/project/shandong10086/apps/shandong/AppResident/residentSta.vue b/project/shandong10086/apps/shandong/AppResident/residentSta.vue deleted file mode 100644 index 3de0971a..00000000 --- a/project/shandong10086/apps/shandong/AppResident/residentSta.vue +++ /dev/null @@ -1,445 +0,0 @@ - - - - - From c3be9537bd9b38987b8cacb300d39504a87c2c66 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 14 Mar 2022 17:24:28 +0800 Subject: [PATCH 9/9] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E5=B1=85=E6=B0=91=E6=A1=A3=E6=A1=88=E5=AF=BC=E5=87=BA=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/meta/AppResident/AppResident.vue | 4 +++- packages/meta/AppResident/listTpl.vue | 9 +++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/meta/AppResident/AppResident.vue b/packages/meta/AppResident/AppResident.vue index 4c9d8b6e..4bc6f930 100644 --- a/packages/meta/AppResident/AppResident.vue +++ b/packages/meta/AppResident/AppResident.vue @@ -6,7 +6,8 @@ @@ -22,6 +23,7 @@ import MobileResident from "./mobileResident"; import ResidentSta from "./residentSta"; import auditList from "./auditList"; import auditDetail from "./audtiDetail"; + export default { name: "AppResident", label: "居民档案", diff --git a/packages/meta/AppResident/listTpl.vue b/packages/meta/AppResident/listTpl.vue index b8569198..8c4bd61c 100644 --- a/packages/meta/AppResident/listTpl.vue +++ b/packages/meta/AppResident/listTpl.vue @@ -100,7 +100,7 @@ type="primary" icon="iconfont iconAdd" @click="gotoAdd()" - v-if="$permissions('app_appresident_edit')"> + v-if="permissions('app_appresident_edit')"> 添加 + v-if="permissions('app_appresident_del')"> 删除 @@ -118,7 +118,7 @@ 导入 + fileName="居民档案" v-if="permissions('app_appresident_export')"/> @@ -164,7 +164,8 @@ export default { inject: ['resident'], props: { areaId: {default: ""}, - active: {default: ""},//人员类型 + active: {default: ""},//人员类型, + permissions: Function }, computed: { ...mapState(["user"]),