| | |
| | | > |
| | | {{ |
| | | label.Desc + |
| | | (index == data.LableLst.length - 1 ? "" : ",") |
| | | (index == data.LableLst.length - 1 ? "" : ",") |
| | | }} |
| | | </span> |
| | | </div> |
| | | <div v-else-if=" hasError(data)"> |
| | | <span style="color:orangered;">有异常</span> |
| | | </div> |
| | | <div v-else> |
| | | <span>无异常</span> |
| | |
| | | this.tabPageSize = size; |
| | | this.filterSearchData(); |
| | | }, |
| | | hasError(data){ |
| | | if (!data.EventLst||data.EventLst.length==0) { |
| | | return false |
| | | } |
| | | |
| | | const t = data.EventLst.some((x) => x.state==0) |
| | | return t && data.IsOperate=="1" |
| | | }, |
| | | handleTableSizeChange(size) { |
| | | this.tablePageSize = size; |
| | | this.filterSearchData(); |
| | |
| | | _this.tabData = _this.tabData.map(function (item) { |
| | | const set = new Set(); |
| | | item.LableLst.forEach(function (label) { |
| | | label.Desc.split(",").forEach(function (d) { |
| | | label.Desc.split(",").forEach(function (d) { |
| | | set.add(d); |
| | | }); |
| | | }); |
| | |
| | | item.LableLst = lblst; |
| | | return item; |
| | | }); |
| | | _this.tabData |
| | | } |
| | | }); |
| | | }, |
| | |
| | | _this.tabData = _this.tabData.map(function (item) { |
| | | const set = new Set(); |
| | | item.LableLst.forEach(function (label) { |
| | | label.Desc.split(",").forEach(function (d) { |
| | | label.Desc.split(",").forEach(function (d) { |
| | | set.add(d); |
| | | }); |
| | | }); |