本文整理汇总了TypeScript中ts/opg.api.submitCollect方法的典型用法代码示例。如果您正苦于以下问题:TypeScript api.submitCollect方法的具体用法?TypeScript api.submitCollect怎么用?TypeScript api.submitCollect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ts/opg.api
的用法示例。
在下文中一共展示了api.submitCollect方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
window['doSave'] = function (pop: Popup, tb: Table) {
iptVideoFile.val(cachedMediaPath);
let param = $('#tbProfile').fieldsToJson({
mediaPath: {
name: '视频文件路径',
require: true,
},
entryTime: {
name: '入点时间',
type: 'time',
//require: true,
},
outTime: {
name: '出点时间',
type: 'time',
//require: true,
},
templateId: {
name: '模板',
require: true,
type: 'int',
},
suggestion: {
name: '采集意见',
type: 'string',
maxLength: 500,
}
});
if (param) {
//param.taskId = taskId;
param.orderId = orderId;
/*if (param.audioTrack2) {
param.audioTrack = param.audioTrack2;
}
if (param.subtitleTrack2) {
param.subtitleTrack = param.subtitleTrack2;
}
delete param.audioTrack2;
delete param.subtitleTrack2;*/
param.secondAudit = (param.secondAudit == '1');
param.thirdAudit = (param.thirdAudit == '1');
param.catalog = (param.catalog == '1');
//param.templateId = +param.templateId ;
}
console.log(param);
if (param) {
param.duration = duration;
param.frames = videoFrames;
opg.api.submitCollect(param, (data) => {
pop.close();
tb.update();
});
}
return true;
};