let dealData = data.map((item)=>{
return {
id: item.id,
mark: item.ename,
name: item.name,
type: item.type,
remark: item.remark,
}
})
that.tableData = dealData;
this.tableData = dealData;
//that.tableData = [ { "id": 2, "rpa": { "id": 2 }, "level": 1, "mark": "browserOpen", "name": "打開瀏覽器111111", "type": "組件", "flowId": 1, "compId": "3", "functionName": "browserOpen1" }, { "id": 3, "rpa": { "id": 3 }, "level": 1, "mark": "keyboard", "name": "鍵盤", "type": "組件", "remark": "", "flowId": 1, "compId": "2", "functionName": "keyboard1" }, { "id": 4, "rpa": { "id": 4 }, "level": 1, "mark": "mouse", "name": "鼠標", "type": "組件", "remark": "", "flowId": 1, "compId": "1", "functionName": "mouse1" } ];
console.log('this.tableData------',this.tableData);
//that.$forceUpdate();
//debugger
this的問題
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.