|
本帖最后由 rr61162576 于 2023-3-10 10:37 编辑
表格手动插入可以
数据结构如上
var table = new this.Table("baoxiaoTable");
var values =[];
this.data.datagrid.data.forEach(function(item){
var par = {
"workID": this.workContext.getWork().id,
"title": this.data.title,
"startTime": this.workContext.getWork().startTime,
"createrPerson": this.workContext.getWork.createrPerson,
"createrUnit": this.workContext.getWork().createrUnit,
"place": this.data.place,
"projectName": this.data.projectName,
"type": this.data.bxzl,
"number": parseInt(this,data,number),
"subjectName": item.kmmc,
"startDate": item.calendarStart,
"endDate": item.calendarEnd,
"costDescription": item.note
}
values.push(par);
}.bind(this));
table.insertRow(values);
var par1 = {
"workID": this.workContext.getWork().id,
"title": this.data.title,
"startTime": this.workContext.getWork().startTime,
"createrPerson": this.workContext.getWork.createrPerson,
"createrUnit": this.workContext.getWork().createrUnit,
"place": this.data.place,
"projectName": this.data.projectName,
"type": this.data.bxzl,
"number": parseInt(this,data,number),
"subjectName": item.kmmc,
"startDate": item.calendarStart,
"endDate": item.calendarEnd,
"costDescription": item.note
}
table.addRow(par1)
这样了还是插入不进去数据。。。。。
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|