本文整理匯總了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();
});
});