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

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

上级 3eb190cc
......@@ -46,7 +46,7 @@ export default class AppFieldImageDynamic extends Vue {
*
* @memberof AppFieldImageDynamic
*/
@Watch('value')
@Watch('value',{immediate: true})
onValueChange(newVal: any, oldVal: any) {
this.handleDynaImg();
}
......
<template>
<div :class="curClassName" :style="curStyle">
<el-carousel class="carsouel-container" height="150px" indicator-position="outside" :autoplay="false"
:interval="swipeConfig.interval">
<el-carousel class="carsouel-container" height="150px" indicator-position="outside" :autoplay="swipeConfig.isAuto"
:interval="swipeConfig.timeSpan">
<el-carousel-item v-for="item in swipeData" :key="item.key">
<div class="carousel-img-item">
<img class="app-carouse-img" v-if="item.type === 'img'" :src="item.value" @error="imgError" />
......
.ibizbookcustom-view {
display: block;
}
.ibizbookcustom-view{
position: relative;
}
......@@ -803,15 +803,17 @@ export default class IBIZBOOKFormLoadCustomViewBase extends Vue {
const _this: any = this;
_this.initLayout().then((result: any) => {
_this.isLayoutLoadding = false;
this.appUIService.executeUILogic('CustomViewFormLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZBOOK').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
});
window.uiServiceRegister.getService('IBIZBOOK').then((service: any) => {
service.executeUILogic('CustomViewFormLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZBOOK').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
});
})
})
}
......
......@@ -845,15 +845,17 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
const _this: any = this;
_this.initLayout().then((result: any) => {
_this.isLayoutLoadding = false;
this.appUIService.executeUILogic('CustomViewGridLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZBOOK').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
});
window.uiServiceRegister.getService('IBIZBOOK').then((service: any) => {
service.executeUILogic('CustomViewGridLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZBOOK').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
});
})
})
}
......
......@@ -803,15 +803,17 @@ export default class IBIZBOOKTestLogicCustomViewBase extends Vue {
const _this: any = this;
_this.initLayout().then((result: any) => {
_this.isLayoutLoadding = false;
this.appUIService.executeUILogic('FormLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZBOOK').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
});
window.uiServiceRegister.getService('IBIZBOOK').then((service: any) => {
service.executeUILogic('FormLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZBOOK').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
});
})
})
}
......@@ -849,41 +851,43 @@ export default class IBIZBOOKTestLogicCustomViewBase extends Vue {
* @memberof IBIZBOOKTestLogicCustomViewBase
*/
public afterDestroyed(){
this.appUIService.executeUILogic('FormLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZBOOK').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
if (this.viewDefaultUsage) {
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
window.uiServiceRegister.getService('IBIZBOOK').then((service: any) => {
service.executeUILogic('FormLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZBOOK').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
if (this.viewDefaultUsage) {
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
if(Object.is(this.navModel,"tab")){
this.navDataService.removeNavDataByTag(this.viewtag);
}
}
if (this.serviceStateEvent) {
this.serviceStateEvent.unsubscribe();
}
// 销毁计数器定时器
if(this.counterServiceArray && this.counterServiceArray.length >0){
this.counterServiceArray.forEach((item:any) =>{
if(item.destroyCounter && item.destroyCounter instanceof Function){
item.destroyCounter();
}
})
}
if(Object.is(this.navModel,"tab")){
this.navDataService.removeNavDataByTag(this.viewtag);
if(this.portletStateEvent){
this.portletStateEvent.unsubscribe();
}
}
if (this.serviceStateEvent) {
this.serviceStateEvent.unsubscribe();
}
// 销毁计数器定时器
if(this.counterServiceArray && this.counterServiceArray.length >0){
this.counterServiceArray.forEach((item:any) =>{
if(item.destroyCounter && item.destroyCounter instanceof Function){
item.destroyCounter();
}
})
}
if(this.portletStateEvent){
this.portletStateEvent.unsubscribe();
}
if (this.formDruipartEvent) {
this.formDruipartEvent.unsubscribe();
}
this.viewState.complete();
if (this.formDruipartEvent) {
this.formDruipartEvent.unsubscribe();
}
this.viewState.complete();
});
});
}
......
......@@ -837,15 +837,17 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
const _this: any = this;
_this.initLayout().then((result: any) => {
_this.isLayoutLoadding = false;
this.appUIService.executeUILogic('CustomViewFormLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZCustom').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
});
window.uiServiceRegister.getService('IBIZCustom').then((service: any) => {
service.executeUILogic('CustomViewFormLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZCustom').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
});
})
})
}
......
......@@ -931,15 +931,17 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
const _this: any = this;
_this.initLayout().then((result: any) => {
_this.isLayoutLoadding = false;
this.appUIService.executeUILogic('CustomViewGridLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZCustom').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
});
window.uiServiceRegister.getService('IBIZCustom').then((service: any) => {
service.executeUILogic('CustomViewGridLoad', [], this.context, this.viewparams, {}, {}, this, 'IBIZCustom').then((result: any) => {
if (result && result.hasOwnProperty('srfret') && !result.srfret) {
return;
}
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
});
})
})
}
......
.ibizorder-calendar-exp-view {
display: block;
.ibizorder-calendar-exp-view{
position: relative;
}
.ibizorder-calendar-exp-view{
display: block;
}
......@@ -3,11 +3,9 @@ import { Component } from 'vue-property-decorator';
import IBIZOrderCalendarExpViewBase from './ibizorder-calendar-exp-view-base.vue';
import view_calendarexpbar from '@widgets/ibizorder/calendar-exp-viewcalendarexpbar-calendarexpbar/calendar-exp-viewcalendarexpbar-calendarexpbar.vue';
import view_searchbar from '@widgets/ibizorder/-searchbar/-searchbar.vue';
@Component({
components: {
view_calendarexpbar,
view_searchbar,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
......
.ibizorder-data-view-exp-view {
display: block;
.ibizorder-data-view-exp-view{
position: relative;
}
.ibizorder-data-view-exp-view{
display: block;
}
......@@ -3,11 +3,9 @@ import { Component } from 'vue-property-decorator';
import IBIZOrderDataViewExpViewBase from './ibizorder-data-view-exp-view-base.vue';
import view_dataviewexpbar from '@widgets/ibizorder/data-view-exp-viewdataviewexpbar-dataviewexpbar/data-view-exp-viewdataviewexpbar-dataviewexpbar.vue';
import view_searchbar from '@widgets/ibizorder/-searchbar/-searchbar.vue';
@Component({
components: {
view_dataviewexpbar,
view_searchbar,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
......
.ibizorder-grid-exp-view {
display: block;
.ibizorder-grid-exp-view{
position: relative;
}
.ibizorder-grid-exp-view{
display: block;
}
......@@ -3,11 +3,9 @@ import { Component } from 'vue-property-decorator';
import IBIZOrderGridExpViewBase from './ibizorder-grid-exp-view-base.vue';
import view_gridexpbar from '@widgets/ibizorder/grid-exp-viewgridexpbar-gridexpbar/grid-exp-viewgridexpbar-gridexpbar.vue';
import view_searchbar from '@widgets/ibizorder/-searchbar/-searchbar.vue';
@Component({
components: {
view_gridexpbar,
view_searchbar,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
......
.ibizorder-list-exp-view {
display: block;
.ibizorder-list-exp-view{
position: relative;
}
.ibizorder-list-exp-view{
display: block;
}
......@@ -3,11 +3,9 @@ import { Component } from 'vue-property-decorator';
import IBIZOrderListExpViewBase from './ibizorder-list-exp-view-base.vue';
import view_listexpbar from '@widgets/ibizorder/list-exp-viewlistexpbar-listexpbar/list-exp-viewlistexpbar-listexpbar.vue';
import view_searchbar from '@widgets/ibizorder/-searchbar/-searchbar.vue';
@Component({
components: {
view_listexpbar,
view_searchbar,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
......
.ibizorder-tree-exp-view {
display: block;
}
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.ibizorder-tree-exp-view{
position: relative;
height: 100%;
}
......@@ -3,11 +3,9 @@ import { Component } from 'vue-property-decorator';
import IBIZOrderTreeExpViewBase from './ibizorder-tree-exp-view-base.vue';
import view_treeexpbar from '@widgets/ibizorder/tree-exp-viewtreeexpbar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar.vue';
import view_searchbar from '@widgets/ibizorder/-searchbar/-searchbar.vue';
@Component({
components: {
view_treeexpbar,
view_searchbar,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
......
.ibizsample0021-grid-view {
display: block;
}
.ibizsample0021-grid-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
.ibizsample0021-wfdyna-action-view {
display: block;
}
.ibizsample0021-wfdyna-action-view{
position: relative;
}
.ibizuniproduct-sgrid-view {
display: block;
}
.ibizuniproduct-sgrid-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
......@@ -4,12 +4,10 @@ import IBIZUNIProductSGridViewBase from './ibizuniproduct-sgrid-view-base.vue';
import view_searchform from '@widgets/ibizuniproduct/default-searchform/default-searchform.vue';
import view_grid from '@widgets/ibizuniproduct/main-grid/main-grid.vue';
import view_searchbar from '@widgets/ibizuniproduct/-searchbar/-searchbar.vue';
@Component({
components: {
view_searchform,
view_grid,
view_searchbar,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
......
......@@ -187,10 +187,10 @@ export const PageComponents = {
Vue.component('ibizsoftware-suit-grid-view9', () => import('@pages/sample/ibizsoftware-suit-grid-view9/ibizsoftware-suit-grid-view9.vue'));
Vue.component('ibizbookusr10-grid-view', () => import('@pages/sample/ibizbookusr10-grid-view/ibizbookusr10-grid-view.vue'));
Vue.component('ibizbookoption-view', () => import('@pages/sample/ibizbookoption-view/ibizbookoption-view.vue'));
Vue.component('ibizuniproduct-edit-view', () => import('@pages/sample/ibizuniproduct-edit-view/ibizuniproduct-edit-view.vue'));
Vue.component('ibizuniproduct-redirect-view', () => import('@pages/sample/ibizuniproduct-redirect-view/ibizuniproduct-redirect-view.vue'));
Vue.component('ibizstorage-edit-view', () => import('@pages/sample/ibizstorage-edit-view/ibizstorage-edit-view.vue'));
Vue.component('ibizsoftware-suit-edit-view', () => import('@pages/sample/ibizsoftware-suit-edit-view/ibizsoftware-suit-edit-view.vue'));
Vue.component('ibizuniproduct-edit-view', () => import('@pages/sample/ibizuniproduct-edit-view/ibizuniproduct-edit-view.vue'));
Vue.component('ibizuniproduct-index-pickup-view', () => import('@pages/sample/ibizuniproduct-index-pickup-view/ibizuniproduct-index-pickup-view.vue'));
Vue.component('ibizhardware-edit-view', () => import('@pages/sample/ibizhardware-edit-view/ibizhardware-edit-view.vue'));
Vue.component('ibizsample0021-wfdyna-edit-view', () => import('@pages/sample/ibizsample0021-wfdyna-edit-view/ibizsample0021-wfdyna-edit-view.vue'));
......
......@@ -2860,46 +2860,46 @@ const router = new Router({
component: () => import('@pages/sample/ibizbookoption-view/ibizbookoption-view.vue'),
},
{
path: 'ibizuniproducts/:ibizuniproduct?/editview/:editview?',
path: 'ibizstorages/:ibizstorage?/editview/:editview?',
meta: {
caption: 'entities.ibizuniproduct.views.editview.caption',
caption: 'entities.ibizstorage.views.editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizuniproducts', parameterName: 'ibizuniproduct' },
{ pathName: 'ibizstorages', parameterName: 'ibizstorage' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizuniproduct-edit-view/ibizuniproduct-edit-view.vue'),
component: () => import('@pages/sample/ibizstorage-edit-view/ibizstorage-edit-view.vue'),
},
{
path: 'ibizstorages/:ibizstorage?/editview/:editview?',
path: 'ibizsoftwaresuits/:ibizsoftwaresuit?/editview/:editview?',
meta: {
caption: 'entities.ibizstorage.views.editview.caption',
caption: 'entities.ibizsoftwaresuit.views.editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizstorages', parameterName: 'ibizstorage' },
{ pathName: 'ibizsoftwaresuits', parameterName: 'ibizsoftwaresuit' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizstorage-edit-view/ibizstorage-edit-view.vue'),
component: () => import('@pages/sample/ibizsoftware-suit-edit-view/ibizsoftware-suit-edit-view.vue'),
},
{
path: 'ibizsoftwaresuits/:ibizsoftwaresuit?/editview/:editview?',
path: 'ibizuniproducts/:ibizuniproduct?/editview/:editview?',
meta: {
caption: 'entities.ibizsoftwaresuit.views.editview.caption',
caption: 'entities.ibizuniproduct.views.editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizsoftwaresuits', parameterName: 'ibizsoftwaresuit' },
{ pathName: 'ibizuniproducts', parameterName: 'ibizuniproduct' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizsoftware-suit-edit-view/ibizsoftware-suit-edit-view.vue'),
component: () => import('@pages/sample/ibizuniproduct-edit-view/ibizuniproduct-edit-view.vue'),
},
{
path: 'ibizuniproducts/:ibizuniproduct?/indexpickupview/:indexpickupview?',
......
......@@ -10,10 +10,10 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'0f3e6e5a5ba4b40182153ee4f93f3f7e',
'79abf62d7cac6f35c896f412b124956f',
'a919926d6265ab194b54cd5b8f658eec',
'88ca61cdf39cd0f97cf3863e9a6974b3',
'0f3e6e5a5ba4b40182153ee4f93f3f7e',
'2358ff370509a1b833cb5023f0ec54fb',
'ae320ac92ef292866895940a2f61be48',
],
......
......@@ -234,36 +234,46 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
public appUIService:UIService = new UIService();
/**
* 视图布局是否加载
* 视图布局顶级成员名称
*
* @public
* @memberof PanelBase
*/
public isLayoutLoadding: boolean = false;
public rootLayoutDetailNames: string[] = [ ];
/**
* 视图布局数据
* 视图布局面板项模型对象
*
* @public
* @memberof PanelBase
*/
public layoutData:any = {};
public layoutItems:any = {
}
/**
* 视图布局面板模型对象
* 布局面板是否加载
*
* @public
* @memberof PanelBase
*/
public layoutModelDetails:any = {};
public isLayoutLoadding: boolean = false;
/**
* 视图布局顶级成员名称
* 布局面板数据
*
* @public
* @memberof PanelBase
*/
public rootLayoutDetailNames: string[] = [ ];
public layoutData:any = {};
/**
* 布局面板模型对象
*
* @public
* @memberof PanelBase
*/
public layoutModelDetails:any = {};
/**
* 初始化布局
......@@ -329,13 +339,19 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
}
/**
* 视图布局面板项模型对象
* 计算面板按钮权限状态
*
* @public
* @memberof PanelBase
*/
public layoutItems:any = {
};
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 监听数据对象
......@@ -453,20 +469,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
this.panelEditItemChange(name, value);
}
/**
* 计算按钮权限状态
*
* @public
* @memberof PanelBase
*/
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 面板编辑项值变化后续操作
*
......@@ -488,6 +490,7 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
}
}
/**
* 面板逻辑
*
......@@ -502,27 +505,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
}
}
/**
* 处理按钮点击
*
* @public
* @memberof PanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
}
......
......@@ -268,36 +268,50 @@ export default class Auto1Base extends Vue implements ControlInterface {
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
* 视图布局顶级成员名称
*
* @public
* @memberof Item1layoutpanelBase
*/
public isLayoutLoadding: boolean = false;
public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 视图布局数据
* 视图布局面板项模型对象
*
* @public
* @memberof Item1layoutpanelBase
*/
public layoutData:any = {};
public layoutItems:any = {
field1:{ name: 'field1', type: 'ITEMLAYOUT', caption: '图书名', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'title', wrapMode:'', vAlign:'', hAlign:'', },
field2:{ name: 'field2', type: 'ITEMLAYOUT', caption: '借出日期', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'start', wrapMode:'', vAlign:'', hAlign:'', },
field3:{ name: 'field3', type: 'ITEMLAYOUT', caption: '归还日期', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'end', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'ITEMLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['field1','field2','field3'] , dataRegionType: 'INHERIT' }
}
/**
* 视图布局面板模型对象
* 布局面板是否加载
*
* @public
* @memberof Item1layoutpanelBase
*/
public layoutModelDetails:any = {};
public isLayoutLoadding: boolean = false;
/**
* 视图布局顶级成员名称
* 布局面板数据
*
* @public
* @memberof Item1layoutpanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
public layoutData:any = {};
/**
* 布局面板模型对象
*
* @public
* @memberof Item1layoutpanelBase
*/
public layoutModelDetails:any = {};
/**
* 初始化布局
......@@ -363,17 +377,19 @@ export default class Auto1Base extends Vue implements ControlInterface {
}
/**
* 视图布局面板项模型对象
* 计算面板按钮权限状态
*
* @public
* @memberof Item1layoutpanelBase
*/
public layoutItems:any = {
field1:{ name: 'field1', type: 'ITEMLAYOUT', caption: '图书名', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'title', wrapMode:'', vAlign:'', hAlign:'', },
field2:{ name: 'field2', type: 'ITEMLAYOUT', caption: '借出日期', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'start', wrapMode:'', vAlign:'', hAlign:'', },
field3:{ name: 'field3', type: 'ITEMLAYOUT', caption: '归还日期', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'end', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'ITEMLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['field1','field2','field3'] , dataRegionType: 'INHERIT' }
};
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 监听数据对象
......@@ -491,20 +507,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
this.panelEditItemChange(name, value);
}
/**
* 计算按钮权限状态
*
* @public
* @memberof Item1layoutpanelBase
*/
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 面板编辑项值变化后续操作
*
......@@ -526,6 +528,7 @@ export default class Auto1Base extends Vue implements ControlInterface {
}
}
/**
* 面板逻辑
*
......@@ -540,27 +543,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
}
}
/**
* 处理按钮点击
*
* @public
* @memberof Item1layoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
}
......
......@@ -691,7 +691,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: 'IBIZBOOKCustomView_layout' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -727,7 +727,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: 'IBIZBOOKCustomView_layout' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -268,36 +268,50 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
* 视图布局顶级成员名称
*
* @public
* @memberof ItemlayoutpanelBase
*/
public isLayoutLoadding: boolean = false;
public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 视图布局数据
* 视图布局面板项模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutData:any = {};
public layoutItems:any = {
srfmajortext:{ name: 'srfmajortext', type: 'ITEMLAYOUT', caption: '', isShowCaption: false, sysCss: 'kanban-title', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'srfmajortext', wrapMode:'', vAlign:'', hAlign:'', },
author:{ name: 'author', type: 'ITEMLAYOUT', caption: '', isShowCaption: false, sysCss: 'kanban-author', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'author', wrapMode:'', vAlign:'', hAlign:'', },
srfdescription:{ name: 'srfdescription', type: 'ITEMLAYOUT', caption: '', isShowCaption: false, sysCss: 'kanban-description', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'srfdescription', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'ITEMLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: 'kanban-panel', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:400, widthMode:'PX', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['srfmajortext','author','srfdescription'] , dataRegionType: 'INHERIT' }
}
/**
* 视图布局面板模型对象
* 布局面板是否加载
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutModelDetails:any = {};
public isLayoutLoadding: boolean = false;
/**
* 视图布局顶级成员名称
* 布局面板数据
*
* @public
* @memberof ItemlayoutpanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
public layoutData:any = {};
/**
* 布局面板模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutModelDetails:any = {};
/**
* 初始化布局
......@@ -363,17 +377,19 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
}
/**
* 视图布局面板项模型对象
* 计算面板按钮权限状态
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutItems:any = {
srfmajortext:{ name: 'srfmajortext', type: 'ITEMLAYOUT', caption: '', isShowCaption: false, sysCss: 'kanban-title', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'srfmajortext', wrapMode:'', vAlign:'', hAlign:'', },
author:{ name: 'author', type: 'ITEMLAYOUT', caption: '', isShowCaption: false, sysCss: 'kanban-author', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'author', wrapMode:'', vAlign:'', hAlign:'', },
srfdescription:{ name: 'srfdescription', type: 'ITEMLAYOUT', caption: '', isShowCaption: false, sysCss: 'kanban-description', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'srfdescription', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'ITEMLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: 'kanban-panel', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:400, widthMode:'PX', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['srfmajortext','author','srfdescription'] , dataRegionType: 'INHERIT' }
};
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 监听数据对象
......@@ -491,20 +507,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
this.panelEditItemChange(name, value);
}
/**
* 计算按钮权限状态
*
* @public
* @memberof ItemlayoutpanelBase
*/
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 面板编辑项值变化后续操作
*
......@@ -526,6 +528,7 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
}
}
/**
* 面板逻辑
*
......@@ -540,27 +543,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
}
}
/**
* 处理按钮点击
*
* @public
* @memberof ItemlayoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
}
......
......@@ -268,36 +268,50 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
* 视图布局顶级成员名称
*
* @public
* @memberof List_itempanelBase
*/
public isLayoutLoadding: boolean = false;
public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 视图布局数据
* 视图布局面板项模型对象
*
* @public
* @memberof List_itempanelBase
*/
public layoutData:any = {};
public layoutItems:any = {
bookname:{ name: 'bookname', type: 'ITEMLAYOUT', caption: '图书名称', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'IBIZBOOKNAME', wrapMode:'', vAlign:'', hAlign:'', },
author:{ name: 'author', type: 'ITEMLAYOUT', caption: '图书作者', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'AUTHOR', wrapMode:'', vAlign:'', hAlign:'', },
press:{ name: 'press', type: 'ITEMLAYOUT', caption: '图书出版社', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'PRESS', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'ITEMLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['bookname','author','press'] , dataRegionType: 'INHERIT' }
}
/**
* 视图布局面板模型对象
* 布局面板是否加载
*
* @public
* @memberof List_itempanelBase
*/
public layoutModelDetails:any = {};
public isLayoutLoadding: boolean = false;
/**
* 视图布局顶级成员名称
* 布局面板数据
*
* @public
* @memberof List_itempanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
public layoutData:any = {};
/**
* 布局面板模型对象
*
* @public
* @memberof List_itempanelBase
*/
public layoutModelDetails:any = {};
/**
* 初始化布局
......@@ -363,17 +377,19 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
}
/**
* 视图布局面板项模型对象
* 计算面板按钮权限状态
*
* @public
* @memberof List_itempanelBase
*/
public layoutItems:any = {
bookname:{ name: 'bookname', type: 'ITEMLAYOUT', caption: '图书名称', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'IBIZBOOKNAME', wrapMode:'', vAlign:'', hAlign:'', },
author:{ name: 'author', type: 'ITEMLAYOUT', caption: '图书作者', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'AUTHOR', wrapMode:'', vAlign:'', hAlign:'', },
press:{ name: 'press', type: 'ITEMLAYOUT', caption: '图书出版社', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'PRESS', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'ITEMLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['bookname','author','press'] , dataRegionType: 'INHERIT' }
};
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 监听数据对象
......@@ -491,20 +507,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
this.panelEditItemChange(name, value);
}
/**
* 计算按钮权限状态
*
* @public
* @memberof List_itempanelBase
*/
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 面板编辑项值变化后续操作
*
......@@ -526,6 +528,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
}
}
/**
* 面板逻辑
*
......@@ -540,27 +543,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
}
}
/**
* 处理按钮点击
*
* @public
* @memberof List_itempanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
}
......
......@@ -259,36 +259,47 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
* 视图布局顶级成员名称
*
* @public
* @memberof ItemlayoutpanelBase
*/
public isLayoutLoadding: boolean = false;
public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 视图布局数据
* 视图布局面板项模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutData:any = {};
public layoutItems:any = {
container1:{ name: 'container1', type: 'ITEMLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:[] , dataRegionType: 'INHERIT' }
}
/**
* 视图布局面板模型对象
* 布局面板是否加载
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutModelDetails:any = {};
public isLayoutLoadding: boolean = false;
/**
* 视图布局顶级成员名称
* 布局面板数据
*
* @public
* @memberof ItemlayoutpanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
public layoutData:any = {};
/**
* 布局面板模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutModelDetails:any = {};
/**
* 初始化布局
......@@ -354,14 +365,19 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
}
/**
* 视图布局面板项模型对象
* 计算面板按钮权限状态
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutItems:any = {
container1:{ name: 'container1', type: 'ITEMLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:[] , dataRegionType: 'INHERIT' }
};
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 监听数据对象
......@@ -479,20 +495,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
this.panelEditItemChange(name, value);
}
/**
* 计算按钮权限状态
*
* @public
* @memberof ItemlayoutpanelBase
*/
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 面板编辑项值变化后续操作
*
......@@ -514,6 +516,7 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
}
}
/**
* 面板逻辑
*
......@@ -528,27 +531,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
}
}
/**
* 处理按钮点击
*
* @public
* @memberof ItemlayoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
}
......
......@@ -259,36 +259,47 @@ export default class UsrBase extends Vue implements ControlInterface {
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
* 视图布局顶级成员名称
*
* @public
* @memberof List_itempanelBase
*/
public isLayoutLoadding: boolean = false;
public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 视图布局数据
* 视图布局面板项模型对象
*
* @public
* @memberof List_itempanelBase
*/
public layoutData:any = {};
public layoutItems:any = {
container1:{ name: 'container1', type: 'ITEMLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:[] , dataRegionType: 'INHERIT' }
}
/**
* 视图布局面板模型对象
* 布局面板是否加载
*
* @public
* @memberof List_itempanelBase
*/
public layoutModelDetails:any = {};
public isLayoutLoadding: boolean = false;
/**
* 视图布局顶级成员名称
* 布局面板数据
*
* @public
* @memberof List_itempanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
public layoutData:any = {};
/**
* 布局面板模型对象
*
* @public
* @memberof List_itempanelBase
*/
public layoutModelDetails:any = {};
/**
* 初始化布局
......@@ -354,14 +365,19 @@ export default class UsrBase extends Vue implements ControlInterface {
}
/**
* 视图布局面板项模型对象
* 计算面板按钮权限状态
*
* @public
* @memberof List_itempanelBase
*/
public layoutItems:any = {
container1:{ name: 'container1', type: 'ITEMLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:[] , dataRegionType: 'INHERIT' }
};
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 监听数据对象
......@@ -479,20 +495,6 @@ export default class UsrBase extends Vue implements ControlInterface {
this.panelEditItemChange(name, value);
}
/**
* 计算按钮权限状态
*
* @public
* @memberof List_itempanelBase
*/
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 面板编辑项值变化后续操作
*
......@@ -514,6 +516,7 @@ export default class UsrBase extends Vue implements ControlInterface {
}
}
/**
* 面板逻辑
*
......@@ -528,27 +531,6 @@ export default class UsrBase extends Vue implements ControlInterface {
}
}
/**
* 处理按钮点击
*
* @public
* @memberof List_itempanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
}
......
......@@ -10,7 +10,7 @@ export default class Usr2Model {
* 获取数据项集合
*
* @returns {any[]}
* @memberof Usr2Dataviewexpbar_dataviewMode
* @memberof Usr2DataViewMode
*/
public getDataItems(): any[] {
return [
......@@ -39,6 +39,17 @@ export default class Usr2Model {
dataType: 'FONTKEY',
},
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{
name:'size',
......
......@@ -268,36 +268,50 @@ export default class Usr4Base extends Vue implements ControlInterface {
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
* 视图布局顶级成员名称
*
* @public
* @memberof ItemlayoutpanelBase
*/
public isLayoutLoadding: boolean = false;
public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 视图布局数据
* 视图布局面板项模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutData:any = {};
public layoutItems:any = {
author:{ name: 'author', type: 'ITEMLAYOUT', caption: '作者', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'author', wrapMode:'', vAlign:'', hAlign:'', },
press:{ name: 'press', type: 'ITEMLAYOUT', caption: '出版社', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'press', wrapMode:'', vAlign:'', hAlign:'', },
bookname:{ name: 'bookname', type: 'ITEMLAYOUT', caption: '图书名', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'IBIZBOOKNAME', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'ITEMLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['author','press','bookname'] , dataRegionType: 'INHERIT' }
}
/**
* 视图布局面板模型对象
* 布局面板是否加载
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutModelDetails:any = {};
public isLayoutLoadding: boolean = false;
/**
* 视图布局顶级成员名称
* 布局面板数据
*
* @public
* @memberof ItemlayoutpanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
public layoutData:any = {};
/**
* 布局面板模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutModelDetails:any = {};
/**
* 初始化布局
......@@ -363,17 +377,19 @@ export default class Usr4Base extends Vue implements ControlInterface {
}
/**
* 视图布局面板项模型对象
* 计算面板按钮权限状态
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutItems:any = {
author:{ name: 'author', type: 'ITEMLAYOUT', caption: '作者', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'author', wrapMode:'', vAlign:'', hAlign:'', },
press:{ name: 'press', type: 'ITEMLAYOUT', caption: '出版社', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'press', wrapMode:'', vAlign:'', hAlign:'', },
bookname:{ name: 'bookname', type: 'ITEMLAYOUT', caption: '图书名', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'IBIZBOOKNAME', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'ITEMLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['author','press','bookname'] , dataRegionType: 'INHERIT' }
};
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 监听数据对象
......@@ -491,20 +507,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
this.panelEditItemChange(name, value);
}
/**
* 计算按钮权限状态
*
* @public
* @memberof ItemlayoutpanelBase
*/
public computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState();
}
})
}
/**
* 面板编辑项值变化后续操作
*
......@@ -526,6 +528,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
}
}
/**
* 面板逻辑
*
......@@ -540,27 +543,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
}
}
/**
* 处理按钮点击
*
* @public
* @memberof ItemlayoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
}
......
......@@ -578,7 +578,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return;
}
const arg: any = {...opt};
......@@ -694,7 +694,7 @@ export default class ListExpBase 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: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.removeAction') as string) });
return;
}
if (datas.length === 0) {
......@@ -789,7 +789,7 @@ export default class ListExpBase 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: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.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);
......@@ -797,7 +797,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizorder){
......
......@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-665-7">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-669-7">
<createTable tableName="T_IBIZBOOK">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -340,7 +340,7 @@
<!--输出实体[IBIZORDER]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-557-14">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-577-14">
<createTable tableName="T_IBIZORDER">
<column name="TP" remarks="" type="TEXT(1048576)">
</column>
......@@ -1160,7 +1160,7 @@
<!--输出实体[IBIZSAMPLE0021]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizsample0021-55-39">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizsample0021-65-39">
<createTable tableName="T_IBIZSAMPLE0021">
<column name="IBIZSAMPLE0021ID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_IBIZSAMPLE0021_IBIZSAMPLE00"/>
......@@ -1306,7 +1306,7 @@
<!--输出实体[IBIZUNIPRODUCT]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizuniproduct-28-45">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizuniproduct-32-45">
<createTable tableName="T_IBIZUNIPRODUCT">
<column name="UNITPRICE" remarks="" type="FLOAT">
</column>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册