|
|
@@ -6,7 +6,7 @@
|
|
|
<el-button type="default" icon="el-icon-plus" @click="table_add()">新增配饰/附件</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-main>
|
|
|
+ <el-main v-loading="isLoading">
|
|
|
<div v-if="list.length == 0">
|
|
|
<el-empty description="暂无数据" :image-size="100"></el-empty>
|
|
|
</div>
|
|
|
@@ -37,7 +37,8 @@ export default {
|
|
|
data(){
|
|
|
return {
|
|
|
list: [],
|
|
|
- maxNum:0
|
|
|
+ maxNum:0,
|
|
|
+ isLoading:false
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
|
@@ -64,7 +65,9 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
async getList(){
|
|
|
+ this.isLoading = true;
|
|
|
var resp = await this.$API.cloth.color.get({"type":"ornament"});
|
|
|
+ this.isLoading = false;
|
|
|
if (resp.code == 0) {
|
|
|
return this.$message.warning(resp.msg)
|
|
|
}
|