|
发表于 2024-4-11 09:03:40
|
显示全部楼层
var action = this.Actions.load("x_cms_assemble_control");
var managerList = [];
managerList.push(
{
"permission": "作者",
"permissionObjectType": "人员",
"permissionObjectName": "人名",
"permissionObjectCode": "人名@Office_12345678901@I"
}
);
var attachmentList = this.workContext.getAttachmentList();
var data = {
"identity": "人名@Office_12345678901@I",
"wf_jobId": "",
"wf_workId": "",
"wf_attachmentIds": [attachmentList[0].id],//此处为文件的id组成的数组
"cms_attachmentIds": [],
"docData": this.data,//此处是表单上要推送的数据
"readerList": [],
"authorList": managerList,
"skipPermission": false,
"summary": "",
"title": this.data.blDepartment[0].name +"-"+this.data.systemName,//此处是标题
"documentType": "数据",
"docStatus": "published",
"categoryId": "3485b3fc-a3d2-4a22-b153",//此处是要推送到的内容管理器的标识
"isTop": "",
"stringValue01": "",
"stringValue02": "",
"stringValue03": "",
}
action.DocumentAction.persist_publishContent(data, null, null); |
|