|
@@ -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()
|
|
|
},
|
|
|
// 列表请求函数
|