提交 f4f895a2 编写于 作者: ibizdev's avatar ibizdev

tony001 发布系统代码 [后台服务,演示应用]

上级 3a35e491
......@@ -6,4 +6,5 @@ export { PanelFieldModel } from './panel-field';
export { PanelContainerModel } from './panel-container';
export { PanelControlModel } from './panel-control';
export { PanelUserControlModel } from './panel-user-control';
export { PanelButtonModel } from './panel-button';
\ No newline at end of file
export { PanelButtonModel } from './panel-button';
export { PanelCtrlPosModel } from './panel-ctrlpos';
\ No newline at end of file
......@@ -11,18 +11,9 @@ export class PanelButtonModel extends PanelDetailModel {
constructor(opts: any = {}) {
super(opts);
this.$disabled = opts.disabled;
this.uiaction = opts.uiaction;
}
/**
* 是否禁用
*
* @type {boolean}
* @memberof PanelButtonModel
*/
private $disabled:boolean = false;
/**
* 按钮对应的界面行为
*
......@@ -31,26 +22,7 @@ export class PanelButtonModel extends PanelDetailModel {
*/
public uiaction:any;
/**
* 是否启用
*
* @type {boolean}
* @memberof PanelButtonModel
*/
public get disabled(): boolean {
return this.$disabled;
}
/**
* 设置是否启用
*
* @memberof PanelButtonModel
*/
public set disabled(val: boolean) {
if(this.isPower) {
this.$disabled = val;
}
}
}
\ No newline at end of file
......@@ -9,8 +9,22 @@ import { PanelDetailModel } from './panel-detail';
*/
export class PanelContainerModel extends PanelDetailModel {
/**
* 子项
*
* @type {string[]}
* @memberof PanelContainerModel
*/
public details:string[] = [];
constructor(opts: any = {}) {
/**
* Creates an instance of PanelContainerModel.
* @param {*} [opts={}]
* @memberof PanelContainerModel
*/
public constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { PanelDetailModel } from "./panel-detail";
/**
* 部件占位模型
*
* @export
* @class PanelCtrlPosModel
* @extends {PanelDetailModel}
*/
export class PanelCtrlPosModel extends PanelDetailModel {
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -6,14 +6,6 @@
*/
export class PanelDetailModel {
/**
* 是否有权限
*
* @type {boolean}
* @memberof PanelDetailModel
*/
public isPower: boolean = true;
/**
* 成员标题
*
......@@ -52,24 +44,8 @@ export class PanelDetailModel {
* @type {boolean}
* @memberof PanelDetailModel
*/
public $visible: boolean = true;
public visible: boolean = true;
/**
* 成员是否显示(旧)
*
* @type {boolean}
* @memberof PanelDetailModel
*/
public oldVisible: boolean = true;
/**
* 成员是否显示标题
*
* @type {boolean}
* @memberof PanelDetailModel
*/
public isShowCaption: boolean = true;
/**
* Creates an instance of PanelDetailModel.
......@@ -83,51 +59,7 @@ export class PanelDetailModel {
this.itemType = !Object.is(opts.itemType, '') ? opts.itemType : '';
this.panel = opts.panel ? opts.panel : {};
this.name = !Object.is(opts.name, '') ? opts.name : '';
this.$visible = opts.visible ? true : false;
this.oldVisible = opts.visible ? true : false;
this.isShowCaption = opts.isShowCaption ? true : false;
this.visible = opts.visible ? true : false;
}
/**
* 设置成员是否隐藏
*
* @memberof PanelDetailModel
*/
public set visible(val: boolean) {
if(this.isPower) {
this.$visible = val;
}
}
/**
* 获取成员是否隐藏
*
* @memberof PanelDetailModel
*/
public get visible() {
return this.$visible;
}
/**
* 设置显示与隐藏
*
* @param {boolean} state
* @memberof PanelDetailModel
*/
public setVisible(state: boolean): void {
if(this.isPower) {
this.visible = state;
}
}
/**
* 设置显示标题栏
*
* @param {boolean} state
* @memberof PanelDetailModel
*/
public setShowCaption(state: boolean): void {
this.isShowCaption = state;
}
}
\ No newline at end of file
......@@ -10,6 +10,13 @@ import { PanelTabPanelModel } from './panel-tab-panel';
*/
export class PanelTabPageModel extends PanelDetailModel {
/**
* 子项
*
* @type {string[]}
* @memberof PanelTabPageModel
*/
public details: string[] = [];
/**
* Creates an instance of PanelTabPageModel.
......
......@@ -39,7 +39,7 @@ import NavDataService from '@/service/app/navdata-service';
import { Subject,Subscription } from 'rxjs';
import { PanelContainerModel, PanelRawitemModel, PanelFieldModel, PanelControlModel, PanelButtonModel, PanelUserControlModel, PanelTabPanelModel, PanelTabPageModel} from '@/model/panel-detail';
import { PanelContainerModel, PanelRawitemModel, PanelFieldModel, PanelControlModel, PanelButtonModel, PanelUserControlModel, PanelTabPanelModel, PanelTabPageModel, PanelCtrlPosModel} from '@/model/panel-detail';
import { appConfig } from '@/config/appConfig';
......@@ -209,15 +209,19 @@ export default class IndexBase extends Vue {
* @memberof IndexBase
*/
public layoutModelDetails:any = {
container_scroll_main1:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_scroll_main1', panel: this,details:['nav_tabs1','nav_pos1']}),
container_scroll_left1:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_scroll_left1', panel: this,details:['appmenu1']}),
nav_tabs1:new PanelCtrlPosModel({ caption: '标签页导航栏', itemType: 'CTRLPOS',visible: true, disabled: false, name: 'nav_tabs1', panel: this }),
nav_pos1:new PanelCtrlPosModel({ caption: '导航区占位', itemType: 'CTRLPOS',visible: true, disabled: false, name: 'nav_pos1', panel: this }),
container_scroll_main1:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_scroll_main1', panel: this, details:['nav_tabs1','nav_pos1']}),
appmenu1:new PanelCtrlPosModel({ caption: '首页菜单', itemType: 'CTRLPOS',visible: true, disabled: false, name: 'appmenu1', panel: this }),
container_scroll_left1:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_scroll_left1', panel: this, details:['appmenu1']}),
app_apptitle:new PanelFieldModel({ caption: '应用标题', itemType: 'FIELD',visible: true, disabled: false, name: 'app_apptitle', panel: this }),
container1:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container1', panel: this,details:['app_apptitle']}),
container2:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container2', panel: this,details:[]}),
container3:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container3', panel: this,details:['auth_userinfo1']}),
container_grid1:new PanelContainerModel({ caption: '栅格容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_grid1', panel: this,details:['container1','container2','container3']}),
container_scroll_header1:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_scroll_header1', panel: this,details:['container_grid1']}),
container_scroll1:new PanelContainerModel({ caption: '滚动条容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_scroll1', panel: this,details:['container_scroll_main1','container_scroll_left1','container_scroll_header1']})
container1:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container1', panel: this, details:['app_apptitle']}),
container2:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container2', panel: this, details:[]}),
auth_userinfo1:new PanelCtrlPosModel({ caption: '用户信息', itemType: 'CTRLPOS',visible: true, disabled: false, name: 'auth_userinfo1', panel: this }),
container3:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container3', panel: this, details:['auth_userinfo1']}),
container_grid1:new PanelContainerModel({ caption: '栅格容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_grid1', panel: this, details:['container1','container2','container3']}),
container_scroll_header1:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_scroll_header1', panel: this, details:['container_grid1']}),
container_scroll1:new PanelContainerModel({ caption: '滚动条容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_scroll1', panel: this, details:['container_scroll_main1','container_scroll_left1','container_scroll_header1']})
};
......
......@@ -590,7 +590,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -626,7 +626,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -621,7 +621,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -657,7 +657,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -906,7 +906,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(pageReset){
......@@ -1001,7 +1001,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.removeAction') as string) });
return;
}
let _datas:any[] = [];
......@@ -1107,7 +1107,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public addBatch(arg: any = {}): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(!arg){
......@@ -1987,7 +1987,7 @@ export default class MainBase extends Vue implements ControlInterface {
try {
if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.createAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
......@@ -1995,7 +1995,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizorderdetail){
......@@ -2062,7 +2062,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public newRow(args: any[], params?: any, $event?: any, xData?: any): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) });
return;
}
let _this = this;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册