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

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

上级 4053e441
...@@ -415,7 +415,7 @@ function getLocaleResourceBase(){ ...@@ -415,7 +415,7 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
interfuncform_2_form: { mainlayout_form: {
details: { details: {
group1: commonLogic.appcommonhandle("数据选择视图展示",null), group1: commonLogic.appcommonhandle("数据选择视图展示",null),
formpage1: commonLogic.appcommonhandle("基本信息",null), formpage1: commonLogic.appcommonhandle("基本信息",null),
...@@ -560,6 +560,29 @@ function getLocaleResourceBase(){ ...@@ -560,6 +560,29 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
interfuncform_2_form: {
details: {
group1: commonLogic.appcommonhandle("数据选择视图展示",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
srfupdatedate: commonLogic.appcommonhandle("更新时间",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("图书标识",null),
srfmajortext: commonLogic.appcommonhandle("图书名称",null),
srftempmode: commonLogic.appcommonhandle("",null),
srfuf: commonLogic.appcommonhandle("",null),
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
ibizbookid: commonLogic.appcommonhandle("图书标识",null),
borrower: commonLogic.appcommonhandle("树单项数据选择",null),
borrower1: commonLogic.appcommonhandle("树多项数据选择",null),
borrower2: commonLogic.appcommonhandle("表格单项数据选择",null),
borrower3: commonLogic.appcommonhandle("表格多项数据选择",null),
borrower2_id: commonLogic.appcommonhandle("借阅人2_ID",null),
borrowerid: commonLogic.appcommonhandle("借阅人ID",null),
},
uiactions: {
},
},
main_2_form: { main_2_form: {
details: { details: {
druipart1: commonLogic.appcommonhandle("",null), druipart1: commonLogic.appcommonhandle("",null),
......
...@@ -415,7 +415,7 @@ function getLocaleResourceBase(){ ...@@ -415,7 +415,7 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
interfuncform_2_form: { mainlayout_form: {
details: { details: {
group1: commonLogic.appcommonhandle("数据选择视图展示",null), group1: commonLogic.appcommonhandle("数据选择视图展示",null),
formpage1: commonLogic.appcommonhandle("基本信息",null), formpage1: commonLogic.appcommonhandle("基本信息",null),
...@@ -560,6 +560,29 @@ function getLocaleResourceBase(){ ...@@ -560,6 +560,29 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
interfuncform_2_form: {
details: {
group1: commonLogic.appcommonhandle("数据选择视图展示",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
srfupdatedate: commonLogic.appcommonhandle("更新时间",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("图书标识",null),
srfmajortext: commonLogic.appcommonhandle("图书名称",null),
srftempmode: commonLogic.appcommonhandle("",null),
srfuf: commonLogic.appcommonhandle("",null),
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
ibizbookid: commonLogic.appcommonhandle("图书标识",null),
borrower: commonLogic.appcommonhandle("树单项数据选择",null),
borrower1: commonLogic.appcommonhandle("树多项数据选择",null),
borrower2: commonLogic.appcommonhandle("表格单项数据选择",null),
borrower3: commonLogic.appcommonhandle("表格多项数据选择",null),
borrower2_id: commonLogic.appcommonhandle("借阅人2_ID",null),
borrowerid: commonLogic.appcommonhandle("借阅人ID",null),
},
uiactions: {
},
},
main_2_form: { main_2_form: {
details: { details: {
druipart1: commonLogic.appcommonhandle("",null), druipart1: commonLogic.appcommonhandle("",null),
......
...@@ -415,7 +415,7 @@ function getLocaleResourceBase(){ ...@@ -415,7 +415,7 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
interfuncform_2_form: { mainlayout_form: {
details: { details: {
group1: commonLogic.appcommonhandle("数据选择视图展示",null), group1: commonLogic.appcommonhandle("数据选择视图展示",null),
formpage1: commonLogic.appcommonhandle("基本信息",null), formpage1: commonLogic.appcommonhandle("基本信息",null),
...@@ -560,6 +560,29 @@ function getLocaleResourceBase(){ ...@@ -560,6 +560,29 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
interfuncform_2_form: {
details: {
group1: commonLogic.appcommonhandle("数据选择视图展示",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
srfupdatedate: commonLogic.appcommonhandle("更新时间",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("图书标识",null),
srfmajortext: commonLogic.appcommonhandle("图书名称",null),
srftempmode: commonLogic.appcommonhandle("",null),
srfuf: commonLogic.appcommonhandle("",null),
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
ibizbookid: commonLogic.appcommonhandle("图书标识",null),
borrower: commonLogic.appcommonhandle("树单项数据选择",null),
borrower1: commonLogic.appcommonhandle("树多项数据选择",null),
borrower2: commonLogic.appcommonhandle("表格单项数据选择",null),
borrower3: commonLogic.appcommonhandle("表格多项数据选择",null),
borrower2_id: commonLogic.appcommonhandle("借阅人2_ID",null),
borrowerid: commonLogic.appcommonhandle("借阅人ID",null),
},
uiactions: {
},
},
main_2_form: { main_2_form: {
details: { details: {
druipart1: commonLogic.appcommonhandle("",null), druipart1: commonLogic.appcommonhandle("",null),
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import { Component } from 'vue-property-decorator'; import { Component } from 'vue-property-decorator';
import IBIZBOOKUsr2EditView_layoutBase from './ibizbookusr2-edit-view-layout-base.vue'; import IBIZBOOKUsr2EditView_layoutBase from './ibizbookusr2-edit-view-layout-base.vue';
import view_form from '@widgets/ibizbook/inter-func-form-2-form/inter-func-form-2-form.vue'; import view_form from '@widgets/ibizbook/main-layout-form/main-layout-form.vue';
@Component({ @Component({
components: { components: {
view_form, view_form,
......
.ibizcustomer-intfmpickup-view{
position: relative;
}
.pickup-view {
>.translate-contant {
overflow: auto;
flex-grow: 1;
display: flex;
justify-content: flex-end;
height: calc(100% - 64px);
.translate-buttons {
width: 80px;
display: flex;
align-items: center;
text-align: center;
button {
margin-bottom: 5px;
}
}
.left, .right {
width: 300px;
}
.right {
border: 1px solid #e9e9e9;
.mpicker-select {
font-family: helvetica, sans-serif;
font-size: 16px;
text-align: justify;
word-spacing: -3.8pt;
line-height: 1.6;
font-weight: bold;
word-spacing: 10px;
height: 100%;
overflow: auto;
}
.mpicker-select > div {
padding: 3px 10px;
font-size: 14px;
color: rgba(0, 0, 0, 0.85);
font-weight: initial;
cursor: pointer;
min-height: 28px;
border: 1px solid #e9e9e9;
margin: 4px 4px;
transition: all .3s;
}
.mpicker-select > div:hover {
background: #ecf6fd;
}
.mpicker-select > .select{
color: #108ee9;
background: #ecf6fd;
}
}
.center{
width: calc(100% - 380px);
.pickupviewpanel {
width: 100%;
height: 100%;
}
}
}
>.footer {
height: 64px;
}
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZCustomer_INTFMPickupViewBase from './ibizcustomer-intfmpickup-view-base.vue';
import view_pickupviewpanel from '@widgets/ibizcustomer-intf/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel.vue';
@Component({
components: {
view_pickupviewpanel,
},
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 IBIZCustomer_INTFMPickupView extends IBIZCustomer_INTFMPickupViewBase {
}
</script>
\ No newline at end of file
.ibizcustomer-intfpickup-grid-view{
position: relative;
}
.ibizcustomer-intfpickup-grid-view{
display: block;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZCustomer_INTFPickupGridViewBase from './ibizcustomer-intfpickup-grid-view-base.vue';
import view_grid from '@widgets/ibizcustomer-intf/main-grid/main-grid.vue';
import view_searchform from '@widgets/ibizcustomer-intf/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 IBIZCustomer_INTFPickupGridView extends IBIZCustomer_INTFPickupGridViewBase {
}
</script>
\ No newline at end of file
...@@ -168,12 +168,9 @@ export const PageComponents = { ...@@ -168,12 +168,9 @@ export const PageComponents = {
Vue.component('ibizorder-detail-grid-view9', () => import('@pages/sample/ibizorder-detail-grid-view9/ibizorder-detail-grid-view9.vue')); Vue.component('ibizorder-detail-grid-view9', () => import('@pages/sample/ibizorder-detail-grid-view9/ibizorder-detail-grid-view9.vue'));
Vue.component('ibizorder-detail-sgrid-view9', () => import('@pages/sample/ibizorder-detail-sgrid-view9/ibizorder-detail-sgrid-view9.vue')); Vue.component('ibizorder-detail-sgrid-view9', () => import('@pages/sample/ibizorder-detail-sgrid-view9/ibizorder-detail-sgrid-view9.vue'));
Vue.component('ibizorder-detail-sgrid-view', () => import('@pages/sample/ibizorder-detail-sgrid-view/ibizorder-detail-sgrid-view.vue')); Vue.component('ibizorder-detail-sgrid-view', () => import('@pages/sample/ibizorder-detail-sgrid-view/ibizorder-detail-sgrid-view.vue'));
Vue.component('ibizcustomer-usr2-pickup-view-layout', () => import('@pages/sample/ibizcustomer-usr2-pickup-view-layout/ibizcustomer-usr2-pickup-view-layout.vue'));
Vue.component('ibizcustomer-usr2-pickup-view', () => import('@pages/sample/ibizcustomer-usr2-pickup-view/ibizcustomer-usr2-pickup-view.vue')); Vue.component('ibizcustomer-usr2-pickup-view', () => import('@pages/sample/ibizcustomer-usr2-pickup-view/ibizcustomer-usr2-pickup-view.vue'));
Vue.component('ibizcustomer-usr2-mpickup-view-layout', () => import('@pages/sample/ibizcustomer-usr2-mpickup-view-layout/ibizcustomer-usr2-mpickup-view-layout.vue'));
Vue.component('ibizcustomer-usr2-mpickup-view', () => import('@pages/sample/ibizcustomer-usr2-mpickup-view/ibizcustomer-usr2-mpickup-view.vue')); Vue.component('ibizcustomer-usr2-mpickup-view', () => import('@pages/sample/ibizcustomer-usr2-mpickup-view/ibizcustomer-usr2-mpickup-view.vue'));
Vue.component('ibizcustomer-pickup-view-layout', () => import('@pages/sample/ibizcustomer-pickup-view-layout/ibizcustomer-pickup-view-layout.vue')); Vue.component('ibizcustomer-intfmpickup-view', () => import('@pages/sample/ibizcustomer-intfmpickup-view/ibizcustomer-intfmpickup-view.vue'));
Vue.component('ibizcustomer-mpickup-view-layout', () => import('@pages/sample/ibizcustomer-mpickup-view-layout/ibizcustomer-mpickup-view-layout.vue'));
Vue.component('ibizcustomer-mpickup-view', () => import('@pages/sample/ibizcustomer-mpickup-view/ibizcustomer-mpickup-view.vue')); Vue.component('ibizcustomer-mpickup-view', () => import('@pages/sample/ibizcustomer-mpickup-view/ibizcustomer-mpickup-view.vue'));
Vue.component('ibizorder-f19-edit-view', () => import('@pages/sample/ibizorder-f19-edit-view/ibizorder-f19-edit-view.vue')); Vue.component('ibizorder-f19-edit-view', () => import('@pages/sample/ibizorder-f19-edit-view/ibizorder-f19-edit-view.vue'));
Vue.component('ibizbookedit-view', () => import('@pages/sample/ibizbookedit-view/ibizbookedit-view.vue')); Vue.component('ibizbookedit-view', () => import('@pages/sample/ibizbookedit-view/ibizbookedit-view.vue'));
...@@ -200,6 +197,10 @@ export const PageComponents = { ...@@ -200,6 +197,10 @@ export const PageComponents = {
Vue.component('ibizbookusr3-edit-view', () => import('@pages/sample/ibizbookusr3-edit-view/ibizbookusr3-edit-view.vue')); Vue.component('ibizbookusr3-edit-view', () => import('@pages/sample/ibizbookusr3-edit-view/ibizbookusr3-edit-view.vue'));
Vue.component('ibizorder-usr5-edit-view', () => import('@pages/sample/ibizorder-usr5-edit-view/ibizorder-usr5-edit-view.vue')); Vue.component('ibizorder-usr5-edit-view', () => import('@pages/sample/ibizorder-usr5-edit-view/ibizorder-usr5-edit-view.vue'));
Vue.component('ibizbookoption-view-layout', () => import('@pages/sample/ibizbookoption-view-layout/ibizbookoption-view-layout.vue')); Vue.component('ibizbookoption-view-layout', () => import('@pages/sample/ibizbookoption-view-layout/ibizbookoption-view-layout.vue'));
Vue.component('ibizcustomer-usr2-pickup-view-layout', () => import('@pages/sample/ibizcustomer-usr2-pickup-view-layout/ibizcustomer-usr2-pickup-view-layout.vue'));
Vue.component('ibizcustomer-usr2-mpickup-view-layout', () => import('@pages/sample/ibizcustomer-usr2-mpickup-view-layout/ibizcustomer-usr2-mpickup-view-layout.vue'));
Vue.component('ibizcustomer-pickup-view-layout', () => import('@pages/sample/ibizcustomer-pickup-view-layout/ibizcustomer-pickup-view-layout.vue'));
Vue.component('ibizcustomer-mpickup-view-layout', () => import('@pages/sample/ibizcustomer-mpickup-view-layout/ibizcustomer-mpickup-view-layout.vue'));
Vue.component('ibizappviewedit-view', () => import('@pages/sample/ibizappviewedit-view/ibizappviewedit-view.vue')); Vue.component('ibizappviewedit-view', () => import('@pages/sample/ibizappviewedit-view/ibizappviewedit-view.vue'));
Vue.component('ibizappctrledit-view', () => import('@pages/sample/ibizappctrledit-view/ibizappctrledit-view.vue')); Vue.component('ibizappctrledit-view', () => import('@pages/sample/ibizappctrledit-view/ibizappctrledit-view.vue'));
Vue.component('ibizappeditoredit-view', () => import('@pages/sample/ibizappeditoredit-view/ibizappeditoredit-view.vue')); Vue.component('ibizappeditoredit-view', () => import('@pages/sample/ibizappeditoredit-view/ibizappeditoredit-view.vue'));
...@@ -211,6 +212,7 @@ export const PageComponents = { ...@@ -211,6 +212,7 @@ export const PageComponents = {
Vue.component('ibizorder-detail-edit-view', () => import('@pages/sample/ibizorder-detail-edit-view/ibizorder-detail-edit-view.vue')); Vue.component('ibizorder-detail-edit-view', () => import('@pages/sample/ibizorder-detail-edit-view/ibizorder-detail-edit-view.vue'));
Vue.component('ibizorder-detail-sedit-view9', () => import('@pages/sample/ibizorder-detail-sedit-view9/ibizorder-detail-sedit-view9.vue')); Vue.component('ibizorder-detail-sedit-view9', () => import('@pages/sample/ibizorder-detail-sedit-view9/ibizorder-detail-sedit-view9.vue'));
Vue.component('ibizcustomer-pickup-tree-view', () => import('@pages/sample/ibizcustomer-pickup-tree-view/ibizcustomer-pickup-tree-view.vue')); Vue.component('ibizcustomer-pickup-tree-view', () => import('@pages/sample/ibizcustomer-pickup-tree-view/ibizcustomer-pickup-tree-view.vue'));
Vue.component('ibizcustomer-intfpickup-grid-view', () => import('@pages/sample/ibizcustomer-intfpickup-grid-view/ibizcustomer-intfpickup-grid-view.vue'));
Vue.component('ibizhardware-index-pickup-view', () => import('@pages/sample/ibizhardware-index-pickup-view/ibizhardware-index-pickup-view.vue')); Vue.component('ibizhardware-index-pickup-view', () => import('@pages/sample/ibizhardware-index-pickup-view/ibizhardware-index-pickup-view.vue'));
Vue.component('ibizcpuedit-view', () => import('@pages/sample/ibizcpuedit-view/ibizcpuedit-view.vue')); Vue.component('ibizcpuedit-view', () => import('@pages/sample/ibizcpuedit-view/ibizcpuedit-view.vue'));
Vue.component('ibizsample0003-pickup-view', () => import('@pages/sample/ibizsample0003-pickup-view/ibizsample0003-pickup-view.vue')); Vue.component('ibizsample0003-pickup-view', () => import('@pages/sample/ibizsample0003-pickup-view/ibizsample0003-pickup-view.vue'));
......
...@@ -1305,6 +1305,19 @@ const router = new Router({ ...@@ -1305,6 +1305,19 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'), component: () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'),
}, },
{
path: '/ibizcustomer_intfs/:ibizcustomer_intf?/mpickupview/:mpickupview?',
meta: {
caption: 'entities.ibizcustomer_intf.views.mpickupview.caption',
info:'',
parameters: [
{ pathName: 'ibizcustomer_intfs', parameterName: 'ibizcustomer_intf' },
{ pathName: 'mpickupview', parameterName: 'mpickupview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-intfmpickup-view/ibizcustomer-intfmpickup-view.vue'),
},
{ {
path: '/ibizbooks/:ibizbook?/optionview_layout/:optionview_layout?', path: '/ibizbooks/:ibizbook?/optionview_layout/:optionview_layout?',
meta: { meta: {
...@@ -2473,6 +2486,19 @@ const router = new Router({ ...@@ -2473,6 +2486,19 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizorder-gantt-view/ibizorder-gantt-view.vue'), component: () => import('@pages/sample/ibizorder-gantt-view/ibizorder-gantt-view.vue'),
}, },
{
path: '/ibizcustomer_intfs/:ibizcustomer_intf?/pickupgridview/:pickupgridview?',
meta: {
caption: 'entities.ibizcustomer_intf.views.pickupgridview.caption',
info:'',
parameters: [
{ pathName: 'ibizcustomer_intfs', parameterName: 'ibizcustomer_intf' },
{ pathName: 'pickupgridview', parameterName: 'pickupgridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-intfpickup-grid-view/ibizcustomer-intfpickup-grid-view.vue'),
},
{ {
path: '/ibizbooks/:ibizbook?/wizardview_layout/:wizardview_layout?', path: '/ibizbooks/:ibizbook?/wizardview_layout/:wizardview_layout?',
meta: { meta: {
......
...@@ -1113,6 +1113,16 @@ export const viewstate: any = { ...@@ -1113,6 +1113,16 @@ export const viewstate: any = {
'a919926d6265ab194b54cd5b8f658eec', 'a919926d6265ab194b54cd5b8f658eec',
], ],
}, },
{
viewtag: '681631239002f25ab59d3f72230e6ce5',
viewmodule: 'Sample',
viewname: 'IBIZCustomer_INTFMPickupView',
viewaction: '',
viewdatachange: false,
refviews: [
'ca77d5bafd522a52fd278e490ad79f2d',
],
},
{ {
viewtag: '685e4c22b23e1ab3b994e66c0fb26e0d', viewtag: '685e4c22b23e1ab3b994e66c0fb26e0d',
viewmodule: 'Sample', viewmodule: 'Sample',
...@@ -1915,6 +1925,15 @@ export const viewstate: any = { ...@@ -1915,6 +1925,15 @@ export const viewstate: any = {
refviews: [ refviews: [
], ],
}, },
{
viewtag: 'ca77d5bafd522a52fd278e490ad79f2d',
viewmodule: 'Sample',
viewname: 'IBIZCustomer_INTFPickupGridView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{ {
viewtag: 'ca90f2d89734ba48161642abc9d2cbbd', viewtag: 'ca90f2d89734ba48161642abc9d2cbbd',
viewmodule: 'Sample', viewmodule: 'Sample',
...@@ -2125,13 +2144,10 @@ export const viewstate: any = { ...@@ -2125,13 +2144,10 @@ export const viewstate: any = {
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'e7f12b95864b12114256d9c4dbbb559c',
'2dd50b1b88cf8062b625ee8b0b4fa9d7', '2dd50b1b88cf8062b625ee8b0b4fa9d7',
'85c21f769411264bf14f990433fc76ed',
'3177e05ee25b4c215c2ce87547fcdc8c', '3177e05ee25b4c215c2ce87547fcdc8c',
'8bb68e0800e34b41e92a18ffcf1f7e9f',
'f083dd992abed44bf15a9930b45c3895', 'f083dd992abed44bf15a9930b45c3895',
'55c95540dba6d9b43562beb6ce69d10d', '681631239002f25ab59d3f72230e6ce5',
'a9c3b7c4ff10dfd9ccc9dc04531b6db9', 'a9c3b7c4ff10dfd9ccc9dc04531b6db9',
], ],
}, },
......
import { UIActionContext } from "@/logic/ui-logic";
import { LogicReturnType } from "@/logic/const/logic-return-type";
import { UILogicParamType } from "@/logic/const/ui-logic-param-type";
import { Util, Verify } from "@/utils";
import { AppMessageBox } from "@/utils/app-message-box/app-message-box";
import { Subject } from "rxjs";
import { Environment } from "@/environments/environment";
/**
* 自定义表格视图销毁
*
* @export
* @class CustomViewDestroyUILogicBase
*/
export default class CustomViewDestroyUILogicBase {
/**
* Creates an instance of customViewDestroyBase.
*
* @param {*} [opts={}]
* @memberof CustomViewDestroyUILogicBase
*/
constructor(opts: any = {}) { }
/**
* 逻辑参数
*
* @protected
* @type {any[]}
* @memberof CustomViewDestroyUILogicBase
*/
protected logicParams: any[] = [
{
name: '传入变量',
codeName: 'Default',
default: true,
entityParam: true,
},
];
/**
* 执行前
*
* @param {*} args
* @param {*} [context={}]
* @param {*} [params={}]
* @param {*} [$event]
* @param {*} [xData]
* @param {*} [actioncontext]
* @param {string} [srfParentDeName]
* @return {*}
* @memberof CustomViewDestroyUILogicBase
*/
public beforeExecute(args: any, context: any = {}, params: any = {},
$event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
return new UIActionContext(this.logicParams, args, context, params, $event, xData, actioncontext, srfParentDeName)
}
/**
* 执行
*
* @param {any[]} args
* @param {*} [context={}]
* @param {*} [params={}]
* @param {*} [$event]
* @param {*} [xData]
* @param {*} [actionContext]
* @param {string} [srfParentDeName]
* @memberof CustomViewDestroyUILogicBase
*/
async execute(args: any[], context:any = {} ,params: any = {}, $event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
try {
const actionContext = this.beforeExecute(args, context, params, $event, xData, actioncontext, srfParentDeName);
await this.execute_begin_node(actionContext);
return actionContext.getResult();
} catch (error: any) {
throw new Error(`${error && error.message ? error.message : '发生未知错误!'}`);
}
}
/**
* 获取条件参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @param {string} param 节点参数
* @param {string} property 参数属性
* @return {*}
* @memberof CustomViewDestroyUILogicBase
*/
public getCondParam(actionContext: UIActionContext, param: string, property: string) {
const resultParam = actionContext.getParam(param).getReal();
// 当不存在参数属性时,返回直接值
if (property === '') {
return resultParam;
}
if (resultParam && resultParam.hasOwnProperty(property)) {
return resultParam[property];
}
return null;
}
/**
* 开始
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewDestroyUILogicBase
*/
protected async execute_begin_node(actionContext: UIActionContext) {
actionContext.setResult(actionContext.defaultParam.getReal());
console.log('已完成执行 开始 节点');
await this.execute_end1_node(actionContext);
}
/**
* 结束
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewDestroyUILogicBase
*/
protected async execute_end1_node(actionContext: UIActionContext) {
const strReturnType: string = 'LOGICPARAM';
if (Object.is(strReturnType, LogicReturnType.NONEVALUE) || Object.is(strReturnType, LogicReturnType.NULLVALUE)) {
actionContext.setResult(null);
} else if (Object.is(strReturnType, LogicReturnType.SRCVALUE)) {
actionContext.setResult('');
} else if (Object.is(strReturnType, LogicReturnType.BREAK)) {
actionContext.setResult(LogicReturnType.BREAK);
} else if (Object.is(strReturnType, LogicReturnType.LOGICPARAM) || Object.is(strReturnType, LogicReturnType.LOGICPARAMFIELD)) {
const returnParam = actionContext.getParam('Default');
if (Object.is(strReturnType, LogicReturnType.LOGICPARAM)) {
actionContext.setResult(returnParam.getReal());
} else {
actionContext.setResult(returnParam.get(''));
}
} else {
throw new Error(`无法识别的返回值类型${strReturnType}`);
}
console.log('已完成执行 结束 节点');
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import CustomViewDestroyUILogicBase from './custom-view-destroy-ui-logic-base';
/**
* 自定义表格视图销毁
*
* @export
* @class CustomViewDestroyUILogic
*/
export default class CustomViewDestroyUILogic extends CustomViewDestroyUILogicBase {
/**
* 自定义表格视图销毁 逻辑实例对象
*
* @private
* @static
* @type {CustomViewDestroyUILogic}
* @memberof CustomViewDestroyUILogic
*/
private static instance: CustomViewDestroyUILogic;
/**
* 获取 自定义表格视图销毁 逻辑实例对象
*
* @static
* @return {*} {CustomViewDestroyUILogic}
* @memberof CustomViewDestroyUILogic
*/
static getInstance(): CustomViewDestroyUILogic {
if (!this.instance) {
this.instance = new CustomViewDestroyUILogic();
}
return this.instance;
}
/**
* Creates an instance of CustomViewDestroyUILogic
*
* @param {*} [opts={}]
* @memberof CustomViewDestroyUILogic
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -11,6 +11,7 @@ import FormLoadUILogic from './form-load-ui-logic'; ...@@ -11,6 +11,7 @@ import FormLoadUILogic from './form-load-ui-logic';
import GridLoadUILogic from './grid-load-ui-logic'; import GridLoadUILogic from './grid-load-ui-logic';
import PrintParamsUILogic from './print-params-ui-logic'; import PrintParamsUILogic from './print-params-ui-logic';
import CancelSelectUILogic from './cancel-select-ui-logic'; import CancelSelectUILogic from './cancel-select-ui-logic';
import CustomViewDestroyUILogic from './custom-view-destroy-ui-logic';
/** /**
* 图书UI服务对象基类 * 图书UI服务对象基类
...@@ -704,6 +705,9 @@ export default class IBIZBOOKUIServiceBase extends UIService { ...@@ -704,6 +705,9 @@ export default class IBIZBOOKUIServiceBase extends UIService {
if (name === 'cancelSelect') { if (name === 'cancelSelect') {
return await CancelSelectUILogic.getInstance().execute(args, context, params, $event, xData, actionContext, srfParentDeName); return await CancelSelectUILogic.getInstance().execute(args, context, params, $event, xData, actionContext, srfParentDeName);
} }
if (name === 'customViewDestroy') {
return await CustomViewDestroyUILogic.getInstance().execute(args, context, params, $event, xData, actionContext, srfParentDeName);
}
} }
} }
\ No newline at end of file
...@@ -505,6 +505,27 @@ export default class AppPanelViewBase extends Vue implements ControlInterface { ...@@ -505,6 +505,27 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
} }
} }
/**
* 处理按钮点击
*
* @public
* @memberof PanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
} }
......
...@@ -543,6 +543,27 @@ export default class Auto1Base extends Vue implements ControlInterface { ...@@ -543,6 +543,27 @@ export default class Auto1Base extends Vue implements ControlInterface {
} }
} }
/**
* 处理按钮点击
*
* @public
* @memberof Item1layoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
} }
......
...@@ -691,7 +691,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -691,7 +691,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -727,7 +727,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -727,7 +727,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public loadDraft(opt: any = {},mode?:string): void { public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -543,6 +543,27 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface ...@@ -543,6 +543,27 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
} }
} }
/**
* 处理按钮点击
*
* @public
* @memberof ItemlayoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
} }
......
...@@ -543,6 +543,27 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -543,6 +543,27 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
} }
} }
/**
* 处理按钮点击
*
* @public
* @memberof List_itempanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
} }
......
...@@ -560,6 +560,41 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -560,6 +560,41 @@ export default class ListpanelBase extends Vue implements ControlInterface {
} }
} }
/**
* 处理按钮点击
*
* @public
* @memberof List_itempanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
if (Object.is(name, 'button_link1')) {
window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`] && UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`] instanceof Function) {
UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`](datas, contextJO, paramJO, $event, xData, this, undefined);
}
})
}
if (Object.is(name, 'button_calluilogic1')) {
window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_openDocument`] && UIService[`IBIZBOOK_openDocument`] instanceof Function) {
UIService[`IBIZBOOK_openDocument`](datas, contextJO, paramJO, $event, xData, this, undefined);
}
})
}
}
} }
......
/**
* MainLayout 部件模型
*
* @export
* @class MainLayoutModel
*/
export default class MainLayoutModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainLayoutModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'srfupdatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srforikey',
},
{
name: 'srfkey',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'ibizbookid',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'borrower',
prop: 'borrower',
dataType: 'TEXT',
},
{
name: 'borrower1',
prop: 'borrower1',
dataType: 'LONGTEXT',
},
{
name: 'borrower2',
prop: 'borrower2',
dataType: 'TEXT',
},
{
name: 'borrower3',
prop: 'borrower3',
dataType: 'LONGTEXT',
},
{
name: 'borrower2_id',
prop: 'borrower2_id',
dataType: 'TEXT',
},
{
name: 'borrowerid',
prop: 'borrowerid',
dataType: 'TEXT',
},
{
name: 'ibizbook',
prop: 'ibizbookid',
dataType: 'FONTKEY',
},
]
}
}
\ 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;
padding: 6px;
> .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
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册