本文整理汇总了TypeScript中ts/ui/Combo.Combo类的典型用法代码示例。如果您正苦于以下问题:TypeScript Combo类的具体用法?TypeScript Combo怎么用?TypeScript Combo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Combo类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: makeInputOnlyCheckmate
function makeInputOnlyCheckmate(btn , txtIpt, valIpt, arr = [], valAttrSrc, popSets) {
Combo.makeClearableInput(txtIpt, valIpt);
let opsCheck = opg('<div class="divPopWrapper"></div>').checkBox({
data: arr,
value: valAttrSrc,
onCreate: function () {
btn.on('click', function () {
opsCheck.selectedData = valIpt.val().split(',');
opg.confirm(opsCheck.jq, function () {
txtIpt.val(opsCheck.getText().join(','));
valIpt.val(opsCheck.getValue().join(','));
this.close();
}, popSets);
});
}
});
}
示例2:
sourceTypes: 'system/collection/collectSourceEnum',
audit: 'audit/findPage?stepCode=collect_audit',
checkAuditPermission: 'audit/checkAuditPermission/${orderId}', //检查审核权限
'pass!POST': 'audit/pass',
'cancelAuditOrder!!': 'audit/cancelAuditOrder/${orderId}', //取消审核
'delete!DELETE!': 'transcode/business/delete/${id}',
});
let panel: Panel = opg.wrapPanel('#tbSearch', {
title: '二审工单查询',
btnSearchText: '<i class="ico-find"></i> 查询'
});
Combo.makeClearableInput($('#createTimeBegin').datetimepicker({
timepicker: false,
closeOnDateSelect: true,
format: 'Y-m-d'
}), $({}));
Combo.makeClearableInput($('#createTimeEnd').datetimepicker({
timepicker: false,
closeOnDateSelect: true,
format: 'Y-m-d'
}), $({}));
panel.btnSearch.click(function () {
let param = $('#tbSearch').fieldsToJson({});
if (param.createTimeBegin && param.createTimeBegin.indexOf(' ') < 0) {
param.createTimeBegin += ' 00:00:00';
}
示例3:
if (param.onlineTimeBegin) {
param.onlineTimeBegin += ':00';
}
if (param.onlineTimeEnd) {
param.onlineTimeEnd += ':00';
}
//debugger;
param.pageNo = 1;
//console.log(panel.jq, param);
tb.update(param);
});
Combo.makeClearableInput($('#onlineTimeBegin').datetimepicker({
//timepicker: false,
//closeOnDateSelect: true,
//format: 'Y-m-d'
}), $({}));
Combo.makeClearableInput($('#onlineTimeEnd').datetimepicker({
//timepicker: false,
//closeOnDateSelect: true,
//format: 'Y-m-d'
}), $({}));
opg('#contentType').listBox({
api: opg.api.contentType,
value: 'name',
});
示例4: function
console.warn(row);
if (row) {
copyrightProgramName.val(row.name);
copyrightProgramId.val(row.id);
}
return !row;
}, {
title: '关联版权',
btnMax: true,
width: 800,
height: 600,
});
});
Combo.makeClearableInput(copyrightProgramName, copyrightProgramId);
$('#programLength').decimalMask('99999999');
//
window['doSave'] = function (pop: Popup, tb: Table , parentWin:Window) {
let param = $('#tbForm').fieldsToJson({
managerName :{
require :true ,
name : '内容名称' ,
},
showName :{
require :true ,
name : '展示名称' ,
},
contentType :{
示例5: function
//日期选择
const dataPickerOption = {
timepicker: false,
closeOnDateSelect: true,
format: 'Y-m-d',
};
$('#copyrightBeginDate').datetimepicker(dataPickerOption);
$('#copyrightEndDate').datetimepicker(dataPickerOption);
$('#shareMoneyBeginDate').datetimepicker(dataPickerOption);
$('#shareMoneyEndDate').datetimepicker(dataPickerOption);
//授权地域
let authorizedRegionName = $('#authorizedRegionCNDesc');
let authorizedRegionId = $('#authorizedRegionId');
Combo.makeClearableInput(authorizedRegionName, authorizedRegionId);
$('#btnAuthorizedRegion').click(function () {
top.opg.confirm(`<iframe src="/page/copyright/contract/module/regions.html" />`, function (i, ifr) {
let rows = ifr.getChecked();
if (rows) {
let names = [], ids = [];
rows.map(function (row, i) {
names[i] = row.name;
ids[i] = row.id;
});
authorizedRegionName.val(names.join(','));
authorizedRegionId.val(ids.join(','));
}
return !rows;
}, {
title: '选择地域',
示例6: function
import opg from 'ts/opg.ts';
import Panel from "ts/ui/Panel.ts";
import Table from "ts/ui/Table.ts";
import {Combo} from 'ts/ui/Combo' ;
import PopUp from "ts/ui/Popup";
opg.api({
});
Combo.makeClearableInput($('#contractDate').datetimepicker({
timepicker: false,
closeOnDateSelect: true,
format: 'Y-m-d'
}), $({}));
window['doSave'] = function (pop:PopUp , nextStep :Function , tb :Table) {
let param = $('#tbForm').fieldsToJson({
contractNumber: {
name: '合同号',
require: true ,
},
});
if(param){
let id = '123333';
pop.close();
nextStep(id , tb);
}
示例7: opg
if (param.showStart && param.showStart.indexOf(' ') < 0) {
param.showStart += ' 00:00:00';
}
if (param.showEnd && param.showEnd.indexOf(' ') < 0) {
param.showEnd += ' 23:59:59';
}
//debugger;
param.pageNo = 1;
//console.log(panel.jq, param);
tb.update(param);
});
Combo.makeClearableInput($('#showStart').datetimepicker({
timepicker: false,
closeOnDateSelect: true,
format: 'Y-m-d'
}), $({}));
Combo.makeClearableInput($('#showEnd').datetimepicker({
timepicker: false,
closeOnDateSelect: true,
format: 'Y-m-d'
}), $({}));
//create a data table
let tb: Table = opg('#tb').table({
api: opg.api.collect,
titleBar: {
title: '采集工单列表',
},
示例8: function
top.opg.confirm(`<iframe src="/page/produce/launch/copyrightMedium.html" />`, function (i, ifr) {
let row = ifr.getChecked();
if (row) {
programMediaFileName.val(row.name);
programMediaFileId.val(row.id);
}
return !row;
}, {
title: '选择版权介质',
btnMax: true,
width: 990,
height: 600,
});
});
Combo.makeClearableInput(programMediaFileName, programMediaFileId);
//
window['doSave'] = function (pop: Popup, tb: Table, parentWin: Window) {
let param = $('#tbForm').fieldsToJson({
onlineTime: {
require: true,
type: 'date',
name: '上线时间',
},
episodeStart: {
require: true,
type: 'number',
name: '起始集数',
},