Commit 1f348f24 by 莫晓莉

剪切字符串获取字段在末尾追加不覆盖原来已有数据

parent 1c290eb1
...@@ -241,7 +241,8 @@ export default ({ ...@@ -241,7 +241,8 @@ export default ({
inputOutputFields(pamer).then(res=>{ inputOutputFields(pamer).then(res=>{
console.log('字段',res); console.log('字段',res);
if(par=="get"){ if(par=="get"){
var newArray=[]; // var newArray=[];
var newArray=this.tableData;
res.forEach(item => { res.forEach(item => {
var newObj={}; var newObj={};
newObj.in_stream_name=item.name; newObj.in_stream_name=item.name;
...@@ -251,6 +252,7 @@ export default ({ ...@@ -251,6 +252,7 @@ export default ({
newArray.push(newObj); newArray.push(newObj);
}); });
this.tableData=newArray; this.tableData=newArray;
// this.tableData.concat(newArray);
}else{ }else{
this.fieldsList2=res; this.fieldsList2=res;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment