本文整理汇总了TypeScript中ts/opg.ts.default.api类的典型用法代码示例。如果您正苦于以下问题:TypeScript ts.default.api类的具体用法?TypeScript ts.default.api怎么用?TypeScript ts.default.api使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ts.default.api类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
).then(() => {
//Meta data
opg.api.getCatalog({assetId: assetId}, function (data) {
bindMetaData(data);
initSubChooser(data);
});
//Pics
opg.api.pics({assetId: assetId}, function (data) {
window['loadImages'](data);
});
});
示例2: function
let pop = opg.confirm(form, function () {
let obj = form.fieldsToJson({
password: {
type: 'password'
}
});
if (obj) {
if (obj.password != obj.again_password) {
$('#again_password').iptError('两次输入的密码不一致');
}
else {
delete obj.again_password;
opg.api.changePassword(obj, ()=> {
opg.ok('修改成功');
pop.close();
});
}
}
return true;
}, {
示例3: function
window['doSave'] = function (popWin , table) {
let action,
param = form.fieldsToJson({
name: {
name: '节目类型名称',
type : 'ns',
require: true
}
});
if (!param)
return true;
if (id) {
param.id = id;
action = 'update';
}
else {
action = 'add';
}
return opg.api[action](param, function () {
popWin.close();
table.update();
});
};
示例4: function
).done(function () {
console.log(555);
if (id) {
opg.api.findById({id: opg.request['id']}, function (data) {
/**/
if (data.produceTypes)
data.produceTypes = data.produceTypes.split(',');
if (data.busiCodes)
data.busiCodes = data.busiCodes.split(',');
if (data.source)
data.source = data.source.split(',');
//produceRuleTypes.selectedIndex =
form.jsonToFields(data);
$('#produceRuleTypes').trigger('change.opg');
/*setTimeout(function () {
console.log(111);
form.jsonToFields(data);
} , 200);*/
});
}
});
示例5:
this.popWin = opg.confirm(this.popWinJq, () => {
let param = this.popWinJq.fieldsToJson({
validTime: {
name: '生效时间',
require: true,
type: 'date'
}
});
if (param) {
console.log(param);
param.id = +param.id;
//param.validTime += ':00';
opg.api.modifyTimer(param, () => {
row.validTime = param.validTime ;
if(srcTable){
srcTable.update();
}
this.popWin.close();
});
}
return true;
}, {
示例6: function
).done(()=> {
if (id) {
opg.api.findById({id: id}, function (data) {
form.jsonToFields(data);
});
}
});
示例7: function
opg.confirm(` ${title} ` , function () {
opg.api.start({orderId} , function () {
opg.ok('成功发起' , function () {
tb.update();
});
});
}, {
示例8: function
window['doSave'] = function (popWin, table) {
let param = form.fieldsToJson({
name: {
name: '存储名称',
type: 'ns',
require: true,
},
code: {
name: '存储Code',
type: 'ns',
require: true,
},
path: {
name: '存储地址',
type: 'string',
require: true,
},
});
if (!param)
return true;
if (id) {
param.id = id ;
}
console.log('param', param);
return opg.api.upsert(param, function () {
popWin.close();
table.update();
});
};
示例9: function
onClick : function(){
opg.api.cancelAuditOrder({orderId} , ()=>{
tb.update();
popWin.close();
});
return true;
}
示例10: function
tb.tbody.on('click', '.btn-success', function () {
let btn = $(this), title = btn.data('title'), taskId = btn.data('id');
opg.api.finishCollect({taskId}, () => {
opg.ok('完成采集');
tb.update();
});
});