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

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

上级 949dd7c7
......@@ -351,6 +351,14 @@
"viewname": "IBIZOrderLineChartView",
"viewtag": "41d3da0d37fb0135ace813f1ba06bd39"
},
"ibizbookdashboardview": {
"title": "图书数据看板视图",
"caption": "图书",
"viewtype": "DEPORTALVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKDashboardView",
"viewtag": "427821f1e67ee5b79dde237e66a7b9c9"
},
"ibizcustomerpickupgridview": {
"title": "客户选择表格视图",
"caption": "客户",
......@@ -519,6 +527,14 @@
"viewname": "IBIZSample0001Usr2GridView",
"viewtag": "5e70ef78614b0b13a94605f7c22f4da4"
},
"ibizordergridexpview": {
"title": "订单表格导航视图",
"caption": "订单",
"viewtype": "DEGRIDEXPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderGridExpView",
"viewtag": "5f21463b9d808170d4023d8402cc6e9e"
},
"ibizbookeditview2": {
"title": "图书编辑视图",
"caption": "图书",
......
......@@ -42,6 +42,10 @@ export default {
caption: "图书",
title: "图书表格视图(自动分组)",
},
dashboardview: {
caption: "图书",
title: "图书数据看板视图",
},
haspanellistview: {
caption: "图书",
title: "图书列表视图(嵌入面板)",
......@@ -1146,6 +1150,22 @@ export default {
},
haspanellistviewtoolbar_toolbar: {
},
dashboardviewdashboard_sysportlet2_list_quicktoolbar_toolbar: {
deuiaction1: {
caption: "New",
tip: "New",
},
},
dashboardviewdashboard_sysportlet2_list_batchtoolbar_toolbar: {
deuiaction1: {
caption: "Edit",
tip: "Edit {0}",
},
deuiaction2: {
caption: "Remove",
tip: "Remove {0}",
},
},
tree_treeview: {
nodata:"",
nodes: {
......
......@@ -41,6 +41,10 @@ export default {
caption: "图书",
title: "图书表格视图(自动分组)",
},
dashboardview: {
caption: "图书",
title: "图书数据看板视图",
},
haspanellistview: {
caption: "图书",
title: "图书列表视图(嵌入面板)",
......@@ -1145,6 +1149,22 @@ export default {
},
haspanellistviewtoolbar_toolbar: {
},
dashboardviewdashboard_sysportlet2_list_quicktoolbar_toolbar: {
deuiaction1: {
caption: "新建",
tip: "新建",
},
},
dashboardviewdashboard_sysportlet2_list_batchtoolbar_toolbar: {
deuiaction1: {
caption: "编辑",
tip: "编辑",
},
deuiaction2: {
caption: "删除",
tip: "删除",
},
},
tree_treeview: {
nodata:"",
nodes: {
......
......@@ -93,6 +93,10 @@ export default {
caption: "订单",
title: "订单编辑视图",
},
gridexpview: {
caption: "订单",
title: "订单表格导航视图",
},
odsp_d10_wfgridview: {
caption: "订单",
title: "订单工作流表格视图(订单审批:未提交)",
......@@ -698,6 +702,16 @@ export default {
uiactions: {
},
},
main2_grid: {
columns: {
ibizordername: "订单名称",
ordertype: "订单类型",
ibizcustomername: "客户名称",
},
nodata:"",
uiactions: {
},
},
pie_chart: {
nodata:"",
},
......
......@@ -92,6 +92,10 @@ export default {
caption: "订单",
title: "订单编辑视图",
},
gridexpview: {
caption: "订单",
title: "订单表格导航视图",
},
odsp_d10_wfgridview: {
caption: "订单",
title: "订单工作流表格视图(订单审批:未提交)",
......@@ -697,6 +701,16 @@ export default {
uiactions: {
},
},
main2_grid: {
columns: {
ibizordername: "订单名称",
ordertype: "订单类型",
ibizcustomername: "客户名称",
},
nodata:"",
uiactions: {
},
},
pie_chart: {
nodata:"",
},
......
......@@ -466,6 +466,14 @@ export default {
usr3gridviewtoolbar_toolbar: {
},
usr2editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
......
......@@ -465,6 +465,14 @@ export default {
usr3gridviewtoolbar_toolbar: {
},
usr2editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
......
......@@ -359,6 +359,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZOrderLineChartView",
"viewtag": "41d3da0d37fb0135ace813f1ba06bd39"
},
"ibizbookdashboardview": {
"title": "图书数据看板视图",
"caption": "图书",
"viewtype": "DEPORTALVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKDashboardView",
"viewtag": "427821f1e67ee5b79dde237e66a7b9c9"
},
"ibizcustomerpickupgridview": {
"title": "客户选择表格视图",
"caption": "客户",
......@@ -527,6 +535,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZSample0001Usr2GridView",
"viewtag": "5e70ef78614b0b13a94605f7c22f4da4"
},
"ibizordergridexpview": {
"title": "订单表格导航视图",
"caption": "订单",
"viewtype": "DEGRIDEXPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderGridExpView",
"viewtag": "5f21463b9d808170d4023d8402cc6e9e"
},
"ibizbookeditview2": {
"title": "图书编辑视图",
"caption": "图书",
......
......@@ -6,6 +6,20 @@
<div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem3.visabled" :disabled="toolBarModels.tbitem3.disabled" class=' deepskyblueToolBar' v-loading:i-button @click="toolbar_click({ tag: 'tbitem3' }, $event)">
<i class='fa fa-save'></i>
<span class='caption'>{{$t('entities.ibizsample0001.usr2editviewtoolbar_toolbar.tbitem3.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizsample0001.usr2editviewtoolbar_toolbar.tbitem3.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem5.visabled" :disabled="toolBarModels.tbitem5.disabled" class='' v-loading:i-button @click="toolbar_click({ tag: 'tbitem5' }, $event)">
<i class='sx-tb-saveandclose'></i>
<span class='caption'>{{$t('entities.ibizsample0001.usr2editviewtoolbar_toolbar.tbitem5.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizsample0001.usr2editviewtoolbar_toolbar.tbitem5.tip')}}</div>
</tooltip>
</div>
</div>
......@@ -257,6 +271,10 @@ export default class IBIZSample0001Usr2EditViewBase extends Vue {
* @memberof IBIZSample0001Usr2EditView
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', actiontarget: 'NONE', caption: '保存', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Save', target: '' } },
tbitem5: { name: 'tbitem5', actiontarget: 'NONE', caption: '保存并关闭', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' } },
};
......@@ -581,6 +599,29 @@ export default class IBIZSample0001Usr2EditViewBase extends Vue {
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZSample0001Usr2EditViewBase
*/
public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem9')) {
this.toolbar_tbitem9_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem15')) {
this.toolbar_tbitem15_click(null, '', $event2);
}
}
/**
* form 部件 save 事件
*
......@@ -618,6 +659,227 @@ export default class IBIZSample0001Usr2EditViewBase extends Vue {
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"IBIZSample0001");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"IBIZSample0001");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem9_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"IBIZSample0001");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem15_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"IBIZSample0001");
}
/**
* 保存
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0001Usr2EditViewBase
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0001Usr2EditViewBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 开始流程
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0001Usr2EditViewBase
*/
public SaveAndStart(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.wfstart instanceof Function)) {
return;
}
xData.wfstart(args).then((response: any) => {
if (!response || response.status !== 200) {
return;
}
const { data: _data } = response;
if(window.parent){
window.parent.postMessage({ ..._data },'*');
}
if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
}
});
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0001Usr2EditViewBase
*/
public Print(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this;
if (!xData || !(xData.print instanceof Function) || !$event) {
return ;
}
xData.print();
}
/**
* 关闭视图
......
......@@ -23,4 +23,5 @@
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
......@@ -102,6 +102,7 @@ export default class IBIZBOOKUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'treegridexview',srfappde:'ibizbooks',component:'ibizbooktree-grid-ex-view'});
this.allViewMap.set(':',{viewname:'groupbycodelistkanbanview',srfappde:'ibizbooks',component:'ibizbookgroup-by-codelist-kan-ban-view'});
this.allViewMap.set(':',{viewname:'usr2gridview',srfappde:'ibizbooks',component:'ibizbookusr2-grid-view'});
this.allViewMap.set(':',{viewname:'dashboardview',srfappde:'ibizbooks',component:'ibizbookdashboard-view'});
this.allViewMap.set(':',{viewname:'haspanellistview',srfappde:'ibizbooks',component:'ibizbookhas-panel-list-view'});
this.allViewMap.set(':',{viewname:'usr2calendarview',srfappde:'ibizbooks',component:'ibizbookusr2-calendar-view'});
this.allViewMap.set(':',{viewname:'valuerulesgridview',srfappde:'ibizbooks',component:'ibizbookvalue-rules-grid-view'});
......
......@@ -113,6 +113,7 @@ export default class IBIZOrderUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'radarchartview',srfappde:'ibizorders',component:'ibizorder-radar-chart-view'});
this.allViewMap.set(':',{viewname:'usr2chartview',srfappde:'ibizorders',component:'ibizorder-usr2-chart-view'});
this.allViewMap.set(':',{viewname:'seditview',srfappde:'ibizorders',component:'ibizorder-sedit-view'});
this.allViewMap.set(':',{viewname:'gridexpview',srfappde:'ibizorders',component:'ibizorder-grid-exp-view'});
this.allViewMap.set('WFMDATAVIEW:ODSP:D:10',{viewname:'odsp_d10_wfgridview',srfappde:'ibizorders',component:'ibizorder-odsp-d10-wfgrid-view'});
this.allViewMap.set(':',{viewname:'sf7editview',srfappde:'ibizorders',component:'ibizorder-sf7-edit-view'});
this.allViewMap.set(':',{viewname:'seditview4',srfappde:'ibizorders',component:'ibizorder-sedit-view4'});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册