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

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

上级 932b0827
......@@ -1083,7 +1083,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc30',
appfunctag: 'AppFunc73',
resourcetag: '',
},
{
......
.ibizorder-tree-grid-ex-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 IBIZOrderTreeGridExViewBase from './ibizorder-tree-grid-ex-view-base.vue';
import view_treegridex from '@widgets/ibizorder/order-tree-grid-treegridex/order-tree-grid-treegridex.vue';
@Component({
components: {
view_treegridex,
},
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 IBIZOrderTreeGridExView extends IBIZOrderTreeGridExViewBase {
}
</script>
\ No newline at end of file
......@@ -29,7 +29,6 @@ export const PageComponents = {
Vue.component('ibizbookcalendar-view', () => import('@pages/sample/ibizbookcalendar-view/ibizbookcalendar-view.vue'));
Vue.component('ibizhardware-index-pickup-data-view', () => import('@pages/sample/ibizhardware-index-pickup-data-view/ibizhardware-index-pickup-data-view.vue'));
Vue.component('ibizorder-sgrid-view2', () => import('@pages/sample/ibizorder-sgrid-view2/ibizorder-sgrid-view2.vue'));
Vue.component('ibizbooktree-grid-ex-view', () => import('@pages/sample/ibizbooktree-grid-ex-view/ibizbooktree-grid-ex-view.vue'));
Vue.component('ibizcustomer-mpickup-view', () => import('@pages/sample/ibizcustomer-mpickup-view/ibizcustomer-mpickup-view.vue'));
Vue.component('ibizuniproduct-pickup-grid-view', () => import('@pages/sample/ibizuniproduct-pickup-grid-view/ibizuniproduct-pickup-grid-view.vue'));
Vue.component('ibizorder-odsp-wfexp-view', () => import('@pages/sample/ibizorder-odsp-wfexp-view/ibizorder-odsp-wfexp-view.vue'));
......@@ -123,6 +122,7 @@ export const PageComponents = {
Vue.component('ibizorder-sedit-view4', () => import('@pages/sample/ibizorder-sedit-view4/ibizorder-sedit-view4.vue'));
Vue.component('ibizsoftware-suit-grid-view9', () => import('@pages/sample/ibizsoftware-suit-grid-view9/ibizsoftware-suit-grid-view9.vue'));
Vue.component('ibizbookhas-panel-list-view', () => import('@pages/sample/ibizbookhas-panel-list-view/ibizbookhas-panel-list-view.vue'));
Vue.component('ibizorder-tree-grid-ex-view', () => import('@pages/sample/ibizorder-tree-grid-ex-view/ibizorder-tree-grid-ex-view.vue'));
Vue.component('ibizorder-sf6-grid-view', () => import('@pages/sample/ibizorder-sf6-grid-view/ibizorder-sf6-grid-view.vue'));
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'));
......
......@@ -531,20 +531,6 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-sgrid-view2/ibizorder-sgrid-view2.vue'),
},
{
path: 'ibizbooks/:ibizbook?/treegridexview/:treegridexview?',
meta: {
caption: 'entities.ibizbook.views.treegridexview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'treegridexview', parameterName: 'treegridexview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbooktree-grid-ex-view/ibizbooktree-grid-ex-view.vue'),
},
{
path: 'ibizcustomers/:ibizcustomer?/mpickupview/:mpickupview?',
meta: {
......@@ -1967,6 +1953,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookhas-panel-list-view/ibizbookhas-panel-list-view.vue'),
},
{
path: 'ibizorders/:ibizorder?/treegridexview/:treegridexview?',
meta: {
caption: 'entities.ibizorder.views.treegridexview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'treegridexview', parameterName: 'treegridexview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-tree-grid-ex-view/ibizorder-tree-grid-ex-view.vue'),
},
{
path: 'ibizorders/:ibizorder?/sf6gridview/:sf6gridview?',
meta: {
......@@ -3148,6 +3148,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-pickup-view/ibizorder-pickup-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/treegridexview/:treegridexview?',
meta: {
caption: 'entities.ibizorder.views.treegridexview.caption',
info:'',
parameters: [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'treegridexview', parameterName: 'treegridexview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-tree-grid-ex-view/ibizorder-tree-grid-ex-view.vue'),
},
{
path: '/ibizsample0003s/:ibizsample0003?/sf4editview/:sf4editview?',
meta: {
......@@ -3372,19 +3385,6 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookrules-edit-view/ibizbookrules-edit-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/treegridexview/:treegridexview?',
meta: {
caption: 'entities.ibizbook.views.treegridexview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'treegridexview', parameterName: 'treegridexview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbooktree-grid-ex-view/ibizbooktree-grid-ex-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/f13editview/:f13editview?',
meta: {
......
......@@ -165,6 +165,15 @@ export const viewstate: any = {
'ab95605c916465005585241e9e74c009',
],
},
{
viewtag: '17c2991a0bd88cfd2bd6f8651537450b',
viewmodule: 'Sample',
viewname: 'IBIZOrderTreeGridExView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '19d36909f837de28880553dc9a190922',
viewmodule: 'Sample',
......@@ -201,7 +210,6 @@ export const viewstate: any = {
'fdb297cd4b12374534413c3053aec1b8',
'f4c5c766fd5755b694e0401dddc4d1ad',
'e7441fa67d425df343d996c745fb5d6b',
'2ccd29eeaeded3ea5a713a19cd67a83e',
'aa68a83577209ff0ec3864aec4e194f2',
'692ede21641dfdb7075ede69d7c4ad33',
'd69d223e4d3aeb8d947ac9b9ddc60a7e',
......@@ -257,6 +265,7 @@ export const viewstate: any = {
'7f65e6161c444d29e1f53f1cb76e92de',
'756fecec409c3a955f0cd737259d27c7',
'490f607f17e7cc8ceccc77f2d0b9a70d',
'17c2991a0bd88cfd2bd6f8651537450b',
'13ed6c02918e612bac45715a6f300f2f',
'9c8e1b12e5e55164c2ec0e5617e1574b',
'e9b54ef29b192ecd2da05ff9570eb4d5',
......@@ -419,16 +428,6 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '2ccd29eeaeded3ea5a713a19cd67a83e',
viewmodule: 'Sample',
viewname: 'IBIZBOOKTreeGridExView',
viewaction: '',
viewdatachange: false,
refviews: [
'b3429ecc4d89a02bc5f5279f1bd7f620',
],
},
{
viewtag: '2cd3a77cbd2aad4551b7a6a009419d52',
viewmodule: 'Sample',
......
......@@ -596,6 +596,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto375':
this.clickAuto375(item);
return;
case 'AppFunc73':
this.clickAppFunc73(item);
return;
case 'Auto106':
this.clickAuto106(item);
return;
......@@ -764,9 +767,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto243':
this.clickAuto243(item);
return;
case 'AppFunc30':
this.clickAppFunc30(item);
return;
case 'AppFunc66':
this.clickAppFunc66(item);
return;
......@@ -1482,6 +1482,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 树表格(增强)
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc73(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'treegridexview', parameterName: 'treegridexview' },
];
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);
})
}
/**
* 表单项值重置
*
......@@ -2770,29 +2793,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 图书实体树表格
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc30(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'treegridexview', parameterName: 'treegridexview' },
];
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);
})
}
/**
* 应用门户视图
*
......
......@@ -1145,7 +1145,7 @@ export default class MainMenuModel {
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc30',
appfunctag: 'AppFunc73',
resourcetag: '',
authtag:'Web-MainMenu-menuitem110',
},
......
/**
* OrderTreeGrid 部件模型
*
* @export
* @class OrderTreeGridModel
*/
export default class OrderTreeGridModel {
/**
* 日历项类型
*
* @returns {any[]}
* @memberof OrderTreeGridTreegridexMode
*/
public itemType: string = "";
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof OrderTreeGridTreegridexMode
*/
public getDataItems(): any[] {
let dataItems: any = [
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'style',
},
{
name: 'textColor',
},
{
name: 'itemType',
},
{
name: 'parentId'
},
{
name: 'query',
prop: 'query',
},
];
switch(this.itemType){
case "orderData":
dataItems = [...dataItems,
{
name: 'id',
prop: 'ibizorderid'
},
{
name: 'name',
prop: 'ibizordername'
},
{
name: 'id',
prop: 'orderuid'
},
{
name: 'updatedate',
prop: 'updatedate'
},
];
break;
case "orderDetailData":
dataItems = [...dataItems,
{
name: 'id',
prop: 'ibizorderdetailid'
},
{
name: 'updatedate',
prop: 'updatedate'
},
{
name: 'id',
prop: 'ibizorderdetailid'
},
{
name: 'name',
prop: 'ibizorderdetailname'
},
];
break;
}
return dataItems;
}
}
\ No newline at end of file
.gantt {
height: 100%;
.gantt-elastic__main-view-container {
flex-grow: 1;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import OrderTreeGridBase from './order-tree-grid-treegridex-base.vue';
@Component({
components: {
}
})
export default class OrderTreeGrid extends OrderTreeGridBase {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册