feat:panel页面增加拖动遮罩,避免多次修改导致数据出错
This commit is contained in:
@@ -146,6 +146,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</draggable>
|
</draggable>
|
||||||
<el-row v-if="dataList.length === 0" class="noData"></el-row>
|
<el-row v-if="dataList.length === 0" class="noData"></el-row>
|
||||||
|
<div class="page-shadow" v-if="showShadow"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -208,6 +209,7 @@
|
|||||||
stepHeight: 50,
|
stepHeight: 50,
|
||||||
|
|
||||||
tempDom: {height: "", width: ""},
|
tempDom: {height: "", width: ""},
|
||||||
|
showShadow:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -318,6 +320,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if(this.dataList.length>1 && oldIndex !== newIndex){
|
if(this.dataList.length>1 && oldIndex !== newIndex){
|
||||||
|
this.showShadow=true;
|
||||||
this.$put('panel/'+ this.pagePanelId+'/charts/modify',modifyParams).then(response => {
|
this.$put('panel/'+ this.pagePanelId+'/charts/modify',modifyParams).then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
//修改前台列表中元素的顺序
|
//修改前台列表中元素的顺序
|
||||||
@@ -333,6 +336,7 @@
|
|||||||
this.dataTotalListBak.push(newItem);
|
this.dataTotalListBak.push(newItem);
|
||||||
}
|
}
|
||||||
this.dataList = this.dataTotalListBak;
|
this.dataList = this.dataTotalListBak;
|
||||||
|
this.showShadow=false;
|
||||||
}else {
|
}else {
|
||||||
if(response.msg){
|
if(response.msg){
|
||||||
this.$message.error(response.msg);
|
this.$message.error(response.msg);
|
||||||
|
|||||||
@@ -643,3 +643,12 @@
|
|||||||
.chart-text-preview .ql-container.ql-snow {
|
.chart-text-preview .ql-container.ql-snow {
|
||||||
border: unset !important;
|
border: unset !important;
|
||||||
}
|
}
|
||||||
|
.page-shadow{
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
left: 0px;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
background-color: rgba(0,0,0,.1);
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user