跳到主要内容

数据处理

数据新增

说明:包含普通数据和流程数据的新增以及流程数据新增时的暂存场景均可使用该方法。

方法签名

this.$dataHandler.addData(formCode, objectId, data, subData);

支持版本:V8.6.1

输入参数

参数类型必填说明
formCodestring功能code
objectIdstring数据ID,guid格式。指定创建数据的数据ID,传空会默认生成一个ID
dataobject数据内容,key-value形式。key是字段名,value是字段值
subDataarray子表数据
subCodestring子表code
datasobject子表数据,key-value形式。key是字段名,value是字段值

返回内容

返回一个Promise类型的对象,可以直接通过then来处理正确回调,通过catch来处理错误回调

样例

this.$dataHandler.addData(
"1a04ff66d02bbc01",
"ecebf331-89ed-4135-b6cd-39715e15d222",
{
danxwb: "xxx",
shuz: 12,
riq: "2024-09-27",
xial: 'xxx',
xial_Id: 'xxx', // key为下拉控件字段名加_Id,值为下拉数据的ObjectID
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565', //key为多选字段名加_Id,值为多选数据的ObjectID
guanl: 'xxx', //关联的值
guanl_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215' //key为关联字段名加_Id,值为关联数据的ObjectID
},
[
{
subCode: "1be0ad7b1e",
datas: [
{
aaa: "aaa",
shuz: 22,
riq: "2024-09-27",
xial: 'xxx',
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: 'xxx',
guanl_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215'
},
{
bbb: "bbb",
shuz: 32,
riq: "2024-09-27",
xial: 'xxx',
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: 'xxx',
guanl_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215'
}
]
},
{
subCode: "1ae5at7n71",
datas: [
{
ccc: "ccc",
xuhao: 1,
shuz: 22,
riq: "2024-09-27",
xial: 'xxx',
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: 'xxx',
guanl_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215'
},
{
ddd: "ddd",
xuhao: 2,
shuz: 22,
riq: "2024-09-27",
xial: 'xxx',
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: 'xxx',
guanl_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215'
}
]
}
]
).then(function(res) {
// 新增成功
}).catch(function(error) {
// 新增失败
});

数据批量新增

说明:包含普通数据和流程数据的新增以及流程数据新增时的暂存场景均可使用该方法。

方法签名

this.$dataHandler.addListData(array);

支持版本:V8.6.1

输入参数

参数类型必填说明
arrayarray多条数据
formCodestring功能code
objectIdstring数据ID,guid格式。指定创建数据的数据ID,传空会默认生成一个ID
dataobject数据内容,key-value形式。key是字段名,value是字段值
subDataarray子表数据
subCodestring子表code
datasarray子表数据

返回内容

返回一个Promise类型的对象,可以直接通过then来处理正确回调,通过catch来处理错误回调

样例

this.$dataHandler.addListData(
[
{
formCode: "1a04ff66d02bbc01",
objectId: "ecebf331-89ed-4135-b6cd-39715e15d222",
data: {
danxwb: "xxx",
shuz: 12,
riq: "2024-09-27",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
},
subData: [
{
subCode: "1be0ad7b1e",
datas: [
{
aaa: "aaa",
shuz: 22,
riq: "2024-09-27",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
},
{
bbb: "bbb",
shuz: 32,
riq: "2024-09-27",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
}
]
},
{
subCode: "7d4g39fhr5",
datas: [
{
ccc: "ccc",
xuhao: 1,
riq: "2024-09-27",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
},
{
ddd: "ddd",
xuhao: 2,
riq: "2024-09-27",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
}
]
}
]
},
{
formCode: "1a04ff66d02bbc01",
objectId: "ecebf221-89ed-4135-b6cd-39715e15d222",
data: {
danxwb: "xxx",
shuz: 12,
riq: "2024-09-27",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
},
subData: [
{
subCode: "1be0ad7b1e",
datas: [
{
aaa: "aaa",
shuz: 22,
riq: "2024-09-27",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
},
{
bbb: "bbb",
shuz: 32,
riq: "2024-09-27",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
}
]
},
{
subCode: "7d4g39fhr5",
datas: [
{
ccc: "ccc",
xuhao: 1,
riq: "2024-09-27",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
},
{
ddd: "ddd",
xuhao: 2,
riq: "2024-09-27",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
}
]
}
]
}
]
).then(function(res) {
// 新增成功
}).catch(function(error) {
// 新增失败
});

数据更新

说明:包含普通数据的更新、流程数据更新以及流程数据流转时的暂存均可使用。

方法签名

this.$dataHandler.updateData(formCode, objectId, data, subData);

支持版本:V8.6.1

输入参数

参数类型必填说明
formCodestring功能code
objectIdstring数据ID
dataobject数据内容,key-value形式。key是字段名,value是字段值
subDataarray子表数据
subCodesstring子表code
datasarray子表数据

返回内容

返回一个Promise类型的对象,可以直接通过then来处理正确回调,通过catch来处理错误回调

样例

this.$dataHandler.updateData(
"1a04ff66d02bbc01",
"ecebf331-89ed-4135-b6cd-39715e15d222",
{
danxwb: "xxx",
shuz: 12,
riq: "2024-10-08",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "1ad88d9d-52cb-4622-a292-c370fabac565",
},
[
{
subCode: "1be0ad7b1e",
datas: [
{
aaa: "aaa",
shuz: 22,
riq: "2024-10-08",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "1ad88d9d-52cb-4622-a292-c370fabac565",
},
{
bbb: "bbb",
shuz: 32,
riq: "2024-10-08",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "1ad88d9d-52cb-4622-a292-c370fabac565",
}
]
},
{
subCode: "7d4g39fhr5",
datas: [
{
ccc: "ccc",
xuhao: 1,
riq: "2024-10-08",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "1ad88d9d-52cb-4622-a292-c370fabac565",
},
{
ddd: "ddd",
xuhao: 2,
riq: "2024-10-08",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "1ad88d9d-52cb-4622-a292-c370fabac565",
}
]
}
]
).then(function(res) {
// 更新成功
}).catch(function(error) {
// 更新失败
});

数据批量更新

说明:包含普通数据的更新、流程数据更新以及流程数据流转时的暂存均可使用。

方法签名

this.$dataHandler.updateListData(array);

支持版本:V8.6.1

输入参数

参数类型必填说明
arrayarray多条数据
formCodestring功能code
objectIdstring数据
dataobject数据内容,key-value形式。key是字段名,value是字段值
subDataarray子表数据
subCodestring子表code
datasarray子表数据

返回内容

返回一个Promise类型的对象,可以直接通过then来处理正确回调,通过catch来处理错误回调

样例

this.$dataHandler.updateListData(
[
{
formCode: "1a04ff66d02bbc01",
objectId: "ecebf331-89ed-4135-b6cd-39715e15d222",
data: {
danxwb: "xxx",
shuz: 12,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
},
subData: [
{
subCode: "1be0ad7b1e",
datas: [
{
aaa: "aaa",
shuz: 22,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
},
{
bbb: "bbb",
shuz: 32,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
}
]
},
{
subCode: "7d4g39fhr5",
datas: [
{
ccc: "ccc",
xuhao: 1,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
},
{
ddd: "ddd",
xuhao: 2,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
}
]
}
]
},
{
formCode: "1a04ff66d02bbc01",
objectId: "ecebf221-89ed-4135-b6cd-39715e15d222",
data: {
danxwb: "xxx",
shuz: 12,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
},
subData: [
{
subCode: "1be0ad7b1e",
datas: [
{
aaa: "aaa",
shuz: 22,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
},
{
bbb: "bbb",
shuz: 32,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
}
]
},
{
subCode: "7d4g39fhr5",
datas: [
{
ccc: "ccc",
xuhao: 1,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
},
{
ddd: "ddd",
xuhao: 2,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215",
}
]
}
]
}
]
).then(function(res) {
// 更新成功
}).catch(function(error) {
// 更新失败
});

数据流程提交

方法签名

this.$dataHandler.submitData(formCode, objectId, data, subData, participativeId);

支持版本:V8.6.1

输入参数

参数类型必填说明
formCodestring功能code
objectIdstring数据ID,guid格式,当传入的数据ID存在,就会将这条数据进行流转,如果不存在或者传空,就会发起一个新流程,传空会自动生成一个数据ID
dataobject数据内容,key-value形式。key是字段名,value是字段值
subDataarray子表数据
subCodestring子表code
datasarray子表数据
participativeIdstring流程参与者,用于指定流程发起人,V8.8.0

返回内容

返回一个Promise类型的对象,可以直接通过then来处理正确回调,通过catch来处理错误回调

样例

this.$dataHandler.submitData(
"1a04ff66d02bbc01",
"ecebf331-89ed-4135-b6cd-39715e15d222",
{
danxwb: "xxx",
shuz: 12,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
},
[
{
subCode: "1be0ad7b1e",
datas: [
{
aaa: "aaa",
shuz: 22,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
},
{
bbb: "bbb",
shuz: 32,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
}
]
},
{
subCode: "7d4g39fhr5",
datas: [
{
ccc: "ccc",
xuhao: 1,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
},
{
ddd: "ddd",
xuhao: 2,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
}
]
}
],
"18f923a7-5a5e-426d-94ae-a55ad1a4b239"
).then(function(res) {
// 提交成功
}).catch(function(error) {
// 提交失败
});

数据流程批量提交

方法签名

this.$dataHandler.submitListData(array);

支持版本:V8.6.1

输入参数

参数类型必填说明
arrayarray多条数据
formCodestring功能code
objectIdstring数据ID,guid格式,当传入的数据ID存在,就会将这条数据进行流转,如果不存在或者传空,就会发起一个新流程,传空会自动生成一个数据ID
dataobject数据内容,key-value形式。key是字段名,value是字段值
subDataarray子表数据
subCodestring子表code
datasarray子表数据
participativeIdstring流程参与者,用于指定流程发起人,V8.8.0

返回内容

返回一个Promise类型的对象,可以直接通过then来处理正确回调,通过catch来处理错误回调

样例

this.$dataHandler.submitListData(
[
{
formCode: "1a04ff66d02bbc01",
objectId: "ecebf331-89ed-4135-b6cd-39715e15d222",
data: {
danxwb: "xxx",
shuz: 12,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
},
subData: [
{
subCode: "1be0ad7b1e",
datas: [
{
aaa: "aaa",
shuz: 22,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
},
{
bbb: "bbb",
shuz: 32,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
}
]
},
{
subCode: "7d4g39fhr5",
datas: [
{
ccc: "ccc",
xuhao: 1,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
},
{
ddd: "ddd",
xuhao: 2,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
}
]
}
]
},
{
formCode: "1a04ff66d02bbc01",
objectId: "ecebf221-89ed-4135-b6cd-39715e15d222",
data: {
danxwb: "xxx",
shuz: 12,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
},
subData: [
{
subCode: "1be0ad7b1e",
datas: [
{
aaa: "aaa",
shuz: 22,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
},
{
bbb: "bbb",
shuz: 32,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
}
]
},
{
subCode: "7d4g39fhr5",
datas: [
{
ccc: "ccc",
xuhao: 1,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
},
{
ddd: "ddd",
xuhao: 2,
riq: "2024-10-09",
xial: "xxx",
xial_Id: 'xxx',
fux: 'xxx,xxx',
reny: '系统管理员',
bum: '项目部',
shic: 'xx分xx秒',
jilxl: 'xxx/xxx',
fuwb: '<h1>xxx</h1>',
duox: 'test1,test2',
duox_Id: 'bb5a5281-d7af-4303-b81c-633cb46cc215,1ad88d9d-52cb-4622-a292-c370fabac565',
guanl: "xxx",
guanl_Id: "bb5a5281-d7af-4303-b81c-633cb46cc215"
}
]
}
]
}
]
).then(function(res) {
// 提交成功
}).catch(function(error) {
// 提交失败
});

数据删除

方法签名

this.$dataHandler.deleteData(formCode ,ids);

输入参数

参数类型必填说明
formCodestring功能code
idsarray数据ID

返回内容

返回一个Promise类型的对象,可以直接通过then来处理正确回调,通过catch来处理错误回调

样例: (无具体样例)

数据查询

暂未实现

方法签名

this.$dataHandler.queryData(formCode, pagingInfo, searchCondition, sortConditon);

输入参数

(无具体参数说明)

返回内容

返回一个Promise类型的对象,可以直接通过then来处理正确回调,通过catch来处理错误回调

样例

(无具体样例)