當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript Combo.Combo類代碼示例

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

			});

		}
	});
}
開發者ID:rpdg,項目名稱:fy.js,代碼行數:23,代碼來源:metaData.ts

示例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';
	}
開發者ID:rpdg,項目名稱:fy.js,代碼行數:31,代碼來源:index.ts

示例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',
});

開發者ID:rpdg,項目名稱:fy.js,代碼行數:29,代碼來源:index.ts

示例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 :{
開發者ID:rpdg,項目名稱:fy.js,代碼行數:30,代碼來源:createNew.ts

示例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: '選擇地域',
開發者ID:rpdg,項目名稱:fy.js,代碼行數:31,代碼來源:detail.ts

示例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);
	}
開發者ID:rpdg,項目名稱:fy.js,代碼行數:31,代碼來源:preAdd.ts

示例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: '采集工單列表',
	},
開發者ID:rpdg,項目名稱:fy.js,代碼行數:31,代碼來源:index.ts

示例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: '起始集數',
		},
開發者ID:rpdg,項目名稱:fy.js,代碼行數:31,代碼來源:add.ts


注:本文中的ts/ui/Combo.Combo類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。