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

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

上级 e47aef33
...@@ -679,6 +679,14 @@ ...@@ -679,6 +679,14 @@
"viewname": "IBIZUNIProductSGridView", "viewname": "IBIZUNIProductSGridView",
"viewtag": "b29d930f430c127162f83753d85dd40c" "viewtag": "b29d930f430c127162f83753d85dd40c"
}, },
"ibizbookeditview": {
"title": "图书编辑视图",
"caption": "图书",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKEditView",
"viewtag": "b3429ecc4d89a02bc5f5279f1bd7f620"
},
"ibizorderdetailsgridview9": { "ibizorderdetailsgridview9": {
"title": "订单明细表格视图", "title": "订单明细表格视图",
"caption": "订单明细", "caption": "订单明细",
...@@ -887,6 +895,14 @@ ...@@ -887,6 +895,14 @@
"viewname": "IBIZOrderEditView", "viewname": "IBIZOrderEditView",
"viewtag": "f4cda6703c800c075704c5af5e58f2fc" "viewtag": "f4cda6703c800c075704c5af5e58f2fc"
}, },
"ibizbookinternalfuncgridview": {
"title": "表格内置功能",
"caption": "图书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKInternalFuncGridView",
"viewtag": "f73da4cb47a88d3fe5b92716e0137741"
},
"ibizcustomerpickupview": { "ibizcustomerpickupview": {
"title": "客户数据选择视图", "title": "客户数据选择视图",
"caption": "客户", "caption": "客户",
......
...@@ -53,6 +53,7 @@ export class AuthServiceRegister { ...@@ -53,6 +53,7 @@ export class AuthServiceRegister {
this.allAuthService.set('ibizsample0014', () => import('@/authservice/ibizsample0014/ibizsample0014-auth-service')); this.allAuthService.set('ibizsample0014', () => import('@/authservice/ibizsample0014/ibizsample0014-auth-service'));
this.allAuthService.set('ibizsample0001', () => import('@/authservice/ibizsample0001/ibizsample0001-auth-service')); this.allAuthService.set('ibizsample0001', () => import('@/authservice/ibizsample0001/ibizsample0001-auth-service'));
this.allAuthService.set('ibizsample0008', () => import('@/authservice/ibizsample0008/ibizsample0008-auth-service')); this.allAuthService.set('ibizsample0008', () => import('@/authservice/ibizsample0008/ibizsample0008-auth-service'));
this.allAuthService.set('ibizbook', () => import('@/authservice/ibizbook/ibizbook-auth-service'));
this.allAuthService.set('ibizsample0015', () => import('@/authservice/ibizsample0015/ibizsample0015-auth-service')); this.allAuthService.set('ibizsample0015', () => import('@/authservice/ibizsample0015/ibizsample0015-auth-service'));
this.allAuthService.set('ibizsample0020', () => import('@/authservice/ibizsample0020/ibizsample0020-auth-service')); this.allAuthService.set('ibizsample0020', () => import('@/authservice/ibizsample0020/ibizsample0020-auth-service'));
this.allAuthService.set('ibizsample0011', () => import('@/authservice/ibizsample0011/ibizsample0011-auth-service')); this.allAuthService.set('ibizsample0011', () => import('@/authservice/ibizsample0011/ibizsample0011-auth-service'));
......
import AuthService from '../auth-service';
/**
* 图书权限服务对象基类
*
* @export
* @class IBIZBOOKAuthServiceBase
* @extends {AuthService}
*/
export default class IBIZBOOKAuthServiceBase extends AuthService {
/**
* Creates an instance of IBIZBOOKAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZBOOKAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof IBIZBOOKAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = this.getSysOPPrivs();
let copyDefaultOPPrivs:any = JSON.parse(JSON.stringify(curDefaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
// 统一资源优先
Object.keys(curDefaultOPPrivs).forEach((name:string) => {
if(this.sysOPPrivsMap.get(name) && copyDefaultOPPrivs[name] === 0){
curDefaultOPPrivs[name] = copyDefaultOPPrivs[name];
}
});
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import IBIZBOOKAuthServiceBase from './ibizbook-auth-service-base';
/**
* 图书权限服务对象
*
* @export
* @class IBIZBOOKAuthService
* @extends {IBIZBOOKAuthServiceBase}
*/
export default class IBIZBOOKAuthService extends IBIZBOOKAuthServiceBase {
/**
* Creates an instance of IBIZBOOKAuthService.
*
* @param {*} [opts={}]
* @memberof IBIZBOOKAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -12,6 +12,7 @@ import ibizordertype_en_US from '@locale/lanres/entities/ibizorder-type/ibizorde ...@@ -12,6 +12,7 @@ import ibizordertype_en_US from '@locale/lanres/entities/ibizorder-type/ibizorde
import ibizsample0014_en_US from '@locale/lanres/entities/ibizsample0014/ibizsample0014_en_US'; import ibizsample0014_en_US from '@locale/lanres/entities/ibizsample0014/ibizsample0014_en_US';
import ibizsample0001_en_US from '@locale/lanres/entities/ibizsample0001/ibizsample0001_en_US'; import ibizsample0001_en_US from '@locale/lanres/entities/ibizsample0001/ibizsample0001_en_US';
import ibizsample0008_en_US from '@locale/lanres/entities/ibizsample0008/ibizsample0008_en_US'; import ibizsample0008_en_US from '@locale/lanres/entities/ibizsample0008/ibizsample0008_en_US';
import ibizbook_en_US from '@locale/lanres/entities/ibizbook/ibizbook_en_US';
import ibizsample0015_en_US from '@locale/lanres/entities/ibizsample0015/ibizsample0015_en_US'; import ibizsample0015_en_US from '@locale/lanres/entities/ibizsample0015/ibizsample0015_en_US';
import ibizsample0020_en_US from '@locale/lanres/entities/ibizsample0020/ibizsample0020_en_US'; import ibizsample0020_en_US from '@locale/lanres/entities/ibizsample0020/ibizsample0020_en_US';
import ibizsample0011_en_US from '@locale/lanres/entities/ibizsample0011/ibizsample0011_en_US'; import ibizsample0011_en_US from '@locale/lanres/entities/ibizsample0011/ibizsample0011_en_US';
...@@ -185,6 +186,7 @@ export default { ...@@ -185,6 +186,7 @@ export default {
menuitem57: "禁用排序", menuitem57: "禁用排序",
menuitem59: "行操作", menuitem59: "行操作",
menuitem58: "行编辑", menuitem58: "行编辑",
menuitem73: "表格内置功能",
menuitem14: "树视图", menuitem14: "树视图",
menuitem60: "静态节点", menuitem60: "静态节点",
menuitem61: "动态节点(代码表)", menuitem61: "动态节点(代码表)",
...@@ -341,6 +343,7 @@ export default { ...@@ -341,6 +343,7 @@ export default {
ibizsample0014: ibizsample0014_en_US, ibizsample0014: ibizsample0014_en_US,
ibizsample0001: ibizsample0001_en_US, ibizsample0001: ibizsample0001_en_US,
ibizsample0008: ibizsample0008_en_US, ibizsample0008: ibizsample0008_en_US,
ibizbook: ibizbook_en_US,
ibizsample0015: ibizsample0015_en_US, ibizsample0015: ibizsample0015_en_US,
ibizsample0020: ibizsample0020_en_US, ibizsample0020: ibizsample0020_en_US,
ibizsample0011: ibizsample0011_en_US, ibizsample0011: ibizsample0011_en_US,
......
...@@ -12,6 +12,7 @@ import ibizordertype_zh_CN from '@locale/lanres/entities/ibizorder-type/ibizorde ...@@ -12,6 +12,7 @@ import ibizordertype_zh_CN from '@locale/lanres/entities/ibizorder-type/ibizorde
import ibizsample0014_zh_CN from '@locale/lanres/entities/ibizsample0014/ibizsample0014_zh_CN'; import ibizsample0014_zh_CN from '@locale/lanres/entities/ibizsample0014/ibizsample0014_zh_CN';
import ibizsample0001_zh_CN from '@locale/lanres/entities/ibizsample0001/ibizsample0001_zh_CN'; import ibizsample0001_zh_CN from '@locale/lanres/entities/ibizsample0001/ibizsample0001_zh_CN';
import ibizsample0008_zh_CN from '@locale/lanres/entities/ibizsample0008/ibizsample0008_zh_CN'; import ibizsample0008_zh_CN from '@locale/lanres/entities/ibizsample0008/ibizsample0008_zh_CN';
import ibizbook_zh_CN from '@locale/lanres/entities/ibizbook/ibizbook_zh_CN';
import ibizsample0015_zh_CN from '@locale/lanres/entities/ibizsample0015/ibizsample0015_zh_CN'; import ibizsample0015_zh_CN from '@locale/lanres/entities/ibizsample0015/ibizsample0015_zh_CN';
import ibizsample0020_zh_CN from '@locale/lanres/entities/ibizsample0020/ibizsample0020_zh_CN'; import ibizsample0020_zh_CN from '@locale/lanres/entities/ibizsample0020/ibizsample0020_zh_CN';
import ibizsample0011_zh_CN from '@locale/lanres/entities/ibizsample0011/ibizsample0011_zh_CN'; import ibizsample0011_zh_CN from '@locale/lanres/entities/ibizsample0011/ibizsample0011_zh_CN';
...@@ -185,6 +186,7 @@ export default { ...@@ -185,6 +186,7 @@ export default {
menuitem57: "禁用排序", menuitem57: "禁用排序",
menuitem59: "行操作", menuitem59: "行操作",
menuitem58: "行编辑", menuitem58: "行编辑",
menuitem73: "表格内置功能",
menuitem14: "树视图", menuitem14: "树视图",
menuitem60: "静态节点", menuitem60: "静态节点",
menuitem61: "动态节点(代码表)", menuitem61: "动态节点(代码表)",
...@@ -340,6 +342,7 @@ export default { ...@@ -340,6 +342,7 @@ export default {
ibizsample0014: ibizsample0014_zh_CN, ibizsample0014: ibizsample0014_zh_CN,
ibizsample0001: ibizsample0001_zh_CN, ibizsample0001: ibizsample0001_zh_CN,
ibizsample0008: ibizsample0008_zh_CN, ibizsample0008: ibizsample0008_zh_CN,
ibizbook: ibizbook_zh_CN,
ibizsample0015: ibizsample0015_zh_CN, ibizsample0015: ibizsample0015_zh_CN,
ibizsample0020: ibizsample0020_zh_CN, ibizsample0020: ibizsample0020_zh_CN,
ibizsample0011: ibizsample0011_zh_CN, ibizsample0011: ibizsample0011_zh_CN,
......
export default {
fields: {
createman: "建立人",
ibizbookname: "图书名称",
ibizbookid: "图书标识",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
author: "图书作者",
price: "图书价格",
press: "图书出版社",
type: "图书类型",
},
views: {
editview: {
caption: "图书",
title: "图书编辑视图",
},
internalfuncgridview: {
caption: "图书",
title: "表格内置功能",
},
},
main_form: {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "图书标识",
srfmajortext: "图书名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
ibizbookname: "图书名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
ibizbookid: "图书标识",
},
uiactions: {
},
},
internalfunc_grid: {
columns: {
ibizbookname: "图书名称",
author: "图书作者",
type: "图书类型",
press: "图书出版社",
price: "图书价格",
},
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
internalfuncgridviewtoolbar_toolbar: {
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
},
};
\ No newline at end of file
export default {
fields: {
createman: "建立人",
ibizbookname: "图书名称",
ibizbookid: "图书标识",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
author: "图书作者",
price: "图书价格",
press: "图书出版社",
type: "图书类型",
},
views: {
editview: {
caption: "图书",
title: "图书编辑视图",
},
internalfuncgridview: {
caption: "图书",
title: "表格内置功能",
},
},
main_form: {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "图书标识",
srfmajortext: "图书名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
ibizbookname: "图书名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
ibizbookid: "图书标识",
},
uiactions: {
},
},
internalfunc_grid: {
columns: {
ibizbookname: "图书名称",
author: "图书作者",
type: "图书类型",
press: "图书出版社",
price: "图书价格",
},
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
internalfuncgridviewtoolbar_toolbar: {
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
},
};
\ No newline at end of file
...@@ -383,7 +383,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => { ...@@ -383,7 +383,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
tooltip: '禁用排序', tooltip: '禁用排序',
expanded: false, expanded: false,
separator: false, separator: false,
hidden: false, hidden: true,
hidesidebar: false, hidesidebar: false,
opendefault: false, opendefault: false,
iconcls: '', iconcls: '',
...@@ -401,7 +401,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => { ...@@ -401,7 +401,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
tooltip: '行操作', tooltip: '行操作',
expanded: false, expanded: false,
separator: false, separator: false,
hidden: false, hidden: true,
hidesidebar: false, hidesidebar: false,
opendefault: false, opendefault: false,
iconcls: '', iconcls: '',
...@@ -419,7 +419,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => { ...@@ -419,7 +419,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
tooltip: '行编辑', tooltip: '行编辑',
expanded: false, expanded: false,
separator: false, separator: false,
hidden: false, hidden: true,
hidesidebar: false, hidesidebar: false,
opendefault: false, opendefault: false,
iconcls: '', iconcls: '',
...@@ -427,6 +427,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => { ...@@ -427,6 +427,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '', textcls: '',
appfunctag: 'Auto124', appfunctag: 'Auto124',
resourcetag: '', resourcetag: '',
},
{
id: '5F4BB041-8A21-4F97-8DF3-B4367CEFDF9D',
name: 'menuitem73',
text: '表格内置功能',
type: 'MENUITEM',
counterid: '',
tooltip: '表格内置功能',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc2',
resourcetag: '',
}, },
], ],
}, },
......
此差异已折叠。
...@@ -21,6 +21,7 @@ import './entity/ibizorder-types/ibizorder-types'; ...@@ -21,6 +21,7 @@ import './entity/ibizorder-types/ibizorder-types';
import './entity/ibizsample0014s/ibizsample0014s'; import './entity/ibizsample0014s/ibizsample0014s';
import './entity/ibizsample0001s/ibizsample0001s'; import './entity/ibizsample0001s/ibizsample0001s';
import './entity/ibizsample0008s/ibizsample0008s'; import './entity/ibizsample0008s/ibizsample0008s';
import './entity/ibizbooks/ibizbooks';
import './entity/ibizsample0015s/ibizsample0015s'; import './entity/ibizsample0015s/ibizsample0015s';
import './entity/ibizsample0020s/ibizsample0020s'; import './entity/ibizsample0020s/ibizsample0020s';
import './entity/ibizsample0011s/ibizsample0011s'; import './entity/ibizsample0011s/ibizsample0011s';
......
...@@ -687,6 +687,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -687,6 +687,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZUNIProductSGridView", "viewname": "IBIZUNIProductSGridView",
"viewtag": "b29d930f430c127162f83753d85dd40c" "viewtag": "b29d930f430c127162f83753d85dd40c"
}, },
"ibizbookeditview": {
"title": "图书编辑视图",
"caption": "图书",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKEditView",
"viewtag": "b3429ecc4d89a02bc5f5279f1bd7f620"
},
"ibizorderdetailsgridview9": { "ibizorderdetailsgridview9": {
"title": "订单明细表格视图", "title": "订单明细表格视图",
"caption": "订单明细", "caption": "订单明细",
...@@ -895,6 +903,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -895,6 +903,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZOrderEditView", "viewname": "IBIZOrderEditView",
"viewtag": "f4cda6703c800c075704c5af5e58f2fc" "viewtag": "f4cda6703c800c075704c5af5e58f2fc"
}, },
"ibizbookinternalfuncgridview": {
"title": "表格内置功能",
"caption": "图书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKInternalFuncGridView",
"viewtag": "f73da4cb47a88d3fe5b92716e0137741"
},
"ibizcustomerpickupview": { "ibizcustomerpickupview": {
"title": "客户数据选择视图", "title": "客户数据选择视图",
"caption": "客户", "caption": "客户",
......
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.ibizbookedit-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
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKEditViewBase from './ibizbookedit-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 IBIZBOOKEditView extends IBIZBOOKEditViewBase {
}
</script>
\ No newline at end of file
.ibizbookinternal-func-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 IBIZBOOKInternalFuncGridViewBase from './ibizbookinternal-func-grid-view-base.vue';
import view_grid from '@widgets/ibizbook/internal-func-grid/internal-func-grid.vue';
import view_searchform from '@widgets/ibizbook/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 IBIZBOOKInternalFuncGridView extends IBIZBOOKInternalFuncGridViewBase {
}
</script>
\ No newline at end of file
...@@ -92,6 +92,7 @@ export const PageComponents = { ...@@ -92,6 +92,7 @@ export const PageComponents = {
Vue.component('ibizorder-detail-f6-edit-view', () => import('@pages/sample/ibizorder-detail-f6-edit-view/ibizorder-detail-f6-edit-view.vue')); Vue.component('ibizorder-detail-f6-edit-view', () => import('@pages/sample/ibizorder-detail-f6-edit-view/ibizorder-detail-f6-edit-view.vue'));
Vue.component('ibizorder-sedit-view3', () => import('@pages/sample/ibizorder-sedit-view3/ibizorder-sedit-view3.vue')); Vue.component('ibizorder-sedit-view3', () => import('@pages/sample/ibizorder-sedit-view3/ibizorder-sedit-view3.vue'));
Vue.component('ibizsample0003-sf2-edit-view', () => import('@pages/sample/ibizsample0003-sf2-edit-view/ibizsample0003-sf2-edit-view.vue')); Vue.component('ibizsample0003-sf2-edit-view', () => import('@pages/sample/ibizsample0003-sf2-edit-view/ibizsample0003-sf2-edit-view.vue'));
Vue.component('ibizbookinternal-func-grid-view', () => import('@pages/sample/ibizbookinternal-func-grid-view/ibizbookinternal-func-grid-view.vue'));
Vue.component('ibizorder-odsp-d10-wfgrid-view', () => import('@pages/sample/ibizorder-odsp-d10-wfgrid-view/ibizorder-odsp-d10-wfgrid-view.vue')); Vue.component('ibizorder-odsp-d10-wfgrid-view', () => import('@pages/sample/ibizorder-odsp-d10-wfgrid-view/ibizorder-odsp-d10-wfgrid-view.vue'));
Vue.component('ibizorder-sf3-grid-view', () => import('@pages/sample/ibizorder-sf3-grid-view/ibizorder-sf3-grid-view.vue')); Vue.component('ibizorder-sf3-grid-view', () => import('@pages/sample/ibizorder-sf3-grid-view/ibizorder-sf3-grid-view.vue'));
Vue.component('ibizstorage-edit-view', () => import('@pages/sample/ibizstorage-edit-view/ibizstorage-edit-view.vue')); Vue.component('ibizstorage-edit-view', () => import('@pages/sample/ibizstorage-edit-view/ibizstorage-edit-view.vue'));
...@@ -103,6 +104,7 @@ export const PageComponents = { ...@@ -103,6 +104,7 @@ export const PageComponents = {
Vue.component('ibizorder-odsp-w-wfgrid-view', () => import('@pages/sample/ibizorder-odsp-w-wfgrid-view/ibizorder-odsp-w-wfgrid-view.vue')); Vue.component('ibizorder-odsp-w-wfgrid-view', () => import('@pages/sample/ibizorder-odsp-w-wfgrid-view/ibizorder-odsp-w-wfgrid-view.vue'));
Vue.component('ibizcustomer-pickup-grid-view', () => import('@pages/sample/ibizcustomer-pickup-grid-view/ibizcustomer-pickup-grid-view.vue')); Vue.component('ibizcustomer-pickup-grid-view', () => import('@pages/sample/ibizcustomer-pickup-grid-view/ibizcustomer-pickup-grid-view.vue'));
Vue.component('ibizorder-sf7-edit-view', () => import('@pages/sample/ibizorder-sf7-edit-view/ibizorder-sf7-edit-view.vue')); Vue.component('ibizorder-sf7-edit-view', () => import('@pages/sample/ibizorder-sf7-edit-view/ibizorder-sf7-edit-view.vue'));
Vue.component('ibizbookedit-view', () => import('@pages/sample/ibizbookedit-view/ibizbookedit-view.vue'));
Vue.component('ibizsample0001-sf5-edit-view', () => import('@pages/sample/ibizsample0001-sf5-edit-view/ibizsample0001-sf5-edit-view.vue')); Vue.component('ibizsample0001-sf5-edit-view', () => import('@pages/sample/ibizsample0001-sf5-edit-view/ibizsample0001-sf5-edit-view.vue'));
Vue.component('ibizorder-radar-chart-view', () => import('@pages/sample/ibizorder-radar-chart-view/ibizorder-radar-chart-view.vue')); Vue.component('ibizorder-radar-chart-view', () => import('@pages/sample/ibizorder-radar-chart-view/ibizorder-radar-chart-view.vue'));
Vue.component('ibizsample0003-stab-exp-view', () => import('@pages/sample/ibizsample0003-stab-exp-view/ibizsample0003-stab-exp-view.vue')); Vue.component('ibizsample0003-stab-exp-view', () => import('@pages/sample/ibizsample0003-stab-exp-view/ibizsample0003-stab-exp-view.vue'));
......
...@@ -1368,6 +1368,20 @@ const router = new Router({ ...@@ -1368,6 +1368,20 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizsample0003-sf2-edit-view/ibizsample0003-sf2-edit-view.vue'), component: () => import('@pages/sample/ibizsample0003-sf2-edit-view/ibizsample0003-sf2-edit-view.vue'),
}, },
{
path: 'ibizbooks/:ibizbook?/internalfuncgridview/:internalfuncgridview?',
meta: {
caption: 'entities.ibizbook.views.internalfuncgridview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'internalfuncgridview', parameterName: 'internalfuncgridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookinternal-func-grid-view/ibizbookinternal-func-grid-view.vue'),
},
{ {
path: 'ibizorders/:ibizorder?/odsp_d10_wfgridview/:odsp_d10_wfgridview?', path: 'ibizorders/:ibizorder?/odsp_d10_wfgridview/:odsp_d10_wfgridview?',
meta: { meta: {
...@@ -1522,6 +1536,20 @@ const router = new Router({ ...@@ -1522,6 +1536,20 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizorder-sf7-edit-view/ibizorder-sf7-edit-view.vue'), component: () => import('@pages/sample/ibizorder-sf7-edit-view/ibizorder-sf7-edit-view.vue'),
}, },
{
path: 'ibizbooks/:ibizbook?/editview/:editview?',
meta: {
caption: 'entities.ibizbook.views.editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookedit-view/ibizbookedit-view.vue'),
},
{ {
path: 'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf5editview/:sf5editview?', path: 'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf5editview/:sf5editview?',
meta: { meta: {
...@@ -2787,6 +2815,19 @@ const router = new Router({ ...@@ -2787,6 +2815,19 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizuniproduct-sgrid-view/ibizuniproduct-sgrid-view.vue'), component: () => import('@pages/sample/ibizuniproduct-sgrid-view/ibizuniproduct-sgrid-view.vue'),
}, },
{
path: '/ibizbooks/:ibizbook?/editview/:editview?',
meta: {
caption: 'entities.ibizbook.views.editview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookedit-view/ibizbookedit-view.vue'),
},
{ {
path: '/ibizorderdetails/:ibizorderdetail?/sgridview9/:sgridview9?', path: '/ibizorderdetails/:ibizorderdetail?/sgridview9/:sgridview9?',
meta: { meta: {
...@@ -3125,6 +3166,19 @@ const router = new Router({ ...@@ -3125,6 +3166,19 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizorder-edit-view/ibizorder-edit-view.vue'), component: () => import('@pages/sample/ibizorder-edit-view/ibizorder-edit-view.vue'),
}, },
{
path: '/ibizbooks/:ibizbook?/internalfuncgridview/:internalfuncgridview?',
meta: {
caption: 'entities.ibizbook.views.internalfuncgridview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'internalfuncgridview', parameterName: 'internalfuncgridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookinternal-func-grid-view/ibizbookinternal-func-grid-view.vue'),
},
{ {
path: '/ibizcustomers/:ibizcustomer?/pickupview/:pickupview?', path: '/ibizcustomers/:ibizcustomer?/pickupview/:pickupview?',
meta: { meta: {
......
...@@ -53,6 +53,7 @@ export class EntityServiceRegister { ...@@ -53,6 +53,7 @@ export class EntityServiceRegister {
this.allEntityService.set('ibizsample0014', () => import('@/service/ibizsample0014/ibizsample0014-service')); this.allEntityService.set('ibizsample0014', () => import('@/service/ibizsample0014/ibizsample0014-service'));
this.allEntityService.set('ibizsample0001', () => import('@/service/ibizsample0001/ibizsample0001-service')); this.allEntityService.set('ibizsample0001', () => import('@/service/ibizsample0001/ibizsample0001-service'));
this.allEntityService.set('ibizsample0008', () => import('@/service/ibizsample0008/ibizsample0008-service')); this.allEntityService.set('ibizsample0008', () => import('@/service/ibizsample0008/ibizsample0008-service'));
this.allEntityService.set('ibizbook', () => import('@/service/ibizbook/ibizbook-service'));
this.allEntityService.set('ibizsample0015', () => import('@/service/ibizsample0015/ibizsample0015-service')); this.allEntityService.set('ibizsample0015', () => import('@/service/ibizsample0015/ibizsample0015-service'));
this.allEntityService.set('ibizsample0020', () => import('@/service/ibizsample0020/ibizsample0020-service')); this.allEntityService.set('ibizsample0020', () => import('@/service/ibizsample0020/ibizsample0020-service'));
this.allEntityService.set('ibizsample0011', () => import('@/service/ibizsample0011/ibizsample0011-service')); this.allEntityService.set('ibizsample0011', () => import('@/service/ibizsample0011/ibizsample0011-service'));
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 图书服务对象基类
*
* @export
* @class IBIZBOOKServiceBase
* @extends {EntityServie}
*/
export default class IBIZBOOKServiceBase extends EntityService {
/**
* Creates an instance of IBIZBOOKServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZBOOKServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof IBIZBOOKServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='ibizbook';
this.APPDEKEY = 'ibizbookid';
this.APPDENAME = 'ibizbooks';
this.APPDETEXT = 'ibizbookname';
this.APPNAME = 'web';
this.SYSTEMNAME = 'demosys';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZBOOKServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/ibizbooks/${context.ibizbook}/select`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZBOOKServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import IBIZBOOKServiceBase from './ibizbook-service-base';
/**
* 图书服务对象
*
* @export
* @class IBIZBOOKService
* @extends {IBIZBOOKServiceBase}
*/
export default class IBIZBOOKService extends IBIZBOOKServiceBase {
/**
* Creates an instance of IBIZBOOKService.
*
* @param {*} [opts={}]
* @memberof IBIZBOOKService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -191,6 +191,7 @@ export const viewstate: any = { ...@@ -191,6 +191,7 @@ export const viewstate: any = {
'9f80ed66360fbbb9bc57c575fdd8814f', '9f80ed66360fbbb9bc57c575fdd8814f',
'8a4ccafa81445d49488874a8c7575932', '8a4ccafa81445d49488874a8c7575932',
'3bbf72a3e5b59fed0dee362a9b1384a8', '3bbf72a3e5b59fed0dee362a9b1384a8',
'f73da4cb47a88d3fe5b92716e0137741',
'fdb8ed39fbfea00f65416b9aaebd64e7', 'fdb8ed39fbfea00f65416b9aaebd64e7',
'b7c0a73eb248d41eb750bbf095fa5505', 'b7c0a73eb248d41eb750bbf095fa5505',
'd99f9680b535dcf3ad0d0f853a8b89d9', 'd99f9680b535dcf3ad0d0f853a8b89d9',
...@@ -199,8 +200,8 @@ export const viewstate: any = { ...@@ -199,8 +200,8 @@ export const viewstate: any = {
'd9f9f0dede285235e3d0ad5101188d1e', 'd9f9f0dede285235e3d0ad5101188d1e',
'84904c93ceea3ab6551555ee20c41e27', '84904c93ceea3ab6551555ee20c41e27',
'ffedffb9c57cb200c275ba15e9100da4', 'ffedffb9c57cb200c275ba15e9100da4',
'41d3da0d37fb0135ace813f1ba06bd39',
'6b3607e849c8517fd7ae1cab583f7393', '6b3607e849c8517fd7ae1cab583f7393',
'41d3da0d37fb0135ace813f1ba06bd39',
'b8ae19200ec9d4e8e588bc31e3f9bcb4', 'b8ae19200ec9d4e8e588bc31e3f9bcb4',
'b1256beac1e95915b675893c61559b59', 'b1256beac1e95915b675893c61559b59',
'09663b7a4e3dce70524d1b64e02b5e2d', '09663b7a4e3dce70524d1b64e02b5e2d',
...@@ -901,6 +902,15 @@ export const viewstate: any = { ...@@ -901,6 +902,15 @@ export const viewstate: any = {
'174534358fc2ce2d380594e39bf20f76', '174534358fc2ce2d380594e39bf20f76',
], ],
}, },
{
viewtag: 'b3429ecc4d89a02bc5f5279f1bd7f620',
viewmodule: 'Sample',
viewname: 'IBIZBOOKEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{ {
viewtag: 'b4db5cb272d2da535285852bc436e9de', viewtag: 'b4db5cb272d2da535285852bc436e9de',
viewmodule: 'Sample', viewmodule: 'Sample',
...@@ -1161,6 +1171,16 @@ export const viewstate: any = { ...@@ -1161,6 +1171,16 @@ export const viewstate: any = {
'2640aa1ca02649c8831b43023d449945', '2640aa1ca02649c8831b43023d449945',
], ],
}, },
{
viewtag: 'f73da4cb47a88d3fe5b92716e0137741',
viewmodule: 'Sample',
viewname: 'IBIZBOOKInternalFuncGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'b3429ecc4d89a02bc5f5279f1bd7f620',
],
},
{ {
viewtag: 'f7ce60a7707de1ef9f926b3f9d5d6954', viewtag: 'f7ce60a7707de1ef9f926b3f9d5d6954',
viewmodule: 'Sample', viewmodule: 'Sample',
......
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import IBIZBOOKService from '@/service/ibizbook/ibizbook-service';
import IBIZBOOKAuthService from '@/authservice/ibizbook/ibizbook-auth-service';
/**
* 图书UI服务对象基类
*
* @export
* @class IBIZBOOKUIServiceBase
*/
export default class IBIZBOOKUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof IBIZBOOKUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 是否支持实体主状态
*
* @memberof IBIZBOOKUIServiceBase
*/
public isEnableDEMainState:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof IBIZBOOKUIServiceBase
*/
public dataService:IBIZBOOKService = new IBIZBOOKService();
/**
* 所有关联视图
*
* @memberof IBIZBOOKUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof IBIZBOOKUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof IBIZBOOKUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof IBIZBOOKUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof IBIZBOOKUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* 主状态操作标识Map
*
* @memberof IBIZBOOKUIServiceBase
*/
public allDeMainStateOPPrivsMap:Map<string,any> = new Map();
/**
* Creates an instance of IBIZBOOKUIServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZBOOKUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.authService = new IBIZBOOKAuthService(opts);
this.initViewMap();
this.initDeMainStateMap();
this.initDeMainStateOPPrivsMap();
}
/**
* 初始化视图Map
*
* @memberof IBIZBOOKUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizbooks',component:'ibizbookedit-view'});
this.allViewMap.set(':',{viewname:'internalfuncgridview',srfappde:'ibizbooks',component:'ibizbookinternal-func-grid-view'});
}
/**
* 初始化主状态集合
*
* @memberof IBIZBOOKUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 初始化主状态操作标识
*
* @memberof IBIZBOOKUIServiceBase
*/
public initDeMainStateOPPrivsMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof IBIZBOOKUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({ibizbook:srfkey});
const curData:any = result.data;
//判断当前数据模式,默认为true,todo
const iRealDEModel:boolean = true;
let bDataInWF:boolean = false;
let bWFMode:any = false;
// 计算数据模式
if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData);
if (bDataInWF) {
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData);
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam);
}
/**
* 获取实际的数据类型
*
* @memberof IBIZBOOKUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof IBIZBOOKUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const multiFormDEField:string|null =null;
if (multiFormDEField) {
const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){
return 'MOBEDITVIEW:'+objFormValue;
}
return 'EDITVIEW:'+objFormValue;
}
if(!Environment.isAppMode){
if(this.getDEMainStateTag(curData)){
return `MOBEDITVIEW:MSTAG:${ this.getDEMainStateTag(curData)}`;
}
return 'MOBEDITVIEW:';
}
if(this.getDEMainStateTag(curData)){
return `EDITVIEW:MSTAG:${ this.getDEMainStateTag(curData)}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof IBIZBOOKUIServiceBase
*/
public getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if(!(singleMainField in curData)){
console.warn(`当前数据对象不包含属性「${singleMainField}」,根据「${singleMainField}」属性进行的主状态计算默认为空值`);
}
})
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]] != null && curData[this.mainStateFields[0]] !== "")?(i == 0) ? `${curData[this.mainStateFields[0]]}` : "":"";
if (this.mainStateFields.length >= 2) {
for (let j = 0; j <= 1; j++) {
let strTag2:string = (curData[this.mainStateFields[1]] != null && curData[this.mainStateFields[1]] !== "")?`${strTag}__${(j == 0) ? `${curData[this.mainStateFields[1]]}` : ""}`:strTag;
if (this.mainStateFields.length >= 3) {
for (let k = 0; k <= 1; k++) {
let strTag3:string = (curData[this.mainStateFields[2]] != null && curData[this.mainStateFields[2]] !== "")?`${strTag2}__${(k == 0) ? `${curData[this.mainStateFields[2]]}` : ""}`:strTag2;
// 判断是否存在
return this.allDeMainStateMap.get(strTag3);
}
}else{
return this.allDeMainStateMap.get(strTag2);
}
}
}else{
return this.allDeMainStateMap.get(strTag);
}
}
return null;
}
/**
* 获取数据对象当前操作标识
*
* @param data 当前数据
* @memberof IBIZBOOKUIServiceBase
*/
public getDEMainStateOPPrivs(data:any){
if(this.getDEMainStateTag(data)){
return this.allDeMainStateOPPrivsMap.get((this.getDEMainStateTag(data) as string));
}else{
return null;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof IBIZBOOKUIServiceBase
*/
public getAllOPPrivs(data:any){
return this.authService.getOPPrivs(this.getDEMainStateOPPrivs(data));
}
}
\ No newline at end of file
import IBIZBOOKUIServiceBase from './ibizbook-ui-service-base';
/**
* 图书UI服务对象
*
* @export
* @class IBIZBOOKUIService
*/
export default class IBIZBOOKUIService extends IBIZBOOKUIServiceBase {
/**
* Creates an instance of IBIZBOOKUIService.
*
* @param {*} [opts={}]
* @memberof IBIZBOOKUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -53,6 +53,7 @@ export class UIServiceRegister { ...@@ -53,6 +53,7 @@ export class UIServiceRegister {
this.allUIService.set('ibizsample0014', () => import('@/uiservice/ibizsample0014/ibizsample0014-ui-service')); this.allUIService.set('ibizsample0014', () => import('@/uiservice/ibizsample0014/ibizsample0014-ui-service'));
this.allUIService.set('ibizsample0001', () => import('@/uiservice/ibizsample0001/ibizsample0001-ui-service')); this.allUIService.set('ibizsample0001', () => import('@/uiservice/ibizsample0001/ibizsample0001-ui-service'));
this.allUIService.set('ibizsample0008', () => import('@/uiservice/ibizsample0008/ibizsample0008-ui-service')); this.allUIService.set('ibizsample0008', () => import('@/uiservice/ibizsample0008/ibizsample0008-ui-service'));
this.allUIService.set('ibizbook', () => import('@/uiservice/ibizbook/ibizbook-ui-service'));
this.allUIService.set('ibizsample0015', () => import('@/uiservice/ibizsample0015/ibizsample0015-ui-service')); this.allUIService.set('ibizsample0015', () => import('@/uiservice/ibizsample0015/ibizsample0015-ui-service'));
this.allUIService.set('ibizsample0020', () => import('@/uiservice/ibizsample0020/ibizsample0020-ui-service')); this.allUIService.set('ibizsample0020', () => import('@/uiservice/ibizsample0020/ibizsample0020-ui-service'));
this.allUIService.set('ibizsample0011', () => import('@/uiservice/ibizsample0011/ibizsample0011-ui-service')); this.allUIService.set('ibizsample0011', () => import('@/uiservice/ibizsample0011/ibizsample0011-ui-service'));
......
...@@ -566,12 +566,12 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -566,12 +566,12 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto29': case 'Auto29':
this.clickAuto29(item); this.clickAuto29(item);
return; return;
case 'Auto387':
this.clickAuto387(item);
return;
case 'Auto371': case 'Auto371':
this.clickAuto371(item); this.clickAuto371(item);
return; return;
case 'Auto387':
this.clickAuto387(item);
return;
case 'Auto296': case 'Auto296':
this.clickAuto296(item); this.clickAuto296(item);
return; return;
...@@ -644,11 +644,14 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -644,11 +644,14 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto116': case 'Auto116':
this.clickAuto116(item); this.clickAuto116(item);
return; return;
case 'Auto298':
this.clickAuto298(item);
return;
case 'Auto2': case 'Auto2':
this.clickAuto2(item); this.clickAuto2(item);
return; return;
case 'Auto298': case 'AppFunc2':
this.clickAuto298(item); this.clickAppFunc2(item);
return; return;
case 'Auto176': case 'Auto176':
this.clickAuto176(item); this.clickAuto176(item);
...@@ -1064,18 +1067,18 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -1064,18 +1067,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
} }
/** /**
* 折线图 * 表单项自动填充
* *
* @param {*} [item={}] * @param {*} [item={}]
* @memberof MainMenu * @memberof MainMenu
*/ */
public clickAuto387(item: any = {}) { public clickAuto371(item: any = {}) {
const viewparam: any = {}; const viewparam: any = {};
Object.assign(viewparam, {}); Object.assign(viewparam, {});
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' }, { pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'linechartview', parameterName: 'linechartview' }, { pathName: 'sf3editview', parameterName: 'sf3editview' },
]; ];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam); const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){ if(Object.is(this.$route.fullPath,path)){
...@@ -1087,18 +1090,18 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -1087,18 +1090,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
} }
/** /**
* 表单项自动填充 * 折线图
* *
* @param {*} [item={}] * @param {*} [item={}]
* @memberof MainMenu * @memberof MainMenu
*/ */
public clickAuto371(item: any = {}) { public clickAuto387(item: any = {}) {
const viewparam: any = {}; const viewparam: any = {};
Object.assign(viewparam, {}); Object.assign(viewparam, {});
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' }, { pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf3editview', parameterName: 'sf3editview' }, { pathName: 'linechartview', parameterName: 'linechartview' },
]; ];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam); const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){ if(Object.is(this.$route.fullPath,path)){
...@@ -1661,6 +1664,29 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -1661,6 +1664,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}) })
} }
/**
* 继承实体
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto298(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizhardwares', parameterName: 'ibizhardware' },
{ pathName: 'sgridview', parameterName: 'sgridview' },
];
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);
})
}
/** /**
* 雷达图 * 雷达图
* *
...@@ -1685,18 +1711,18 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -1685,18 +1711,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
} }
/** /**
* 继承实体 * 表格内置功能
* *
* @param {*} [item={}] * @param {*} [item={}]
* @memberof MainMenu * @memberof MainMenu
*/ */
public clickAuto298(item: any = {}) { public clickAppFunc2(item: any = {}) {
const viewparam: any = {}; const viewparam: any = {};
Object.assign(viewparam, {}); Object.assign(viewparam, {});
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'ibizhardwares', parameterName: 'ibizhardware' }, { pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'sgridview', parameterName: 'sgridview' }, { pathName: 'internalfuncgridview', parameterName: 'internalfuncgridview' },
]; ];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam); const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){ if(Object.is(this.$route.fullPath,path)){
......
...@@ -407,7 +407,7 @@ export default class MainMenuModel { ...@@ -407,7 +407,7 @@ export default class MainMenuModel {
tooltip: '禁用排序', tooltip: '禁用排序',
expanded: false, expanded: false,
separator: false, separator: false,
hidden: false, hidden: true,
hidesidebar: false, hidesidebar: false,
opendefault: false, opendefault: false,
iconcls: '', iconcls: '',
...@@ -426,7 +426,7 @@ export default class MainMenuModel { ...@@ -426,7 +426,7 @@ export default class MainMenuModel {
tooltip: '行操作', tooltip: '行操作',
expanded: false, expanded: false,
separator: false, separator: false,
hidden: false, hidden: true,
hidesidebar: false, hidesidebar: false,
opendefault: false, opendefault: false,
iconcls: '', iconcls: '',
...@@ -445,7 +445,7 @@ export default class MainMenuModel { ...@@ -445,7 +445,7 @@ export default class MainMenuModel {
tooltip: '行编辑', tooltip: '行编辑',
expanded: false, expanded: false,
separator: false, separator: false,
hidden: false, hidden: true,
hidesidebar: false, hidesidebar: false,
opendefault: false, opendefault: false,
iconcls: '', iconcls: '',
...@@ -454,6 +454,25 @@ export default class MainMenuModel { ...@@ -454,6 +454,25 @@ export default class MainMenuModel {
appfunctag: 'Auto124', appfunctag: 'Auto124',
resourcetag: '', resourcetag: '',
authtag:'Web-MainMenu-menuitem58', authtag:'Web-MainMenu-menuitem58',
},
{
id: '5F4BB041-8A21-4F97-8DF3-B4367CEFDF9D',
name: 'menuitem73',
text: '表格内置功能',
type: 'MENUITEM',
counterid: '',
tooltip: '表格内置功能',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc2',
resourcetag: '',
authtag:'Web-MainMenu-menuitem73',
}, },
], ],
}, },
......
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export default class DefaultModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
\ No newline at end of file
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-search-form {
padding: 8px 14px 0;
.ivu-form-item{
margin-bottom: 8px;
}
.search_reset {
margin-right: 12px;
margin-bottom: 8px;
}
.search-button{
text-align: right;
}
}
.app-search-form-flex {
height: 100%;
> .ivu-row {
height: 100%;
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import DefaultBase from './default-searchform-base.vue';
@Component({
components: {
}
})
export default class Default extends DefaultBase {
}
</script>
\ No newline at end of file
/**
* InternalFunc 部件模型
*
* @export
* @class InternalFuncModel
*/
export default class InternalFuncModel {
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof InternalFuncGridMode
*/
public isDEExport: boolean = false;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof InternalFuncGridMode
*/
public getDataItems(): any[] {
if(this.isDEExport){
return [
]
}else{
return [
{
name: 'author',
prop: 'author',
dataType: 'TEXT',
},
{
name: 'press',
prop: 'press',
dataType: 'TEXT',
},
{
name: 'ibizbookname',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'price',
prop: 'price',
dataType: 'CURRENCY',
},
{
name: 'ibizbookid',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'type',
prop: 'type',
dataType: 'TEXT',
},
{
name: 'srfmajortext',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'srfdataaccaction',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'srfkey',
prop: 'ibizbookid',
dataType: 'GUID',
isEditable:true
},
{
name: 'ibizbook',
prop: 'ibizbookid',
},
{
name:'size',
prop:'size',
dataType: 'QUERYPARAM'
},
{
name:'query',
prop:'query',
dataType: 'QUERYPARAM'
},
{
name:'filter',
prop:'filter',
dataType: 'QUERYPARAM'
},
{
name:'page',
prop:'page',
dataType: 'QUERYPARAM'
},
{
name:'sort',
prop:'sort',
dataType: 'QUERYPARAM'
},
{
name:'srfparentdata',
prop:'srfparentdata',
dataType: 'QUERYPARAM'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
}
\ No newline at end of file
.grid {
flex-grow: 1;
height: 100%;
overflow: auto;
.el-table__body-wrapper::-webkit-scrollbar {
/*滚动条整体样式*/
width : 10px !important; /*高宽分别对应横竖滚动条的尺寸*/
height: 10px !important;
}
.el-table__body-wrapper::-webkit-scrollbar-thumb {
/*滚动条颜色*/
border-radius : 10px !important;
background-color: #cecece !important;
}
.el-table__body-wrapper::-webkit-scrollbar-track {
/*滚动条里面轨道*/
box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
background : #ededed !important;
border-radius: 10px !important;
}
/*表格文字过长省略*/
.el-table th>.cell, .el-table td>.cell{
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
}
.el-table-column--selection .cell {
padding-left: 0px;
padding-right: 0px;
}
.app-column-link, .app-format-data{
display: inline;
}
.el-table {
height: 100%;
display:flex;
flex-direction: column;
justify-content: flex-start;
.el-table__row{
.grid-uiaction-divider {
padding:0 10px 0 10px;
border-left: 1px #b3b3b3 solid;
}
.grid-first-uiaction {
padding:0 10px 0 10px;
}
}
.quick-toolbar{
display: inline-block;
button{
background: #ebf3fb;
color: #2575ca;
border: 0;
}
}
.el-tooltip{
.ivu-form-item{
margin-bottom: unset !important;
}
}
.el-table__body .edit-cell{
padding:0;
.app-form-item{
margin-top: 20px;
margin-bottom: 20px;
}
}
.el-table__header-wrapper{
min-height: 45px;
max-height: 100px;
height: auto;
}
.el-table__footer-wrapper{
min-height: 45px;
max-height: 100px;
height: auto;
}
}
.grid-pagination {
height: 50px;
padding: 6px 0px;
.page-button {
button {
padding: 0;
font-size: 16px;
min-width: 32px;
height: 32px;
margin-right: 4px;
}
}
.page-column {
position: absolute;
left: 0;
}
.batch-toolbar{
position: absolute;
left: 105px;
>.toolbar-container{
button {
font-size: 16px;
min-width: 32px;
height: 32px;
margin-right: 4px;
margin-top: 0;
margin-bottom: 0;
}
}
}
}
}
.ivu-modal-content{
.footer{
.ivu-row{
text-align: right;
}
}
}
.cell-indeterminate {
>div>label {
>span {
.el-checkbox__inner {
background-color: #409eff;
border-color: #409eff;
}
.el-checkbox__inner:before {
content: "";
position: absolute;
display: block;
background-color: #fff;
height: 2px;
transform: scale(.5);
left: 0;
right: 0;
top: 5px;
}
}
>span.is-checked {
.el-checkbox__inner {
background-color: #409eff;
border-color: #409eff;
}
.el-checkbox__inner:after {
border: 0px;
}
}
}
}
.cell-select-all {
>div>label {
>span {
.el-checkbox__inner {
background-color: #409eff;
border-color: #409eff;
}
.el-checkbox__inner:after {
box-sizing: content-box;
content: "";
border: 1px solid #fff;
border-left: 0;
border-top: 0;
height: 7px;
left: 4px;
position: absolute;
top: 1px;
transform: rotate(45deg) scaleY(1);
width: 3px;
transition: transform .15s ease-in .05s;
transform-origin: center;
}
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import InternalFuncBase from './internal-func-grid-base.vue';
@Component({
components: {
}
})
export default class InternalFunc extends InternalFuncBase {
}
</script>
\ No newline at end of file
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-form {
overflow: auto;
> .ivu-row {
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
.app-form {
>.ivu-row:nth-child(2) {
>.ivu-col:nth-child(1) {
>.ivu-row.app-form-group.app-group-hiddden-caption:nth-child(1) {
margin-top: 12px;
}
}
}
}
.app-form{
// 表单行间距
.app-form-item{
margin-bottom: 20px;
}
// 表单按钮margin
.app-form-button{
margin:0 6px;
}
}
// this is less
此差异已折叠。
此差异已折叠。
...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /demo-provider-demoapi.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /demo-provider-demoapi.jar
EXPOSE 51000 EXPOSE 8081
ADD demo-provider-demoapi.jar /demo-provider-demoapi.jar ADD demo-provider-demoapi.jar /demo-provider-demoapi.jar
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册