Commit 5cbaff04 by xinla

优化绘画存档接口按需请求

1 parent ffaf431e
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
<span class="fr download" @click="exportList()">下载会话</span> <span class="fr download" @click="exportList()">下载会话</span>
</div> </div>
</div> </div>
<el-tabs v-model="activeTab"> <el-tabs
v-model="activeTab"
@tab-click="(v) => opened.includes(v.name) || opened.push(v.name)"
>
<el-tab-pane <el-tab-pane
v-for="(item, index) of list" v-for="(item, index) of list"
:key="index" :key="index"
...@@ -14,6 +17,7 @@ ...@@ -14,6 +17,7 @@
:name="item.type" :name="item.type"
> >
<chatListClassTab <chatListClassTab
v-if="opened.includes(item.type)"
:queryChat="queryChat" :queryChat="queryChat"
:type="item.type" :type="item.type"
></chatListClassTab> ></chatListClassTab>
...@@ -36,6 +40,7 @@ export default { ...@@ -36,6 +40,7 @@ export default {
data() { data() {
return { return {
activeTab: 'all', activeTab: 'all',
opened: ['all'],
list: [ list: [
{ {
label: '全部', label: '全部',
...@@ -60,7 +65,11 @@ export default { ...@@ -60,7 +65,11 @@ export default {
] ]
} }
}, },
watch: {}, watch: {
queryChat() {
this.opened = ['all']
}
},
mounted() {}, mounted() {},
methods: { methods: {
exportList() { exportList() {
......
...@@ -141,7 +141,9 @@ export default { ...@@ -141,7 +141,9 @@ export default {
this.getList(1) this.getList(1)
} }
}, },
created() {}, created() {
this.getList(1)
},
mounted() {}, mounted() {},
methods: { methods: {
getList(page) { getList(page) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!