feat:panel页面增加拖动遮罩,避免多次修改导致数据出错

This commit is contained in:
wangwenrui
2020-11-17 15:03:43 +08:00
parent 2635b6a5f7
commit f8f0e7bc8e
2 changed files with 13 additions and 0 deletions

View File

@@ -146,6 +146,7 @@
</div>
</draggable>
<el-row v-if="dataList.length === 0" class="noData"></el-row>
<div class="page-shadow" v-if="showShadow"></div>
</div>
</template>
@@ -208,6 +209,7 @@
stepHeight: 50,
tempDom: {height: "", width: ""},
showShadow:false,
};
},
methods: {
@@ -318,6 +320,7 @@
};
if(this.dataList.length>1 && oldIndex !== newIndex){
this.showShadow=true;
this.$put('panel/'+ this.pagePanelId+'/charts/modify',modifyParams).then(response => {
if (response.code === 200) {
//修改前台列表中元素的顺序
@@ -333,6 +336,7 @@
this.dataTotalListBak.push(newItem);
}
this.dataList = this.dataTotalListBak;
this.showShadow=false;
}else {
if(response.msg){
this.$message.error(response.msg);