浏览代码

结算管理交互优化

pengyh 1 年之前
父节点
当前提交
1d87369dcd

+ 16 - 4
src/views/auxiliaryFittings/settleAccountManagement/settleAccountOfflinePay/index.vue

@@ -1,5 +1,5 @@
 <template>
-	<template-page ref="pageRef" :get-list="getList" :table-attributes="tableAttributes" :table-events="tableEvents" :operationColumnWidth="120"
+	<template-page ref="pageRef" v-if="tabIndexShow" :get-list="getList" :table-attributes="tableAttributes" :table-events="tableEvents" :operationColumnWidth="120"
 	  :options-evens-group="optionsEvensGroup" :moreParameters="moreParameters" :column-parsing="columnParsing"
 	  :operation="operation()" :exportList="tabIndex==1?exportList1:exportList2">
 	  <div slot="moreSearch" style="margin-bottom: 10px;">
@@ -155,9 +155,21 @@ export default {
 		websitAmount: 0,
 		tabIndex: 1,
 		workerId: '',
-		websitId: ''
+		websitId: '',
+		tabIndexShow: true
     }
   },
+  watch: {
+  	tabIndex() {
+  		this.tabIndexShow = false
+  		this.$nextTick(() => {
+			if(this.tabIndex == 1){
+				this.status = ''
+			}
+  			this.tabIndexShow = true
+  		})
+  	}
+  },
   computed: {
 	  // 事件组合
 	  optionsEvensGroup() {
@@ -182,8 +194,8 @@ export default {
   methods: {
 	// 切换状态
 	changeType(val) {
-		this.workerId = ''
-		this.websitId = ''
+	  this.workerId = ''
+	  this.websitId = ''
 	  this.$refs.pageRef.refreshList()
 	},
     // 列表请求函数

+ 3 - 0
src/views/auxiliaryFittings/settleAccountManagement/settleAccountWeixinPay/index.vue

@@ -210,6 +210,9 @@ export default {
 		tabIndex() {
 			this.tabIndexShow = false
 			this.$nextTick(() => {
+				if(this.tabIndex == 1){
+					this.status = ''
+				}
 				this.tabIndexShow = true
 			})
 		}