NEZ-351 perf: 滑框重构完成(alertmsg预览还有小bug)
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user