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

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

上级 535aa576
......@@ -87,6 +87,14 @@
"viewname": "IBIZOrderSF6GridView",
"viewtag": "13ed6c02918e612bac45715a6f300f2f"
},
"ibizordertypeusr2gridview": {
"title": "订单类型表格视图",
"caption": "订单类型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderTypeUsr2GridView",
"viewtag": "14eddc6d2c858a72c796b017959cc4ef"
},
"ibizorderf9editview": {
"title": "表单动态空输入",
"caption": "表单动态空输入",
......
......@@ -14,6 +14,10 @@ export default {
caption: "订单类型",
title: "订单类型数据选择视图",
},
usr2gridview: {
caption: "订单类型",
title: "订单类型表格视图",
},
editview: {
caption: "订单类型",
title: "订单类型编辑视图",
......@@ -64,6 +68,8 @@ export default {
uiactions: {
},
},
usr2gridviewtoolbar_toolbar: {
},
usr2editviewtoolbar_toolbar: {
},
editviewtoolbar_toolbar: {
......
......@@ -13,6 +13,10 @@ export default {
caption: "订单类型",
title: "订单类型数据选择视图",
},
usr2gridview: {
caption: "订单类型",
title: "订单类型表格视图",
},
editview: {
caption: "订单类型",
title: "订单类型编辑视图",
......@@ -63,6 +67,8 @@ export default {
uiactions: {
},
},
usr2gridviewtoolbar_toolbar: {
},
usr2editviewtoolbar_toolbar: {
},
editviewtoolbar_toolbar: {
......
......@@ -95,6 +95,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZOrderSF6GridView",
"viewtag": "13ed6c02918e612bac45715a6f300f2f"
},
"ibizordertypeusr2gridview": {
"title": "订单类型表格视图",
"caption": "订单类型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderTypeUsr2GridView",
"viewtag": "14eddc6d2c858a72c796b017959cc4ef"
},
"ibizorderf9editview": {
"title": "表单动态空输入",
"caption": "表单动态空输入",
......
.ibizorder-type-usr2-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
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZOrderTypeUsr2GridViewBase from './ibizorder-type-usr2-grid-view-base.vue';
import view_grid from '@widgets/ibizorder-type/main-grid/main-grid.vue';
import view_searchform from '@widgets/ibizorder-type/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
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 IBIZOrderTypeUsr2GridView extends IBIZOrderTypeUsr2GridViewBase {
}
</script>
\ No newline at end of file
......@@ -141,6 +141,7 @@ export const PageComponents = {
Vue.component('ibizuniproduct-grid-view9', () => import('@pages/sample/ibizuniproduct-grid-view9/ibizuniproduct-grid-view9.vue'));
Vue.component('ibizsample0003-sf5-edit-view', () => import('@pages/sample/ibizsample0003-sf5-edit-view/ibizsample0003-sf5-edit-view.vue'));
Vue.component('ibizuniproduct-index-pickup-data-view', () => import('@pages/sample/ibizuniproduct-index-pickup-data-view/ibizuniproduct-index-pickup-data-view.vue'));
Vue.component('ibizorder-type-usr2-grid-view', () => import('@pages/sample/ibizorder-type-usr2-grid-view/ibizorder-type-usr2-grid-view.vue'));
Vue.component('ibizsample0018-grid-view', () => import('@pages/sample/ibizsample0018-grid-view/ibizsample0018-grid-view.vue'));
Vue.component('ibizsample0014-grid-view', () => import('@pages/sample/ibizsample0014-grid-view/ibizsample0014-grid-view.vue'));
Vue.component('app-panel-view', () => import('@pages/ungroup/app-panel-view/app-panel-view.vue'));
......
......@@ -2069,6 +2069,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizuniproduct-index-pickup-data-view/ibizuniproduct-index-pickup-data-view.vue'),
},
{
path: 'ibizordertypes/:ibizordertype?/usr2gridview/:usr2gridview?',
meta: {
caption: 'entities.ibizordertype.views.usr2gridview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizordertypes', parameterName: 'ibizordertype' },
{ pathName: 'usr2gridview', parameterName: 'usr2gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-type-usr2-grid-view/ibizorder-type-usr2-grid-view.vue'),
},
...indexRoutes,
],
},
......@@ -2230,6 +2244,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-sf6-grid-view/ibizorder-sf6-grid-view.vue'),
},
{
path: '/ibizordertypes/:ibizordertype?/usr2gridview/:usr2gridview?',
meta: {
caption: 'entities.ibizordertype.views.usr2gridview.caption',
info:'',
parameters: [
{ pathName: 'ibizordertypes', parameterName: 'ibizordertype' },
{ pathName: 'usr2gridview', parameterName: 'usr2gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-type-usr2-grid-view/ibizorder-type-usr2-grid-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/f9editview/:f9editview?',
meta: {
......
......@@ -105,6 +105,16 @@ export const viewstate: any = {
'f4cda6703c800c075704c5af5e58f2fc',
],
},
{
viewtag: '14eddc6d2c858a72c796b017959cc4ef',
viewmodule: 'Sample',
viewname: 'IBIZOrderTypeUsr2GridView',
viewaction: '',
viewdatachange: false,
refviews: [
'82014278d03dfb22039740c03d2a461f',
],
},
{
viewtag: '16b68282950fb352dfe27e94bda47304',
viewmodule: 'Sample',
......@@ -190,7 +200,6 @@ export const viewstate: any = {
'b038c48269316664e5b48380a879fd99',
'd9bd3192a20de0815bed3fd3d79d0cb1',
'98865bf786ea85b14932dd5e48a74983',
'82014278d03dfb22039740c03d2a461f',
'b1591dc4d651536bceb32b60310fd2a5',
'19d36909f837de28880553dc9a190922',
'e92ac401e96f4e17763322eca8355c30',
......@@ -233,6 +242,7 @@ export const viewstate: any = {
'a894de140705ecab2f39797d2922a3ce',
'e57dd501c75c6933363fa245edcadbbd',
'ea604a66caf499c70c9002a917dd1694',
'14eddc6d2c858a72c796b017959cc4ef',
'4981c4ae8facb75582f8dcbc51850318',
],
},
......
......@@ -97,6 +97,7 @@ export default class IBIZOrderTypeUIServiceBase extends UIService {
*/
public initViewMap(){
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizordertypes',component:'ibizorder-type-pickup-view'});
this.allViewMap.set(':',{viewname:'usr2gridview',srfappde:'ibizordertypes',component:'ibizorder-type-usr2-grid-view'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizordertypes',component:'ibizorder-type-edit-view'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizordertypes',component:'ibizorder-type-pickup-grid-view'});
this.allViewMap.set(':',{viewname:'usr2editview',srfappde:'ibizordertypes',component:'ibizorder-type-usr2-edit-view'});
......
......@@ -2462,7 +2462,7 @@ export default class MainMenuBase extends Vue implements ControlInterface {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizordertypes', parameterName: 'ibizordertype' },
{ pathName: 'usr2editview', parameterName: 'usr2editview' },
{ pathName: 'usr2gridview', parameterName: 'usr2gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......
......@@ -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: 'IBIZOrderTypePickupGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypeUsr2GridView' + (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: 'IBIZOrderTypePickupGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypeUsr2GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -317,6 +317,20 @@ export default class MainBase extends Vue implements ControlInterface {
return this.selections[0];
}
/**
* 打开新建数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public newdata: any;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public opendata: any;
/**
* 是否嵌入关系界面
......@@ -818,7 +832,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypePickupGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypeUsr2GridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(pageReset){
......@@ -908,7 +922,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypePickupGridView'+(this.$t('app.gridpage.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypeUsr2GridView'+(this.$t('app.gridpage.notConfig.removeAction') as string) });
return;
}
let _datas:any[] = [];
......@@ -1013,7 +1027,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public addBatch(arg: any = {}): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypePickupGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypeUsr2GridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(!arg){
......@@ -1892,7 +1906,7 @@ export default class MainBase extends Vue implements ControlInterface {
try {
if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypePickupGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypeUsr2GridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
......@@ -1900,7 +1914,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypePickupGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypeUsr2GridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizordertype){
......@@ -1973,7 +1987,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public newRow(args: any[], params?: any, $event?: any, xData?: any): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypePickupGridView'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTypeUsr2GridView'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) });
return;
}
let _this = this;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册