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


TypeScript ts.default.wrapPanel方法代碼示例

本文整理匯總了TypeScript中ts/opg.ts.default.wrapPanel方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript ts.default.wrapPanel方法的具體用法?TypeScript ts.default.wrapPanel怎麽用?TypeScript ts.default.wrapPanel使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ts/opg.ts.default的用法示例。


在下文中一共展示了ts.default.wrapPanel方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1:

console.log('currentUser', currentUser);

opg.api({
	contentType: 'content/contentType/findAll',
	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({});
開發者ID:rpdg,項目名稱:fy.js,代碼行數:31,代碼來源:index.ts

示例2:

import {Combo} from 'ts/ui/Combo' ;
import {store, Cache} from 'ts/util/store';

opg.api({
	contentType: 'content/contentType/findAll',
	sourceTypes: 'system/collection/collectSourceEnum',
	tasks: 'produce/task/findPage',
	'getOrders!!': 'produce/task/getOrders/${taskId}',
	business: 'transcode/business/findAll',
	taskStatus: 'produce/task/getTaskStatus',
});

const moduleName = '生產任務';

let panel = opg.wrapPanel('#tbSearch', {
	title: `${moduleName}查詢`,
	btnSearchText: '<i class="ico-find"></i> 查詢',
});

panel.btnSearch.click(function () {
	let param = $('#tbSearch').fieldsToJson();

	if (param.onlineTimeBegin) {
		param.onlineTimeBegin += ':00';
	}
	if (param.onlineTimeEnd) {
		param.onlineTimeEnd += ':00';
	}

	//debugger;
	param.pageNo = 1;
	//console.log(panel.jq, param);
開發者ID:rpdg,項目名稱:fy.js,代碼行數:32,代碼來源:index.ts

示例3: function

opg.api({
	org: 'system/organization/orgsubstree/0',
	'delete!delete!': 'system/organization/delete/${id}'
});


opg.api.delete.set('codes' , {
	'system_amsorganization_status_stopped' : '組織狀態已被停用',
	'system_amsorganization_suborg_existed' : '該組織存在下級組織',
});

const infoPage = '/page/admin/org/info.html';


let panel = opg.wrapPanel('#tbSearch', {
	title: '組織信息',
	btnSearchText: '<i class="ico-edit"></i> 修改'
});

panel.btnSearch.click(editRole);

//console.log(panel.jq);
let roleNameSp = $('#roleName') , roleCodeSp = $('#roleCode');
let btnAdd = $('#btnAdd');

btnAdd.click(function () {
	//let pId = btnAdd.data('pid');
	//noinspection TypeScriptUnresolvedVariable
	let pop = top.opg.confirm(`<iframe src="${infoPage}?parentId=${currentTableParentId}" />`, function (i, ifr, v) {
		//debugger;
		//console.log(i , ifr , v);
		return ifr.doSave(pop, tree);
開發者ID:rpdg,項目名稱:fy.js,代碼行數:32,代碼來源:index.ts

示例4: function



opg.api({
	'mainCategory!!': 'copyright/programType/findProgramtype',
	'subCategory!!': 'copyright/programType/findProgramtype/${parentId}',
	programs: 'copyright/program/findPage',
});



//wrap as search panel
opg.wrapPanel('#tbSearch', {
	title: '節目查詢',
	btnSearchText: '<i class="ico-find"></i> 查詢',
	btnSearchClick : function () {
		let param = $('#tbSearch').fieldsToJson();
		param.pageNo = 1;
		//console.log(panel.jq, param);
		tb.update(param);
	}
});



let selMainCategory = opg('#mainCategory').listBox({
	api: opg.api.mainCategory,
	text: 'programType',
	onSelect: () => {
		let parentId = selMainCategory.getValue();
		if (!parentId) parentId = -1;
		selSubCatagory.update({parentId});
	}
開發者ID:rpdg,項目名稱:fy.js,代碼行數:30,代碼來源:programs.ts

示例5: function

	contentList: 'produce/asset/findPage',
	business: 'transcode/business/findAll',
	'delete!DELETE!': 'produce/asset/delete/${id}'
});

let cache = Cache.getInstance();

let panel: Panel = opg.wrapPanel('#tbSearch', {
	title: '內容檢索',
	btnSearchText: '<i class="ico-find"></i> 查詢' ,
	btnSearchClick : function () {
		let param = $('#tbSearch').fieldsToJson({});

		if (param.createTimeBegin && param.createTimeBegin.indexOf(' ') < 0) {
			param.createTimeBegin += ' 00:00:00';
		}
		if (param.createTimeEnd && param.createTimeEnd.indexOf(' ') < 0) {
			param.createTimeEnd += ' 23:59:59';
		}
		param.pageNo = 1;

		//console.log(panel.jq, param);
		tb.update(param);
	}
});


Combo.makeClearableInput($('#createTimeBegin').datetimepicker({
	timepicker: false,
	closeOnDateSelect: true,
	format: 'Y-m-d'
}), $({}));
開發者ID:rpdg,項目名稱:fy.js,代碼行數:32,代碼來源:index.ts

示例6: function

import Panel from "ts/ui/Panel.ts";
import Table from "ts/ui/Table.ts";
import {Combo} from 'ts/ui/Combo' ;
import {Cache} from 'ts/util/store'

opg.api({
	authRegion: 'copyright/authRegion/findPage?pageSize=100000' , //地域
	authRegion2: 'copyright/authRegion/findPage?pageSize=100000' , //二級地域
});


let panel: Panel = opg.wrapPanel('#tbSearch', {
	title: '地域查詢',
	btnSearchText: '<i class="ico-find"></i> 查詢',
	btnSearchClick: function () {
		let param = $('#tbSearch').fieldsToJson();
		param.pageNo = 1;
		tb.update(param);
	}
});


let tb: Table = opg('#tbResult').table({
	api: opg.api.authRegion,
	titleBar: {
		title: '地域列表',
	},
	columns: [
		{
			text: ' ',
			src: 'id', cmd: 'checkAll'
開發者ID:rpdg,項目名稱:fy.js,代碼行數:31,代碼來源:regions.ts


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