From 0fcd84d2ad7dc631ac02ac20f8512fdafdc5fea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Wed, 25 Aug 2021 00:44:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E7=A7=9F=E6=88=B7=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=9C=89=E6=95=88=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/views/dashboard/IndexChart.vue | 27 ++++++++++++--- jshERP-web/src/views/system/TenantList.vue | 33 ++++++++++++++++--- .../src/views/system/modules/TenantModal.vue | 18 ++++++++-- jshERP-web/src/views/user/Login.vue | 4 +++ jshERP-web/src/views/user/Register.vue | 2 +- 5 files changed, 72 insertions(+), 12 deletions(-) diff --git a/jshERP-web/src/views/dashboard/IndexChart.vue b/jshERP-web/src/views/dashboard/IndexChart.vue index d77948b9..0cbf34e6 100644 --- a/jshERP-web/src/views/dashboard/IndexChart.vue +++ b/jshERP-web/src/views/dashboard/IndexChart.vue @@ -49,9 +49,11 @@ - - © 2015-2030 {{systemTitle}} - Powered By - 官方网站 + + 试用到期:{{tenant.expireTime}} + 试用用户:{{tenant.userCurrentNum}}/{{tenant.userNumLimit}} + 服务到期:{{tenant.expireTime}} + 授权用户:{{tenant.userCurrentNum}}/{{tenant.userNumLimit}} @@ -69,6 +71,7 @@ import HeadInfo from '@/components/tools/HeadInfo.vue' import Trend from '@/components/Trend' import { getBuyAndSaleStatistics, buyOrSalePrice } from '@/api/api' + import { getAction } from '../../api/manage' export default { name: "IndexChart", @@ -94,14 +97,21 @@ buyPriceData: [], salePriceData: [], visitFields:['ip','visit'], - visitInfo:[] + visitInfo:[], + tenant: { + type: '', + expireTime: '', + userCurrentNum: '', + userNumLimit: '' + } } }, created() { setTimeout(() => { this.loading = !this.loading }, 1000) - this.initInfo(); + this.initInfo() + this.initWithTenant() }, methods: { initInfo () { @@ -116,6 +126,13 @@ this.salePriceData = res.data.salePriceList; } }) + }, + initWithTenant() { + getAction("/user/infoWithTenant",{}).then(res=>{ + if(res && res.code === 200) { + this.tenant = res.data + } + }) } } } diff --git a/jshERP-web/src/views/system/TenantList.vue b/jshERP-web/src/views/system/TenantList.vue index a924c7ca..11ef9d1e 100644 --- a/jshERP-web/src/views/system/TenantList.vue +++ b/jshERP-web/src/views/system/TenantList.vue @@ -11,6 +11,22 @@ + + + + 免费租户 + 付费租户 + + + + + + + 启用 + 禁用 + + + 查询 @@ -51,7 +67,11 @@ 编辑 -