From 65cc58992a32f2a827943d719409728a20812359 Mon Sep 17 00:00:00 2001 From: baoyu <102349094+Bytq@users.noreply.github.com> Date: Fri, 29 Mar 2024 14:34:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86/=E8=AF=91=E6=96=87=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=20=E5=BE=85=E5=8A=9E=E6=A0=87=E8=AE=B0=E6=9B=B4?= =?UTF-8?q?=E6=96=B0/=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/navMenu/index.vue | 8 +++--- .../components/detailModal.vue | 2 +- .../index.vue | 25 ++++++++----------- src/store/getters/index.js | 3 +++ src/store/mutations/index.js | 3 +++ src/store/state/index.js | 4 ++- 6 files changed, 25 insertions(+), 20 deletions(-) diff --git a/src/components/navMenu/index.vue b/src/components/navMenu/index.vue index d5ee754cc..5a8f941aa 100644 --- a/src/components/navMenu/index.vue +++ b/src/components/navMenu/index.vue @@ -52,7 +52,7 @@ {{ children.title }} - +
{{children.title}}
@@ -559,9 +559,9 @@ } }, mounted () { - this.$http.get('/lawss/standardApplyFor/queryPendingApprovalCount', '', { _this:this }, res => { + this.$http.get('/lawss/standardApplyFor/queryPendingApprovalCount', '', { _this: this }, res => { if (res.ok) { - this.standardTranslation = res.data + this.$store.commit('SET_STANDARD_TRANSLATION_TODO', res.data) } }) }, @@ -587,7 +587,7 @@ // return this.isCollapse ? require('assets/images/shangqi/img/logo4.png') : require('assets/images/shangqi/img/logo5.png') return this.isCollapse ? require('assets/images/shangqi/img/logo4.png') : require('assets/images/shangqi/img/logo2.png') }, - ...mapGetters(['getDynamicTotal', 'isCollapse']) + ...mapGetters(['getDynamicTotal', 'isCollapse', 'getStandardTranslationTodo']) }, watch: { // 监听路由 重新渲染面包屑 diff --git a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/detailModal.vue b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/detailModal.vue index cdf49d3f1..61019cecb 100644 --- a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/detailModal.vue +++ b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/detailModal.vue @@ -38,7 +38,7 @@ -
{{ StandardApplyForEO.standNum ? StandardApplyForEO.standNum : '--' }}
+
{{ StandardApplyForEO.standNumShow ? StandardApplyForEO.standNumShow : '--' }}
diff --git a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue index 215eb5e71..3f6eef65a 100644 --- a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue +++ b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue @@ -109,12 +109,8 @@ label="标准编号" width="150" align="center" - prop="standNum" - > - - + prop="standNumShow" + /> - - + /> @@ -337,6 +329,11 @@ export default { this.selectedList = [] this.$refs.selections.clearSelection() this.tableLoading = false + this.$http.get('/lawss/standardApplyFor/queryPendingApprovalCount', '', { _this: this }, res => { + if (res.ok) { + this.$store.commit('SET_STANDARD_TRANSLATION_TODO', res.data) + } + }) }) }, batchPass (id) { diff --git a/src/store/getters/index.js b/src/store/getters/index.js index fbf6e9278..4c15374ea 100644 --- a/src/store/getters/index.js +++ b/src/store/getters/index.js @@ -182,5 +182,8 @@ export default { }, refreshFlag: state => { return state.refreshFlag + }, + getStandardTranslationTodo: state => { + return state.standardTranslationTodo } } diff --git a/src/store/mutations/index.js b/src/store/mutations/index.js index 3503672c8..1c3201b96 100644 --- a/src/store/mutations/index.js +++ b/src/store/mutations/index.js @@ -302,5 +302,8 @@ export default { try { localStorage.setItem('refreshFlag', flag) } catch (e) {} + }, + SET_STANDARD_TRANSLATION_TODO (state, value) { + state.standardTranslationTodo = value } } diff --git a/src/store/state/index.js b/src/store/state/index.js index b4ee9092f..e27c9dfdf 100644 --- a/src/store/state/index.js +++ b/src/store/state/index.js @@ -34,6 +34,7 @@ let rukuBaseInfo = '' // 入库流程基础表单信息(后几步展示用) let accessStandRegRows = '' // 标准法规清单编辑 let accessStandRegTabName = '' // 标准法规清单页面当前页签 let refreshFlag = '' // 监听其他页面刷新 +let standardTranslationTodo = 0 // 标准/译文获取申请管理待办标记 try { if (localStorage.theme) { defaultTheme = localStorage.theme } if (localStorage.token) { defaultToken = localStorage.token } @@ -102,5 +103,6 @@ export default { rukuBaseInfo, accessStandRegRows, accessStandRegTabName, - refreshFlag + refreshFlag, + standardTranslationTodo }