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

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

上级 d5d2ecf2
......@@ -327,14 +327,6 @@
"viewname": "IBIZSample0017PickupView",
"viewtag": "3169df07474ba775203f9635eb0e9b9a"
},
"ibizorderdetailusr2editview": {
"title": "订单明细编辑视图",
"caption": "订单明细",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderDetailUsr2EditView",
"viewtag": "319d79a4f05cde44a1a7751b3ffe68ef"
},
"ibizordertypepickupgridview": {
"title": "订单类型选择表格视图",
"caption": "订单类型",
......@@ -759,6 +751,14 @@
"viewname": "IBIZUNIProductPickupGridView",
"viewtag": "80c9ae9ed04e7107ed9fc93734a447d1"
},
"ibizcustomermpickupview": {
"title": "客户数据多项选择视图",
"caption": "客户",
"viewtype": "DEMPICKUPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomerMPickupView",
"viewtag": "81e92e837f6fa81fed5b6beaa75f6bbd"
},
"ibizordertypeusr2editview": {
"title": "订单类型编辑视图",
"caption": "订单类型",
......@@ -967,14 +967,6 @@
"viewname": "IBIZBOOKHasPanelKanBanView",
"viewtag": "a6cb9804bfd40d2542ae2c44e0cc3331"
},
"ibizorderdetailusr3editview": {
"title": "订单明细编辑视图",
"caption": "订单明细",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderDetailUsr3EditView",
"viewtag": "a70ece0abc7c94ca607df689ea742668"
},
"ibizsample0003editview": {
"title": "IBIZSAMPLE0003编辑视图",
"caption": "示例实体03",
......@@ -1359,6 +1351,14 @@
"viewname": "IBIZSample0003SPickupView2",
"viewtag": "df462fabce815005a40debffad2f43e6"
},
"ibizcustomer_intfmpickupview": {
"title": "客户数据多项选择视图",
"caption": "客户",
"viewtype": "DEMPICKUPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomer_INTFMPickupView",
"viewtag": "e0e27dfc4c1e8f322c8e8d80a9a21301"
},
"ibizbookusr3dataview": {
"title": "图书数据视图(代码表分组)",
"caption": "图书",
......@@ -1527,6 +1527,14 @@
"viewname": "IBIZBOOKEditView4",
"viewtag": "f54effa21e9231945eea4ff2f9b2af6f"
},
"ibizorderdetailusr2editview": {
"title": "订单明细编辑视图",
"caption": "订单明细",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderDetailUsr2EditView",
"viewtag": "f5fd15132c21e606b626206e0081ec9d"
},
"ibizbookinternalfuncgridview": {
"title": "表格内置功能",
"caption": "表格内置功能",
......
......@@ -261,7 +261,6 @@ export default {
menuitem131: "表格选项操作",
menuitem142: "选择视图",
menuitem143: "数据选择视图",
menuitem130: "数据选择视图2",
menuitem5: "视图",
menuitem9: "列表视图",
menuitem19: "常规表格视图",
......
......@@ -261,7 +261,6 @@ export default {
menuitem131: "表格选项操作",
menuitem142: "选择视图",
menuitem143: "数据选择视图",
menuitem130: "数据选择视图2",
menuitem5: "视图",
menuitem9: "列表视图",
menuitem19: "常规表格视图",
......
......@@ -21,6 +21,10 @@ export default {
caption: "客户",
title: "客户选择表格视图",
},
mpickupview: {
caption: "客户",
title: "客户数据多项选择视图",
},
},
main_grid: {
columns: {
......
......@@ -20,6 +20,10 @@ export default {
caption: "客户",
title: "客户选择表格视图",
},
mpickupview: {
caption: "客户",
title: "客户数据多项选择视图",
},
},
main_grid: {
columns: {
......
......@@ -16,6 +16,10 @@ export default {
caption: "客户",
title: "客户选择表格视图",
},
mpickupview: {
caption: "客户",
title: "客户数据多项选择视图",
},
editview: {
caption: "客户",
title: "客户编辑视图",
......
......@@ -15,6 +15,10 @@ export default {
caption: "客户",
title: "客户选择表格视图",
},
mpickupview: {
caption: "客户",
title: "客户数据多项选择视图",
},
editview: {
caption: "客户",
title: "客户编辑视图",
......
......@@ -35,10 +35,6 @@ export default {
caption: "orderdetail",
title: "订单明细列表视图",
},
usr2editview: {
caption: "orderdetail",
title: "订单明细编辑视图",
},
f6editview: {
caption: "orderdetail",
title: "订单明细编辑视图",
......@@ -55,10 +51,6 @@ export default {
caption: "表单项更新",
title: "表单项更新",
},
usr3editview: {
caption: "orderdetail",
title: "订单明细编辑视图",
},
sgridview9: {
caption: "orderdetail",
title: "订单明细表格视图",
......@@ -75,6 +67,10 @@ export default {
caption: "orderdetail",
title: "订单明细表格视图",
},
usr2editview: {
caption: "orderdetail",
title: "订单明细编辑视图",
},
sgridview: {
caption: "orderdetail",
title: "订单明细表格视图",
......@@ -157,30 +153,6 @@ export default {
uiactions: {
},
},
main4_form: {
details: {
group1: "订单明细基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "订单明细标识",
srfmajortext: "订单明细名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
ibizorderdetailname: "订单明细名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
ibizorderdetailid: "订单明细标识",
},
uiactions: {
},
},
logic_0007_form: {
details: {
group1: "订单明细基本信息",
......@@ -229,7 +201,7 @@ export default {
uiactions: {
},
},
dataselectform_form: {
ui_0007_2_form: {
details: {
group1: "订单明细基本信息",
formpage1: "基本信息",
......@@ -484,8 +456,6 @@ export default {
tip: "数据导入",
},
},
usr2editviewtoolbar_toolbar: {
},
f6gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
......@@ -592,6 +562,6 @@ export default {
tip: "刷新",
},
},
usr3editviewtoolbar_toolbar: {
usr2editviewtoolbar_toolbar: {
},
};
\ No newline at end of file
......@@ -34,10 +34,6 @@ export default {
caption: "订单明细",
title: "订单明细列表视图",
},
usr2editview: {
caption: "订单明细",
title: "订单明细编辑视图",
},
f6editview: {
caption: "订单明细",
title: "订单明细编辑视图",
......@@ -54,10 +50,6 @@ export default {
caption: "表单项更新",
title: "表单项更新",
},
usr3editview: {
caption: "订单明细",
title: "订单明细编辑视图",
},
sgridview9: {
caption: "订单明细",
title: "订单明细表格视图",
......@@ -74,6 +66,10 @@ export default {
caption: "订单明细",
title: "订单明细表格视图",
},
usr2editview: {
caption: "订单明细",
title: "订单明细编辑视图",
},
sgridview: {
caption: "订单明细",
title: "订单明细表格视图",
......@@ -156,30 +152,6 @@ export default {
uiactions: {
},
},
main4_form: {
details: {
group1: "订单明细基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "订单明细标识",
srfmajortext: "订单明细名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
ibizorderdetailname: "订单明细名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
ibizorderdetailid: "订单明细标识",
},
uiactions: {
},
},
logic_0007_form: {
details: {
group1: "订单明细基本信息",
......@@ -228,7 +200,7 @@ export default {
uiactions: {
},
},
dataselectform_form: {
ui_0007_2_form: {
details: {
group1: "订单明细基本信息",
formpage1: "基本信息",
......@@ -483,8 +455,6 @@ export default {
tip: "数据导入",
},
},
usr2editviewtoolbar_toolbar: {
},
f6gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
......@@ -591,6 +561,6 @@ export default {
tip: "刷新",
},
},
usr3editviewtoolbar_toolbar: {
usr2editviewtoolbar_toolbar: {
},
};
\ No newline at end of file
......@@ -1809,24 +1809,6 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'AppFunc61',
resourcetag: '',
},
{
id: 'FA7BE937-1340-4713-95E9-61958F120657',
name: 'menuitem130',
text: '数据选择视图2',
type: 'MENUITEM',
counterid: '',
tooltip: '数据选择视图2',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc63',
resourcetag: '',
},
],
},
......
......@@ -335,14 +335,6 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZSample0017PickupView",
"viewtag": "3169df07474ba775203f9635eb0e9b9a"
},
"ibizorderdetailusr2editview": {
"title": "订单明细编辑视图",
"caption": "订单明细",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderDetailUsr2EditView",
"viewtag": "319d79a4f05cde44a1a7751b3ffe68ef"
},
"ibizordertypepickupgridview": {
"title": "订单类型选择表格视图",
"caption": "订单类型",
......@@ -767,6 +759,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZUNIProductPickupGridView",
"viewtag": "80c9ae9ed04e7107ed9fc93734a447d1"
},
"ibizcustomermpickupview": {
"title": "客户数据多项选择视图",
"caption": "客户",
"viewtype": "DEMPICKUPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomerMPickupView",
"viewtag": "81e92e837f6fa81fed5b6beaa75f6bbd"
},
"ibizordertypeusr2editview": {
"title": "订单类型编辑视图",
"caption": "订单类型",
......@@ -975,14 +975,6 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZBOOKHasPanelKanBanView",
"viewtag": "a6cb9804bfd40d2542ae2c44e0cc3331"
},
"ibizorderdetailusr3editview": {
"title": "订单明细编辑视图",
"caption": "订单明细",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderDetailUsr3EditView",
"viewtag": "a70ece0abc7c94ca607df689ea742668"
},
"ibizsample0003editview": {
"title": "IBIZSAMPLE0003编辑视图",
"caption": "示例实体03",
......@@ -1367,6 +1359,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZSample0003SPickupView2",
"viewtag": "df462fabce815005a40debffad2f43e6"
},
"ibizcustomer_intfmpickupview": {
"title": "客户数据多项选择视图",
"caption": "客户",
"viewtype": "DEMPICKUPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomer_INTFMPickupView",
"viewtag": "e0e27dfc4c1e8f322c8e8d80a9a21301"
},
"ibizbookusr3dataview": {
"title": "图书数据视图(代码表分组)",
"caption": "图书",
......@@ -1535,6 +1535,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZBOOKEditView4",
"viewtag": "f54effa21e9231945eea4ff2f9b2af6f"
},
"ibizorderdetailusr2editview": {
"title": "订单明细编辑视图",
"caption": "订单明细",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderDetailUsr2EditView",
"viewtag": "f5fd15132c21e606b626206e0081ec9d"
},
"ibizbookinternalfuncgridview": {
"title": "表格内置功能",
"caption": "表格内置功能",
......
<template>
<div class="view-container dempickupview ibizcustomer-intfmpickup-view">
<app-studioaction :viewTitle="$t(model.srfCaption)" viewName="ibizcustomer_intfmpickupview"></app-studioaction>
<card class='view-card view-no-caption view-no-toolbar' :dis-hover="true" :padding="0" :bordered="false">
<div class='view-top-messages'>
</div>
<div class="content-container pickup-view">
<div class='view-body-messages'>
</div>
<div class="translate-contant">
<div class="center" :style="{width : !isShowButton ? '100%' : ''}">
<view_pickupviewpanel
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
name="pickupviewpanel"
ref='pickupviewpanel'
@selectionchange="pickupviewpanel_selectionchange($event)"
@activated="pickupviewpanel_activated($event)"
@load="pickupviewpanel_load($event)"
@closeview="closeView($event)">
</view_pickupviewpanel>
</div>
<div v-if="isShowButton" class="translate-buttons">
<div class="buttons">
<i-button type="primary" :title="this.containerModel.view_rightbtn.text"
:disabled="this.containerModel.view_rightbtn.disabled"
@click="onCLickRight">
<i class="el-icon-arrow-right"></i>
</i-button>
<i-button type="primary" :title="this.containerModel.view_leftbtn.text"
:disabled="this.containerModel.view_leftbtn.disabled"
@click="onCLickLeft">
<i class="el-icon-arrow-left"></i>
</i-button>
<i-button type="primary" :title="this.containerModel.view_allrightbtn.text"
@click="onCLickAllRight">
<i class="el-icon-d-arrow-right"></i>
</i-button>
<i-button type="primary" :title="this.containerModel.view_allleftbtn.text"
@click="onCLickAllLeft">
<i class="el-icon-d-arrow-left"></i>
</i-button>
</div>
</div>
<div v-if="isShowButton" class="right">
<div class="mpicker-select">
<div v-for="(item, index) in viewSelections" :key="index" :class="item._select ? 'select' : ''" @click="selectionsClick(item)" @dblclick="selectionsDBLClick(item)">
<span>{{item.srfmajortext}}</span>
</div>
</div>
</div>
</div>
<card v-if="isShowButton" :dis-hover="true" :bordered="false" class="footer">
<row :style="{ textAlign: 'right' }">
<i-button type="primary" :disabled="this.viewSelections.length > 0 ? false : true" @click="onClickOk">{{this.containerModel.view_okbtn.text}}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel">{{this.containerModel.view_cancelbtn.text}}</i-button>
</row>
</card>
</div>
<div class='view-bottom-messages'>
</div>
</card>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch,Inject } from 'vue-property-decorator';
import { UIActionTool,Util } from '@/utils';
import NavDataService from '@/service/app/navdata-service';
import { Subject,Subscription } from 'rxjs';
import IBIZCustomer_INTFService from '@/service/ibizcustomer-intf/ibizcustomer-intf-service';
import IBIZCustomer_INTFAuthService from '@/authservice/ibizcustomer-intf/ibizcustomer-intf-auth-service';
import MPickupViewEngine from '@engine/view/mpickup-view-engine';
import IBIZCustomer_INTFUIService from '@/uiservice/ibizcustomer-intf/ibizcustomer-intf-ui-service';
@Component({
components: {
},
})
export default class IBIZCustomer_INTFMPickupViewBase extends Vue {
/**
* 实体服务对象
*
* @type {IBIZCustomer_INTFService}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public appEntityService: IBIZCustomer_INTFService = new IBIZCustomer_INTFService;
/**
* 实体UI服务对象
*
* @type IBIZCustomer_INTFUIService
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public appUIService: IBIZCustomer_INTFUIService = new IBIZCustomer_INTFUIService(this.$store);
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
@Emit()
public viewDatasChange(val: any):any {
return val;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
@Prop() public viewdata!: string;
/**
* 传入视图参数
*
* @type {string}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
@Prop() public viewparam!: string;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
@Prop({ default: true }) public viewDefaultUsage!: boolean;
/**
* 视图默认使用
*
* @type {string}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
@Inject({from:'navModel',default: 'tab'})
public navModel!:string;
/**
* 视图标识
*
* @type {string}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public viewtag: string = 'e0e27dfc4c1e8f322c8e8d80a9a21301';
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public customViewNavContexts:any ={
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public customViewParams:any ={
};
/**
* 视图模型数据
*
* @type {*}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public model: any = {
srfCaption: 'entities.ibizcustomer_intf.views.mpickupview.caption',
srfTitle: 'entities.ibizcustomer_intf.views.mpickupview.title',
srfSubTitle: 'entities.ibizcustomer_intf.views.mpickupview.subtitle',
dataInfo: ''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
@Watch('viewparam',{immediate: true, deep: true})
onParamData(newVal: any, oldVal: any) {
if(newVal){
this.viewparams = {};
if(typeof newVal == 'string') {
Object.assign(this.viewparams, JSON.parse(this.viewparam));
}else{
this.viewparams = Util.deepCopy(this.viewparam);
}
if(this.viewparams.selectedData){
this.selectedData = JSON.stringify(this.viewparams.selectedData);
this.viewSelections = this.viewparams.selectedData;
}
}
}
/**
* 处理应用上下文变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
@Watch('viewdata')
onViewData(newVal: any, oldVal: any) {
const _this: any = this;
if (!Object.is(newVal, oldVal) && _this.engine) {
this.$nextTick(()=>{
_this.parseViewParam();
_this.engine.load();
});
} else if(!Object.is(newVal, oldVal) && _this.refresh && _this.refresh instanceof Function) {
_this.refresh();
}
}
/**
* 容器模型
*
* @type {*}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public containerModel: any = {
view_pickupviewpanel: { name: 'pickupviewpanel', type: 'PICKUPVIEWPANEL' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 计数器刷新
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 视图状态订阅对象
*
* @public
* @type {Subject<{action: string, data: any}>}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public engine: MPickupViewEngine = new MPickupViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
pickupviewpanel: this.$refs.pickupviewpanel,
keyPSDEField: 'ibizcustomer_intf',
majorPSDEField: 'ibizcustomername',
isLoadDefault: true,
});
}
/**
* 应用导航服务
*
* @type {*}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public navDataService = NavDataService.getInstance(this.$store);
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public serviceStateEvent: Subscription | undefined;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
@Prop() public portletState?: any;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public portletStateEvent: Subscription | undefined;
/**
* 应用上下文
*
* @type {*}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public context:any = {};
/**
* 视图参数
*
* @type {*}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public viewparams:any = {};
/**
* 视图缓存数据
*
* @type {*}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public viewCacheData:any;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public counterServiceArray:Array<any> = [];
/**
* 解析视图参数
*
* @public
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public parseViewParam(inputvalue:any = null): void {
for(let key in this.context){
delete this.context[key];
}
if(this.$store.getters.getAppData() && this.$store.getters.getAppData().context){
Object.assign(this.context,this.$store.getters.getAppData().context);
}
if (!this.viewDefaultUsage && this.viewdata && !Object.is(this.viewdata, '')) {
if(typeof this.viewdata == 'string') {
Object.assign(this.context, JSON.parse(this.viewdata));
}
if(this.context && this.context.srfparentdename){
Object.assign(this.viewparams,{srfparentdename:this.context.srfparentdename});
}
if(this.context && this.context.srfparentkey){
Object.assign(this.viewparams,{srfparentkey:this.context.srfparentkey});
}
this.handleCustomViewData();
return;
}
const path = (this.$route.matched[this.$route.matched.length - 1]).path;
const keys: Array<any> = [];
const curReg = this.$pathToRegExp.pathToRegexp(path, keys);
const matchArray = curReg.exec(this.$route.path);
let tempValue: Object = {};
keys.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item.name, {
enumerable: true,
value: matchArray[index + 1]
});
});
this.$viewTool.formatRouteParams(tempValue,this.$route,this.context,this.viewparams);
if(inputvalue){
Object.assign(this.context,{'ibizcustomer_intf':inputvalue});
}
//初始化视图唯一标识
Object.assign(this.context,{srfsessionid:this.$util.createUUID()});
this.handleCustomViewData();
//初始化导航数据
this.initNavDataWithRoute();
}
/**
* 处理自定义视图数据
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public handleCustomViewData(){
if(Object.keys(this.customViewNavContexts).length > 0){
Object.keys(this.customViewNavContexts).forEach((item:any) =>{
let tempContext:any = {};
let curNavContext:any = this.customViewNavContexts[item];
this.handleCustomDataLogic(curNavContext,tempContext,item);
Object.assign(this.context,tempContext);
})
}
if(Object.keys(this.customViewParams).length > 0){
Object.keys(this.customViewParams).forEach((item:any) =>{
let tempParam:any = {};
let curNavParam:any = this.customViewParams[item];
this.handleCustomDataLogic(curNavParam,tempParam,item);
Object.assign(this.viewparams,tempParam);
})
}
}
/**
* 处理自定义视图数据逻辑
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public handleCustomDataLogic(curNavData:any,tempData:any,item:string){
// 直接值直接赋值
if(curNavData.isRawValue){
if(Object.is(curNavData.value,"null") || Object.is(curNavData.value,"")){
Object.defineProperty(tempData, item.toLowerCase(), {
value: null,
writable : true,
enumerable : true,
configurable : true
});
}else{
Object.defineProperty(tempData, item.toLowerCase(), {
value: curNavData.value,
writable : true,
enumerable : true,
configurable : true
});
}
}else{
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
if(this.context[(curNavData.value).toLowerCase()] != null){
Object.defineProperty(tempData, item.toLowerCase(), {
value: this.context[(curNavData.value).toLowerCase()],
writable : true,
enumerable : true,
configurable : true
});
}else{
if(this.viewparams[(curNavData.value).toLowerCase()] != null){
Object.defineProperty(tempData, item.toLowerCase(), {
value: this.viewparams[(curNavData.value).toLowerCase()],
writable : true,
enumerable : true,
configurable : true
});
}else{
Object.defineProperty(tempData, item.toLowerCase(), {
value: null,
writable : true,
enumerable : true,
configurable : true
});
}
}
}
}
/**
* 初始化导航数据(路由模式)
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public initNavDataWithRoute(data:any = null, isNew:boolean = false, isAlways:boolean = false){
if( isAlways || (this.viewDefaultUsage && Object.is(this.navModel,"route")) ){
this.navDataService.addNavData({id:'ibizcustomer-intfmpickup-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibizcustomer_intf,title:this.$t(this.model.srfCaption),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
/**
* 初始化导航数据(分页模式)
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public initNavDataWithTab(data:any = null,isOnlyAdd:boolean = true, isAlways:boolean = false){
if( isAlways || (this.viewDefaultUsage && !Object.is(this.navModel,"route")) ){
this.navDataService.addNavDataByOnly({id:'ibizcustomer-intfmpickup-view',tag:this.viewtag,srfkey:this.context.ibizcustomer_intf,title:this.$t(this.model.srfCaption),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath},isOnlyAdd);
}
}
/**
* Vue声明周期
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public afterCreated(){
let _this:any = this;
const secondtag = _this.$util.createUUID();
_this.$store.commit('viewaction/createdView', { viewtag: _this.viewtag, secondtag: secondtag });
_this.viewtag = secondtag;
_this.parseViewParam();
_this.serviceStateEvent = _this.navDataService.serviceState.subscribe(({ action,name, data }:{ action:string,name:any,data:any }) => {
if(!Object.is(name,'ibizcustomer-intfmpickup-view')){
return;
}
if (Object.is(action, 'viewrefresh')) {
_this.$nextTick(()=>{
_this.parseViewParam(data);
if(_this.engine){
_this.engine.load();
}
});
}
});
if(_this.portletState){
_this.portletStateEvent = _this.portletState.subscribe((res:any) =>{
if(!Object.is(res.name,'IBIZCustomer_INTFMPickupView')){
return;
}
if(Object.is(res.action,'refresh') && _this.refresh && _this.refresh instanceof Function){
_this.refresh();
}
})
}
}
/**
* 销毁之前
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public beforeDestroy() {
this.$store.commit('viewaction/removeView', this.viewtag);
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public mounted() {
this.afterMounted();
}
/**
* 执行mounted后的逻辑
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public afterMounted(){
const _this: any = this;
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
if(this.viewparams.selectedData){
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', this.viewparams.selectedData);
this.onCLickRight();
}
}
/**
* pickupviewpanel 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public pickupviewpanel_selectionchange($event: any, $event2?: any) {
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', $event);
}
/**
* pickupviewpanel 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public pickupviewpanel_activated($event: any, $event2?: any) {
this.engine.onCtrlEvent('pickupviewpanel', 'activated', $event);
}
/**
* pickupviewpanel 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public pickupviewpanel_load($event: any, $event2?: any) {
this.engine.onCtrlEvent('pickupviewpanel', 'load', $event);
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public closeView(args: any[]): void {
let _view: any = this;
if (_view.viewdata) {
_view.$emit('viewdataschange', [args]);
_view.$emit('close', [args]);
} else if (_view.$tabPageExp) {
_view.$tabPageExp.onClose(_view.$route.fullPath);
}
}
/**
* 销毁视图回调
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
if(Object.is(this.navModel,"tab")){
this.navDataService.removeNavDataByTag(this.viewtag);
}
if (this.serviceStateEvent) {
this.serviceStateEvent.unsubscribe();
}
}
// 销毁计数器定时器
if(this.counterServiceArray && this.counterServiceArray.length >0){
this.counterServiceArray.forEach((item:any) =>{
if(item.destroyCounter && item.destroyCounter instanceof Function){
item.destroyCounter();
}
})
}
if(this.portletStateEvent){
this.portletStateEvent.unsubscribe();
}
}
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
@Prop({default: true}) public isShowButton!: boolean;
/**
* 选中数据的字符串
*
* @type {string}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public selectedData: string = "";
/**
* 是否初始化已选中项
*
* @type {any[]}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public isInitSelected:boolean = false;
/**
* 视图选中数据
*
* @type {any[]}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public viewSelections:any[] = [];
/**
* 是否单选
*
* @type {boolean}
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public isSingleSelect: boolean = false;
/**
* 选中数据单击
*
* @param {*} item
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public selectionsClick(item:any):void {
item._select = !item._select;
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
}
/**
* 选中树双击
*
* @param {*} item
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public selectionsDBLClick(item:any):void {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(selection.srfkey, item.srfkey));
if (index !== -1) {
this.viewSelections.splice(index, 1);
}
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
* 删除右侧全部选中数据
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public onCLickLeft():void {
const _selectiions = [...JSON.parse(JSON.stringify(this.viewSelections))];
_selectiions.forEach((item: any) => {
if (!item._select) {
return;
}
const index = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index !== -1) {
this.viewSelections.splice(index, 1);
}
});
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
* 添加左侧选中数据
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public onCLickRight():void {
Object.values(this.containerModel).forEach((model: any) => {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return;
}
let newSelections:any[] = [];
model.selections.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false })
newSelections.push(_item);
}else{
newSelections.push(this.viewSelections[index]);
}
});
this.viewSelections = this.removeDuplicates([...newSelections,...this.viewSelections]);
});
}
/**
* 去重
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public removeDuplicates(data:any):Array<any> {
const uniqueSet = new Set(data);
return [...uniqueSet];
}
/**
* 选中数据全部删除
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public onCLickAllLeft():void {
this.viewSelections = [];
this.containerModel.view_leftbtn.disabled = true;
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', []);
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
* 添加左侧面板所有数据到右侧
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public onCLickAllRight():void {
Object.values(this.containerModel).forEach((model: any) => {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return;
}
if(model.datas.length>0){
model.datas.forEach((data:any,index:any)=>{
Object.assign(data,{srfmajortext: data['ibizcustomername']});
})
}
model.datas.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false })
this.viewSelections.push(_item);
}
});
});
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
* 确定
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public onClickOk(): void {
this.$emit('viewdataschange', this.viewSelections);
this.$emit('close', null);
}
/**
* 取消
*
* @memberof IBIZCustomer_INTFMPickupViewBase
*/
public onClickCancel(): void {
this.$emit('viewdataschange', null);
this.$emit('close', null);
}
}
</script>
<style lang='less'>
@import './ibizcustomer-intfmpickup-view.less';
</style>
\ No newline at end of file
.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;
}
}
\ No newline at end of file
<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
<template>
<div class="view-container dempickupview ibizcustomer-mpickup-view">
<app-studioaction :viewTitle="$t(model.srfCaption)" viewName="ibizcustomermpickupview"></app-studioaction>
<card class='view-card view-no-caption view-no-toolbar' :dis-hover="true" :padding="0" :bordered="false">
<div class='view-top-messages'>
</div>
<div class="content-container pickup-view">
<div class='view-body-messages'>
</div>
<div class="translate-contant">
<div class="center" :style="{width : !isShowButton ? '100%' : ''}">
<view_pickupviewpanel
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
name="pickupviewpanel"
ref='pickupviewpanel'
@selectionchange="pickupviewpanel_selectionchange($event)"
@activated="pickupviewpanel_activated($event)"
@load="pickupviewpanel_load($event)"
@closeview="closeView($event)">
</view_pickupviewpanel>
</div>
<div v-if="isShowButton" class="translate-buttons">
<div class="buttons">
<i-button type="primary" :title="this.containerModel.view_rightbtn.text"
:disabled="this.containerModel.view_rightbtn.disabled"
@click="onCLickRight">
<i class="el-icon-arrow-right"></i>
</i-button>
<i-button type="primary" :title="this.containerModel.view_leftbtn.text"
:disabled="this.containerModel.view_leftbtn.disabled"
@click="onCLickLeft">
<i class="el-icon-arrow-left"></i>
</i-button>
<i-button type="primary" :title="this.containerModel.view_allrightbtn.text"
@click="onCLickAllRight">
<i class="el-icon-d-arrow-right"></i>
</i-button>
<i-button type="primary" :title="this.containerModel.view_allleftbtn.text"
@click="onCLickAllLeft">
<i class="el-icon-d-arrow-left"></i>
</i-button>
</div>
</div>
<div v-if="isShowButton" class="right">
<div class="mpicker-select">
<div v-for="(item, index) in viewSelections" :key="index" :class="item._select ? 'select' : ''" @click="selectionsClick(item)" @dblclick="selectionsDBLClick(item)">
<span>{{item.srfmajortext}}</span>
</div>
</div>
</div>
</div>
<card v-if="isShowButton" :dis-hover="true" :bordered="false" class="footer">
<row :style="{ textAlign: 'right' }">
<i-button type="primary" :disabled="this.viewSelections.length > 0 ? false : true" @click="onClickOk">{{this.containerModel.view_okbtn.text}}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel">{{this.containerModel.view_cancelbtn.text}}</i-button>
</row>
</card>
</div>
<div class='view-bottom-messages'>
</div>
</card>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch,Inject } from 'vue-property-decorator';
import { UIActionTool,Util } from '@/utils';
import NavDataService from '@/service/app/navdata-service';
import { Subject,Subscription } from 'rxjs';
import IBIZCustomerService from '@/service/ibizcustomer/ibizcustomer-service';
import IBIZCustomerAuthService from '@/authservice/ibizcustomer/ibizcustomer-auth-service';
import MPickupViewEngine from '@engine/view/mpickup-view-engine';
import IBIZCustomerUIService from '@/uiservice/ibizcustomer/ibizcustomer-ui-service';
@Component({
components: {
},
})
export default class IBIZCustomerMPickupViewBase extends Vue {
/**
* 实体服务对象
*
* @type {IBIZCustomerService}
* @memberof IBIZCustomerMPickupViewBase
*/
public appEntityService: IBIZCustomerService = new IBIZCustomerService;
/**
* 实体UI服务对象
*
* @type IBIZCustomerUIService
* @memberof IBIZCustomerMPickupViewBase
*/
public appUIService: IBIZCustomerUIService = new IBIZCustomerUIService(this.$store);
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof IBIZCustomerMPickupViewBase
*/
@Emit()
public viewDatasChange(val: any):any {
return val;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof IBIZCustomerMPickupViewBase
*/
@Prop() public viewdata!: string;
/**
* 传入视图参数
*
* @type {string}
* @memberof IBIZCustomerMPickupViewBase
*/
@Prop() public viewparam!: string;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof IBIZCustomerMPickupViewBase
*/
@Prop({ default: true }) public viewDefaultUsage!: boolean;
/**
* 视图默认使用
*
* @type {string}
* @memberof IBIZCustomerMPickupViewBase
*/
@Inject({from:'navModel',default: 'tab'})
public navModel!:string;
/**
* 视图标识
*
* @type {string}
* @memberof IBIZCustomerMPickupViewBase
*/
public viewtag: string = '81e92e837f6fa81fed5b6beaa75f6bbd';
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof IBIZCustomerMPickupViewBase
*/
public customViewNavContexts:any ={
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof IBIZCustomerMPickupViewBase
*/
public customViewParams:any ={
};
/**
* 视图模型数据
*
* @type {*}
* @memberof IBIZCustomerMPickupViewBase
*/
public model: any = {
srfCaption: 'entities.ibizcustomer.views.mpickupview.caption',
srfTitle: 'entities.ibizcustomer.views.mpickupview.title',
srfSubTitle: 'entities.ibizcustomer.views.mpickupview.subtitle',
dataInfo: ''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZCustomerMPickupViewBase
*/
@Watch('viewparam',{immediate: true, deep: true})
onParamData(newVal: any, oldVal: any) {
if(newVal){
this.viewparams = {};
if(typeof newVal == 'string') {
Object.assign(this.viewparams, JSON.parse(this.viewparam));
}else{
this.viewparams = Util.deepCopy(this.viewparam);
}
if(this.viewparams.selectedData){
this.selectedData = JSON.stringify(this.viewparams.selectedData);
this.viewSelections = this.viewparams.selectedData;
}
}
}
/**
* 处理应用上下文变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZCustomerMPickupViewBase
*/
@Watch('viewdata')
onViewData(newVal: any, oldVal: any) {
const _this: any = this;
if (!Object.is(newVal, oldVal) && _this.engine) {
this.$nextTick(()=>{
_this.parseViewParam();
_this.engine.load();
});
} else if(!Object.is(newVal, oldVal) && _this.refresh && _this.refresh instanceof Function) {
_this.refresh();
}
}
/**
* 容器模型
*
* @type {*}
* @memberof IBIZCustomerMPickupViewBase
*/
public containerModel: any = {
view_pickupviewpanel: { name: 'pickupviewpanel', type: 'PICKUPVIEWPANEL' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 计数器刷新
*
* @memberof IBIZCustomerMPickupViewBase
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 视图状态订阅对象
*
* @public
* @type {Subject<{action: string, data: any}>}
* @memberof IBIZCustomerMPickupViewBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBIZCustomerMPickupViewBase
*/
public engine: MPickupViewEngine = new MPickupViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof IBIZCustomerMPickupViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
pickupviewpanel: this.$refs.pickupviewpanel,
keyPSDEField: 'ibizcustomer',
majorPSDEField: 'ibizcustomername',
isLoadDefault: true,
});
}
/**
* 应用导航服务
*
* @type {*}
* @memberof IBIZCustomerMPickupViewBase
*/
public navDataService = NavDataService.getInstance(this.$store);
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZCustomerMPickupViewBase
*/
public serviceStateEvent: Subscription | undefined;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof IBIZCustomerMPickupViewBase
*/
@Prop() public portletState?: any;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZCustomerMPickupViewBase
*/
public portletStateEvent: Subscription | undefined;
/**
* 应用上下文
*
* @type {*}
* @memberof IBIZCustomerMPickupViewBase
*/
public context:any = {};
/**
* 视图参数
*
* @type {*}
* @memberof IBIZCustomerMPickupViewBase
*/
public viewparams:any = {};
/**
* 视图缓存数据
*
* @type {*}
* @memberof IBIZCustomerMPickupViewBase
*/
public viewCacheData:any;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof IBIZCustomerMPickupViewBase
*/
public counterServiceArray:Array<any> = [];
/**
* 解析视图参数
*
* @public
* @memberof IBIZCustomerMPickupViewBase
*/
public parseViewParam(inputvalue:any = null): void {
for(let key in this.context){
delete this.context[key];
}
if(this.$store.getters.getAppData() && this.$store.getters.getAppData().context){
Object.assign(this.context,this.$store.getters.getAppData().context);
}
if (!this.viewDefaultUsage && this.viewdata && !Object.is(this.viewdata, '')) {
if(typeof this.viewdata == 'string') {
Object.assign(this.context, JSON.parse(this.viewdata));
}
if(this.context && this.context.srfparentdename){
Object.assign(this.viewparams,{srfparentdename:this.context.srfparentdename});
}
if(this.context && this.context.srfparentkey){
Object.assign(this.viewparams,{srfparentkey:this.context.srfparentkey});
}
this.handleCustomViewData();
return;
}
const path = (this.$route.matched[this.$route.matched.length - 1]).path;
const keys: Array<any> = [];
const curReg = this.$pathToRegExp.pathToRegexp(path, keys);
const matchArray = curReg.exec(this.$route.path);
let tempValue: Object = {};
keys.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item.name, {
enumerable: true,
value: matchArray[index + 1]
});
});
this.$viewTool.formatRouteParams(tempValue,this.$route,this.context,this.viewparams);
if(inputvalue){
Object.assign(this.context,{'ibizcustomer':inputvalue});
}
//初始化视图唯一标识
Object.assign(this.context,{srfsessionid:this.$util.createUUID()});
this.handleCustomViewData();
//初始化导航数据
this.initNavDataWithRoute();
}
/**
* 处理自定义视图数据
*
* @memberof IBIZCustomerMPickupViewBase
*/
public handleCustomViewData(){
if(Object.keys(this.customViewNavContexts).length > 0){
Object.keys(this.customViewNavContexts).forEach((item:any) =>{
let tempContext:any = {};
let curNavContext:any = this.customViewNavContexts[item];
this.handleCustomDataLogic(curNavContext,tempContext,item);
Object.assign(this.context,tempContext);
})
}
if(Object.keys(this.customViewParams).length > 0){
Object.keys(this.customViewParams).forEach((item:any) =>{
let tempParam:any = {};
let curNavParam:any = this.customViewParams[item];
this.handleCustomDataLogic(curNavParam,tempParam,item);
Object.assign(this.viewparams,tempParam);
})
}
}
/**
* 处理自定义视图数据逻辑
*
* @memberof IBIZCustomerMPickupViewBase
*/
public handleCustomDataLogic(curNavData:any,tempData:any,item:string){
// 直接值直接赋值
if(curNavData.isRawValue){
if(Object.is(curNavData.value,"null") || Object.is(curNavData.value,"")){
Object.defineProperty(tempData, item.toLowerCase(), {
value: null,
writable : true,
enumerable : true,
configurable : true
});
}else{
Object.defineProperty(tempData, item.toLowerCase(), {
value: curNavData.value,
writable : true,
enumerable : true,
configurable : true
});
}
}else{
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
if(this.context[(curNavData.value).toLowerCase()] != null){
Object.defineProperty(tempData, item.toLowerCase(), {
value: this.context[(curNavData.value).toLowerCase()],
writable : true,
enumerable : true,
configurable : true
});
}else{
if(this.viewparams[(curNavData.value).toLowerCase()] != null){
Object.defineProperty(tempData, item.toLowerCase(), {
value: this.viewparams[(curNavData.value).toLowerCase()],
writable : true,
enumerable : true,
configurable : true
});
}else{
Object.defineProperty(tempData, item.toLowerCase(), {
value: null,
writable : true,
enumerable : true,
configurable : true
});
}
}
}
}
/**
* 初始化导航数据(路由模式)
*
* @memberof IBIZCustomerMPickupViewBase
*/
public initNavDataWithRoute(data:any = null, isNew:boolean = false, isAlways:boolean = false){
if( isAlways || (this.viewDefaultUsage && Object.is(this.navModel,"route")) ){
this.navDataService.addNavData({id:'ibizcustomer-mpickup-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibizcustomer,title:this.$t(this.model.srfCaption),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
/**
* 初始化导航数据(分页模式)
*
* @memberof IBIZCustomerMPickupViewBase
*/
public initNavDataWithTab(data:any = null,isOnlyAdd:boolean = true, isAlways:boolean = false){
if( isAlways || (this.viewDefaultUsage && !Object.is(this.navModel,"route")) ){
this.navDataService.addNavDataByOnly({id:'ibizcustomer-mpickup-view',tag:this.viewtag,srfkey:this.context.ibizcustomer,title:this.$t(this.model.srfCaption),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath},isOnlyAdd);
}
}
/**
* Vue声明周期
*
* @memberof IBIZCustomerMPickupViewBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof IBIZCustomerMPickupViewBase
*/
public afterCreated(){
let _this:any = this;
const secondtag = _this.$util.createUUID();
_this.$store.commit('viewaction/createdView', { viewtag: _this.viewtag, secondtag: secondtag });
_this.viewtag = secondtag;
_this.parseViewParam();
_this.serviceStateEvent = _this.navDataService.serviceState.subscribe(({ action,name, data }:{ action:string,name:any,data:any }) => {
if(!Object.is(name,'ibizcustomer-mpickup-view')){
return;
}
if (Object.is(action, 'viewrefresh')) {
_this.$nextTick(()=>{
_this.parseViewParam(data);
if(_this.engine){
_this.engine.load();
}
});
}
});
if(_this.portletState){
_this.portletStateEvent = _this.portletState.subscribe((res:any) =>{
if(!Object.is(res.name,'IBIZCustomerMPickupView')){
return;
}
if(Object.is(res.action,'refresh') && _this.refresh && _this.refresh instanceof Function){
_this.refresh();
}
})
}
}
/**
* 销毁之前
*
* @memberof IBIZCustomerMPickupViewBase
*/
public beforeDestroy() {
this.$store.commit('viewaction/removeView', this.viewtag);
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof IBIZCustomerMPickupViewBase
*/
public mounted() {
this.afterMounted();
}
/**
* 执行mounted后的逻辑
*
* @memberof IBIZCustomerMPickupViewBase
*/
public afterMounted(){
const _this: any = this;
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
if(this.viewparams.selectedData){
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', this.viewparams.selectedData);
this.onCLickRight();
}
}
/**
* pickupviewpanel 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZCustomerMPickupViewBase
*/
public pickupviewpanel_selectionchange($event: any, $event2?: any) {
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', $event);
}
/**
* pickupviewpanel 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZCustomerMPickupViewBase
*/
public pickupviewpanel_activated($event: any, $event2?: any) {
this.engine.onCtrlEvent('pickupviewpanel', 'activated', $event);
}
/**
* pickupviewpanel 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZCustomerMPickupViewBase
*/
public pickupviewpanel_load($event: any, $event2?: any) {
this.engine.onCtrlEvent('pickupviewpanel', 'load', $event);
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof IBIZCustomerMPickupViewBase
*/
public closeView(args: any[]): void {
let _view: any = this;
if (_view.viewdata) {
_view.$emit('viewdataschange', [args]);
_view.$emit('close', [args]);
} else if (_view.$tabPageExp) {
_view.$tabPageExp.onClose(_view.$route.fullPath);
}
}
/**
* 销毁视图回调
*
* @memberof IBIZCustomerMPickupViewBase
*/
public destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBIZCustomerMPickupViewBase
*/
public afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
if(Object.is(this.navModel,"tab")){
this.navDataService.removeNavDataByTag(this.viewtag);
}
if (this.serviceStateEvent) {
this.serviceStateEvent.unsubscribe();
}
}
// 销毁计数器定时器
if(this.counterServiceArray && this.counterServiceArray.length >0){
this.counterServiceArray.forEach((item:any) =>{
if(item.destroyCounter && item.destroyCounter instanceof Function){
item.destroyCounter();
}
})
}
if(this.portletStateEvent){
this.portletStateEvent.unsubscribe();
}
}
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof IBIZCustomerMPickupViewBase
*/
@Prop({default: true}) public isShowButton!: boolean;
/**
* 选中数据的字符串
*
* @type {string}
* @memberof IBIZCustomerMPickupViewBase
*/
public selectedData: string = "";
/**
* 是否初始化已选中项
*
* @type {any[]}
* @memberof IBIZCustomerMPickupViewBase
*/
public isInitSelected:boolean = false;
/**
* 视图选中数据
*
* @type {any[]}
* @memberof IBIZCustomerMPickupViewBase
*/
public viewSelections:any[] = [];
/**
* 是否单选
*
* @type {boolean}
* @memberof IBIZCustomerMPickupViewBase
*/
public isSingleSelect: boolean = false;
/**
* 选中数据单击
*
* @param {*} item
* @memberof IBIZCustomerMPickupViewBase
*/
public selectionsClick(item:any):void {
item._select = !item._select;
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
}
/**
* 选中树双击
*
* @param {*} item
* @memberof IBIZCustomerMPickupViewBase
*/
public selectionsDBLClick(item:any):void {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(selection.srfkey, item.srfkey));
if (index !== -1) {
this.viewSelections.splice(index, 1);
}
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
* 删除右侧全部选中数据
*
* @memberof IBIZCustomerMPickupViewBase
*/
public onCLickLeft():void {
const _selectiions = [...JSON.parse(JSON.stringify(this.viewSelections))];
_selectiions.forEach((item: any) => {
if (!item._select) {
return;
}
const index = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index !== -1) {
this.viewSelections.splice(index, 1);
}
});
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
* 添加左侧选中数据
*
* @memberof IBIZCustomerMPickupViewBase
*/
public onCLickRight():void {
Object.values(this.containerModel).forEach((model: any) => {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return;
}
let newSelections:any[] = [];
model.selections.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false })
newSelections.push(_item);
}else{
newSelections.push(this.viewSelections[index]);
}
});
this.viewSelections = this.removeDuplicates([...newSelections,...this.viewSelections]);
});
}
/**
* 去重
*
* @memberof IBIZCustomerMPickupViewBase
*/
public removeDuplicates(data:any):Array<any> {
const uniqueSet = new Set(data);
return [...uniqueSet];
}
/**
* 选中数据全部删除
*
* @memberof IBIZCustomerMPickupViewBase
*/
public onCLickAllLeft():void {
this.viewSelections = [];
this.containerModel.view_leftbtn.disabled = true;
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', []);
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
* 添加左侧面板所有数据到右侧
*
* @memberof IBIZCustomerMPickupViewBase
*/
public onCLickAllRight():void {
Object.values(this.containerModel).forEach((model: any) => {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return;
}
if(model.datas.length>0){
model.datas.forEach((data:any,index:any)=>{
Object.assign(data,{srfmajortext: data['ibizcustomername']});
})
}
model.datas.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false })
this.viewSelections.push(_item);
}
});
});
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
* 确定
*
* @memberof IBIZCustomerMPickupViewBase
*/
public onClickOk(): void {
this.$emit('viewdataschange', this.viewSelections);
this.$emit('close', null);
}
/**
* 取消
*
* @memberof IBIZCustomerMPickupViewBase
*/
public onClickCancel(): void {
this.$emit('viewdataschange', null);
this.$emit('close', null);
}
}
</script>
<style lang='less'>
@import './ibizcustomer-mpickup-view.less';
</style>
\ No newline at end of file
.ibizcustomer-mpickup-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;
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZCustomerMPickupViewBase from './ibizcustomer-mpickup-view-base.vue';
import view_pickupviewpanel from '@widgets/ibizcustomer/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 IBIZCustomerMPickupView extends IBIZCustomerMPickupViewBase {
}
</script>
\ No newline at end of file
......@@ -3,7 +3,6 @@ export const PageComponents = {
Vue.component('ibizsample0001-sf6-edit-view', () => import('@pages/sample/ibizsample0001-sf6-edit-view/ibizsample0001-sf6-edit-view.vue'));
Vue.component('ibizcustomer-usr2-grid-view', () => import('@pages/sample/ibizcustomer-usr2-grid-view/ibizcustomer-usr2-grid-view.vue'));
Vue.component('ibizsample0003-smpickup-view2', () => import('@pages/sample/ibizsample0003-smpickup-view2/ibizsample0003-smpickup-view2.vue'));
Vue.component('ibizorder-detail-usr2-edit-view', () => import('@pages/sample/ibizorder-detail-usr2-edit-view/ibizorder-detail-usr2-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-smedit-view9', () => import('@pages/sample/ibizorder-detail-smedit-view9/ibizorder-detail-smedit-view9.vue'));
Vue.component('ibizsample0003-edit-view', () => import('@pages/sample/ibizsample0003-edit-view/ibizsample0003-edit-view.vue'));
......@@ -27,6 +26,7 @@ export const PageComponents = {
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'));
Vue.component('ibizorder-detail-sgrid-view', () => import('@pages/sample/ibizorder-detail-sgrid-view/ibizorder-detail-sgrid-view.vue'));
......@@ -47,6 +47,7 @@ export const PageComponents = {
Vue.component('ibizorder-sf5-grid-view', () => import('@pages/sample/ibizorder-sf5-grid-view/ibizorder-sf5-grid-view.vue'));
Vue.component('ibizbookmedit-view9', () => import('@pages/sample/ibizbookmedit-view9/ibizbookmedit-view9.vue'));
Vue.component('ibizcustomer-edit-view', () => import('@pages/sample/ibizcustomer-edit-view/ibizcustomer-edit-view.vue'));
Vue.component('ibizcustomer-intfmpickup-view', () => import('@pages/sample/ibizcustomer-intfmpickup-view/ibizcustomer-intfmpickup-view.vue'));
Vue.component('ibizbookgroup-by-codelist-kan-ban-view', () => import('@pages/sample/ibizbookgroup-by-codelist-kan-ban-view/ibizbookgroup-by-codelist-kan-ban-view.vue'));
Vue.component('ibizbookusr3-data-view', () => import('@pages/sample/ibizbookusr3-data-view/ibizbookusr3-data-view.vue'));
Vue.component('ibizorder-detail-grid-view9', () => import('@pages/sample/ibizorder-detail-grid-view9/ibizorder-detail-grid-view9.vue'));
......@@ -74,8 +75,8 @@ export const PageComponents = {
Vue.component('ibizorder-usr2-edit-view', () => import('@pages/sample/ibizorder-usr2-edit-view/ibizorder-usr2-edit-view.vue'));
Vue.component('ibizorder-sf4-edit-view', () => import('@pages/sample/ibizorder-sf4-edit-view/ibizorder-sf4-edit-view.vue'));
Vue.component('ibizorder-sf1-edit-view', () => import('@pages/sample/ibizorder-sf1-edit-view/ibizorder-sf1-edit-view.vue'));
Vue.component('ibizsample0017-grid-view', () => import('@pages/sample/ibizsample0017-grid-view/ibizsample0017-grid-view.vue'));
Vue.component('ibizbookusr3-calendar-view', () => import('@pages/sample/ibizbookusr3-calendar-view/ibizbookusr3-calendar-view.vue'));
Vue.component('ibizsample0017-grid-view', () => import('@pages/sample/ibizsample0017-grid-view/ibizsample0017-grid-view.vue'));
Vue.component('ibizorder-f8-edit-view', () => import('@pages/sample/ibizorder-f8-edit-view/ibizorder-f8-edit-view.vue'));
Vue.component('ibizorder-f19-edit-view', () => import('@pages/sample/ibizorder-f19-edit-view/ibizorder-f19-edit-view.vue'));
Vue.component('ibizsample0003-f1-tree-exp-view', () => import('@pages/sample/ibizsample0003-f1-tree-exp-view/ibizsample0003-f1-tree-exp-view.vue'));
......
......@@ -92,35 +92,6 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0003-smpickup-view2/ibizsample0003-smpickup-view2.vue'),
},
{
path: 'ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/usr2editview/:usr2editview?',
meta: {
caption: 'entities.ibizorderdetail.views.usr2editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'usr2editview', parameterName: 'usr2editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-detail-usr2-edit-view/ibizorder-detail-usr2-edit-view.vue'),
},
{
path: 'ibizorderdetails/:ibizorderdetail?/usr2editview/:usr2editview?',
meta: {
caption: 'entities.ibizorderdetail.views.usr2editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'usr2editview', parameterName: 'usr2editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-detail-usr2-edit-view/ibizorder-detail-usr2-edit-view.vue'),
},
{
path: 'ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/seditview9/:seditview9?',
meta: {
......@@ -518,6 +489,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbooktree-grid-ex-view/ibizbooktree-grid-ex-view.vue'),
},
{
path: 'ibizcustomers/:ibizcustomer?/mpickupview/:mpickupview?',
meta: {
caption: 'entities.ibizcustomer.views.mpickupview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'mpickupview', parameterName: 'mpickupview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-mpickup-view/ibizcustomer-mpickup-view.vue'),
},
{
path: 'ibizuniproducts/:ibizuniproduct?/pickupgridview/:pickupgridview?',
meta: {
......@@ -828,6 +813,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizcustomer-edit-view/ibizcustomer-edit-view.vue'),
},
{
path: 'ibizcustomer_intfs/:ibizcustomer_intf?/mpickupview/:mpickupview?',
meta: {
caption: 'entities.ibizcustomer_intf.views.mpickupview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ 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?/groupbycodelistkanbanview/:groupbycodelistkanbanview?',
meta: {
......@@ -1237,32 +1236,32 @@ const router = new Router({
component: () => import('@pages/sample/ibizorder-sf1-edit-view/ibizorder-sf1-edit-view.vue'),
},
{
path: 'ibizsample0017s/:ibizsample0017?/gridview/:gridview?',
path: 'ibizbooks/:ibizbook?/usr3calendarview/:usr3calendarview?',
meta: {
caption: 'entities.ibizsample0017.views.gridview.caption',
caption: 'entities.ibizbook.views.usr3calendarview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizsample0017s', parameterName: 'ibizsample0017' },
{ pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3calendarview', parameterName: 'usr3calendarview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizsample0017-grid-view/ibizsample0017-grid-view.vue'),
component: () => import('@pages/sample/ibizbookusr3-calendar-view/ibizbookusr3-calendar-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/usr3calendarview/:usr3calendarview?',
path: 'ibizsample0017s/:ibizsample0017?/gridview/:gridview?',
meta: {
caption: 'entities.ibizbook.views.usr3calendarview.caption',
caption: 'entities.ibizsample0017.views.gridview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3calendarview', parameterName: 'usr3calendarview' },
{ pathName: 'ibizsample0017s', parameterName: 'ibizsample0017' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr3-calendar-view/ibizbookusr3-calendar-view.vue'),
component: () => import('@pages/sample/ibizsample0017-grid-view/ibizsample0017-grid-view.vue'),
},
{
path: 'ibizorders/:ibizorder?/f8editview/:f8editview?',
......@@ -3256,33 +3255,6 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookgroup-by-codelist-kan-ban-view/ibizbookgroup-by-codelist-kan-ban-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/usr2editview/:usr2editview?',
meta: {
caption: 'entities.ibizorderdetail.views.usr2editview.caption',
info:'',
parameters: [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'usr2editview', parameterName: 'usr2editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-detail-usr2-edit-view/ibizorder-detail-usr2-edit-view.vue'),
},
{
path: '/ibizorderdetails/:ibizorderdetail?/usr2editview/:usr2editview?',
meta: {
caption: 'entities.ibizorderdetail.views.usr2editview.caption',
info:'',
parameters: [
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'usr2editview', parameterName: 'usr2editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-detail-usr2-edit-view/ibizorder-detail-usr2-edit-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/odsp_d20_wfgridview/:odsp_d20_wfgridview?',
meta: {
......@@ -3924,6 +3896,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizuniproduct-pickup-grid-view/ibizuniproduct-pickup-grid-view.vue'),
},
{
path: '/ibizcustomers/:ibizcustomer?/mpickupview/:mpickupview?',
meta: {
caption: 'entities.ibizcustomer.views.mpickupview.caption',
info:'',
parameters: [
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'mpickupview', parameterName: 'mpickupview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-mpickup-view/ibizcustomer-mpickup-view.vue'),
},
{
path: '/ibizordertypes/:ibizordertype?/usr2editview/:usr2editview?',
meta: {
......@@ -4879,6 +4864,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0003-spickup-view2/ibizsample0003-spickup-view2.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?/usr3dataview/:usr3dataview?',
meta: {
......
......@@ -194,7 +194,6 @@ export const viewstate: any = {
refviews: [
'b09ceb3081717c0ed4fe19f9986598a0',
'e6b66fea4568c66355729271ffc9d59f',
'319d79a4f05cde44a1a7751b3ffe68ef',
'7a8b6138e5893e7aba3b1a5deb3b3036',
'0c1093afa96df2832f707495afec541e',
'7d37165f2f535b4a6d2116188fe83d18',
......@@ -464,15 +463,6 @@ export const viewstate: any = {
'b3429ecc4d89a02bc5f5279f1bd7f620',
],
},
{
viewtag: '319d79a4f05cde44a1a7751b3ffe68ef',
viewmodule: 'Sample',
viewname: 'IBIZOrderDetailUsr2EditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '3561860a1fae5554621b47824d1d3abc',
viewmodule: 'Sample',
......@@ -633,6 +623,8 @@ export const viewstate: any = {
refviews: [
'f7ce60a7707de1ef9f926b3f9d5d6954',
'036e1ed2731c0caa76fd0a1035919d2d',
'81e92e837f6fa81fed5b6beaa75f6bbd',
'e0e27dfc4c1e8f322c8e8d80a9a21301',
'460fc1d5b6f2e2012b281df34d929f3b',
],
},
......@@ -925,6 +917,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '81e92e837f6fa81fed5b6beaa75f6bbd',
viewmodule: 'Sample',
viewname: 'IBIZCustomerMPickupView',
viewaction: '',
viewdatachange: false,
refviews: [
'460fc1d5b6f2e2012b281df34d929f3b',
],
},
{
viewtag: '82014278d03dfb22039740c03d2a461f',
viewmodule: 'Sample',
......@@ -1606,6 +1608,16 @@ export const viewstate: any = {
'692ede21641dfdb7075ede69d7c4ad33',
],
},
{
viewtag: 'e0e27dfc4c1e8f322c8e8d80a9a21301',
viewmodule: 'Sample',
viewname: 'IBIZCustomer_INTFMPickupView',
viewaction: '',
viewdatachange: false,
refviews: [
'2af423d347c22b7d0ed5a3639d87a6a8',
],
},
{
viewtag: 'e14e0fa8f3def77ebbcf18f1f39c0225',
viewmodule: 'Sample',
......
......@@ -98,6 +98,7 @@ export default class IBIZCustomer_INTFUIServiceBase extends UIService {
public initViewMap(){
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizcustomer_intfs',component:'ibizcustomer-intfpickup-view'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizcustomer_intfs',component:'ibizcustomer-intfpickup-grid-view'});
this.allViewMap.set('MPICKUPVIEW:',{viewname:'mpickupview',srfappde:'ibizcustomer_intfs',component:'ibizcustomer-intfmpickup-view'});
}
/**
......
......@@ -97,6 +97,7 @@ export default class IBIZCustomerUIServiceBase extends UIService {
*/
public initViewMap(){
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-grid-view'});
this.allViewMap.set('MPICKUPVIEW:',{viewname:'mpickupview',srfappde:'ibizcustomers',component:'ibizcustomer-mpickup-view'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizcustomers',component:'ibizcustomer-edit-view'});
this.allViewMap.set(':',{viewname:'usr2editview',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-edit-view'});
this.allViewMap.set(':',{viewname:'usr2gridview',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-grid-view'});
......
......@@ -100,16 +100,15 @@ export default class IBIZOrderDetailUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'sf1editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-sf1-edit-view'});
this.allViewMap.set(':',{viewname:'gridview9',srfappde:'ibizorderdetails',component:'ibizorder-detail-grid-view9'});
this.allViewMap.set(':',{viewname:'listview',srfappde:'ibizorderdetails',component:'ibizorder-detail-list-view'});
this.allViewMap.set(':',{viewname:'usr2editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-usr2-edit-view'});
this.allViewMap.set(':',{viewname:'f6editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-f6-edit-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizorderdetails',component:'ibizorder-detail-grid-view'});
this.allViewMap.set(':',{viewname:'seditview9',srfappde:'ibizorderdetails',component:'ibizorder-detail-sedit-view9'});
this.allViewMap.set(':',{viewname:'sf2editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-sf2-edit-view'});
this.allViewMap.set(':',{viewname:'usr3editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-usr3-edit-view'});
this.allViewMap.set(':',{viewname:'sgridview9',srfappde:'ibizorderdetails',component:'ibizorder-detail-sgrid-view9'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-edit-view'});
this.allViewMap.set(':',{viewname:'chartview',srfappde:'ibizorderdetails',component:'ibizorder-detail-chart-view'});
this.allViewMap.set(':',{viewname:'f6gridview',srfappde:'ibizorderdetails',component:'ibizorder-detail-f6-grid-view'});
this.allViewMap.set(':',{viewname:'usr2editview',srfappde:'ibizorderdetails',component:'ibizorder-detail-usr2-edit-view'});
this.allViewMap.set(':',{viewname:'sgridview',srfappde:'ibizorderdetails',component:'ibizorder-detail-sgrid-view'});
}
......
......@@ -557,9 +557,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto213':
this.clickAuto213(item);
return;
case 'AppFunc63':
this.clickAppFunc63(item);
return;
case 'AppFunc55':
this.clickAppFunc55(item);
return;
......@@ -1159,29 +1156,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 功能名称
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc63(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'usr2editview', parameterName: 'usr2editview' },
];
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);
})
}
/**
* 表格列重置
*
......
......@@ -1911,25 +1911,6 @@ export default class MainMenuModel {
appfunctag: 'AppFunc61',
resourcetag: '',
authtag:'Web-MainMenu-menuitem143',
},
{
id: 'FA7BE937-1340-4713-95E9-61958F120657',
name: 'menuitem130',
text: '数据选择视图2',
type: 'MENUITEM',
counterid: '',
tooltip: '数据选择视图2',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc63',
resourcetag: '',
authtag:'Web-MainMenu-menuitem130',
},
],
},
......
<template>
<div class='pickupviewpanel'>
<component
v-if="inited && view.viewname && !Object.is(view.viewname, '')"
:is="view.viewname"
class="viewcontainer3"
:viewdata="viewdata"
:viewparam="viewparam"
:viewDefaultUsage="false"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
@viewdataschange="onViewDatasChange"
@viewdatasactivated="viewDatasActivated"
@viewload="onViewLoad">
</component>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model,Inject } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util,ViewTool } from '@/utils';
import NavDataService from '@/service/app/navdata-service';
import AppCenterService from "@service/app/app-center-service";
import IBIZCustomer_INTFService from '@/service/ibizcustomer-intf/ibizcustomer-intf-service';
import MPickupViewpickupviewpanelService from './mpickup-viewpickupviewpanel-pickupviewpanel-service';
import IBIZCustomer_INTFUIService from '@/uiservice/ibizcustomer-intf/ibizcustomer-intf-ui-service';
import MPickupViewpickupviewpanelModel from './mpickup-viewpickupviewpanel-pickupviewpanel-model';
@Component({
components: {
}
})
export default class MPickupViewpickupviewpanelBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public context!: any;
/**
* 视图参数
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public viewparams!: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof MPickupViewpickupviewpanelBase
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof MPickupViewpickupviewpanelBase
*/
public getControlType(): string {
return 'PICKUPVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {MPickupViewpickupviewpanelService}
* @memberof MPickupViewpickupviewpanelBase
*/
public service: MPickupViewpickupviewpanelService = new MPickupViewpickupviewpanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {IBIZCustomer_INTFService}
* @memberof MPickupViewpickupviewpanelBase
*/
public appEntityService: IBIZCustomer_INTFService = new IBIZCustomer_INTFService({ $store: this.$store });
/**
* 转化数据
*
* @param {any} args
* @memberof MPickupViewpickupviewpanelBase
*/
public transformData(args: any) {
let _this: any = this;
if(_this.service && _this.service.handleRequestData instanceof Function && _this.service.handleRequestData('transform',_this.context,args)){
return _this.service.handleRequestData('transform',_this.context,args)['data'];
}
}
/**
* 关闭视图
*
* @param {any} args
* @memberof MPickupViewpickupviewpanelBase
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof MPickupViewpickupviewpanelBase
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 选中数据字符串
*
* @type {string}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public selectedData?: string;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof MPickupViewpickupviewpanelBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof MPickupViewpickupviewpanelBase
*/
public getData(): any {
return {};
}
/**
* 视图名称
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
public view: any = {
viewname: 'ibizcustomer-intfpickup-grid-view',
data: {},
}
/**
* 局部上下文
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public localViewParam: any = null;
/**
* 视图数据
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop({default: true}) public isShowButton!: boolean;
/**
* 是否单选
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public isSingleSelect?: boolean;
/**
* 初始化完成
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanelBase
*/
public inited: boolean = false;
/**
* 视图数据变化
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanelBase
*/
public onViewDatasChange($event: any): void {
if($event.length>0){
$event.forEach((item:any,index:any) => {
let srfmajortext = item.srfmajortext?item.srfmajortext:item['ibizcustomername'];
if(srfmajortext){
Object.assign($event[index],{srfmajortext: srfmajortext});
}
});
}
this.$emit('selectionchange', $event);
}
/**
* 视图数据被激活
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanelBase
*/
public viewDatasActivated($event: any): void {
this.$emit('activated', $event);
}
/**
* 视图加载完成
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanelBase
*/
public onViewLoad($event: any): void {
this.$emit('load', $event);
}
/**
* vue 生命周期
*
* @memberof MPickupViewpickupviewpanelBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof MPickupViewpickupviewpanelBase
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
if (Object.is('load', action)) {
this.viewdata = JSON.stringify(this.context);
this.viewparam = JSON.stringify(Object.assign(data, this.viewparams));
this.inited = true;
}
});
}
}
/**
* 初始化导航参数
*
* @memberof MPickupViewpickupviewpanelBase
*/
public initNavParam(){
if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context);
}
if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param);
}
this.viewdata = JSON.stringify(this.context);
this.viewparam = JSON.stringify(this.viewparams);
}
/**
* vue 生命周期
*
* @memberof MPickupViewpickupviewpanelBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof MPickupViewpickupviewpanelBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './mpickup-viewpickupviewpanel-pickupviewpanel.less';
</style>
\ No newline at end of file
/**
* MPickupViewpickupviewpanel 部件模型
*
* @export
* @class MPickupViewpickupviewpanelModel
*/
export default class MPickupViewpickupviewpanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MPickupViewpickupviewpanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'updatedate',
},
{
name: 'sn',
},
{
name: 'customeruid',
},
{
name: 'orgid',
},
{
name: 'createman',
},
{
name: 'updateman',
},
{
name: 'address',
},
{
name: 'ibizcustomername',
},
{
name: 'createdate',
},
{
name: 'ibizcustomer_intf',
prop: 'ibizcustomerid',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* MPickupViewpickupviewpanel 部件服务对象
*
* @export
* @class MPickupViewpickupviewpanelService
*/
export default class MPickupViewpickupviewpanelService extends ControlService {
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import MPickupViewpickupviewpanelBase from './mpickup-viewpickupviewpanel-pickupviewpanel-base.vue';
@Component({
components: {
}
})
export default class MPickupViewpickupviewpanel extends MPickupViewpickupviewpanelBase {
}
</script>
\ No newline at end of file
<template>
<div class='pickupviewpanel'>
<component
v-if="inited && view.viewname && !Object.is(view.viewname, '')"
:is="view.viewname"
class="viewcontainer3"
:viewdata="viewdata"
:viewparam="viewparam"
:viewDefaultUsage="false"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
@viewdataschange="onViewDatasChange"
@viewdatasactivated="viewDatasActivated"
@viewload="onViewLoad">
</component>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model,Inject } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util,ViewTool } from '@/utils';
import NavDataService from '@/service/app/navdata-service';
import AppCenterService from "@service/app/app-center-service";
import IBIZCustomerService from '@/service/ibizcustomer/ibizcustomer-service';
import MPickupViewpickupviewpanelService from './mpickup-viewpickupviewpanel-pickupviewpanel-service';
import IBIZCustomerUIService from '@/uiservice/ibizcustomer/ibizcustomer-ui-service';
import MPickupViewpickupviewpanelModel from './mpickup-viewpickupviewpanel-pickupviewpanel-model';
@Component({
components: {
}
})
export default class MPickupViewpickupviewpanelBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public context!: any;
/**
* 视图参数
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public viewparams!: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof MPickupViewpickupviewpanelBase
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof MPickupViewpickupviewpanelBase
*/
public getControlType(): string {
return 'PICKUPVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {MPickupViewpickupviewpanelService}
* @memberof MPickupViewpickupviewpanelBase
*/
public service: MPickupViewpickupviewpanelService = new MPickupViewpickupviewpanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {IBIZCustomerService}
* @memberof MPickupViewpickupviewpanelBase
*/
public appEntityService: IBIZCustomerService = new IBIZCustomerService({ $store: this.$store });
/**
* 转化数据
*
* @param {any} args
* @memberof MPickupViewpickupviewpanelBase
*/
public transformData(args: any) {
let _this: any = this;
if(_this.service && _this.service.handleRequestData instanceof Function && _this.service.handleRequestData('transform',_this.context,args)){
return _this.service.handleRequestData('transform',_this.context,args)['data'];
}
}
/**
* 关闭视图
*
* @param {any} args
* @memberof MPickupViewpickupviewpanelBase
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof MPickupViewpickupviewpanelBase
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 选中数据字符串
*
* @type {string}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public selectedData?: string;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof MPickupViewpickupviewpanelBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof MPickupViewpickupviewpanelBase
*/
public getData(): any {
return {};
}
/**
* 视图名称
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
public view: any = {
viewname: 'ibizcustomer-pickup-grid-view',
data: {},
}
/**
* 局部上下文
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public localViewParam: any = null;
/**
* 视图数据
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop({default: true}) public isShowButton!: boolean;
/**
* 是否单选
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public isSingleSelect?: boolean;
/**
* 初始化完成
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanelBase
*/
public inited: boolean = false;
/**
* 视图数据变化
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanelBase
*/
public onViewDatasChange($event: any): void {
if($event.length>0){
$event.forEach((item:any,index:any) => {
let srfmajortext = item.srfmajortext?item.srfmajortext:item['ibizcustomername'];
if(srfmajortext){
Object.assign($event[index],{srfmajortext: srfmajortext});
}
});
}
this.$emit('selectionchange', $event);
}
/**
* 视图数据被激活
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanelBase
*/
public viewDatasActivated($event: any): void {
this.$emit('activated', $event);
}
/**
* 视图加载完成
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanelBase
*/
public onViewLoad($event: any): void {
this.$emit('load', $event);
}
/**
* vue 生命周期
*
* @memberof MPickupViewpickupviewpanelBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof MPickupViewpickupviewpanelBase
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
if (Object.is('load', action)) {
this.viewdata = JSON.stringify(this.context);
this.viewparam = JSON.stringify(Object.assign(data, this.viewparams));
this.inited = true;
}
});
}
}
/**
* 初始化导航参数
*
* @memberof MPickupViewpickupviewpanelBase
*/
public initNavParam(){
if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context);
}
if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param);
}
this.viewdata = JSON.stringify(this.context);
this.viewparam = JSON.stringify(this.viewparams);
}
/**
* vue 生命周期
*
* @memberof MPickupViewpickupviewpanelBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof MPickupViewpickupviewpanelBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './mpickup-viewpickupviewpanel-pickupviewpanel.less';
</style>
\ No newline at end of file
/**
* MPickupViewpickupviewpanel 部件模型
*
* @export
* @class MPickupViewpickupviewpanelModel
*/
export default class MPickupViewpickupviewpanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MPickupViewpickupviewpanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'createman',
},
{
name: 'sn',
},
{
name: 'updatedate',
},
{
name: 'createdate',
},
{
name: 'customeruid',
},
{
name: 'ibizcustomer',
prop: 'ibizcustomerid',
},
{
name: 'address',
},
{
name: 'ibizcustomername',
},
{
name: 'updateman',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* MPickupViewpickupviewpanel 部件服务对象
*
* @export
* @class MPickupViewpickupviewpanelService
*/
export default class MPickupViewpickupviewpanelService extends ControlService {
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import MPickupViewpickupviewpanelBase from './mpickup-viewpickupviewpanel-pickupviewpanel-base.vue';
@Component({
components: {
}
})
export default class MPickupViewpickupviewpanel extends MPickupViewpickupviewpanelBase {
}
</script>
\ No newline at end of file
......@@ -23,7 +23,7 @@
<app-form-item name='gridselect' :itemRules="this.rules().gridselect" class='' :caption="$t('entities.ibizorder.selectview_form_form.details.gridselect')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.gridselect.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
......@@ -31,12 +31,9 @@
:localParam ='{ }'
:disabled="detailsModel.gridselect.disabled"
name='gridselect'
:service="service"
:acParams="{ }"
valueitem='ibizcustomerid'
:value="data.gridselect"
editortype=""
:value="data.gridselect"
editortype="pickup-no-ac"
:pickupView="{ viewname: 'ibizcustomer-pickup-grid-view', title: $t('entities.ibizcustomer.views.pickupgridview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'pickupgridview', parameterName: 'pickupgridview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
......@@ -70,14 +67,23 @@
</i-col>
<i-col v-show="detailsModel.formitem1.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item name='formitem1' :itemRules="this.rules().formitem1" class='' :caption="$t('entities.ibizorder.selectview_form_form.details.formitem1')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem1.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.formitem1"
@enter="onEnter($event)"
:disabled="detailsModel.formitem1.disabled"
type='text'
style="">
</input-box>
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.formitem1.disabled"
name='formitem1'
valueitem='ibizorderid'
:value="data.formitem1"
editortype="pickup-no-ac"
:pickupView="{ viewname: 'ibizcustomer-mpickup-view', title: $t('entities.ibizcustomer.views.mpickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'mpickupview', parameterName: 'mpickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</app-form-item>
......
......@@ -112,7 +112,7 @@
<!--输出实体[IBIZCUSTOMER]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizcustomer-14-5">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizcustomer-15-5">
<createTable tableName="T_IBIZCUSTOMER">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -178,7 +178,7 @@
<!--输出实体[IBIZORDER]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-409-9">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-410-9">
<createTable tableName="T_IBIZORDER">
<column name="TP" remarks="" type="TEXT(1048576)">
</column>
......@@ -228,7 +228,7 @@
<!--输出实体[IBIZORDERDETAIL]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorderdetail-92-10">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorderdetail-102-10">
<createTable tableName="T_IBIZORDERDETAIL">
<column name="IBIZORDERDETAILNAME" remarks="" type="VARCHAR(200)">
</column>
......
......@@ -19,7 +19,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZCUSTOMER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizcustomer-14-4" runOnChange="true">
<changeSet author="a_LAB01_df847bdfd" id="view-ibizcustomer-15-4" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZCUSTOMER">
<![CDATA[ SELECT t1.[ADDRESS], t1.[CREATEDATE], t1.[CREATEMAN], t1.[CUSTOMERUID], t1.[IBIZCUSTOMERID], t1.[IBIZCUSTOMERNAME], t1.[SN], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZCUSTOMER] t1 ]]>
</createView>
......@@ -37,13 +37,13 @@
</createView>
</changeSet>
<!--输出实体[IBIZORDER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorder-409-8" runOnChange="true">
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorder-410-8" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZORDER">
<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1 LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID ]]>
</createView>
</changeSet>
<!--输出实体[IBIZORDERDETAIL]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorderdetail-92-9" runOnChange="true">
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorderdetail-102-9" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZORDERDETAIL">
<![CDATA[ SELECT t1.[QUANTITY]*t11.[UNITPRICE] AS [AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[IBIZORDERDETAILA], t1.[IBIZORDERDETAILID], t1.[IBIZORDERDETAILNAME], t1.[IBIZORDERID], t21.[IBIZORDERNAME], t1.[IBIZUNIPRODUCTID], t11.[IBIZUNIPRODUCTNAME], t21.[ORDERUID], t1.[QUANTITY], t11.[UNIT], t11.[UNITPRICE], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZORDERDETAIL] t1 LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID ]]>
</createView>
......
......@@ -302,7 +302,7 @@
{
"appid":"Web",
"appname":"演示应用",
"appmenu":[{"menuid":"MainMenu", "menuname":"MainMenu", "menuitem":[{ "id":"menuitem1" , "name":"工作台" },{ "id":"menuitem3" , "name":"控件" , "items":[{ "id":"menuitem6" , "name":"默认数据类型" },{ "id":"menuitem7" , "name":"默认编辑器类型" },{ "id":"menuitem15" , "name":"基础表单项" },{ "id":"menuitem72" , "name":"扩展编辑器" }]},{ "id":"menuitem4" , "name":"部件" , "items":[{ "id":"menuitem12" , "name":"编辑表单" , "items":[{ "id":"menuitem107" , "name":"内置功能" },{ "id":"menuitem47" , "name":"新建默认值" },{ "id":"menuitem99" , "name":"更新默认值" },{ "id":"menuitem48" , "name":"输入提示" },{ "id":"menuitem49" , "name":"辅助输入" },{ "id":"menuitem50" , "name":"自动填充" },{ "id":"menuitem51" , "name":"超链接" },{ "id":"menuitem52" , "name":"表单值重置" },{ "id":"menuitem55" , "name":"动态显示" },{ "id":"menuitem53" , "name":"动态启用" },{ "id":"menuitem54" , "name":"动态空输入" },{ "id":"menuitem56" , "name":"表单项更新" },{ "id":"menuitem108" , "name":"表单值规则" }]},{ "id":"menuitem16" , "name":"搜索表单" },{ "id":"menuitem13" , "name":"表格" , "items":[{ "id":"menuitem57" , "name":"禁用排序" },{ "id":"menuitem59" , "name":"行操作" },{ "id":"menuitem58" , "name":"行编辑" },{ "id":"menuitem73" , "name":"内置功能" },{ "id":"menuitem74" , "name":"表格行编辑" },{ "id":"menuitem75" , "name":"新建默认值" },{ "id":"menuitem76" , "name":"更新默认值" },{ "id":"menuitem77" , "name":"表格值规则" },{ "id":"menuitem132" , "name":"表格列更新" },{ "id":"menuitem133" , "name":"表格列重置" },{ "id":"menuitem78" , "name":"自动分组" },{ "id":"menuitem80" , "name":"代码表分组" },{ "id":"menuitem81" , "name":"当前页聚合" },{ "id":"menuitem82" , "name":"远程聚合" }]},{ "id":"menuitem83" , "name":"列表" , "items":[{ "id":"menuitem84" , "name":"列表内置功能" },{ "id":"menuitem85" , "name":"列表自动分组" },{ "id":"menuitem86" , "name":"代码表分组" },{ "id":"menuitem91" , "name":"列表嵌入面板" }]},{ "id":"menuitem14" , "name":"树视图" , "items":[{ "id":"menuitem60" , "name":"静态节点" },{ "id":"menuitem61" , "name":"动态节点(代码表)" },{ "id":"menuitem62" , "name":"动态节点(实体)" },{ "id":"menuitem63" , "name":"右键操作" },{ "id":"menuitem64" , "name":"动态参数过滤" },{ "id":"menuitem110" , "name":"树表格" }]},{ "id":"menuitem37" , "name":"图表" , "items":[{ "id":"menuitem38" , "name":"柱状图" },{ "id":"menuitem39" , "name":"折线图" },{ "id":"menuitem40" , "name":"饼图" },{ "id":"menuitem41" , "name":"区域图" },{ "id":"menuitem42" , "name":"雷达图" }]},{ "id":"menuitem17" , "name":"向导" , "items":[{ "id":"menuitem134" , "name":"向导视图" },{ "id":"menuitem135" , "name":"状态向导" }]},{ "id":"menuitem18" , "name":"界面行为" , "items":[{ "id":"menuitem65" , "name":"前端界面行为" },{ "id":"menuitem66" , "name":"后台界面行为" }]},{ "id":"menuitem87" , "name":"数据视图" , "items":[{ "id":"menuitem88" , "name":"内置功能" },{ "id":"menuitem89" , "name":"自动分组" },{ "id":"menuitem90" , "name":"代码表分组" },{ "id":"menuitem94" , "name":"项布局面板" }]},{ "id":"menuitem95" , "name":"日历" , "items":[{ "id":"menuitem96" , "name":"内置功能" },{ "id":"menuitem97" , "name":"时间轴样式" },{ "id":"menuitem109" , "name":"项布局面板" }]},{ "id":"menuitem101" , "name":"看板" , "items":[{ "id":"menuitem102" , "name":"看板内置功能" },{ "id":"menuitem104" , "name":"代码表分组" },{ "id":"menuitem105" , "name":"嵌入视图面板" }]},{ "id":"menuitem111" , "name":"甘特图" , "items":[{ "id":"menuitem112" , "name":"甘特图" }]},{ "id":"menuitem119" , "name":"分页视图" , "items":[{ "id":"menuitem120" , "name":"分页导航" }]},{ "id":"menuitem121" , "name":"多编辑视图" , "items":[{ "id":"menuitem115" , "name":"多表单(行记录)" },{ "id":"menuitem123" , "name":"多表单(上分页)" }]},{ "id":"menuitem122" , "name":"数据关系栏" , "items":[{ "id":"menuitem116" , "name":"编辑视图(左右关系)" },{ "id":"menuitem117" , "name":"编辑视图(上下关系)" },{ "id":"menuitem118" , "name":"编辑视图(分页关系)" }]},{ "id":"menuitem125" , "name":"数据看板" , "items":[{ "id":"menuitem126" , "name":"实体数据看板" }]},{ "id":"menuitem127" , "name":"导航视图" , "items":[{ "id":"menuitem128" , "name":"表格导航" },{ "id":"menuitem114" , "name":"列表导航" },{ "id":"menuitem136" , "name":"树导航" },{ "id":"menuitem137" , "name":"卡片导航" },{ "id":"menuitem138" , "name":"日历导航" },{ "id":"menuitem139" , "name":"时间轴导航" }]},{ "id":"menuitem129" , "name":"选项操作" , "items":[{ "id":"menuitem131" , "name":"表格选项操作" }]},{ "id":"menuitem142" , "name":"选择视图" , "items":[{ "id":"menuitem143" , "name":"数据选择视图" },{ "id":"menuitem130" , "name":"数据选择视图2" }]}]},{ "id":"menuitem5" , "name":"视图" , "items":[{ "id":"menuitem9" , "name":"列表视图" , "items":[{ "id":"menuitem19" , "name":"常规表格视图" },{ "id":"menuitem21" , "name":"左右表格视图" },{ "id":"menuitem20" , "name":"嵌入表格视图" }]},{ "id":"menuitem8" , "name":"编辑视图" , "items":[{ "id":"menuitem22" , "name":"常规编辑视图" },{ "id":"menuitem23" , "name":"左右编辑视图" },{ "id":"menuitem24" , "name":"分页编辑视图" },{ "id":"menuitem25" , "name":"嵌入编辑视图" }]},{ "id":"menuitem26" , "name":"选择视图" , "items":[{ "id":"menuitem27" , "name":"单选视图" },{ "id":"menuitem28" , "name":"多选视图" },{ "id":"menuitem29" , "name":"树形选择视图" },{ "id":"menuitem30" , "name":"左右单选视图" },{ "id":"menuitem31" , "name":"左右多选视图" }]},{ "id":"menuitem10" , "name":"导航视图" , "items":[{ "id":"menuitem32" , "name":"常规导航视图" },{ "id":"menuitem33" , "name":"分页导航视图" },{ "id":"menuitem34" , "name":"嵌入导航视图" }]},{ "id":"menuitem11" , "name":"其他视图" , "items":[{ "id":"menuitem35" , "name":"图表视图" },{ "id":"menuitem36" , "name":"报表视图" },{ "id":"menuitem98" , "name":"自定义视图" }]},{ "id":"menuitem79" , "name":"表格视图" },{ "id":"menuitem140" , "name":"单数据视图" },{ "id":"menuitem141" , "name":"多数据视图" }]},{ "id":"menuitem69" , "name":"工作流" },{ "id":"menuitem2" , "name":"更多" , "items":[{ "id":"menuitem46" , "name":"数据导出导入" },{ "id":"menuitem45" , "name":"数据打印" },{ "id":"menuitem67" , "name":"索引实体" },{ "id":"menuitem68" , "name":"继承实体" },{ "id":"menuitem70" , "name":"主状态" },{ "id":"menuitem71" , "name":"多表单" }]},{ "id":"menuitem92" , "name":"其他" , "items":[{ "id":"menuitem93" , "name":"示例实体02示例数据补充" },{ "id":"menuitem100" , "name":"订单示例数据补充" },{ "id":"menuitem103" , "name":"产品示例数据补充" },{ "id":"menuitem106" , "name":"示例实体03示例数据补充" },{ "id":"menuitem113" , "name":"订单类型添加" },{ "id":"menuitem124" , "name":"示例实体01数据补充" },{ "id":"menuitem144" , "name":"客户实体示例数据补充" }]}] }]
"appmenu":[{"menuid":"MainMenu", "menuname":"MainMenu", "menuitem":[{ "id":"menuitem1" , "name":"工作台" },{ "id":"menuitem3" , "name":"控件" , "items":[{ "id":"menuitem6" , "name":"默认数据类型" },{ "id":"menuitem7" , "name":"默认编辑器类型" },{ "id":"menuitem15" , "name":"基础表单项" },{ "id":"menuitem72" , "name":"扩展编辑器" }]},{ "id":"menuitem4" , "name":"部件" , "items":[{ "id":"menuitem12" , "name":"编辑表单" , "items":[{ "id":"menuitem107" , "name":"内置功能" },{ "id":"menuitem47" , "name":"新建默认值" },{ "id":"menuitem99" , "name":"更新默认值" },{ "id":"menuitem48" , "name":"输入提示" },{ "id":"menuitem49" , "name":"辅助输入" },{ "id":"menuitem50" , "name":"自动填充" },{ "id":"menuitem51" , "name":"超链接" },{ "id":"menuitem52" , "name":"表单值重置" },{ "id":"menuitem55" , "name":"动态显示" },{ "id":"menuitem53" , "name":"动态启用" },{ "id":"menuitem54" , "name":"动态空输入" },{ "id":"menuitem56" , "name":"表单项更新" },{ "id":"menuitem108" , "name":"表单值规则" }]},{ "id":"menuitem16" , "name":"搜索表单" },{ "id":"menuitem13" , "name":"表格" , "items":[{ "id":"menuitem57" , "name":"禁用排序" },{ "id":"menuitem59" , "name":"行操作" },{ "id":"menuitem58" , "name":"行编辑" },{ "id":"menuitem73" , "name":"内置功能" },{ "id":"menuitem74" , "name":"表格行编辑" },{ "id":"menuitem75" , "name":"新建默认值" },{ "id":"menuitem76" , "name":"更新默认值" },{ "id":"menuitem77" , "name":"表格值规则" },{ "id":"menuitem132" , "name":"表格列更新" },{ "id":"menuitem133" , "name":"表格列重置" },{ "id":"menuitem78" , "name":"自动分组" },{ "id":"menuitem80" , "name":"代码表分组" },{ "id":"menuitem81" , "name":"当前页聚合" },{ "id":"menuitem82" , "name":"远程聚合" }]},{ "id":"menuitem83" , "name":"列表" , "items":[{ "id":"menuitem84" , "name":"列表内置功能" },{ "id":"menuitem85" , "name":"列表自动分组" },{ "id":"menuitem86" , "name":"代码表分组" },{ "id":"menuitem91" , "name":"列表嵌入面板" }]},{ "id":"menuitem14" , "name":"树视图" , "items":[{ "id":"menuitem60" , "name":"静态节点" },{ "id":"menuitem61" , "name":"动态节点(代码表)" },{ "id":"menuitem62" , "name":"动态节点(实体)" },{ "id":"menuitem63" , "name":"右键操作" },{ "id":"menuitem64" , "name":"动态参数过滤" },{ "id":"menuitem110" , "name":"树表格" }]},{ "id":"menuitem37" , "name":"图表" , "items":[{ "id":"menuitem38" , "name":"柱状图" },{ "id":"menuitem39" , "name":"折线图" },{ "id":"menuitem40" , "name":"饼图" },{ "id":"menuitem41" , "name":"区域图" },{ "id":"menuitem42" , "name":"雷达图" }]},{ "id":"menuitem17" , "name":"向导" , "items":[{ "id":"menuitem134" , "name":"向导视图" },{ "id":"menuitem135" , "name":"状态向导" }]},{ "id":"menuitem18" , "name":"界面行为" , "items":[{ "id":"menuitem65" , "name":"前端界面行为" },{ "id":"menuitem66" , "name":"后台界面行为" }]},{ "id":"menuitem87" , "name":"数据视图" , "items":[{ "id":"menuitem88" , "name":"内置功能" },{ "id":"menuitem89" , "name":"自动分组" },{ "id":"menuitem90" , "name":"代码表分组" },{ "id":"menuitem94" , "name":"项布局面板" }]},{ "id":"menuitem95" , "name":"日历" , "items":[{ "id":"menuitem96" , "name":"内置功能" },{ "id":"menuitem97" , "name":"时间轴样式" },{ "id":"menuitem109" , "name":"项布局面板" }]},{ "id":"menuitem101" , "name":"看板" , "items":[{ "id":"menuitem102" , "name":"看板内置功能" },{ "id":"menuitem104" , "name":"代码表分组" },{ "id":"menuitem105" , "name":"嵌入视图面板" }]},{ "id":"menuitem111" , "name":"甘特图" , "items":[{ "id":"menuitem112" , "name":"甘特图" }]},{ "id":"menuitem119" , "name":"分页视图" , "items":[{ "id":"menuitem120" , "name":"分页导航" }]},{ "id":"menuitem121" , "name":"多编辑视图" , "items":[{ "id":"menuitem115" , "name":"多表单(行记录)" },{ "id":"menuitem123" , "name":"多表单(上分页)" }]},{ "id":"menuitem122" , "name":"数据关系栏" , "items":[{ "id":"menuitem116" , "name":"编辑视图(左右关系)" },{ "id":"menuitem117" , "name":"编辑视图(上下关系)" },{ "id":"menuitem118" , "name":"编辑视图(分页关系)" }]},{ "id":"menuitem125" , "name":"数据看板" , "items":[{ "id":"menuitem126" , "name":"实体数据看板" }]},{ "id":"menuitem127" , "name":"导航视图" , "items":[{ "id":"menuitem128" , "name":"表格导航" },{ "id":"menuitem114" , "name":"列表导航" },{ "id":"menuitem136" , "name":"树导航" },{ "id":"menuitem137" , "name":"卡片导航" },{ "id":"menuitem138" , "name":"日历导航" },{ "id":"menuitem139" , "name":"时间轴导航" }]},{ "id":"menuitem129" , "name":"选项操作" , "items":[{ "id":"menuitem131" , "name":"表格选项操作" }]},{ "id":"menuitem142" , "name":"选择视图" , "items":[{ "id":"menuitem143" , "name":"数据选择视图" }]}]},{ "id":"menuitem5" , "name":"视图" , "items":[{ "id":"menuitem9" , "name":"列表视图" , "items":[{ "id":"menuitem19" , "name":"常规表格视图" },{ "id":"menuitem21" , "name":"左右表格视图" },{ "id":"menuitem20" , "name":"嵌入表格视图" }]},{ "id":"menuitem8" , "name":"编辑视图" , "items":[{ "id":"menuitem22" , "name":"常规编辑视图" },{ "id":"menuitem23" , "name":"左右编辑视图" },{ "id":"menuitem24" , "name":"分页编辑视图" },{ "id":"menuitem25" , "name":"嵌入编辑视图" }]},{ "id":"menuitem26" , "name":"选择视图" , "items":[{ "id":"menuitem27" , "name":"单选视图" },{ "id":"menuitem28" , "name":"多选视图" },{ "id":"menuitem29" , "name":"树形选择视图" },{ "id":"menuitem30" , "name":"左右单选视图" },{ "id":"menuitem31" , "name":"左右多选视图" }]},{ "id":"menuitem10" , "name":"导航视图" , "items":[{ "id":"menuitem32" , "name":"常规导航视图" },{ "id":"menuitem33" , "name":"分页导航视图" },{ "id":"menuitem34" , "name":"嵌入导航视图" }]},{ "id":"menuitem11" , "name":"其他视图" , "items":[{ "id":"menuitem35" , "name":"图表视图" },{ "id":"menuitem36" , "name":"报表视图" },{ "id":"menuitem98" , "name":"自定义视图" }]},{ "id":"menuitem79" , "name":"表格视图" },{ "id":"menuitem140" , "name":"单数据视图" },{ "id":"menuitem141" , "name":"多数据视图" }]},{ "id":"menuitem69" , "name":"工作流" },{ "id":"menuitem2" , "name":"更多" , "items":[{ "id":"menuitem46" , "name":"数据导出导入" },{ "id":"menuitem45" , "name":"数据打印" },{ "id":"menuitem67" , "name":"索引实体" },{ "id":"menuitem68" , "name":"继承实体" },{ "id":"menuitem70" , "name":"主状态" },{ "id":"menuitem71" , "name":"多表单" }]},{ "id":"menuitem92" , "name":"其他" , "items":[{ "id":"menuitem93" , "name":"示例实体02示例数据补充" },{ "id":"menuitem100" , "name":"订单示例数据补充" },{ "id":"menuitem103" , "name":"产品示例数据补充" },{ "id":"menuitem106" , "name":"示例实体03示例数据补充" },{ "id":"menuitem113" , "name":"订单类型添加" },{ "id":"menuitem124" , "name":"示例实体01数据补充" },{ "id":"menuitem144" , "name":"客户实体示例数据补充" }]}] }]
}
]
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册