From 7935b28dcc7b504aeae3605be635aa73c640690f Mon Sep 17 00:00:00 2001 From: "yang.huaxiang" Date: Wed, 9 Dec 2020 09:50:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=A0=E6=A1=82=E4=BF=9D=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E5=A4=84=E7=90=86=EF=BC=9A=E6=B7=BB=E5=8A=A0=E6=83=A0=E6=A1=82?= =?UTF-8?q?=E4=BF=9D=E6=8E=88=E6=9D=83=E9=A1=B5=E9=9D=A2=20--=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=BA=BA=EF=BC=9A=E9=98=B3=E5=8D=8E=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/hgb/index.vue | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/src/views/ebiz/hgb/index.vue b/src/views/ebiz/hgb/index.vue index de7d7f5bd..586c965c9 100644 --- a/src/views/ebiz/hgb/index.vue +++ b/src/views/ebiz/hgb/index.vue @@ -75,6 +75,9 @@ + + + @@ -84,10 +87,12 @@ import { Popup, DatetimePicker, Field, Pagination, PullRefresh, Loading, Icon } import { getAgentInfo } from '@/api/ebiz/my/my' import { selectHgb } from '@/api/ebiz/hgb' import dateUtil from '@/assets/js/utils/date-utils' +import CheckAgent from '@/components/common/CheckAgent' export default { name: 'HgbIndex', components: { + [CheckAgent.name]: CheckAgent, [Popup.name]: Popup, [DatetimePicker.name]: DatetimePicker, [Field.name]: Field, @@ -98,6 +103,7 @@ export default { }, data() { return { + showFlag: true, isDataLoaded: false, isLoading: false, totalItems: 0, @@ -124,16 +130,21 @@ export default { } } }, - async created() { - const res = await getAgentInfo({}) - if (res.result === '0') { - this.param.agentIdNo = res.cardNo - this.getData() - } else { - this.$toast(res.resultMessage) - } - }, + async created() {}, methods: { + async initThisPage(showFlag) { + this.showFlag = showFlag + if (this.showFlag) { + return + } + const res = await getAgentInfo({}) + if (res.result === '0') { + this.param.agentIdNo = res.cardNo + this.getData() + } else { + this.$toast(res.resultMessage) + } + }, onRefresh() { location.reload() },