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

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

上级 28008ac8
......@@ -1327,6 +1327,14 @@
"viewname": "IBIZHardwareIndexPickupDataView",
"viewtag": "ef58fa6d7d250a60a7907ed895681ea1"
},
"ibizbookoptionview": {
"title": "图书选项操作视图",
"caption": "图书",
"viewtype": "DEOPTVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKOptionView",
"viewtag": "efbe72fe207c5bb7ada28b278a9ea920"
},
"ibizbookcalendarview": {
"title": "图书日历视图(内置功能)",
"caption": "图书",
......
......@@ -249,6 +249,8 @@ export default {
menuitem126: "实体数据看板",
menuitem127: "导航视图",
menuitem128: "表格导航",
menuitem129: "选项操作",
menuitem130: "选项操作视图",
menuitem5: "视图",
menuitem9: "列表视图",
menuitem19: "常规表格视图",
......
......@@ -249,6 +249,8 @@ export default {
menuitem126: "实体数据看板",
menuitem127: "导航视图",
menuitem128: "表格导航",
menuitem129: "选项操作",
menuitem130: "选项操作视图",
menuitem5: "视图",
menuitem9: "列表视图",
menuitem19: "常规表格视图",
......
......@@ -150,6 +150,10 @@ export default {
caption: "图书",
title: "图书列表视图(代码表分组)",
},
optionview: {
caption: "图书",
title: "图书选项操作视图",
},
calendarview: {
caption: "图书",
title: "图书日历视图(内置功能)",
......
......@@ -149,6 +149,10 @@ export default {
caption: "图书",
title: "图书列表视图(代码表分组)",
},
optionview: {
caption: "图书",
title: "图书选项操作视图",
},
calendarview: {
caption: "图书",
title: "图书日历视图(内置功能)",
......
......@@ -1589,6 +1589,44 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
resourcetag: '',
},
],
},
{
id: 'BA9F0638-3206-4C76-A532-5C439906AB10',
name: 'menuitem129',
text: '选项操作',
type: 'MENUITEM',
counterid: '',
tooltip: '选项操作',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '7A527C69-A66B-4604-99AE-5640F95ED49F',
name: 'menuitem130',
text: '选项操作视图',
type: 'MENUITEM',
counterid: '',
tooltip: '选项操作视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc47',
resourcetag: '',
},
],
},
],
},
......
......@@ -1335,6 +1335,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZHardwareIndexPickupDataView",
"viewtag": "ef58fa6d7d250a60a7907ed895681ea1"
},
"ibizbookoptionview": {
"title": "图书选项操作视图",
"caption": "图书",
"viewtype": "DEOPTVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKOptionView",
"viewtag": "efbe72fe207c5bb7ada28b278a9ea920"
},
"ibizbookcalendarview": {
"title": "图书日历视图(内置功能)",
"caption": "图书",
......
.ibizbookoption-view{
position: relative;
}
.app-modal{
.view-container {
.view-card {
.ivu-card-body {
.content-container{
height: calc(100% - 64px);
.ivu-badge{
.ivu-badge-count{
top: -5px;
}
}
}
}
}
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKOptionViewBase from './ibizbookoption-view-base.vue';
import view_form from '@widgets/ibizbook/main-form/main-form.vue';
@Component({
components: {
view_form,
},
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 IBIZBOOKOptionView extends IBIZBOOKOptionViewBase {
}
</script>
\ No newline at end of file
......@@ -15,6 +15,7 @@ export const PageComponents = {
Vue.component('ibizsample0003-stree-exp-view2', () => import('@pages/sample/ibizsample0003-stree-exp-view2/ibizsample0003-stree-exp-view2.vue'));
Vue.component('ibizbookusr5-grid-view', () => import('@pages/sample/ibizbookusr5-grid-view/ibizbookusr5-grid-view.vue'));
Vue.component('ibizbookusr2-grid-view', () => import('@pages/sample/ibizbookusr2-grid-view/ibizbookusr2-grid-view.vue'));
Vue.component('ibizbookoption-view', () => import('@pages/sample/ibizbookoption-view/ibizbookoption-view.vue'));
Vue.component('ibizsample0001-sf2-edit-view', () => import('@pages/sample/ibizsample0001-sf2-edit-view/ibizsample0001-sf2-edit-view.vue'));
Vue.component('ibizorder-detail-sf2-edit-view', () => import('@pages/sample/ibizorder-detail-sf2-edit-view/ibizorder-detail-sf2-edit-view.vue'));
Vue.component('ibizbooknew-default-value-grid-view', () => import('@pages/sample/ibizbooknew-default-value-grid-view/ibizbooknew-default-value-grid-view.vue'));
......@@ -76,8 +77,8 @@ export const PageComponents = {
Vue.component('ibizuniproduct-edit-view', () => import('@pages/sample/ibizuniproduct-edit-view/ibizuniproduct-edit-view.vue'));
Vue.component('ibizbookusr2-calendar-view', () => import('@pages/sample/ibizbookusr2-calendar-view/ibizbookusr2-calendar-view.vue'));
Vue.component('ibizbookdata-view', () => import('@pages/sample/ibizbookdata-view/ibizbookdata-view.vue'));
Vue.component('ibizsample0001-usr2-grid-view', () => import('@pages/sample/ibizsample0001-usr2-grid-view/ibizsample0001-usr2-grid-view.vue'));
Vue.component('ibizcustomer-pickup-view', () => import('@pages/sample/ibizcustomer-pickup-view/ibizcustomer-pickup-view.vue'));
Vue.component('ibizsample0001-usr2-grid-view', () => import('@pages/sample/ibizsample0001-usr2-grid-view/ibizsample0001-usr2-grid-view.vue'));
Vue.component('ibizuniproduct-index-pickup-view', () => import('@pages/sample/ibizuniproduct-index-pickup-view/ibizuniproduct-index-pickup-view.vue'));
Vue.component('ibizsample0003-sf1-edit-view', () => import('@pages/sample/ibizsample0003-sf1-edit-view/ibizsample0003-sf1-edit-view.vue'));
Vue.component('ibizbookinter-func-edit-view', () => import('@pages/sample/ibizbookinter-func-edit-view/ibizbookinter-func-edit-view.vue'));
......
......@@ -290,6 +290,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookusr2-grid-view/ibizbookusr2-grid-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/optionview/:optionview?',
meta: {
caption: 'entities.ibizbook.views.optionview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'optionview', parameterName: 'optionview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookoption-view/ibizbookoption-view.vue'),
},
{
path: 'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf2editview/:sf2editview?',
meta: {
......@@ -1175,27 +1189,27 @@ const router = new Router({
component: () => import('@pages/sample/ibizbookdata-view/ibizbookdata-view.vue'),
},
{
path: 'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/usr2gridview/:usr2gridview?',
path: 'ibizcustomers/:ibizcustomer?/pickupview/:pickupview?',
meta: {
caption: 'entities.ibizsample0001.views.usr2gridview.caption',
caption: 'entities.ibizcustomer.views.pickupview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' },
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'usr2gridview', parameterName: 'usr2gridview' },
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizsample0001-usr2-grid-view/ibizsample0001-usr2-grid-view.vue'),
component: () => import('@pages/sample/ibizcustomer-pickup-view/ibizcustomer-pickup-view.vue'),
},
{
path: 'ibizsample0001s/:ibizsample0001?/usr2gridview/:usr2gridview?',
path: 'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/usr2gridview/:usr2gridview?',
meta: {
caption: 'entities.ibizsample0001.views.usr2gridview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' },
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'usr2gridview', parameterName: 'usr2gridview' },
],
......@@ -1204,18 +1218,18 @@ const router = new Router({
component: () => import('@pages/sample/ibizsample0001-usr2-grid-view/ibizsample0001-usr2-grid-view.vue'),
},
{
path: 'ibizcustomers/:ibizcustomer?/pickupview/:pickupview?',
path: 'ibizsample0001s/:ibizsample0001?/usr2gridview/:usr2gridview?',
meta: {
caption: 'entities.ibizcustomer.views.pickupview.caption',
caption: 'entities.ibizsample0001.views.usr2gridview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'usr2gridview', parameterName: 'usr2gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-pickup-view/ibizcustomer-pickup-view.vue'),
component: () => import('@pages/sample/ibizsample0001-usr2-grid-view/ibizsample0001-usr2-grid-view.vue'),
},
{
path: 'ibizuniproducts/:ibizuniproduct?/indexpickupview/:indexpickupview?',
......@@ -4350,6 +4364,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizhardware-index-pickup-data-view/ibizhardware-index-pickup-data-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/optionview/:optionview?',
meta: {
caption: 'entities.ibizbook.views.optionview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'optionview', parameterName: 'optionview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookoption-view/ibizbookoption-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/calendarview/:calendarview?',
meta: {
......
......@@ -202,6 +202,7 @@ export const viewstate: any = {
'ac9add3724d90fba46e7298ac051fa5f',
'39e841c85d9bbfc7ecf009c4202dbf0c',
'703686dd4e6aa6f55aca5d92c00d9ee3',
'efbe72fe207c5bb7ada28b278a9ea920',
'2bf74d5d66fa6d8d38b21b090586529b',
'16b68282950fb352dfe27e94bda47304',
'8d1205a914564cbd528cadc3963c2905',
......@@ -1586,6 +1587,15 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: 'efbe72fe207c5bb7ada28b278a9ea920',
viewmodule: 'Sample',
viewname: 'IBIZBOOKOptionView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'f4c5c766fd5755b694e0401dddc4d1ad',
viewmodule: 'Sample',
......
......@@ -129,6 +129,7 @@ export default class IBIZBOOKUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'ganttview',srfappde:'ibizbooks',component:'ibizbookgantt-view'});
this.allViewMap.set(':',{viewname:'usr2dataview',srfappde:'ibizbooks',component:'ibizbookusr2-data-view'});
this.allViewMap.set(':',{viewname:'groupbycodelistlistview',srfappde:'ibizbooks',component:'ibizbookgroup-by-codelist-list-view'});
this.allViewMap.set(':',{viewname:'optionview',srfappde:'ibizbooks',component:'ibizbookoption-view'});
this.allViewMap.set(':',{viewname:'calendarview',srfappde:'ibizbooks',component:'ibizbookcalendar-view'});
this.allViewMap.set(':',{viewname:'editview4',srfappde:'ibizbooks',component:'ibizbookedit-view4'});
this.allViewMap.set(':',{viewname:'internalfuncgridview',srfappde:'ibizbooks',component:'ibizbookinternal-func-grid-view'});
......
......@@ -686,6 +686,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'AppFunc3':
this.clickAppFunc3(item);
return;
case 'AppFunc47':
this.clickAppFunc47(item);
return;
case 'Auto235':
this.clickAuto235(item);
return;
......@@ -2112,6 +2115,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 功能名称
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc47(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'optionview', parameterName: 'optionview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
return;
}
this.$nextTick(function(){
this.$router.push(path);
})
}
/**
* 右键操作
*
......
......@@ -1679,6 +1679,46 @@ export default class MainMenuModel {
authtag:'Web-MainMenu-menuitem128',
},
],
},
{
id: 'BA9F0638-3206-4C76-A532-5C439906AB10',
name: 'menuitem129',
text: '选项操作',
type: 'MENUITEM',
counterid: '',
tooltip: '选项操作',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
authtag:'Web-MainMenu-menuitem129',
items: [
{
id: '7A527C69-A66B-4604-99AE-5640F95ED49F',
name: 'menuitem130',
text: '选项操作视图',
type: 'MENUITEM',
counterid: '',
tooltip: '选项操作视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc47',
resourcetag: '',
authtag:'Web-MainMenu-menuitem130',
},
],
},
],
},
......
......@@ -1672,7 +1672,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKEditView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1707,7 +1707,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKEditView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1769,7 +1769,7 @@ export default class MainBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKEditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1877,7 +1877,7 @@ export default class MainBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKEditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1954,7 +1954,7 @@ export default class MainBase extends Vue implements ControlInterface {
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKEditView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册