|
@@ -647,6 +647,7 @@ export default {
|
|
|
},
|
|
|
// 驱动数据返回类型:0 通用 1 WINCC
|
|
|
hasLeavesFlag: 0,
|
|
|
+ checkGroupStatusTipsCount: 0,
|
|
|
groupIntervalTag: null
|
|
|
}
|
|
|
},
|
|
@@ -709,6 +710,7 @@ export default {
|
|
|
// this.getReadMode()
|
|
|
|
|
|
let _this = this
|
|
|
+ this.checkGroupStatusTipsCount = 0;
|
|
|
if (this.groupIntervalTag) clearInterval(this.groupIntervalTag)
|
|
|
this.groupIntervalTag = setInterval(() => {
|
|
|
_this.refreshGroupData()
|
|
@@ -979,6 +981,7 @@ export default {
|
|
|
}
|
|
|
if (node.data.id == -1) {
|
|
|
getAllItemGroup(null).then(res => {
|
|
|
+ this.checkGroupStatusTipsCount = 0;
|
|
|
if (!res.data) {
|
|
|
resolve([])
|
|
|
return
|
|
@@ -990,8 +993,10 @@ export default {
|
|
|
sessionStorage.setItem('GROUP_LIST', JSON.stringify(arr))
|
|
|
resolve(arr)
|
|
|
}).catch((e) => {
|
|
|
+ this.checkGroupStatusTipsCount ++;
|
|
|
+ if (this.checkGroupStatusTipsCount <= 3)
|
|
|
+ showAlertWin(this, null, e)
|
|
|
resolve([])
|
|
|
- showAlertWin(this, null, e)
|
|
|
})
|
|
|
} else {
|
|
|
// getItemGroupById(node.data.id).then(res => {
|
|
@@ -1361,6 +1366,7 @@ export default {
|
|
|
'eventValue': temp.eventValue,
|
|
|
'dataModelId': temp.dataModelId,
|
|
|
'label': temp.itemName,
|
|
|
+ 'value': temp.itemReadName,
|
|
|
'nodeIdentifier': temp.nodeIdentifier,
|
|
|
'nodeIndex': temp.nodeIndex,
|
|
|
'dataType': temp.dataType,
|
|
@@ -1585,8 +1591,8 @@ export default {
|
|
|
t.value = t.itemReadName
|
|
|
t.checked = false
|
|
|
})
|
|
|
- this.chooseItemDataListByTree = this.tempItemList
|
|
|
}
|
|
|
+ this.chooseItemDataListByTree = this.tempItemList
|
|
|
const loading = showLoading(this, '加载中,请稍候···')
|
|
|
getNextAllItem(id, null).then(res => {
|
|
|
loading.close()
|
|
@@ -1617,7 +1623,6 @@ export default {
|
|
|
}
|
|
|
// 区分驱动返回数据类型
|
|
|
this.hasLeavesFlag = 1
|
|
|
-
|
|
|
this.itemDataListByTree = items
|
|
|
this.itemDataListByTreeF = JSON.parse(JSON.stringify(this.itemDataListByTree))
|
|
|
this.dataItemDialogTitle = '选择数据项'
|
|
@@ -1631,6 +1636,7 @@ export default {
|
|
|
handleItemNodeClick(data, n, target) {
|
|
|
let node = this.$refs.itemTree.getNode(n)
|
|
|
if (node) {
|
|
|
+ this.isSelectAllItemData = false
|
|
|
node.loaded = false
|
|
|
node.expand()
|
|
|
}
|