Commit 0ccf04ae authored by kaitly205422@163.com's avatar kaitly205422@163.com

大屏添加加载动画

parent 6f66ea77
...@@ -70,7 +70,8 @@ ...@@ -70,7 +70,8 @@
<div :class="{ 'active': assessLevelType == 3 }" @click="assessLevelType = 3">低</div> <div :class="{ 'active': assessLevelType == 3 }" @click="assessLevelType = 3">低</div>
</div> </div>
<div class="terminal-group"> <div class="terminal-group">
<el-table stripe :data="terminalList" height="100%" row-class-name="tr" cell-class-name="td" class="terminal"> <el-table stripe :data="terminalList" height="100%" row-class-name="tr" cell-class-name="td"
class="terminal">
<el-table-column :show-overflow-tooltip="true" prop="projectName" min-width="140" label="项目名称"> <el-table-column :show-overflow-tooltip="true" prop="projectName" min-width="140" label="项目名称">
</el-table-column> </el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="deptName" label="所属区域"> <el-table-column :show-overflow-tooltip="true" prop="deptName" label="所属区域">
...@@ -456,6 +457,12 @@ export default { ...@@ -456,6 +457,12 @@ export default {
} }
}, },
getMapData(id, name) { getMapData(id, name) {
const loading = this.$loading({
lock: true,
text: '数据加载中',
spinner: 'el-icon-loading',
background: 'rgb(0, 0, 0,0.4)'
});
centerMap({ centerMap({
level: this.level - 1, level: this.level - 1,
areaName: name, areaName: name,
...@@ -463,6 +470,7 @@ export default { ...@@ -463,6 +470,7 @@ export default {
}).then(res => { }).then(res => {
this.mapDataNums = res.data; this.mapDataNums = res.data;
this.initMap(id, name); this.initMap(id, name);
loading.close();
}) })
}, },
getColors(index) { getColors(index) {
...@@ -484,7 +492,7 @@ export default { ...@@ -484,7 +492,7 @@ export default {
this.isScreen = false this.isScreen = false
setTimeout(() => { setTimeout(() => {
this.isScreen = true this.isScreen = true
}, 800); }, 400);
}, },
getlevelStatic() { getlevelStatic() {
const levelColor = [{ const levelColor = [{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment