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() },