NEZ-351 perf: 滑框重构完成(alertmsg预览还有小bug)

This commit is contained in:
chenjinsong
2020-07-30 18:37:04 +08:00
parent b2472d9f12
commit bcdc152d5d
19 changed files with 845 additions and 1179 deletions

View File

@@ -443,34 +443,19 @@
}
},
computed: {
getData() {
return this.$store.state.assetData
assetListChange() {
return this.$store.state.assetListChange;
},
currentAssetChange() {
return this.$store.state.currentAsset;
},
getFlushData() {
return this.$store.state.flushDataSign
}
},
watch: {
getData: {
handler(newVal) {
if (newVal.type == 1) {
this.activeType = 'dataCenter';
this.checkList = newVal.selectedData;
this.assetClick = false;
}
},
immediate: true,
deep: true,
assetListChange(n) {
this.getTableData();
},
getFlushData: {
handler(newVal, oldVal) {
if (newVal === true) {
this.getDcData();
this.getTableData()
/*this.getLeftMenuList();
this.getAssetData()*/
}
}
currentAssetChange(n) {
this.dcCheckList = [n.id];
},
dcCheckList(n, o) {
setTimeout(()=>{
@@ -526,6 +511,17 @@
}
}
},
indOf(a, b) {
let c = [];
for (let i = 0; i < a.length; i++) {
c.push(a[i]);
}
if (c.indexOf(b) > -1) {
return true;
} else {
return false;
}
},
elementsetShow(s, e) {
this.tools.showElementSet = true;
this.$nextTick(() => {