feat(frontend):部分地方主题色修改;弹框选择数据集增加loading

This commit is contained in:
junjie 2021-05-31 10:44:44 +08:00
parent b8a64a3fc5
commit 58299c74fb
2 changed files with 8 additions and 3 deletions

View File

@ -51,7 +51,7 @@
</el-col> </el-col>
<!--scene--> <!--scene-->
<el-col v-if="sceneMode"> <el-col v-if="sceneMode" v-loading="dsLoading">
<el-row class="title-css"> <el-row class="title-css">
<span class="title-text"> <span class="title-text">
{{ currGroup.name }} {{ currGroup.name }}
@ -150,7 +150,8 @@ export default {
tableForm: { tableForm: {
name: '', name: '',
sort: 'type asc,create_time desc,name asc' sort: 'type asc,create_time desc,name asc'
} },
dsLoading: false
} }
}, },
computed: {}, computed: {},
@ -219,6 +220,7 @@ export default {
tableTree() { tableTree() {
this.tableData = [] this.tableData = []
if (this.currGroup) { if (this.currGroup) {
this.dsLoading = true
post('/dataset/table/list', { post('/dataset/table/list', {
sort: 'type asc,create_time desc,name asc', sort: 'type asc,create_time desc,name asc',
sceneId: this.currGroup.id, sceneId: this.currGroup.id,
@ -235,6 +237,9 @@ export default {
this.$nextTick(function() { this.$nextTick(function() {
this.unionDataChange() this.unionDataChange()
}) })
this.dsLoading = false
}).catch(res => {
this.dsLoading = false
}) })
} }
}, },

View File

@ -169,7 +169,7 @@ export default {
font-size: 12px; font-size: 12px;
} }
.span-number{ .span-number{
color: #f18126; color: #0a7be0;
} }
.table-count{ .table-count{
color: #606266; color: #606266;