From 41cd49ee036d60e466cdc3f035ebb3d17f6df2e5 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Mon, 19 Jul 2021 16:28:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E6=A0=87=E5=87=86?= =?UTF-8?q?=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/home1/components/release/index.vue | 7 +++---- src/pages/home1/index.vue | 20 +++++++++++++++++++- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/pages/home1/components/release/index.vue b/src/pages/home1/components/release/index.vue index ae97964bb..1e38acb4f 100644 --- a/src/pages/home1/components/release/index.vue +++ b/src/pages/home1/components/release/index.vue @@ -46,12 +46,11 @@ export default { //获取数据 getAdvice() { let obj = {} - obj.msgType = 'RESOURCE' - obj.rowLimit = 8 - this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', obj, { + obj.limit = 8 + this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoByList', obj, { _this: this }, res => { - this.standardReleaseList = res.data.list + this.standardReleaseList = res.data }, e => { }) }, diff --git a/src/pages/home1/index.vue b/src/pages/home1/index.vue index 7d097d8de..f8b5613b0 100644 --- a/src/pages/home1/index.vue +++ b/src/pages/home1/index.vue @@ -110,7 +110,25 @@ export default { }) }, MORE() { - this.$router.push({name: 'standardForComments'}) + switch (this.activeName) { + case 'solicitOpinions': + this.$router.push({name: 'standardForComments'}) + break + case 'release': + this.$confirm('请选择国内/海外标准', { + confirmButtonText: '国内标准', + cancelButtonText: '海外标准', + type: 'warning', + center: true + }).then(() => { + this.$router.push({name: 'domesticStandardsAndRegulations'}) + }).catch(() => { + this.$router.push({name: 'foreignStandardsAndRegulations'}) + }); + break + default: + break + } } }, }