From 5befe0e0f079fc3a7045e35c2510b29ea8a1e6df 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, 23 Aug 2023 00:40:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E7=99=BB=E5=BD=95=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=AF=BB=E5=8F=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/views/bill/mixins/BillListMixin.js | 2 +- jshERP-web/src/views/user/Login.vue | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/jshERP-web/src/views/bill/mixins/BillListMixin.js b/jshERP-web/src/views/bill/mixins/BillListMixin.js index 8b41ba31..de459b55 100644 --- a/jshERP-web/src/views/bill/mixins/BillListMixin.js +++ b/jshERP-web/src/views/bill/mixins/BillListMixin.js @@ -116,6 +116,7 @@ export const BillListMixin = { console.log(value); }, initSystemConfig() { + this.isShowExcel = Vue.ls.get('isShowExcel'); getCurrentSystemConfig().then((res) => { if(res.code === 200 && res.data){ let multiBillType = res.data.multiBillType @@ -126,7 +127,6 @@ export const BillListMixin = { getPlatformConfigByKey({ "platformKey": "bill_excel_url" }).then((res) => { if (res && res.code === 200) { if(res.data.platformValue) { - this.isShowExcel = true this.billExcelUrl = res.data.platformValue } } diff --git a/jshERP-web/src/views/user/Login.vue b/jshERP-web/src/views/user/Login.vue index 0315edeb..5c4b1d25 100644 --- a/jshERP-web/src/views/user/Login.vue +++ b/jshERP-web/src/views/user/Login.vue @@ -60,6 +60,7 @@ import { mapActions } from 'vuex' import { timeFix } from '@/utils/util' import Vue from 'vue' + import { getPlatformConfigByKey} from '@/api/api' import { ACCESS_TOKEN, ENCRYPTED_STRING } from '@/store/mutation-types' import { getAction } from '@/api/manage' import { getEncryptedString } from '@/utils/encryption/aesEncrypt' @@ -194,6 +195,15 @@ let desc = 'admin只是平台运维用户,真正的管理员是租户(测试账号为jsh),admin不能编辑任何业务数据,只能配置平台菜单和创建租户' this.$message.info(desc,30) } else { + getPlatformConfigByKey({ "platformKey": "bill_excel_url" }).then((res) => { + if (res && res.code === 200) { + if(res.data.platformValue) { + Vue.ls.set('isShowExcel', true); + } else { + Vue.ls.set('isShowExcel', false); + } + } + }) getAction("/user/infoWithTenant",{}).then(res=>{ if(res && res.code === 200) { let currentTime = new Date(); //新建一个日期对象,默认现在的时间