[前端] 修改資料顯示

This commit is contained in:
dev02 2023-07-03 16:44:12 +08:00
parent d13f5930a6
commit 6ca824e00c

View File

@ -111,8 +111,17 @@
}
var data = rel.data;
ds = data;
console.log(ds)
ds = $.extend(true, [], data);
$.each(data, function (i, v)
{
if (v.value.includes("$3"))
{
v.value = v.value.replace("$3", "");
v.tag_name = v.tag_name.replace("$3", "");
v.point_name = v.point_name.replace("$3", "");
}
})
//console.log(ds)
if (data == null || data.length == 0) {
this.data = [];
document.getElementById('loadDataText').innerText = "";