vue中传递list对象像后端
handleSaveUser(){debugger;let data = this.userDialog.eleList.Employee.map(e => {return {colName: e.colName,desc: e.desc,isShow:e.isShow...
·
handleSaveUser(){
debugger;
let data = this.userDialog.eleList.Employee.map(e => {
return {
colName: e.colName,
desc: e.desc,
isShow:e.isShow
};
});
fetch
.post('/es/template/insertEle',data)
.then(({ data, msg }) => {
this.$loadingClose();
this.$message({
type: 'success',
message: msg
});
})
.catch(({ msg }) => {
this.$loadingClose();
this.$message({
type: 'error',
message: msg
});
});
},
更多推荐
已为社区贡献1条内容
所有评论(0)