Commit a87406a3 by 张杰

修复100条限制

1 parent e962bce3
...@@ -367,8 +367,18 @@ export default { ...@@ -367,8 +367,18 @@ export default {
action(params).then((res) => { action(params).then((res) => {
this.treeLoading = false; this.treeLoading = false;
let list = res.data || [];
let cList = this.monitorList.itemArr || [];
// 最多创建100个设备监听
if (list.length + cList.length >= 100) {
list.length = 100 - cList.length;
//return false;
}
console.log(list);
let items = []; let items = [];
items = res.data.map((item) => { items = list.map((item) => {
return { return {
sn: item.label, sn: item.label,
name: item.label1, name: item.label1,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!