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

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

上级 17c51365
......@@ -151,6 +151,14 @@
"viewname": "IBIZOrderPickupView",
"viewtag": "17770b42972334457baccfe91828bd46"
},
"ibizordertreegridexview": {
"title": "订单实体树表格视图(增强)",
"caption": "订单实体树表格视图(增强)",
"viewtype": "DETREEGRIDEXVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderTreeGridExView",
"viewtag": "17c2991a0bd88cfd2bd6f8651537450b"
},
"ibizsample0003sf4editview": {
"title": "示例实体03编辑视图",
"caption": "示例实体03",
......@@ -271,6 +279,14 @@
"viewname": "IBIZCustomer_INTFPickupGridView",
"viewtag": "2af423d347c22b7d0ed5a3639d87a6a8"
},
"ibizappctrllistview": {
"title": "应用部件列表视图",
"caption": "应用部件",
"viewtype": "DELISTVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPCTRLListView",
"viewtag": "2b2bef1d622cb082cc17c12afe3ed894"
},
"ibizbookautogrouplistview": {
"title": "图书列表视图(自动分组)",
"caption": "图书",
......@@ -911,6 +927,14 @@
"viewname": "IBIZCustomerUsr2MPickupView",
"viewtag": "91b325a01c9c24c60d42df9701221c2f"
},
"ibizappeditorlistview": {
"title": "编辑器列表视图",
"caption": "编辑器",
"viewtype": "DELISTVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPEDITORListView",
"viewtag": "92ba569083866d7476dbada9f26b0371"
},
"ibizorderusr2calendarexpview": {
"title": "订单日历导航视图(时间轴)",
"caption": "订单",
......@@ -1687,6 +1711,14 @@
"viewname": "IBIZOrderSF20GridView",
"viewtag": "f94df735642ce85ebb2fe3816c4dc77b"
},
"ibizappviewlistview": {
"title": "应用视图列表视图",
"caption": "应用视图",
"viewtype": "DELISTVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPVIEWListView",
"viewtag": "fb7a06e43dfa51aaa792146e7df29357"
},
"ibizbooknewdefaultvaluegridview": {
"title": "表格新建默认值",
"caption": "表格新建默认值",
......
......@@ -13,6 +13,10 @@ export default {
amount: "数量",
},
views: {
listview: {
caption: "应用部件",
title: "应用部件列表视图",
},
gridview: {
caption: "应用部件",
title: "应用部件表格视图",
......@@ -61,6 +65,11 @@ export default {
uiactions: {
},
},
ctrllist_list: {
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
......@@ -128,4 +137,6 @@ export default {
tip: "Save And Close Window",
},
},
listviewtoolbar_toolbar: {
},
};
\ No newline at end of file
......@@ -12,6 +12,10 @@ export default {
amount: "数量",
},
views: {
listview: {
caption: "应用部件",
title: "应用部件列表视图",
},
gridview: {
caption: "应用部件",
title: "应用部件表格视图",
......@@ -60,6 +64,11 @@ export default {
uiactions: {
},
},
ctrllist_list: {
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
......@@ -127,4 +136,6 @@ export default {
tip: "保存并关闭",
},
},
listviewtoolbar_toolbar: {
},
};
\ No newline at end of file
......@@ -19,6 +19,10 @@ export default {
caption: "编辑器",
title: "编辑器表格视图",
},
listview: {
caption: "编辑器",
title: "编辑器列表视图",
},
editview: {
caption: "编辑器",
title: "编辑器编辑视图",
......@@ -66,6 +70,11 @@ export default {
uiactions: {
},
},
editorlist_list: {
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
......@@ -133,4 +142,6 @@ export default {
tip: "Save And Close Window",
},
},
listviewtoolbar_toolbar: {
},
};
\ No newline at end of file
......@@ -18,6 +18,10 @@ export default {
caption: "编辑器",
title: "编辑器表格视图",
},
listview: {
caption: "编辑器",
title: "编辑器列表视图",
},
editview: {
caption: "编辑器",
title: "编辑器编辑视图",
......@@ -65,6 +69,11 @@ export default {
uiactions: {
},
},
editorlist_list: {
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
......@@ -132,4 +141,6 @@ export default {
tip: "保存并关闭",
},
},
listviewtoolbar_toolbar: {
},
};
\ No newline at end of file
......@@ -22,6 +22,10 @@ export default {
caption: "应用视图",
title: "应用视图表格视图",
},
listview: {
caption: "应用视图",
title: "应用视图列表视图",
},
},
main_form: {
details: {
......@@ -58,6 +62,11 @@ export default {
uiactions: {
},
},
viewlist_list: {
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
......@@ -125,4 +134,6 @@ export default {
tip: "Save And Close Window",
},
},
listviewtoolbar_toolbar: {
},
};
\ No newline at end of file
......@@ -21,6 +21,10 @@ export default {
caption: "应用视图",
title: "应用视图表格视图",
},
listview: {
caption: "应用视图",
title: "应用视图列表视图",
},
},
main_form: {
details: {
......@@ -57,6 +61,11 @@ export default {
uiactions: {
},
},
viewlist_list: {
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
......@@ -124,4 +133,6 @@ export default {
tip: "保存并关闭",
},
},
listviewtoolbar_toolbar: {
},
};
\ No newline at end of file
......@@ -53,6 +53,10 @@ export default {
caption: "订单",
title: "订单数据选择视图",
},
treegridexview: {
caption: "订单实体树表格视图(增强)",
title: "订单实体树表格视图(增强)",
},
dataviewexpview: {
caption: "订单",
title: "订单卡片视图导航视图",
......@@ -804,6 +808,11 @@ export default {
usr_chart: {
nodata:"",
},
ordertreegrid_treegridex: {
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "订单名称",
......@@ -1001,6 +1010,8 @@ export default {
tip: "数据导入",
},
},
treegridexviewtoolbar_toolbar: {
},
sf3gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
......
......@@ -52,6 +52,10 @@ export default {
caption: "订单",
title: "订单数据选择视图",
},
treegridexview: {
caption: "订单实体树表格视图(增强)",
title: "订单实体树表格视图(增强)",
},
dataviewexpview: {
caption: "订单",
title: "订单卡片视图导航视图",
......@@ -803,6 +807,11 @@ export default {
usr_chart: {
nodata:"",
},
ordertreegrid_treegridex: {
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "订单名称",
......@@ -1000,6 +1009,8 @@ export default {
tip: "数据导入",
},
},
treegridexviewtoolbar_toolbar: {
},
sf3gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
......
......@@ -159,6 +159,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZOrderPickupView",
"viewtag": "17770b42972334457baccfe91828bd46"
},
"ibizordertreegridexview": {
"title": "订单实体树表格视图(增强)",
"caption": "订单实体树表格视图(增强)",
"viewtype": "DETREEGRIDEXVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderTreeGridExView",
"viewtag": "17c2991a0bd88cfd2bd6f8651537450b"
},
"ibizsample0003sf4editview": {
"title": "示例实体03编辑视图",
"caption": "示例实体03",
......@@ -279,6 +287,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZCustomer_INTFPickupGridView",
"viewtag": "2af423d347c22b7d0ed5a3639d87a6a8"
},
"ibizappctrllistview": {
"title": "应用部件列表视图",
"caption": "应用部件",
"viewtype": "DELISTVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPCTRLListView",
"viewtag": "2b2bef1d622cb082cc17c12afe3ed894"
},
"ibizbookautogrouplistview": {
"title": "图书列表视图(自动分组)",
"caption": "图书",
......@@ -919,6 +935,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZCustomerUsr2MPickupView",
"viewtag": "91b325a01c9c24c60d42df9701221c2f"
},
"ibizappeditorlistview": {
"title": "编辑器列表视图",
"caption": "编辑器",
"viewtype": "DELISTVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPEDITORListView",
"viewtag": "92ba569083866d7476dbada9f26b0371"
},
"ibizorderusr2calendarexpview": {
"title": "订单日历导航视图(时间轴)",
"caption": "订单",
......@@ -1695,6 +1719,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZOrderSF20GridView",
"viewtag": "f94df735642ce85ebb2fe3816c4dc77b"
},
"ibizappviewlistview": {
"title": "应用视图列表视图",
"caption": "应用视图",
"viewtype": "DELISTVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPVIEWListView",
"viewtag": "fb7a06e43dfa51aaa792146e7df29357"
},
"ibizbooknewdefaultvaluegridview": {
"title": "表格新建默认值",
"caption": "表格新建默认值",
......
.ibizappviewlist-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
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZAPPVIEWListViewBase from './ibizappviewlist-view-base.vue';
import view_list from '@widgets/ibizappview/view-list-list/view-list-list.vue';
import view_searchform from '@widgets/ibizappview/default-searchform/default-searchform.vue';
@Component({
components: {
view_list,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class IBIZAPPVIEWListView extends IBIZAPPVIEWListViewBase {
}
</script>
\ No newline at end of file
......@@ -127,6 +127,7 @@ export const PageComponents = {
Vue.component('ibizorder-detail-edit-view', () => import('@pages/sample/ibizorder-detail-edit-view/ibizorder-detail-edit-view.vue'));
Vue.component('ibizbookusr8-grid-view', () => import('@pages/sample/ibizbookusr8-grid-view/ibizbookusr8-grid-view.vue'));
Vue.component('ibizbookusr2-data-view', () => import('@pages/sample/ibizbookusr2-data-view/ibizbookusr2-data-view.vue'));
Vue.component('ibizappviewlist-view', () => import('@pages/sample/ibizappviewlist-view/ibizappviewlist-view.vue'));
Vue.component('ibizbooklist-view', () => import('@pages/sample/ibizbooklist-view/ibizbooklist-view.vue'));
Vue.component('ibizsample0017-form-pickup-view', () => import('@pages/sample/ibizsample0017-form-pickup-view/ibizsample0017-form-pickup-view.vue'));
Vue.component('ibizcustomer-usr2-pickup-view', () => import('@pages/sample/ibizcustomer-usr2-pickup-view/ibizcustomer-usr2-pickup-view.vue'));
......
......@@ -2038,6 +2038,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookusr2-data-view/ibizbookusr2-data-view.vue'),
},
{
path: 'ibizappviews/:ibizappview?/listview/:listview?',
meta: {
caption: 'entities.ibizappview.views.listview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizappviews', parameterName: 'ibizappview' },
{ pathName: 'listview', parameterName: 'listview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizappviewlist-view/ibizappviewlist-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/listview/:listview?',
meta: {
......@@ -5489,6 +5503,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-sf20-grid-view/ibizorder-sf20-grid-view.vue'),
},
{
path: '/ibizappviews/:ibizappview?/listview/:listview?',
meta: {
caption: 'entities.ibizappview.views.listview.caption',
info:'',
parameters: [
{ pathName: 'ibizappviews', parameterName: 'ibizappview' },
{ pathName: 'listview', parameterName: 'listview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizappviewlist-view/ibizappviewlist-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/newdefaultvaluegridview/:newdefaultvaluegridview?',
meta: {
......
......@@ -1941,6 +1941,16 @@ export const viewstate: any = {
'29b0f2b1cba64fab0a4c1d9e40a62778',
],
},
{
viewtag: 'fb7a06e43dfa51aaa792146e7df29357',
viewmodule: 'Sample',
viewname: 'IBIZAPPVIEWListView',
viewaction: '',
viewdatachange: false,
refviews: [
'27425bd0f023912440422d4ee90bb370',
],
},
{
viewtag: 'fdb297cd4b12374534413c3053aec1b8',
viewmodule: 'Sample',
......@@ -1988,6 +1998,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'fb7a06e43dfa51aaa792146e7df29357',
],
},
{
......
......@@ -96,6 +96,7 @@ export default class IBIZAPPCTRLUIServiceBase extends UIService {
* @memberof IBIZAPPCTRLUIServiceBase
*/
public initViewMap(){
this.allViewMap.set(':',{viewname:'listview',srfappde:'ibizappctrls',component:'ibizappctrllist-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizappctrls',component:'ibizappctrlgrid-view'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizappctrls',component:'ibizappctrledit-view'});
}
......
......@@ -97,6 +97,7 @@ export default class IBIZAPPEDITORUIServiceBase extends UIService {
*/
public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizappeditors',component:'ibizappeditorgrid-view'});
this.allViewMap.set(':',{viewname:'listview',srfappde:'ibizappeditors',component:'ibizappeditorlist-view'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizappeditors',component:'ibizappeditoredit-view'});
}
......
......@@ -98,6 +98,7 @@ export default class IBIZAPPVIEWUIServiceBase extends UIService {
public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizappviews',component:'ibizappviewedit-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizappviews',component:'ibizappviewgrid-view'});
this.allViewMap.set(':',{viewname:'listview',srfappde:'ibizappviews',component:'ibizappviewlist-view'});
}
/**
......
......@@ -103,6 +103,7 @@ export default class IBIZOrderUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'sf6gridview',srfappde:'ibizorders',component:'ibizorder-sf6-grid-view'});
this.allViewMap.set(':',{viewname:'f9editview',srfappde:'ibizorders',component:'ibizorder-f9-edit-view'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizorders',component:'ibizorder-pickup-view'});
this.allViewMap.set(':',{viewname:'treegridexview',srfappde:'ibizorders',component:'ibizorder-tree-grid-ex-view'});
this.allViewMap.set(':',{viewname:'dataviewexpview',srfappde:'ibizorders',component:'ibizorder-data-view-exp-view'});
this.allViewMap.set(':',{viewname:'wfstartview',srfappde:'ibizorders',component:'ibizorder-wfstart-view'});
this.allViewMap.set(':',{viewname:'f19editview',srfappde:'ibizorders',component:'ibizorder-f19-edit-view'});
......
......@@ -87,16 +87,16 @@
<i-col :md="{ span: 24, offset: 0 }" :lg="{ span: 12, offset: 0 }">
<card class="portlet-card custom-card" :bordered="false" dis-hover :padding="10">
<span>
<view_db_rawitem6
<view_db_sysportlet1
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:height="400"
:width="0"
name="db_rawitem6"
ref='db_rawitem6'
name="db_sysportlet1"
ref='db_sysportlet1'
@closeview="closeView($event)">
</view_db_rawitem6>
</view_db_sysportlet1>
</span>
</card>
</i-col>
......
......@@ -2,7 +2,7 @@
import { Component } from 'vue-property-decorator';
import AppPortalView_dbBase from './app-portal-view-db-dashboard-base.vue';
import view_db_rawitem1 from '@widgets/app/db-rawitem1-portlet/db-rawitem1-portlet.vue';
import view_db_rawitem6 from '@widgets/app/db-rawitem6-portlet/db-rawitem6-portlet.vue';
import view_db_sysportlet1 from '@widgets/ibizappview/app-view-list-portlet/app-view-list-portlet.vue';
import view_db_rawitem7 from '@widgets/app/db-rawitem7-portlet/db-rawitem7-portlet.vue';
import view_db_rawitem4 from '@widgets/app/db-rawitem4-portlet/db-rawitem4-portlet.vue';
import view_db_rawitem5 from '@widgets/app/db-rawitem5-portlet/db-rawitem5-portlet.vue';
......@@ -13,7 +13,7 @@ import view_db_rawitem3 from '@widgets/app/db-rawitem3-portlet/db-rawitem3-portl
@Component({
components: {
view_db_rawitem1,
view_db_rawitem6,
view_db_sysportlet1,
view_db_rawitem7,
view_db_rawitem4,
view_db_rawitem5,
......
<template>
<div class='portlet app-view-list ' :style="{'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,}">
<p class='portlet-title'>
<span>
视图列表
</span>
</p>
<el-divider class="divider"></el-divider>
<div class="portlet-with-title">
<ibizappviewlist-view :portletState="viewState" :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></ibizappviewlist-view>
</div>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model,Inject } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util, ViewTool } from '@/utils';
import NavDataService from '@/service/app/navdata-service';
import IBIZAPPVIEWService from '@/service/ibizappview/ibizappview-service';
import AppViewListService from './app-view-list-portlet-service';
import IBIZAPPVIEWUIService from '@/uiservice/ibizappview/ibizappview-ui-service';
import UIService from '@/uiservice/ui-service';
import { Environment } from '@/environments/environment';
@Component({
components: {
}
})
export default class IBIZAPPVIEWAppViewListBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof AppViewListBase
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof AppViewListBase
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof AppViewListBase
*/
@Prop() public context!: any;
/**
* 视图参数
*
* @type {*}
* @memberof AppViewListBase
*/
@Prop() public viewparams!: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof AppViewListBase
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof AppViewListBase
*/
public getControlType(): string {
return 'PORTLET'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof AppViewListBase
*/
public counterServiceArray:Array<any> = [];
/**
* 建构部件服务对象
*
* @type {AppViewListService}
* @memberof AppViewListBase
*/
public service: AppViewListService = new AppViewListService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {IBIZAPPVIEWService}
* @memberof AppViewListBase
*/
public appEntityService: IBIZAPPVIEWService = new IBIZAPPVIEWService({ $store: this.$store });
/**
* 界面UI服务对象
*
* @type {IBIZAPPVIEWUIService}
* @memberof AppViewListBase
*/
public appUIService:IBIZAPPVIEWUIService = new IBIZAPPVIEWUIService(this.$store);
/**
* 关闭视图
*
* @param {any} args
* @memberof AppViewListBase
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof AppViewListBase
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 长度
*
* @type {number}
* @memberof AppViewListBase
*/
@Prop() public height?: number;
/**
* 宽度
*
* @type {number}
* @memberof AppViewListBase
*/
@Prop() public width?: number;
/**
* 门户部件类型
*
* @type {number}
* @memberof AppViewListBase
*/
public portletType: string = 'view';
/**
* 视图默认使用
*
* @type {string}
* @memberof AppViewListBase
*/
@Inject({from:'navModel',default: 'tab'})
public navModel!:string;
/**
* 界面行为模型数据
*
* @memberof AppViewListBase
*/
public uiactionModel: any = {
}
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof AppViewListBase
*/
@Prop({default: false})public isAdaptiveSize!: boolean;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof AppViewListBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof AppViewListBase
*/
public getData(): any {
return {};
}
/**
* 获取高度
*
* @returns {any[]}
* @memberof AppViewListBase
*/
get getHeight(){
if(!this.$util.isEmpty(this.height) && !this.$util.isNumberNaN(this.height)){
if(this.height == 0){
return 'auto';
}else{
return this.height+'px';
}
}else{
return '400px';
}
}
/**
* 刷新
*
* @memberof AppViewListBase
*/
public refresh(args?: any) {
this.viewState.next({ tag: 'IBIZAPPVIEWListView', action: 'refresh', data: args });
}
/**
* vue 生命周期
*
* @memberof AppViewListBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof AppViewListBase
*/
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if(Object.is(tag, "all-portlet") && Object.is(action,'loadmodel')){
this.calcUIActionAuthState(data);
}
if (!Object.is(tag, this.name)) {
return;
}
const refs: any = this.$refs;
Object.keys(refs).forEach((_name: string) => {
this.viewState.next({ tag: _name, action: action, data: data });
});
});
}
}
/**
* vue 生命周期
*
* @memberof AppViewListBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof AppViewListBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
/**
* 计算界面行为权限
*
* @memberof AppViewListBase
*/
public calcUIActionAuthState(data:any = {}) {
// 如果是操作栏,不计算权限
if(this.portletType && Object.is('actionbar', this.portletType)) {
return;
}
let _this: any = this;
let uiservice: any = _this.appUIService ? _this.appUIService : new UIService(_this.$store);
if(_this.uiactionModel){
ViewTool.calcActionItemAuthState(data,_this.uiactionModel,uiservice);
}
}
}
</script>
<style lang='less'>
@import './app-view-list-portlet.less';
</style>
/**
* AppViewList 部件模型
*
* @export
* @class AppViewListModel
*/
export default class AppViewListModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof AppViewListModel
*/
public getDataItems(): any[] {
return [
{
name: 'createman',
},
{
name: 'createdate',
},
{
name: 'ibizappviewname',
},
{
name: 'ibizappview',
prop: 'ibizappviewid',
},
{
name: 'updateman',
},
{
name: 'updatedate',
},
{
name: 'ibizappviewtype',
},
{
name: 'documentaddress',
},
{
name: 'instanceaddress',
},
{
name: 'viewdescription',
},
{
name: 'amount',
},
]
}
}
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* AppViewList 部件服务对象
*
* @export
* @class AppViewListService
*/
export default class AppViewListService extends ControlService {
}
// this is less
.portlet{
height: 100%;
width: 100%;
> .portlet-title{
padding: 14px 16px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 52px;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
justify-content: space-between;
width:100%;
line-height: 22px;
font-size: 16px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #304265;
font-weight: 600;
i{
margin-right: 5px;
}
>.portlet-action{
margin-left: 12px;
font-size: 14px;
>a{
padding: 6px;
}
}
}
> .divider {
margin: 0px 0px 11px 0px;
}
> .portlet-with-title{
width:100%;
height:calc(100% - 58px);
overflow:auto;
padding:0px 12px;
}
> .portlet-without-title{
width:100%;
height:100%;
overflow:auto;
padding:0px 12px;
}
.app-charts{
height: 100%!important;
}
.toolbar-container {
button{
margin: 6px 0px 4px 16px;
}
.ivu-badge{
.ivu-badge-count{
top: 0;
}
}
}
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZAPPVIEWAppViewListBase from './app-view-list-portlet-base.vue';
@Component({
components: {
}
})
export default class IBIZAPPVIEWAppViewList extends IBIZAPPVIEWAppViewListBase {
}
</script>
......@@ -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: 'IBIZAPPVIEWGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPVIEWListView' + (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: 'IBIZAPPVIEWGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPVIEWListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
/**
* ViewList 部件模型
*
* @export
* @class ViewListModel
*/
export default class ViewListModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof ViewListListMode
*/
public getDataItems(): any[] {
return [
{
name: 'srfmajortext',
prop: 'ibizappviewname',
dataType: 'TEXT',
},
{
name: 'srfdescription',
prop: 'viewdescription',
dataType: 'TEXT',
},
{
name: 'srfkey',
prop: 'ibizappviewid',
dataType: 'GUID',
},
{
name: 'ibizappview',
prop: 'ibizappviewid',
dataType: 'FONTKEY',
},
{
name:'size',
prop:'size'
},
{
name:'query',
prop:'query'
},
{
name:'sort',
prop:'sort'
},
{
name:'page',
prop:'page'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
\ No newline at end of file
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import IBIZAPPVIEWService from '@/service/ibizappview/ibizappview-service';
import ViewListModel from './view-list-list-model';
/**
* ViewList 部件服务对象
*
* @export
* @class ViewListService
*/
export default class ViewListService extends ControlService {
/**
* 应用视图服务对象
*
* @type {IBIZAPPVIEWService}
* @memberof ViewListService
*/
public appEntityService: IBIZAPPVIEWService = new IBIZAPPVIEWService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof ViewListService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of ViewListService.
*
* @param {*} [opts={}]
* @memberof ViewListService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new ViewListModel();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ViewListService
*/
@Errorlog
public search(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data,true);
return new Promise((resolve: any, reject: any) => {
const _appEntityService: any = this.appEntityService;
let result: Promise<any>;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
}else{
result =_appEntityService.FetchDefault(Context,Data, isloading);
}
result.then(async (response) => {
await this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ViewListService
*/
@Errorlog
public delete(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data,true);
return new Promise((resolve: any, reject: any) => {
const _appEntityService: any = this.appEntityService;
let result: Promise<any>;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
}else{
result =_appEntityService.remove(Context,Data , isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 添加数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ViewListService
*/
@Errorlog
public add(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data,true);
return new Promise((resolve: any, reject: any) => {
const _appEntityService: any = this.appEntityService;
let result: Promise<any>;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
}else{
result =_appEntityService.Create(Context,Data, isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ViewListService
*/
@Errorlog
public update(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data,true);
return new Promise((resolve: any, reject: any) => {
const _appEntityService: any = this.appEntityService;
let result: Promise<any>;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data,isloading);
}else{
result =_appEntityService.Update(Context,Data,isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
}
\ No newline at end of file
// this is less
.app-list {
height:100%;
flex-grow: 1;
overflow-y: auto;
.el-collapse-item__header.is-active{
color: #409eff;
background-color: #ecf5ff;
}
.el-collapse{
.el-collapse-item{
.el-collapse-item__wrap{
.el-collapse-item__content{
padding: 10px 0 10px 0;
}
}
}
}
.app-list-item {
line-height: 34px;
padding: 12px 6px;
min-height: 24px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #f0f0f0;
.app-list-item-content {
width: 70%;
display: flex;
align-items: center;
.item-icon {
width: 40px;
height: 40px;
margin-right: 14px;
img {
width: 40px;
height: 40px;
border-radius: 50%;
}
}
.item-content-text {
display: flex;
flex-direction: column;
.item-text {
font-size: 18px;
font-weight: bold;
}
.item-subtext {
color: #8c8c8c;
}
}
}
.app-list-item-date {
position: relative;
color: #8c8c8c;
}
}
.app-list-item.isSelect {
background: #ecf5ff;
border-radius: 2px;
border-color: rgb(197, 197, 197);
}
.app-list-item:hover {
background: #ecf5ff;
}
.loadmore {
text-align: center;
padding: 10px;
text-decoration: underline;
color: #82bff7;
cursor: default;
}
}
.app-list-empty {
height:100%;
color: #909399;
display: flex;
justify-content: center;
align-items: center;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ViewListBase from './view-list-list-base.vue';
@Component({
components: {
}
})
export default class ViewList extends ViewListBase {
}
</script>
\ No newline at end of file
......@@ -11,7 +11,17 @@
placement="top">
<context-menu :contextMenuStyle="{width: '100%'}" :data="item" :renderContent="renderContextMenu">
<el-card @click.native="onEventClick(item,true,$event)" :class="item.className">
<div v-if="false && item.itemType == 'item'">
<div v-if="true && item.itemType == 'item'">
<layout_itemlayoutpanel
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:parentRef="thisRef"
:inputData="item"
@panelDataChange="($event)=>{onPanelDataChange(item,$event)}"
name="itemlayoutpanel"
ref='itemlayoutpanel'>
</layout_itemlayoutpanel>
</div>
<div v-else>
<h4>{{item.title}}</h4>
......@@ -453,6 +463,16 @@ export default class CustomCalendarBase extends Vue implements ControlInterface
*/
public searchArgCache: any = {};
/**
* 面板数据变化处理事件
* @param {any} item 当前数据
* @param {any} $event 面板事件数据
*
* @memberof CustomCalendarBase
*/
public onPanelDataChange(item:any,$event:any) {
Object.assign(item, $event, {rowDataState:'update'});
}
/**
* 搜索获取日程事件
......
......@@ -2,9 +2,11 @@
import { Component } from 'vue-property-decorator';
import CustomCalendarBase from './custom-calendar-calendar-base.vue';
import layout_itemlayoutpanel from '@widgets/ibizbook/itemlayoutpanel-panel/itemlayoutpanel-panel.vue';
@Component({
components: {
layout_itemlayoutpanel,
}
})
......
/**
* Itemlayoutpanel 部件模型
*
* @export
* @class ItemlayoutpanelModel
*/
export default class ItemlayoutpanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof ItemlayoutpanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'field1',
prop: 'title'
},
{
name: 'field2',
prop: 'start'
},
{
name: 'field3',
prop: 'end'
}
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Itemlayoutpanel 部件服务对象
*
* @export
* @class ItemlayoutpanelService
*/
export default class ItemlayoutpanelService extends ControlService {
}
\ No newline at end of file
// this is less
.app-layoutpanel {
height: 100%;
.app-layoutpanel-container {
padding: 6px;
}
.app-layoutpanel-tabpanel{
>.el-tabs {
>.el-.el-tabs__header{
margin: 0 0 10px;
}
.app-layoutpanel-tabpage{
padding: 6px;
}
}
}
.app-layoutpanel-button,.app-layoutpanel-conctrl,.app-layoutpanel-ctrlpos,.app-layoutpanel-field,.app-layoutpanel-rowitem,.app-layoutpanel-usercontrol{
padding: 6px;
}
.item-field{
padding: 0 4px;
display: flex;
>.item-field-label{
padding: 0 8px;
}
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ItemlayoutpanelBase from './itemlayoutpanel-panel-base.vue';
@Component({
components: {
}
})
export default class Itemlayoutpanel extends ItemlayoutpanelBase {
}
</script>
\ No newline at end of file
......@@ -15,11 +15,6 @@
<template slot="empty">
{{$t('entities.ibizbook.treetable_treegridex.nodata')}}
</template>
<el-table-column show-overflow-tooltip prop="subtext" label="图书描述" :width="50" :align="''">
<template v-slot="{ row }">
<span>{{ getColumnValue(row, 'subtext') }}</span>
</template>
</el-table-column>
<el-table-column show-overflow-tooltip prop="ibizbookname" label="图书名称" :width="50" :align="''">
<template v-slot="{ row }">
<span>{{ getColumnValue(row, 'ibizbookname') }}</span>
......@@ -30,6 +25,11 @@
<span>{{ getColumnValue(row, 'author') }}</span>
</template>
</el-table-column>
<el-table-column show-overflow-tooltip prop="subtext" label="图书描述" :width="50" :align="''">
<template v-slot="{ row }">
<span>{{ getColumnValue(row, 'subtext') }}</span>
</template>
</el-table-column>
</el-table>
</template>
......
......@@ -37,11 +37,6 @@
git clone -b master $para2 demosys/
export NODE_OPTIONS=--max-old-space-size=4096
cd demosys/
mvn clean package -Pweb
cd demo-app/demo-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/demo-app-web.yaml iBizDemo --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
......@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /demo-app-web.jar
EXPOSE 51001
EXPOSE 8080
ADD demo-app-web.jar /demo-app-web.jar
......@@ -3,24 +3,9 @@ services:
demo-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/demo-app-web:latest
ports:
- "51001:51001"
- "8080:8080"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=51001
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_df847bdfd
- SPRING_DATASOURCE_PASSWORD=3d6@460A
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_df847bdfd?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_df847bdfd
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy:
resources:
limits:
......
......@@ -4,7 +4,7 @@
<!--输出实体[IBIZAPPCTRL]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappctrl-29-1">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappctrl-38-1">
<createTable tableName="T_IBIZAPPCTRL">
<column name="IBIZAPPCTRLNAME" remarks="" type="VARCHAR(200)">
</column>
......@@ -32,7 +32,7 @@
<!--输出实体[IBIZAPPEDITOR]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappeditor-31-2">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappeditor-41-2">
<createTable tableName="T_IBIZAPPEDITOR">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -64,7 +64,7 @@
<!--输出实体[IBIZAPPVIEW]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappview-23-3">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappview-32-3">
<createTable tableName="T_IBIZAPPVIEW">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -118,7 +118,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-823-5">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-828-5">
<createTable tableName="T_IBIZBOOK">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -290,7 +290,7 @@
<!--输出实体[IBIZORDER]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-414-12">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-418-12">
<createTable tableName="T_IBIZORDER">
<column name="TP" remarks="" type="TEXT(1048576)">
</column>
......
......@@ -37,7 +37,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZORDER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorder-414-8" runOnChange="true">
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorder-418-8" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZORDER">
<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1 LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID ]]>
</createView>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册