本文整理汇总了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({});
示例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);
示例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);
示例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});
}
示例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'
}), $({}));
示例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'