• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript Combo.Combo类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript Popup.close函数代码示例发布时间:2022-05-25
下一篇:
TypeScript dispatcher.Dispatcher类代码示例发布时间:2022-05-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap