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

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

上级 23a6e205
......@@ -167,6 +167,7 @@ export default {
menuitem6: "默认数据类型",
menuitem7: "默认编辑器类型",
menuitem15: "基础表单项",
menuitem72: "菜单项",
menuitem4: "部件",
menuitem12: "编辑表单",
menuitem47: "默认值",
......
......@@ -167,6 +167,7 @@ export default {
menuitem6: "默认数据类型",
menuitem7: "默认编辑器类型",
menuitem15: "基础表单项",
menuitem72: "菜单项",
menuitem4: "部件",
menuitem12: "编辑表单",
menuitem47: "默认值",
......
......@@ -99,6 +99,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'Auto393',
resourcetag: '',
},
{
id: 'A5CBFDFB-15E8-4BCF-B47D-7B79E13E19FF',
name: 'menuitem72',
text: '菜单项',
type: 'MENUITEM',
counterid: '',
tooltip: '菜单项',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc',
resourcetag: '',
},
],
},
......
<template>
<div class="view-container deeditview ibizsample0001-sf6-edit-view">
<app-studioaction :viewTitle="$t(model.srfCaption)" viewName="ibizsample0001sf6editview"></app-studioaction>
<card class='view-card ' :disHover="true" :bordered="false">
<div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
<div class='toolbar-container'>
</div>
</div>
<div class='view-top-messages'>
</div>
<div class="content-container">
<div class='view-body-messages'>
</div>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</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 IBIZSample0001Service from '@/service/ibizsample0001/ibizsample0001-service';
import IBIZSample0001AuthService from '@/authservice/ibizsample0001/ibizsample0001-auth-service';
import EditViewEngine from '@engine/view/edit-view-engine';
import IBIZSample0001UIService from '@/uiservice/ibizsample0001/ibizsample0001-ui-service';
@Component({
components: {
},
})
export default class IBIZSample0001SF6EditViewBase extends Vue {
/**
* 实体服务对象
*
* @type {IBIZSample0001Service}
* @memberof IBIZSample0001SF6EditViewBase
*/
public appEntityService: IBIZSample0001Service = new IBIZSample0001Service;
/**
* 实体UI服务对象
*
* @type IBIZSample0001UIService
* @memberof IBIZSample0001SF6EditViewBase
*/
public appUIService: IBIZSample0001UIService = new IBIZSample0001UIService(this.$store);
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof IBIZSample0001SF6EditViewBase
*/
@Emit()
public viewDatasChange(val: any):any {
return val;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof IBIZSample0001SF6EditViewBase
*/
@Prop() public viewdata!: string;
/**
* 传入视图参数
*
* @type {string}
* @memberof IBIZSample0001SF6EditViewBase
*/
@Prop() public viewparam!: string;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof IBIZSample0001SF6EditViewBase
*/
@Prop({ default: true }) public viewDefaultUsage!: boolean;
/**
* 视图默认使用
*
* @type {string}
* @memberof IBIZSample0001SF6EditViewBase
*/
@Inject({from:'navModel',default: 'tab'})
public navModel!:string;
/**
* 视图标识
*
* @type {string}
* @memberof IBIZSample0001SF6EditViewBase
*/
public viewtag: string = 'b09ceb3081717c0ed4fe19f9986598a0';
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof IBIZSample0001SF6EditViewBase
*/
public customViewNavContexts:any ={
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof IBIZSample0001SF6EditViewBase
*/
public customViewParams:any ={
};
/**
* 视图模型数据
*
* @type {*}
* @memberof IBIZSample0001SF6EditViewBase
*/
public model: any = {
srfCaption: 'entities.ibizsample0001.views.sf6editview.caption',
srfTitle: 'entities.ibizsample0001.views.sf6editview.title',
srfSubTitle: 'entities.ibizsample0001.views.sf6editview.subtitle',
dataInfo: ''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZSample0001SF6EditViewBase
*/
@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);
}
}
}
/**
* 处理应用上下文变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZSample0001SF6EditViewBase
*/
@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 IBIZSample0001SF6EditViewBase
*/
public containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
};
/**
* 视图刷新
*
* @param {*} args
* @memberof IBIZSample0001SF6EditViewBase
*/
public refresh(args?: any): void {
const refs: any = this.$refs;
if (refs && refs.form) {
refs.form.refresh();
}
}
/**
* 计数器刷新
*
* @memberof IBIZSample0001SF6EditViewBase
*/
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 IBIZSample0001SF6EditViewBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZSample0001SF6EditView
*/
public toolBarModels: any = {
};
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBIZSample0001SF6EditViewBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof IBIZSample0001SF6EditViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'ibizsample0001',
majorPSDEField: 'ibizsample0001name',
isLoadDefault: true,
});
}
/**
* 应用导航服务
*
* @type {*}
* @memberof IBIZSample0001SF6EditViewBase
*/
public navDataService = NavDataService.getInstance(this.$store);
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZSample0001SF6EditViewBase
*/
public serviceStateEvent: Subscription | undefined;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof IBIZSample0001SF6EditViewBase
*/
@Prop() public portletState?: any;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZSample0001SF6EditViewBase
*/
public portletStateEvent: Subscription | undefined;
/**
* 应用上下文
*
* @type {*}
* @memberof IBIZSample0001SF6EditViewBase
*/
public context:any = {};
/**
* 视图参数
*
* @type {*}
* @memberof IBIZSample0001SF6EditViewBase
*/
public viewparams:any = {};
/**
* 视图缓存数据
*
* @type {*}
* @memberof IBIZSample0001SF6EditViewBase
*/
public viewCacheData:any;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof IBIZSample0001SF6EditViewBase
*/
public counterServiceArray:Array<any> = [];
/**
* 解析视图参数
*
* @public
* @memberof IBIZSample0001SF6EditViewBase
*/
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,{'ibizsample0001':inputvalue});
}
//初始化视图唯一标识
Object.assign(this.context,{srfsessionid:this.$util.createUUID()});
this.handleCustomViewData();
//初始化导航数据
this.initNavDataWithRoute();
}
/**
* 处理自定义视图数据
*
* @memberof IBIZSample0001SF6EditViewBase
*/
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 IBIZSample0001SF6EditViewBase
*/
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 IBIZSample0001SF6EditViewBase
*/
public initNavDataWithRoute(data:any = null, isNew:boolean = false, isAlways:boolean = false){
if( isAlways || (this.viewDefaultUsage && Object.is(this.navModel,"route")) ){
this.navDataService.addNavData({id:'ibizsample0001-sf6-edit-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibizsample0001,title:this.$t(this.model.srfCaption),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
/**
* 初始化导航数据(分页模式)
*
* @memberof IBIZSample0001SF6EditViewBase
*/
public initNavDataWithTab(data:any = null,isOnlyAdd:boolean = true, isAlways:boolean = false){
if( isAlways || (this.viewDefaultUsage && !Object.is(this.navModel,"route")) ){
this.navDataService.addNavDataByOnly({id:'ibizsample0001-sf6-edit-view',tag:this.viewtag,srfkey:this.context.ibizsample0001,title:this.$t(this.model.srfCaption),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath},isOnlyAdd);
}
}
/**
* Vue声明周期
*
* @memberof IBIZSample0001SF6EditViewBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof IBIZSample0001SF6EditViewBase
*/
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,'ibizsample0001-sf6-edit-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,'IBIZSample0001SF6EditView')){
return;
}
if(Object.is(res.action,'refresh') && _this.refresh && _this.refresh instanceof Function){
_this.refresh();
}
})
}
}
/**
* 销毁之前
*
* @memberof IBIZSample0001SF6EditViewBase
*/
public beforeDestroy() {
this.$store.commit('viewaction/removeView', this.viewtag);
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof IBIZSample0001SF6EditViewBase
*/
public mounted() {
this.afterMounted();
}
/**
* 执行mounted后的逻辑
*
* @memberof IBIZSample0001SF6EditViewBase
*/
public afterMounted(){
const _this: any = this;
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZSample0001SF6EditViewBase
*/
public form_save($event: any, $event2?: any) {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZSample0001SF6EditViewBase
*/
public form_remove($event: any, $event2?: any) {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZSample0001SF6EditViewBase
*/
public form_load($event: any, $event2?: any) {
this.engine.onCtrlEvent('form', 'load', $event);
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof IBIZSample0001SF6EditViewBase
*/
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 IBIZSample0001SF6EditViewBase
*/
public destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBIZSample0001SF6EditViewBase
*/
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();
}
}
}
</script>
<style lang='less'>
@import './ibizsample0001-sf6-edit-view.less';
</style>
\ No newline at end of file
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.ibizsample0001-sf6-edit-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZSample0001SF6EditViewBase from './ibizsample0001-sf6-edit-view-base.vue';
import view_form from '@widgets/ibizsample0001/main5-form/main5-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class IBIZSample0001SF6EditView extends IBIZSample0001SF6EditViewBase {
}
</script>
\ No newline at end of file
export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('ibizsample0003-smpickup-view2', () => import('@pages/sample/ibizsample0003-smpickup-view2/ibizsample0003-smpickup-view2.vue'));
Vue.component('ibizsample0001-sf6-edit-view', () => import('@pages/sample/ibizsample0001-sf6-edit-view/ibizsample0001-sf6-edit-view.vue'));
Vue.component('ibizsample0003-smpickup-view2', () => import('@pages/sample/ibizsample0003-smpickup-view2/ibizsample0003-smpickup-view2.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'));
......
......@@ -35,6 +35,35 @@ const router = new Router({
},
component: () => import('@pages/sample/index/index.vue'),
children: [
{
path: 'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf6editview/:sf6editview?',
meta: {
caption: 'entities.ibizsample0001.views.sf6editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' },
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'sf6editview', parameterName: 'sf6editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizsample0001-sf6-edit-view/ibizsample0001-sf6-edit-view.vue'),
},
{
path: 'ibizsample0001s/:ibizsample0001?/sf6editview/:sf6editview?',
meta: {
caption: 'entities.ibizsample0001.views.sf6editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'sf6editview', parameterName: 'sf6editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizsample0001-sf6-edit-view/ibizsample0001-sf6-edit-view.vue'),
},
{
path: 'ibizsample0003s/:ibizsample0003?/smpickupview2/:smpickupview2?',
meta: {
......@@ -2705,6 +2734,33 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-f10-edit-view/ibizorder-f10-edit-view.vue'),
},
{
path: '/ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf6editview/:sf6editview?',
meta: {
caption: 'entities.ibizsample0001.views.sf6editview.caption',
info:'',
parameters: [
{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' },
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'sf6editview', parameterName: 'sf6editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizsample0001-sf6-edit-view/ibizsample0001-sf6-edit-view.vue'),
},
{
path: '/ibizsample0001s/:ibizsample0001?/sf6editview/:sf6editview?',
meta: {
caption: 'entities.ibizsample0001.views.sf6editview.caption',
info:'',
parameters: [
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'sf6editview', parameterName: 'sf6editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizsample0001-sf6-edit-view/ibizsample0001-sf6-edit-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/s2editview/:s2editview?',
meta: {
......
......@@ -163,54 +163,55 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'b09ceb3081717c0ed4fe19f9986598a0',
'875222727b7ab7dcaccc45808fd38b09',
'8a4ccafa81445d49488874a8c7575932',
'3bbf72a3e5b59fed0dee362a9b1384a8',
'fdb8ed39fbfea00f65416b9aaebd64e7',
'9db924c804154be5b442a9737514a6f9',
'b7c0a73eb248d41eb750bbf095fa5505',
'b29d930f430c127162f83753d85dd40c',
'd99f9680b535dcf3ad0d0f853a8b89d9',
'36763886cbec62729dca4d4b8dad8161',
'7a8b6138e5893e7aba3b1a5deb3b3036',
'10e721a882036c8c012f35d2a6b00237',
'7a8b6138e5893e7aba3b1a5deb3b3036',
'0c1093afa96df2832f707495afec541e',
'd1f311d51e800e95e9b10c49a8b49b5a',
'53269c1ea73ad6fae5d2ac4eced7f9d1',
'd3255261c8522c660c1000cd0a61c3b0',
'7d37165f2f535b4a6d2116188fe83d18',
'53269c1ea73ad6fae5d2ac4eced7f9d1',
'f94df735642ce85ebb2fe3816c4dc77b',
'ac9add3724d90fba46e7298ac051fa5f',
'16b68282950fb352dfe27e94bda47304',
'59c5d311d09a7f68f8b6962ca652374a',
'658d519f1868979431e7e0da5d967e6b',
'8a3f2cc88421d9f07cbb53dd78e11495',
'ad37d44e57c18e4431a609968203c646',
'464b1dbf722c8dcaaa7f2cc90b8d0d8d',
'e7441fa67d425df343d996c745fb5d6b',
'13ed6c02918e612bac45715a6f300f2f',
'aa68a83577209ff0ec3864aec4e194f2',
'd69d223e4d3aeb8d947ac9b9ddc60a7e',
'19d36909f837de28880553dc9a190922',
'3ebf0cd640e39a4e7efe30ec1cf32b43',
'9f80ed66360fbbb9bc57c575fdd8814f',
'8a4ccafa81445d49488874a8c7575932',
'3bbf72a3e5b59fed0dee362a9b1384a8',
'fdb8ed39fbfea00f65416b9aaebd64e7',
'b7c0a73eb248d41eb750bbf095fa5505',
'd99f9680b535dcf3ad0d0f853a8b89d9',
'd3255261c8522c660c1000cd0a61c3b0',
'5ccbd78fe47300a160915d6398b59604',
'd9f9f0dede285235e3d0ad5101188d1e',
'ffedffb9c57cb200c275ba15e9100da4',
'84904c93ceea3ab6551555ee20c41e27',
'658d519f1868979431e7e0da5d967e6b',
'59c5d311d09a7f68f8b6962ca652374a',
'6b3607e849c8517fd7ae1cab583f7393',
'8a3f2cc88421d9f07cbb53dd78e11495',
'ffedffb9c57cb200c275ba15e9100da4',
'41d3da0d37fb0135ace813f1ba06bd39',
'464b1dbf722c8dcaaa7f2cc90b8d0d8d',
'ad37d44e57c18e4431a609968203c646',
'b1256beac1e95915b675893c61559b59',
'6b3607e849c8517fd7ae1cab583f7393',
'b8ae19200ec9d4e8e588bc31e3f9bcb4',
'e7441fa67d425df343d996c745fb5d6b',
'b1256beac1e95915b675893c61559b59',
'09663b7a4e3dce70524d1b64e02b5e2d',
'491c2bc6eab0ad313d4b6f06f6a396f5',
'13ed6c02918e612bac45715a6f300f2f',
'e54ae8e27a53b3425ac78a229a163bd5',
'836bdb4063978b55fedd6a180d60c323',
'e54ae8e27a53b3425ac78a229a163bd5',
'369a14f21cbff0d0fe23831aecfca7ba',
'aa68a83577209ff0ec3864aec4e194f2',
'00a0716a2029a7fe79fe03b6f74c7c90',
'd69d223e4d3aeb8d947ac9b9ddc60a7e',
'a894de140705ecab2f39797d2922a3ce',
'e57dd501c75c6933363fa245edcadbbd',
'ea604a66caf499c70c9002a917dd1694',
'19d36909f837de28880553dc9a190922',
'9f80ed66360fbbb9bc57c575fdd8814f',
'3ebf0cd640e39a4e7efe30ec1cf32b43',
'e57dd501c75c6933363fa245edcadbbd',
],
},
{
......@@ -866,6 +867,15 @@ export const viewstate: any = {
'8a4246bc438e47ec0f6f3516b9befc53',
],
},
{
viewtag: 'b09ceb3081717c0ed4fe19f9986598a0',
viewmodule: 'Sample',
viewname: 'IBIZSample0001SF6EditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'b1256beac1e95915b675893c61559b59',
viewmodule: 'Sample',
......
......@@ -521,69 +521,39 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto81':
this.clickAuto81(item);
return;
case 'Auto185':
this.clickAuto185(item);
return;
case 'Auto243':
this.clickAuto243(item);
case 'Auto124':
this.clickAuto124(item);
return;
case 'Auto97':
this.clickAuto97(item);
return;
case 'Auto124':
this.clickAuto124(item);
return;
case 'Auto262':
this.clickAuto262(item);
return;
case 'Auto393':
this.clickAuto393(item);
return;
case 'Auto319':
this.clickAuto319(item);
return;
case 'Auto408':
this.clickAuto408(item);
return;
case 'Auto235':
this.clickAuto235(item);
return;
case 'Auto25':
this.clickAuto25(item);
return;
case 'Auto384':
this.clickAuto384(item);
return;
case 'Auto96':
this.clickAuto96(item);
return;
case 'Auto146':
this.clickAuto146(item);
return;
case 'Auto126':
this.clickAuto126(item);
case 'Auto384':
this.clickAuto384(item);
return;
case 'Auto320':
this.clickAuto320(item);
return;
case 'Auto126':
this.clickAuto126(item);
return;
case 'Auto213':
this.clickAuto213(item);
return;
case 'Auto415':
this.clickAuto415(item);
return;
case 'Auto222':
this.clickAuto222(item);
return;
case 'Auto233':
this.clickAuto233(item);
return;
case 'Auto151':
this.clickAuto151(item);
return;
case 'Auto85':
this.clickAuto85(item);
return;
case 'Auto258':
this.clickAuto258(item);
return;
......@@ -596,54 +566,93 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto29':
this.clickAuto29(item);
return;
case 'Auto145':
this.clickAuto145(item);
case 'Auto387':
this.clickAuto387(item);
return;
case 'Auto371':
this.clickAuto371(item);
return;
case 'Auto387':
this.clickAuto387(item);
return;
case 'Auto296':
this.clickAuto296(item);
return;
case 'Auto338':
this.clickAuto338(item);
return;
case 'Auto67':
this.clickAuto67(item);
return;
case 'Auto286':
this.clickAuto286(item);
return;
case 'Auto173':
this.clickAuto173(item);
return;
case 'Auto375':
this.clickAuto375(item);
return;
case 'Auto39':
this.clickAuto39(item);
return;
case 'Auto106':
this.clickAuto106(item);
return;
case 'Auto406':
this.clickAuto406(item);
return;
case 'Auto185':
this.clickAuto185(item);
return;
case 'Auto243':
this.clickAuto243(item);
return;
case 'Auto393':
this.clickAuto393(item);
return;
case 'Auto319':
this.clickAuto319(item);
return;
case 'Auto408':
this.clickAuto408(item);
return;
case 'Auto235':
this.clickAuto235(item);
return;
case 'Auto146':
this.clickAuto146(item);
return;
case 'AppFunc':
this.clickAppFunc(item);
return;
case 'Auto222':
this.clickAuto222(item);
return;
case 'Auto233':
this.clickAuto233(item);
return;
case 'Auto85':
this.clickAuto85(item);
return;
case 'Auto145':
this.clickAuto145(item);
return;
case 'Auto338':
this.clickAuto338(item);
return;
case 'Auto129':
this.clickAuto129(item);
return;
case 'Auto56':
this.clickAuto56(item);
return;
case 'Auto286':
this.clickAuto286(item);
return;
case 'Auto116':
this.clickAuto116(item);
return;
case 'Auto298':
this.clickAuto298(item);
return;
case 'Auto2':
this.clickAuto2(item);
return;
case 'Auto298':
this.clickAuto298(item);
return;
case 'Auto176':
this.clickAuto176(item);
return;
case 'Auto173':
this.clickAuto173(item);
return;
case 'Auto375':
this.clickAuto375(item);
return;
case 'Auto39':
this.clickAuto39(item);
return;
case 'Auto111':
this.clickAuto111(item);
return;
......@@ -653,12 +662,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto279':
this.clickAuto279(item);
return;
case 'Auto106':
this.clickAuto106(item);
return;
case 'Auto406':
this.clickAuto406(item);
return;
case 'Auto66':
this.clickAuto66(item);
return;
......@@ -716,18 +719,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 左右关系表格
* 行编辑
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto185(item: any = {}) {
public clickAuto124(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sgridview2', parameterName: 'sgridview2' },
{ pathName: 'sf20gridview', parameterName: 'sf20gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -739,18 +742,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 主状态
* 常规编辑
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto243(item: any = {}) {
public clickAuto97(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sgridview', parameterName: 'sgridview' },
{ pathName: 'seditview', parameterName: 'seditview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -762,18 +765,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 常规编辑
* 左右关系编辑
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto97(item: any = {}) {
public clickAuto262(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'seditview', parameterName: 'seditview' },
{ pathName: 'seditview2', parameterName: 'seditview2' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -785,18 +788,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 行编辑
* 柱状图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto124(item: any = {}) {
public clickAuto25(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf20gridview', parameterName: 'sf20gridview' },
{ pathName: 'barchartview', parameterName: 'barchartview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -808,18 +811,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 左右关系编辑
* 动态节点实体
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto262(item: any = {}) {
public clickAuto96(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'seditview2', parameterName: 'seditview2' },
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'f3treeexpview', parameterName: 'f3treeexpview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -831,18 +834,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 基础表单项
* 单选导航
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto393(item: any = {}) {
public clickAuto384(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'sf2editview', parameterName: 'sf2editview' },
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'sf5editview', parameterName: 'sf5editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -854,18 +857,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 表单项默认值
* 饼图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto319(item: any = {}) {
public clickAuto320(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf1editview', parameterName: 'sf1editview' },
{ pathName: 'piechartview', parameterName: 'piechartview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -877,18 +880,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 单选
* 嵌入导航
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto408(item: any = {}) {
public clickAuto126(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'sf1editview', parameterName: 'sf1editview' },
{ pathName: 'streeexpview2', parameterName: 'streeexpview2' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -900,18 +903,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 右键操作
* 分页导航
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto235(item: any = {}) {
public clickAuto213(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'f4treeexpview', parameterName: 'f4treeexpview' },
{ pathName: 'stabexpview', parameterName: 'stabexpview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -923,18 +926,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 柱状图
* 常规导航
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto25(item: any = {}) {
public clickAuto415(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'barchartview', parameterName: 'barchartview' },
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'streeexpview', parameterName: 'streeexpview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -946,18 +949,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 单选导航
* 动态启用
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto384(item: any = {}) {
public clickAuto151(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'sf5editview', parameterName: 'sf5editview' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'f8editview', parameterName: 'f8editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -969,18 +972,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 动态节点实体
* 嵌入表格视图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto96(item: any = {}) {
public clickAuto258(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'f3treeexpview', parameterName: 'f3treeexpview' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'gridview9', parameterName: 'gridview9' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -992,18 +995,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 多选导航
* 动态显示
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto146(item: any = {}) {
public clickAuto155(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'sf4editview', parameterName: 'sf4editview' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'f10editview', parameterName: 'f10editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1015,18 +1018,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 嵌入导航
* 表单项更新
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto126(item: any = {}) {
public clickAuto114(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'streeexpview2', parameterName: 'streeexpview2' },
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'sf2editview', parameterName: 'sf2editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1038,18 +1041,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 饼图
* 导出导入
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto320(item: any = {}) {
public clickAuto29(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'piechartview', parameterName: 'piechartview' },
{ pathName: 'sf15gridview', parameterName: 'sf15gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1061,18 +1064,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 分页导航
* 折线图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto213(item: any = {}) {
public clickAuto387(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'stabexpview', parameterName: 'stabexpview' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'linechartview', parameterName: 'linechartview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1084,18 +1087,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 常规导航
* 表单项自动填充
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto415(item: any = {}) {
public clickAuto371(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'streeexpview', parameterName: 'streeexpview' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf3editview', parameterName: 'sf3editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1107,18 +1110,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 编辑器类型
* 索引实体
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto222(item: any = {}) {
public clickAuto296(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'sf5editview', parameterName: 'sf5editview' },
{ pathName: 'ibizuniproducts', parameterName: 'ibizuniproduct' },
{ pathName: 'sgridview', parameterName: 'sgridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1130,18 +1133,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 分页关系编辑
* 前端界面行为
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto233(item: any = {}) {
public clickAuto67(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'seditview3', parameterName: 'seditview3' },
{ pathName: 'sf5gridview', parameterName: 'sf5gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1153,18 +1156,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 动态启用
* 列操作表格
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto151(item: any = {}) {
public clickAuto286(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'f8editview', parameterName: 'f8editview' },
{ pathName: 'sf4gridview', parameterName: 'sf4gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1176,18 +1179,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 嵌入表单
* 搜索表单
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto85(item: any = {}) {
public clickAuto173(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 's2editview', parameterName: 's2editview' },
{ pathName: 'sf1gridview', parameterName: 'sf1gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1199,18 +1202,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 嵌入表格视图
* 静态节点
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto258(item: any = {}) {
public clickAuto375(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'gridview9', parameterName: 'gridview9' },
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'f1treeexpview', parameterName: 'f1treeexpview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1222,18 +1225,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 动态显示
* 后台界面行为
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto155(item: any = {}) {
public clickAuto39(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'f10editview', parameterName: 'f10editview' },
{ pathName: 'sf6gridview', parameterName: 'sf6gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1245,17 +1248,40 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 表单项更新
* 表单项值重置
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto114(item: any = {}) {
public clickAuto106(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'sf1editview', parameterName: 'sf1editview' },
];
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);
})
}
/**
* 多选
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto406(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'sf2editview', parameterName: 'sf2editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
......@@ -1268,18 +1294,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 导出导入
* 左右关系表格
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto29(item: any = {}) {
public clickAuto185(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf15gridview', parameterName: 'sf15gridview' },
{ pathName: 'sgridview2', parameterName: 'sgridview2' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1291,12 +1317,12 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 常规表格视图
* 主状态
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto145(item: any = {}) {
public clickAuto243(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
......@@ -1314,18 +1340,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 表单项自动填充
* 基础表单项
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto371(item: any = {}) {
public clickAuto393(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf3editview', parameterName: 'sf3editview' },
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'sf2editview', parameterName: 'sf2editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1337,18 +1363,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 折线图
* 表单项默认值
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto387(item: any = {}) {
public clickAuto319(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'linechartview', parameterName: 'linechartview' },
{ pathName: 'sf1editview', parameterName: 'sf1editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1360,18 +1386,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 索引实体
* 单选
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto296(item: any = {}) {
public clickAuto408(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizuniproducts', parameterName: 'ibizuniproduct' },
{ pathName: 'sgridview', parameterName: 'sgridview' },
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'sf1editview', parameterName: 'sf1editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1383,18 +1409,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 属性类型
* 右键操作
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto338(item: any = {}) {
public clickAuto235(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'sf4editview', parameterName: 'sf4editview' },
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'f4treeexpview', parameterName: 'f4treeexpview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1406,18 +1432,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 前端界面行为
* 多选导航
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto67(item: any = {}) {
public clickAuto146(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf5gridview', parameterName: 'sf5gridview' },
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'sf4editview', parameterName: 'sf4editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1429,18 +1455,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 辅助输入提示
* 编辑器扩展
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto129(item: any = {}) {
public clickAppFunc(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf7editview', parameterName: 'sf7editview' },
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'sf6editview', parameterName: 'sf6editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1452,18 +1478,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 单选树形
* 编辑器类型
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto56(item: any = {}) {
public clickAuto222(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'sf3editview', parameterName: 'sf3editview' },
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'sf5editview', parameterName: 'sf5editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1475,18 +1501,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 列操作表格
* 分页关系编辑
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto286(item: any = {}) {
public clickAuto233(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf4gridview', parameterName: 'sf4gridview' },
{ pathName: 'seditview3', parameterName: 'seditview3' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1498,18 +1524,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 表单
* 嵌入表单
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto116(item: any = {}) {
public clickAuto85(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0017s', parameterName: 'ibizsample0017' },
{ pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 's2editview', parameterName: 's2editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1521,17 +1547,17 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 继承实体
* 常规表格视图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto298(item: any = {}) {
public clickAuto145(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizhardwares', parameterName: 'ibizhardware' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sgridview', parameterName: 'sgridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
......@@ -1544,18 +1570,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 雷达图
* 属性类型
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto2(item: any = {}) {
public clickAuto338(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'radarchartview', parameterName: 'radarchartview' },
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'sf4editview', parameterName: 'sf4editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1567,18 +1593,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 禁用排序表格
* 辅助输入提示
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto176(item: any = {}) {
public clickAuto129(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf3gridview', parameterName: 'sf3gridview' },
{ pathName: 'sf7editview', parameterName: 'sf7editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1590,18 +1616,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 搜索表单
* 单选树形
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto173(item: any = {}) {
public clickAuto56(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf1gridview', parameterName: 'sf1gridview' },
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'sf3editview', parameterName: 'sf3editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1613,18 +1639,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 静态节点
* 多表单
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto375(item: any = {}) {
public clickAuto116(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'f1treeexpview', parameterName: 'f1treeexpview' },
{ pathName: 'ibizsample0017s', parameterName: 'ibizsample0017' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1636,18 +1662,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 后台界面行为
* 雷达图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto39(item: any = {}) {
public clickAuto2(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf6gridview', parameterName: 'sf6gridview' },
{ pathName: 'radarchartview', parameterName: 'radarchartview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1659,18 +1685,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 表单项超链接
* 继承实体
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto111(item: any = {}) {
public clickAuto298(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf4editview', parameterName: 'sf4editview' },
{ pathName: 'ibizhardwares', parameterName: 'ibizhardware' },
{ pathName: 'sgridview', parameterName: 'sgridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1682,18 +1708,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 区域图
* 禁用排序表格
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto3(item: any = {}) {
public clickAuto176(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'areachartview', parameterName: 'areachartview' },
{ pathName: 'sf3gridview', parameterName: 'sf3gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1705,18 +1731,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 表单项输入提示
* 表单项超链接
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto279(item: any = {}) {
public clickAuto111(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf2editview', parameterName: 'sf2editview' },
{ pathName: 'sf4editview', parameterName: 'sf4editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1728,18 +1754,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 表单项值重置
* 区域图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto106(item: any = {}) {
public clickAuto3(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'sf1editview', parameterName: 'sf1editview' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'areachartview', parameterName: 'areachartview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1751,17 +1777,17 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 多选
* 表单项输入提示
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto406(item: any = {}) {
public clickAuto279(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf2editview', parameterName: 'sf2editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
......
......@@ -108,6 +108,25 @@ export default class MainMenuModel {
appfunctag: 'Auto393',
resourcetag: '',
authtag:'Web-MainMenu-menuitem15',
},
{
id: 'A5CBFDFB-15E8-4BCF-B47D-7B79E13E19FF',
name: 'menuitem72',
text: '菜单项',
type: 'MENUITEM',
counterid: '',
tooltip: '菜单项',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc',
resourcetag: '',
authtag:'Web-MainMenu-menuitem72',
},
],
},
......
<template>
<i-form :model="this.data" class='app-form' ref='form' id='ibizsample0001_main5' style="" @on-validate="formItemValidate">
<input style="display:none;" />
<row >
<tabs :animated="false" name='main5' :value="detailsModel.form.activiedPage"
@on-click="detailsModel.form.clickPage($event)">
<tab-pane v-show="detailsModel.formpage1.visible" name='formpage1' :index="0" tab='main5' class=''
:label="(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.ibizsample0001.main5_form.details.formpage1')
])
}">
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.group1.manageContainerStatus" :isManageContainer="detailsModel.group1.isManageContainer" @managecontainerclick="manageContainerClick('group1')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizsample0001.main5_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.ibizsample0001name.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='ibizsample0001name' :itemRules="this.rules().ibizsample0001name" class='' :caption="$t('entities.ibizsample0001.main5_form.details.ibizsample0001name')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ibizsample0001name.error" :isEmptyCaption="false" labelPos="LEFT">
<span v-html="data.ibizsample0001name"></span>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col v-show="detailsModel.formitem.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem' :itemRules="this.rules().formitem" class='' :caption="$t('entities.ibizsample0001.main5_form.details.formitem')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem.error" :isEmptyCaption="false" labelPos="LEFT">
<app-rich-text-editor :formState="formState" :value="data.formitem" @change="(val) =>{this.data.formitem =val}" :disabled="detailsModel.formitem.disabled" :data="JSON.stringify(this.data)" name="formitem" :uploadparams='{}' :exportparams='{}' style=""></app-rich-text-editor>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem1' :itemRules="this.rules().formitem1" class='' :caption="$t('entities.ibizsample0001.main5_form.details.formitem1')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem1.error" :isEmptyCaption="false" labelPos="LEFT">
<span v-html="data.formitem1"></span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem2' :itemRules="this.rules().formitem2" class='' :caption="$t('entities.ibizsample0001.main5_form.details.formitem2')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem2.error" :isEmptyCaption="false" labelPos="LEFT">
<avue-custom-form :isSubForm="false" :isParseString="false" :isFormData="false" v-model="data.formitem2" :formData="data" :formState="formState"></avue-custom-form>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem3.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem3' :itemRules="this.rules().formitem3" class='' :caption="$t('entities.ibizsample0001.main5_form.details.formitem3')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem3.error" :isEmptyCaption="false" labelPos="LEFT">
<app-transfer
v-model="data.formitem3"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.formitem3.disabled"
placeholder='请选择...' style="" />
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem4.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem4' :itemRules="this.rules().formitem4" class='' :caption="$t('entities.ibizsample0001.main5_form.details.formitem4')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem4.error" :isEmptyCaption="false" labelPos="LEFT">
<cron-editor
:disabled="detailsModel.formitem4.disabled"
placeholder='请选择...' />
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem5.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem5' :itemRules="this.rules().formitem5" class='' :caption="$t('entities.ibizsample0001.main5_form.details.formitem5')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem5.error" :isEmptyCaption="false" labelPos="LEFT">
<app-image-preview :formState="formState" name='formitem5' :value="data.formitem5" style=""></app-image-preview>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem6.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem6' :itemRules="this.rules().formitem6" class='' :caption="$t('entities.ibizsample0001.main5_form.details.formitem6')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem6.error" :isEmptyCaption="false" labelPos="LEFT">
<app-image-romate :formState="formState" :ignorefieldvaluechange="ignorefieldvaluechange" @formitemvaluechange="onFormItemValueChange" :data="this.data" name='formitem6' :disabled="detailsModel.formitem6.disabled" style=""></app-image-romate>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem7.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem7' :itemRules="this.rules().formitem7" class='' :caption="$t('entities.ibizsample0001.main5_form.details.formitem7')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem7.error" :isEmptyCaption="false" labelPos="LEFT">
<app-upload-file-info name='formitem7' :value="data.formitem7" style=""></app-upload-file-info>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem8.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem8' :itemRules="this.rules().formitem8" class='' :caption="$t('entities.ibizsample0001.main5_form.details.formitem8')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem8.error" :isEmptyCaption="false" labelPos="LEFT">
<app-file-upload :isdrag="true" :formState="formState" :ignorefieldvaluechange="ignorefieldvaluechange" @formitemvaluechange="onFormItemValueChange" :data="JSON.stringify(this.data)" name='formitem8' :value="data.formitem8" :disabled="detailsModel.formitem8.disabled" :uploadparams='{}' :exportparams='{}' style="overflow: auto;"></app-file-upload>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem9.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem9' :itemRules="this.rules().formitem9" class='' :caption="$t('entities.ibizsample0001.main5_form.details.formitem9')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem9.error" :isEmptyCaption="false" labelPos="LEFT">
<app-file-upload :formState="formState" :ignorefieldvaluechange="ignorefieldvaluechange" @formitemvaluechange="onFormItemValueChange" :data="JSON.stringify(this.data)" name='formitem9' :value="data.formitem9" :disabled="detailsModel.formitem9.disabled" :uploadparams='{}' :exportparams='{}' style="overflow: auto;"></app-file-upload>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem10.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem10' :itemRules="this.rules().formitem10" class='' :caption="$t('entities.ibizsample0001.main5_form.details.formitem10')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem10.error" :isEmptyCaption="false" labelPos="LEFT">
<disk-image-upload
:data="data"
formItemName="formitem10"
:value="data.formitem10"
:formState="formState"
folder="ibizsample0001"
ownertype="formitem10"
:ownerid="data.srfkey"
:show-ocrview="false"
:show-preview="false"
:persistence="false"
@formitemvaluechange="onFormItemValueChange">
</disk-image-upload>
</app-form-item>
</i-col>
</tab-pane>
<tab-pane v-show="detailsModel.formpage2.visible" name='formpage2' :index="1" tab='main5' class=''
:label="(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.ibizsample0001.main5_form.details.formpage2')
])
}">
<i-col v-show="detailsModel.group2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.group2.manageContainerStatus" :isManageContainer="detailsModel.group2.isManageContainer" @managecontainerclick="manageContainerClick('group2')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group2.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizsample0001.main5_form.details.group2')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.createman.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='createman' :itemRules="this.rules().createman" class='' :caption="$t('entities.ibizsample0001.main5_form.details.createman')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createman.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='createman' :value="data.createman" dataType="TEXT" :precision="0"
tag='SysOperator' codelistType='DYNAMIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.createdate.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='createdate' :itemRules="this.rules().createdate" class='' :caption="$t('entities.ibizsample0001.main5_form.details.createdate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createdate.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='createdate' :value="data.createdate" dataType="DATETIME" valueFormat="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.updateman.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='updateman' :itemRules="this.rules().updateman" class='' :caption="$t('entities.ibizsample0001.main5_form.details.updateman')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.updateman.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='updateman' :value="data.updateman" dataType="TEXT" :precision="0"
tag='SysOperator' codelistType='DYNAMIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.updatedate.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='updatedate' :itemRules="this.rules().updatedate" class='' :caption="$t('entities.ibizsample0001.main5_form.details.updatedate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.updatedate.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='updatedate' :value="data.updatedate" dataType="DATETIME" valueFormat="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</tab-pane>
</tabs>
</row>
</i-form>
</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 IBIZSample0001Service from '@/service/ibizsample0001/ibizsample0001-service';
import Main5Service from './main5-form-service';
import IBIZSample0001UIService from '@/uiservice/ibizsample0001/ibizsample0001-ui-service';
import { FormButtonModel, FormPageModel, FormItemModel, FormDRUIPartModel, FormPartModel, FormGroupPanelModel, FormIFrameModel, FormRowItemModel, FormTabPageModel, FormTabPanelModel, FormUserControlModel } from '@/model/form-detail';
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
import schema from 'async-validator';
import { Environment } from '@/environments/environment';
@Component({
components: {
}
})
export default class Main5Base extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof Main5Base
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Main5Base
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof Main5Base
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof Main5Base
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Main5Base
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof Main5Base
*/
public getControlType(): string {
return 'FORM'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Main5Base
*/
public counterServiceArray:Array<any> = [];
/**
* 建构部件服务对象
*
* @type {Main5Service}
* @memberof Main5Base
*/
public service: Main5Service = new Main5Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {IBIZSample0001Service}
* @memberof Main5Base
*/
public appEntityService: IBIZSample0001Service = new IBIZSample0001Service({ $store: this.$store });
/**
* 转化数据
*
* @param {any} args
* @memberof Main5Base
*/
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 Main5Base
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof Main5Base
*/
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 Main5Base
*/
@Inject({from:'navModel',default: 'tab'})
public navModel!:string;
/**
* 主键表单项名称
*
* @protected
* @type {string}
* @memberof Main5Base
*/
public formKeyItemName: string = '';
/**
* 界面UI服务对象
*
* @type {IBIZSample0001UIService}
* @memberof Main5Base
*/
public appUIService:IBIZSample0001UIService = new IBIZSample0001UIService(this.$store);
/**
* 工作流审批意见控件绑定值
*
* @memberof Main5Base
*/
public srfwfmemo:string = "";
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Main5Base
*/
public getDatas(): any[] {
return [this.data];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Main5Base
*/
public getData(): any {
return this.data;
}
/**
* 是否默认保存
*
* @type {boolean}
* @memberof Main5Base
*/
@Prop({ default: false }) public autosave?: boolean;
/**
* 显示处理提示
*
* @type {boolean}
* @memberof Main5Base
*/
@Prop({ default: true }) public showBusyIndicator?: boolean;
/**
* 部件行为--submit
*
* @type {string}
* @memberof Main5Base
*/
@Prop() public WFSubmitAction!: string;
/**
* 部件行为--start
*
* @type {string}
* @memberof Main5Base
*/
@Prop() public WFStartAction!: string;
/**
* 部件行为--update
*
* @type {string}
* @memberof Main5Base
*/
@Prop() public updateAction!: string;
/**
* 部件行为--remove
*
* @type {string}
* @memberof Main5Base
*/
@Prop() public removeAction!: string;
/**
* 部件行为--loaddraft
*
* @type {string}
* @memberof Main5Base
*/
@Prop() public loaddraftAction!: string;
/**
* 部件行为--load
*
* @type {string}
* @memberof Main5Base
*/
@Prop() public loadAction!: string;
/**
* 部件行为--create
*
* @type {string}
* @memberof Main5Base
*/
@Prop() public createAction!: string;
/**
* 部件行为--create
*
* @type {string}
* @memberof Main5Base
*/
@Prop() public searchAction!: string;
/**
* 视图标识
*
* @type {string}
* @memberof Main5Base
*/
@Prop() public viewtag!: string;
/**
* 表单状态
*
* @type {Subject<any>}
* @memberof Main5Base
*/
public formState: Subject<any> = new Subject();
/**
* 忽略表单项值变化
*
* @type {boolean}
* @memberof Main5Base
*/
public ignorefieldvaluechange: boolean = false;
/**
* 数据变化
*
* @public
* @type {Subject<any>}
* @memberof Main5Base
*/
public dataChang: Subject<any> = new Subject();
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Main5Base
*/
public dataChangEvent: Subscription | undefined;
/**
* 原始数据
*
* @public
* @type {*}
* @memberof Main5Base
*/
public oldData: any = {};
/**
* 混入表单数据对象
*
* @type {*}
* @memberof Main5Base
*/
public mixinData:any = {};
/**
* 表单项校验错误提示信息
*
* @memberof Main5Base
*/
public errorMessages: Array<any> = [];
/**
* 设置表单项错误提示信息
*
* @param {*} prop 表单项字段名
* @param {*} status 校验状态
* @param {*} error 错误信息
* @memberof Main5Base
*/
public formItemValidate(prop: string,status: boolean, error: string){
error = error ? error : '';
if(this.errorMessages && this.errorMessages.length > 0){
const index = this.errorMessages.findIndex((errorMessage:any) => Object.is(errorMessage.prop,prop));
if(index != -1){
this.errorMessages[index].error = error;
}else{
this.errorMessages.push({prop: prop,error: error});
}
}else{
this.errorMessages.push({prop: prop,error: error});
}
}
/**
* 表单数据对象
*
* @type {*}
* @memberof Main5Base
*/
public data: any = {
srfupdatedate: null,
srforikey: null,
srfkey: null,
srfmajortext: null,
srftempmode: null,
srfuf: null,
srfdeid: null,
srfsourcekey: null,
ibizsample0001name: null,
formitem: null,
formitem1: null,
formitem2: null,
formitem3: null,
formitem4: null,
formitem5: null,
formitem6: null,
formitem7: null,
formitem8: null,
formitem9: null,
formitem10: null,
createman: null,
createdate: null,
updateman: null,
updatedate: null,
ibizsample0001id: null,
ibizsample0001:null,
};
/**
* 当前执行的行为逻辑
*
* @type {string}
* @memberof Main5Base
*/
public currentAction: string = "";
/**
* 关系界面计数器
*
* @type {number}
* @memberof Main5Base
*/
public drcounter: number = 0;
/**
* 需要等待关系界面保存时,第一次调用save参数的备份
*
* @type {number}
* @memberof Main5Base
*/
public drsaveopt: any = {};
/**
* 表单保存回调存储对象
*
* @type {any}
* @memberof Main5Base
*/
public saveState:any ;
/**
* 主信息属性映射表单项名称
*
* @type {string}
* @memberof Main5Base
*/
public majorMessageField: string = "ibizsample0001name";
/**
* 值规则
*
* @type {*}
* @memberof Main5Base
*/
public rules() :any {
return {
ibizsample0001name: [
{ required: this.detailsModel.ibizsample0001name.required, type: 'string', message: '名称 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizsample0001name.required, type: 'string', message: '名称 值不能为空', trigger: 'blur' },
],
formitem: [
{ required: this.detailsModel.formitem.required, type: 'string', message: 'HTML编辑框 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem.required, type: 'string', message: 'HTML编辑框 值不能为空', trigger: 'blur' },
],
formitem1: [
{ required: this.detailsModel.formitem1.required, type: 'string', message: '标签 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem1.required, type: 'string', message: '标签 值不能为空', trigger: 'blur' },
],
formitem2: [
{ required: this.detailsModel.formitem2.required, type: 'string', message: '用户自定义 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem2.required, type: 'string', message: '用户自定义 值不能为空', trigger: 'blur' },
],
formitem3: [
{ required: this.detailsModel.formitem3.required, type: 'string', message: '多选穿梭框 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem3.required, type: 'string', message: '多选穿梭框 值不能为空', trigger: 'blur' },
],
formitem4: [
{ required: this.detailsModel.formitem4.required, type: 'string', message: ' CRON表达式组件 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem4.required, type: 'string', message: ' CRON表达式组件 值不能为空', trigger: 'blur' },
],
formitem5: [
{ required: this.detailsModel.formitem5.required, type: 'string', message: '图片(信息展示) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem5.required, type: 'string', message: '图片(信息展示) 值不能为空', trigger: 'blur' },
],
formitem6: [
{ required: this.detailsModel.formitem6.required, type: 'string', message: '图片(可旋转) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem6.required, type: 'string', message: '图片(可旋转) 值不能为空', trigger: 'blur' },
],
formitem7: [
{ required: this.detailsModel.formitem7.required, type: 'string', message: '文件上传(信息展示) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem7.required, type: 'string', message: '文件上传(信息展示) 值不能为空', trigger: 'blur' },
],
formitem8: [
{ required: this.detailsModel.formitem8.required, type: 'string', message: '文件(支持拖拽) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem8.required, type: 'string', message: '文件(支持拖拽) 值不能为空', trigger: 'blur' },
],
formitem9: [
{ required: this.detailsModel.formitem9.required, type: 'string', message: '磁盘文件 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem9.required, type: 'string', message: '磁盘文件 值不能为空', trigger: 'blur' },
],
formitem10: [
{ required: this.detailsModel.formitem10.required, type: 'string', message: '磁盘图片 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem10.required, type: 'string', message: '磁盘图片 值不能为空', trigger: 'blur' },
],
createman: [
{ required: this.detailsModel.createman.required, type: 'string', message: '建立人 值不能为空', trigger: 'change' },
{ required: this.detailsModel.createman.required, type: 'string', message: '建立人 值不能为空', trigger: 'blur' },
],
createdate: [
{ required: this.detailsModel.createdate.required, type: 'string', message: '建立时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.createdate.required, type: 'string', message: '建立时间 值不能为空', trigger: 'blur' },
],
updateman: [
{ required: this.detailsModel.updateman.required, type: 'string', message: '更新人 值不能为空', trigger: 'change' },
{ required: this.detailsModel.updateman.required, type: 'string', message: '更新人 值不能为空', trigger: 'blur' },
],
updatedate: [
{ required: this.detailsModel.updatedate.required, type: 'string', message: '更新时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.updatedate.required, type: 'string', message: '更新时间 值不能为空', trigger: 'blur' },
],
}
}
/**
* 属性值规则
*
* @type {*}
* @memberof Main5Base
*/
public deRules:any = {
};
/**
* 校验属性值规则
*
* @public
* @param {{ name: string }} { name }
* @memberof Main5Base
*/
public verifyDeRules(name:string,rule:any = this.deRules,op:string = "AND") :{isPast:boolean,infoMessage:string}{
let falg:any = {infoMessage:""};
if(!rule[name]){
return falg;
}
let opValue = op == 'AND'? true :false;
let startOp = (val:boolean)=>{
if(falg.isPast){
if(opValue){
falg.isPast = falg.isPast && val;
}else{
falg.isPast = falg.isPast || val;
}
}else{
falg.isPast = val;
}
}
for(let i=0;i<rule[name].length;i++){
let item:any = rule[name][i];
let dataValue = item.deName?this.data[this.service.getItemNameByDeName(item.deName)]:"";
item.ruleInfo = item.ruleInfo ? item.ruleInfo : this.$t('app.formpage.valuecheckex');
if((dataValue === null || dataValue === undefined || dataValue === "") && (item.type != 'GROUP')){
startOp(true);
return falg;
}
// 常规规则
if(item.type == 'SIMPLE'){
startOp(!this.$verify.checkFieldSimpleRule(dataValue,item.condOP,item.paramValue,item.ruleInfo,item.paramType,this.data,item.isKeyCond));
falg.infoMessage = item.ruleInfo;
if(!falg.isPast) return falg;
}
// 数值范围
if(item.type == 'VALUERANGE2'){
startOp( !this.$verify.checkFieldValueRangeRule(dataValue,item.minValue,item.isIncludeMinValue,item.maxValue,item.isIncludeMaxValue,item.ruleInfo,item.isKeyCond));
falg.infoMessage = item.ruleInfo;
if(!falg.isPast) return falg;
}
// 正则式
if (item.type == "REGEX") {
startOp(!this.$verify.checkFieldRegExRule(dataValue,item.regExCode,item.ruleInfo,item.isKeyCond));
falg.infoMessage = item.ruleInfo;
if(!falg.isPast) return falg;
}
// 长度
if (item.type == "STRINGLENGTH") {
startOp(!this.$verify.checkFieldStringLengthRule(dataValue,item.minValue,item.isIncludeMinValue,item.maxValue,item.isIncludeMaxValue,item.ruleInfo,item.isKeyCond));
falg.infoMessage = item.ruleInfo;
if(!falg.isPast) return falg;
}
// 系统值规则
if(item.type == "SYSVALUERULE") {
startOp(!this.$verify.checkFieldSysValueRule(dataValue,item.sysRule.regExCode,item.ruleInfo,item.isKeyCond));
falg.infoMessage = item.ruleInfo;
if(!falg.isPast) return falg;
}
// 分组
if(item.type == 'GROUP'){
falg = this.verifyDeRules('group',item,item.condOP?item.condOP:"AND");
if(item.isNotMode){
falg.isPast = !falg.isPast;
}
if(!falg.isPast) return falg;
}
}
if(!falg.hasOwnProperty("isPast")){
falg.isPast = true;
}
if(!this.data[name]){
falg.isPast = true;
}
return falg;
}
/**
* 详情模型集合
*
* @type {*}
* @memberof Main5Base
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '示例实体01基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizsample0001.main5_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, isControlledContent: false })
,
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizsample0001.main5_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this, isControlledContent: false })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
srfkey: new FormItemModel({ caption: 'IBIZSAMPLE0001标识', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
srfmajortext: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizsample0001name: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'ibizsample0001name', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem: new FormItemModel({ caption: 'HTML编辑框', detailType: 'FORMITEM', name: 'formitem', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem1: new FormItemModel({ caption: '标签', detailType: 'FORMITEM', name: 'formitem1', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem2: new FormItemModel({ caption: '用户自定义', detailType: 'FORMITEM', name: 'formitem2', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem3: new FormItemModel({ caption: '多选穿梭框', detailType: 'FORMITEM', name: 'formitem3', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem4: new FormItemModel({ caption: ' CRON表达式组件', detailType: 'FORMITEM', name: 'formitem4', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem5: new FormItemModel({ caption: '图片(信息展示)', detailType: 'FORMITEM', name: 'formitem5', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem6: new FormItemModel({ caption: '图片(可旋转)', detailType: 'FORMITEM', name: 'formitem6', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem7: new FormItemModel({ caption: '文件上传(信息展示)', detailType: 'FORMITEM', name: 'formitem7', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem8: new FormItemModel({ caption: '文件(支持拖拽)', detailType: 'FORMITEM', name: 'formitem8', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem9: new FormItemModel({ caption: '磁盘文件', detailType: 'FORMITEM', name: 'formitem9', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem10: new FormItemModel({ caption: '磁盘图片', detailType: 'FORMITEM', name: 'formitem10', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
createdate: new FormItemModel({ caption: '建立时间', detailType: 'FORMITEM', name: 'createdate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
updateman: new FormItemModel({ caption: '更新人', detailType: 'FORMITEM', name: 'updateman', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizsample0001id: new FormItemModel({ caption: 'IBIZSAMPLE0001标识', detailType: 'FORMITEM', name: 'ibizsample0001id', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
};
/**
* 监控表单属性 srfupdatedate 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.srfupdatedate')
onSrfupdatedateChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'srfupdatedate', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 srforikey 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.srforikey')
onSrforikeyChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'srforikey', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 srfkey 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.srfkey')
onSrfkeyChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'srfkey', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 srfmajortext 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.srfmajortext')
onSrfmajortextChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'srfmajortext', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 srftempmode 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.srftempmode')
onSrftempmodeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'srftempmode', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 srfuf 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.srfuf')
onSrfufChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'srfuf', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 srfdeid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.srfdeid')
onSrfdeidChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'srfdeid', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 srfsourcekey 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.srfsourcekey')
onSrfsourcekeyChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'srfsourcekey', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizsample0001name 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.ibizsample0001name')
onIbizsample0001nameChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'ibizsample0001name', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.formitem')
onFormitemChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem1 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.formitem1')
onFormitem1Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem1', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem2 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.formitem2')
onFormitem2Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem2', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem3 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.formitem3')
onFormitem3Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem3', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem4 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.formitem4')
onFormitem4Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem4', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem5 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.formitem5')
onFormitem5Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem5', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem6 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.formitem6')
onFormitem6Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem6', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem7 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.formitem7')
onFormitem7Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem7', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem8 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.formitem8')
onFormitem8Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem8', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem9 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.formitem9')
onFormitem9Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem9', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem10 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.formitem10')
onFormitem10Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem10', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 createman 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.createman')
onCreatemanChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'createman', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 createdate 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.createdate')
onCreatedateChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'createdate', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 updateman 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.updateman')
onUpdatemanChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'updateman', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 updatedate 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.updatedate')
onUpdatedateChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'updatedate', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizsample0001id 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main5Base
*/
@Watch('data.ibizsample0001id')
onIbizsample0001idChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'ibizsample0001id', newVal: newVal, oldVal: oldVal });
}
/**
* 显示更多模式切换操作
*
* @type {string}
* @memberof Main5Base
*/
public manageContainerClick(name: string){
let model = this.detailsModel[name];
if(model.isManageContainer){
model.setManageContainerStatus(!model.manageContainerStatus);
model.showMoreModeItems.forEach((item:any) => {
if(this.detailsModel[item].isControlledContent){
this.detailsModel[item].setVisible(model.manageContainerStatus? this.detailsModel[item].oldVisible : false);
}
});
}
}
/**
* 重置表单项值
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof Main5Base
*/
public resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
}
/**
* 置空对象
*
* @param {any[]} args
* @memberof Main5Base
*/
public ResetData(_datas:any){
if(Object.keys(_datas).length >0){
Object.keys(_datas).forEach((name: string) => {
if (this.data.hasOwnProperty(name)) {
this.data[name] = null;
}
});
}
}
/**
* 表单逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof Main5Base
*/
public async formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }){
}
/**
* 表单项检查逻辑
*
* @public
* @param name 属性名
* @memberof Main5Base
*/
public checkItem(name:string):Promise<any> {
return new Promise((resolve, reject) => {
var validator = new schema({[name]:this.rules()[name]});
validator.validate({[name]:this.data[name]}).then(()=>{
resolve(true);
})
.catch(() => {
resolve(false);
});;
})
}
/**
* 表单值变化
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @returns {void}
* @memberof Main5Base
*/
public formDataChange({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
if (this.ignorefieldvaluechange) {
return;
}
this.resetFormData({ name: name, newVal: newVal, oldVal: oldVal });
this.formLogic({ name: name, newVal: newVal, oldVal: oldVal });
this.dataChang.next(JSON.stringify(this.data));
}
/**
* 表单加载完成
*
* @public
* @param {*} [data={}]
* @param {string} [action]
* @memberof Main5Base
*/
public onFormLoad(data: any = {},action:string): void {
if(Object.is(action,"save") || Object.is(action,"autoSave") || Object.is(action,"submit"))
// 更新context的实体主键
if(data.ibizsample0001){
Object.assign(this.context,{ibizsample0001:data.ibizsample0001})
}
this.setFormEnableCond(data);
this.computeButtonState(data);
this.fillForm(data,action);
this.oldData = {};
Object.assign(this.oldData, JSON.parse(JSON.stringify(this.data)));
this.$store.commit('viewaction/setViewDataChange', { viewtag: this.viewtag, viewdatachange: false });
this.formLogic({ name: '', newVal: null, oldVal: null });
}
/**
* 值填充
*
* @param {*} [_datas={}]
* @param {string} [action]
* @memberof Main5Base
*/
public fillForm(_datas: any = {},action:string): void {
this.mixinData = _datas;
this.ignorefieldvaluechange = true;
Object.keys(_datas).forEach((name: string) => {
if (this.data.hasOwnProperty(name)) {
this.data[name] = _datas[name];
}
});
if(Object.is(action,'loadDraft')){
this.createDefault();
}
if(Object.is(action,'load')){
this.updateDefault();
}
this.$nextTick(function () {
this.ignorefieldvaluechange = false;
})
}
/**
* 设置表单项是否启用
*
* @public
* @param {*} data
* @memberof Main5Base
*/
public setFormEnableCond(data: any): void {
Object.values(this.detailsModel).forEach((detail: any) => {
if (!Object.is(detail.detailType, 'FORMITEM')) {
return;
}
const formItem: FormItemModel = detail;
formItem.setEnableCond(data.srfuf);
});
}
/**
* 重置草稿表单状态
*
* @public
* @memberof Main5Base
*/
public resetDraftFormStates(): void {
const form: any = this.$refs.form;
if (form) {
form.resetFields();
}
}
/**
* 重置校验结果
*
* @memberof Main5Base
*/
public resetValidates(): void {
Object.values(this.detailsModel).forEach((detail: any) => {
if (!Object.is(detail.detailType, 'FORMITEM')) {
return;
}
const formItem: FormItemModel = detail;
formItem.setError('');
});
}
/**
* 填充校验结果 (后台)
*
* @param {any[]} fieldErrors
* @memberof Main5Base
*/
public fillValidates(fieldErrors: any[]): void {
fieldErrors.forEach((error: any) => {
const formItem: FormItemModel = this.detailsModel[error.field];
if (!formItem) {
return;
}
this.$nextTick(() => {
formItem.setError(error.message);
});
});
}
/**
* 表单校验状态
*
* @returns {boolean}
* @memberof Main5Base
*/
public formValidateStatus(): boolean {
const form: any = this.$refs.form;
let validatestate: boolean = true;
form.validate((valid: boolean) => {
validatestate = valid ? true : false;
});
return validatestate
}
/**
* 获取全部值
*
* @returns {*}
* @memberof Main5Base
*/
public getValues(): any {
return this.data;
}
/**
* 表单项值变更
*
* @param {{ name: string, value: any }} $event
* @returns {void}
* @memberof Main5Base
*/
public onFormItemValueChange($event: { name: string, value: any }): void {
if (!$event) {
return;
}
if (!$event.name || Object.is($event.name, '') || !this.data.hasOwnProperty($event.name)) {
return;
}
this.data[$event.name] = $event.value;
}
/**
* 编辑器行为触发
*
* @param {*} arg
* @returns {void}
* @memberof Main5Base
*/
public onFormItemActionClick(arg:any){
if(arg && (arg instanceof Function)) arg();
}
/**
* 设置数据项值
*
* @param {string} name
* @param {*} value
* @returns {void}
* @memberof Main5Base
*/
public setDataItemValue(name: string, value: any): void {
if (!name || Object.is(name, '') || !this.data.hasOwnProperty(name)) {
return;
}
if (Object.is(this.data[name], value)) {
return;
}
this.data[name] = value;
}
/**
* 计算表单按钮权限状态
*
* @param {*} [data] 传入数据
* @memberof Main5Base
*/
public computeButtonState(data:any){
let targetData:any = this.transformData(data);
if(this.detailsModel && Object.keys(this.detailsModel).length >0){
Object.keys(this.detailsModel).forEach((name:any) =>{
if(this.detailsModel[name] && this.detailsModel[name].uiaction && this.detailsModel[name].uiaction.dataaccaction && Object.is(this.detailsModel[name].detailType,"BUTTON")){
this.detailsModel[name].isPower = true;
let tempUIAction:any = JSON.parse(JSON.stringify(this.detailsModel[name].uiaction));
let result: any[] = ViewTool.calcActionItemAuthState(targetData,[tempUIAction],this.appUIService);
this.detailsModel[name].visible = tempUIAction.visabled;
this.detailsModel[name].disabled = tempUIAction.disabled;
this.detailsModel[name].isPower = result[0] === 1 ? true : false;
}
})
}
}
/**
* 分组界面行为事件
*
* @param {*} $event
* @memberof Main5Base
*/
public groupUIActionClick($event: any): void {
if (!$event) {
return;
}
const item:any = $event.item;
}
/**
* Vue声明周期(处理组件的输入属性)
*
* @memberof Main5Base
*/
public created(): void {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof Main5Base
*/
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
if (Object.is('autoload', action)) {
this.autoLoad(data);
}
if (Object.is('load', action)) {
this.load(data);
}
if (Object.is('loaddraft', action)) {
this.loadDraft(data);
}
if (Object.is('save', action)) {
this.save(data,data.showResultInfo);
}
if (Object.is('remove', action)) {
this.remove(data);
}
if (Object.is('saveandexit', action)) {
this.saveAndExit(data);
}
if (Object.is('saveandnew', action)) {
this.saveAndNew(data);
}
if (Object.is('removeandexit', action)) {
this.removeAndExit(data);
}
if (Object.is('refresh', action)) {
this.refresh(data);
}
if (Object.is('panelaction', action)) {
this.panelAction(data.action,data.emitAction,data.data);
}
});
}
this.dataChang
.pipe(
debounceTime(300),
distinctUntilChanged()
).subscribe((data: any) => {
if (this.autosave) {
this.autoSave();
}
const state = !Object.is(JSON.stringify(this.oldData), JSON.stringify(this.data)) ? true : false;
this.$store.commit('viewaction/setViewDataChange', { viewtag: this.viewtag, viewdatachange: state });
});
}
/**
* vue 生命周期
*
* @memberof Main5Base
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Main5Base
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
if (this.dataChangEvent) {
this.dataChangEvent.unsubscribe();
}
}
/**
*打印
*@memberof @memberof Main5Base
*/
public print(){
let _this:any = this;
_this.$print({id:'ibizsample0001_main5',popTitle:'编辑器扩展'});
}
/**
* 部件刷新
*
* @param {any} args
* @memberof Main5Base
*/
public refresh(args?: any): void {
let arg: any = {};
Object.assign(arg,args?args[0]:{});
if (this.data.srfkey && !Object.is(this.data.srfkey, '')) {
Object.assign(arg, { srfkey: this.data.srfkey });
this.load(arg);
return;
}
if (this.data.srfkeys && !Object.is(this.data.srfkeys, '')) {
Object.assign(arg, { srfkey: this.data.srfkeys });
this.load(arg);
return;
}
}
/**
* 自动加载
*
* @param {*} [arg={}]
* @returns {void}
* @memberof Main5Base
*/
public autoLoad(arg: any = {}): void {
if (arg.srfkey && !Object.is(arg.srfkey, '')) {
Object.assign(arg, { srfkey: arg.srfkey });
this.load(arg);
return;
}
if (arg.srfkeys && !Object.is(arg.srfkeys, '')) {
Object.assign(arg, { srfkey: arg.srfkeys });
this.load(arg);
return;
}
this.loadDraft(arg);
}
/**
* 加载
*
* @public
* @param {*} [opt={}]
* @memberof Main5Base
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0001SF6EditView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
let viewparamResult:any = Object.assign(arg,this.viewparams);
const get: Promise<any> = this.service.get(this.loadAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator);
get.then((response: any) => {
if (response && response.status === 200) {
const data = response.data;
this.onFormLoad(data,'load');
this.$emit('load', data);
this.$nextTick(() => {
this.formState.next({ type: 'load', data: data });
});
}
}).catch((response: any) => {
if (response && response.status && response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
return;
}
if (!response || !response.status || !response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.sysException') as string) });
return;
}
});
}
/**
* 加载草稿
*
* @param {*} [opt={}]
* @memberof Main5Base
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0001SF6EditView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
let viewparamResult:any = Object.assign(arg,this.viewparams);
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator);
post.then((response: any) => {
if (!response.status || response.status !== 200) {
if (response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
}
return;
}
const data = response.data;
this.resetDraftFormStates();
this.onFormLoad(data,'loadDraft');
data.ibizsample0001 = null;
this.$emit('load', data);
this.$nextTick(() => {
this.formState.next({ type: 'load', data: data });
});
setTimeout(() => {
const form: any = this.$refs.form;
if (form) {
form.fields.forEach((field: any) => {
field.validateMessage = "";
field.validateState = "";
field.validateStatus = false;
});
}
});
}).catch((response: any) => {
if (response && response.status && response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
return;
}
if (!response || !response.status || !response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.sysException') as string) });
return;
}
});
}
/**
* 自动保存
*
* @param {*} [opt={}]
* @memberof Main5Base
*/
public autoSave(opt: any = {}): void {
if (!this.formValidateStatus()) {
return;
}
const arg: any = { ...opt };
const data = this.getValues();
Object.assign(arg, data);
Object.assign(arg,{srfmajortext:data[this.majorMessageField]});
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0001SF6EditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
const post: Promise<any> = this.service.add(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => {
if (!response.status || response.status !== 200) {
if (response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
}
return;
}
const data = response.data;
this.onFormLoad(data,'autoSave');
this.$emit('save', data);
AppCenterService.notifyMessage({name:"IBIZSample0001",action:'appRefresh',data:data});
this.$nextTick(() => {
this.formState.next({ type: 'save', data: data });
});
}).catch((response: any) => {
if (response && response.status && response.data) {
if (response.data.errorKey) {
if(Object.is(response.data.errorKey, "versionCheck")) {
this.$Modal.confirm({
title: (this.$t('app.formpage.saveerror') as string),
content: (this.$t('app.formpage.savecontent') as string),
onOk: () => {
this.refresh([]);
},
onCancel: () => { }
});
} else if(Object.is(response.data.errorKey, 'DupCheck')) {
let errorProp: string = response.data.message.match(/\[[a-zA-Z]*\]/)[0];
let name: string = this.service.getNameByProp(errorProp.substr(1, errorProp.length-2));
if(name) {
this.$Notice.error({
title: (this.$t('app.commonWords.createFailed') as string),
desc: this.detailsModel[name].caption + " : " + arg[name] + (this.$t('app.commonWords.isExist') as string) + '!',
});
} else {
this.$Notice.error({
title: (this.$t('app.commonWords.createFailed') as string),
desc: response.data.message?response.data.message:(this.$t('app.commonWords.sysException') as string),
})
}
}else if(Object.is(response.data.errorKey, 'DuplicateKeyException')){
this.$Notice.error({
title: (this.$t('app.commonWords.createFailed') as string),
desc: this.detailsModel[this.formKeyItemName].caption + " : " + arg[this.formKeyItemName] + (this.$t('app.commonWords.isExist') as string) + '!',
});
} else {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message?response.data.message:(this.$t('app.commonWords.sysException') as string) });
}
} else {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message?response.data.message:(this.$t('app.commonWords.sysException') as string) });
}
return;
} else {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.sysException') as string) });
}
});
}
/**
* 保存
*
* @param {*} [opt={}]
* @param {boolean} [showResultInfo]
* @param {boolean} [ifStateNext] formState是否下发通知
* @returns {Promise<any>}
* @memberof Main5Base
*/
public async save(opt: any = {}, showResultInfo?: boolean, ifStateNext: boolean = true): Promise<any> {
return new Promise((resolve: any, reject: any) => {
showResultInfo = showResultInfo === undefined ? true : false;
if (!this.formValidateStatus()) {
if(this.errorMessages && this.errorMessages.length > 0) {
let descMessage: string = '';
this.errorMessages.forEach((message: any) => {
descMessage = descMessage + '<p>' + message.error + '<p>';
})
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: descMessage });
} else {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.formpage.valuecheckex') as string) });
}
return;
}
const arg: any = { ...opt };
const data = this.getValues();
Object.assign(arg, this.context);
Object.assign(arg, data);
Object.assign(arg,{srfmajortext:data[this.majorMessageField]});
if (ifStateNext) {
this.drcounter = 0;
if(this.drcounter !== 0){
this.drsaveopt = opt;
this.formState.next({ type: 'beforesave', data: arg });//先通知关系界面保存
this.saveState = resolve;
return;
}
}
if(this.viewparams && this.viewparams.copymode){
data.srfuf = '0';
}
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0001SF6EditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
const post: Promise<any> = Object.is(data.srfuf, '1')?this.service.update(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(action,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => {
if (!response.status || response.status !== 200) {
if (response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
}
return;
}
this.viewparams.copymode = false;
const data = response.data;
this.onFormLoad(data,'save');
this.$emit('save', data);
AppCenterService.notifyMessage({name:"IBIZSample0001",action:'appRefresh',data:data});
this.$nextTick(() => {
this.formState.next({ type: 'save', data: data });
});
if (showResultInfo) {
this.$Notice.success({ title: '', desc: (data.srfmajortext ? data.srfmajortext : '') + '&nbsp;'+ (this.$t('app.formpage.savesuccess') as string) });
}
resolve(response);
}).catch((response: any) => {
if (response && response.status && response.data) {
if (response.data.errorKey) {
if(Object.is(response.data.errorKey, "versionCheck")) {
this.$Modal.confirm({
title: (this.$t('app.formpage.saveerror') as string),
content: (this.$t('app.formpage.savecontent') as string),
onOk: () => {
this.refresh([]);
},
onCancel: () => { }
});
} else if(Object.is(response.data.errorKey, 'DupCheck')) {
let errorProp: string = response.data.message.match(/\[[a-zA-Z]*\]/)[0];
let name: string = this.service.getNameByProp(errorProp.substr(1, errorProp.length-2));
if(name) {
this.$Notice.error({
title: (this.$t('app.commonWords.createFailed') as string),
desc: this.detailsModel[name].caption + " : " + arg[name] + (this.$t('app.commonWords.isExist') as string) + '!',
});
} else {
this.$Notice.error({
title: (this.$t('app.commonWords.createFailed') as string),
desc: response.data.message,
})
}
} else {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
}
} else {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
reject(response);
}
return;
} else {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.sysException') as string) });
reject(response);
}
reject(response);
});
})
}
/**
* 删除
*
* @public
* @param {*} [opt={}]
* @memberof Main5Base
*/
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0001SF6EditView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
const _this: any = this;
Object.assign(arg,{viewparams:this.viewparams});
this.service.delete(_this.removeAction, JSON.parse(JSON.stringify(this.context)),arg, showResultInfo).then((response: any) => {
if (response) {
const data = response.data;
this.$emit('remove',data);
this.formState.next({ type: 'remove', data: data });
this.data.ismodify = false;
this.$Notice.success({ title: '', desc: (data.srfmajortext ? data.srfmajortext : '') + '&nbsp;' + (this.$t('app.formpage.deletesuccess') as string) });
AppCenterService.notifyMessage({name:"IBIZSample0001",action:'appRefresh',data:data});
resolve(response);
}
}).catch((error: any) => {
const { data: _data } = error;
this.$Notice.error({ title: _data.title, desc: _data.message });
reject(error);
});
});
}
/**
* 工作流启动
*
* @param {*} [data={}]
* @param {*} [localdata={}]
* @returns {Promise<any>}
* @memberof Main5Base
*/
public async wfstart(data: any,localdata?:any): Promise<any> {
return new Promise((resolve: any, reject: any) => {
const _this: any = this;
const formData:any = this.getData();
const copyData:any = Util.deepCopy(formData);
const post: Promise<any> = Object.is(formData.srfuf, '1')?this.service.update(this.updateAction, JSON.parse(JSON.stringify(this.context)),formData, this.showBusyIndicator,true):this.service.add(this.createAction,JSON.parse(JSON.stringify(this.context)),formData, this.showBusyIndicator,true);
post.then((response:any) =>{
const responseData:any = response.data;
let tempResponseData:any = Util.deepCopy(response);
this.service.handleResponse('save', tempResponseData);
const arg:any = tempResponseData.data;
// 保存完成UI处理
this.onFormLoad(arg,'save');
this.$emit('save', arg);
AppCenterService.notifyMessage({name:"IBIZSample0001",action:'appRefresh',data:data});
this.$nextTick(() => {
this.formState.next({ type: 'save', data: arg });
});
// 准备工作流数据,填充未存库数据
Object.assign(arg,copyData);
// 准备提交参数
if(this.viewparams){
let copyViewParams:any = Util.deepCopy(this.viewparams);
if(copyViewParams.w){
delete copyViewParams.w;
}
Object.assign(responseData,copyViewParams);
}
Object.assign(arg,{viewparams:responseData});
// 强制补充srfwfmemo
if(this.srfwfmemo){
Object.assign(arg,{srfwfmemo:this.srfwfmemo});
}
const result: Promise<any> = this.service.wfstart(_this.WFStartAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => {
if (!response || response.status !== 200) {
if(response.data){
this.$Notice.error({ title: '', desc: (this.$t('app.formpage.workflow.starterror') as string) + ', ' + response.data.message });
}
return;
}
this.$Notice.info({ title: '', desc: (this.$t('app.formpage.workflow.startsuccess') as string) });
resolve(response);
}).catch((response: any) => {
if (response && response.status && response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
reject(response);
return;
}
if (!response || !response.status || !response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.sysException') as string) });
reject(response);
return;
}
reject(response);
});
}).catch((response: any) => {
if (response && response.status && response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
reject(response);
return;
}
if (!response || !response.status || !response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.sysException') as string) });
reject(response);
return;
}
reject(response);
})
});
}
/**
* 工作流提交
*
* @param {*} [data={}]
* @param {*} [localdata={}]
* @returns {Promise<any>}
* @memberof Main5Base
*/
public async wfsubmit(data: any,localdata?:any): Promise<any> {
return new Promise((resolve: any, reject: any) => {
const _this: any = this;
const arg: any = data[0];
const copyData:any = Util.deepCopy(arg);
Object.assign(arg,{viewparams:this.viewparams});
if (!arg.ibizsample0001 || Object.is(arg.ibizsample0001, '')) {
return;
}
const post: Promise<any> = Object.is(arg.srfuf, '1')?this.service.update(this.updateAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,true):this.service.add(this.createAction,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,true);
post.then((response:any) =>{
const responseData:any = response.data;
let tempResponseData:any = Util.deepCopy(response);
this.service.handleResponse('save', tempResponseData);
const arg:any = tempResponseData.data;
// 保存完成UI处理
this.onFormLoad(arg,'save');
this.$emit('save', arg);
AppCenterService.notifyMessage({name:"IBIZSample0001",action:'appRefresh',data:data});
this.$nextTick(() => {
this.formState.next({ type: 'save', data: arg });
});
// 准备工作流数据,填充未存库数据
Object.assign(arg,copyData);
// 准备提交参数
if(this.viewparams){
Object.assign(responseData,this.viewparams);
}
Object.assign(arg,{viewparams:responseData});
// 强制补充srfwfmemo
if(this.srfwfmemo){
Object.assign(arg,{srfwfmemo:this.srfwfmemo});
}
const result: Promise<any> = this.service.wfsubmit(_this.WFSubmitAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => {
if (!response || response.status !== 200) {
if(response.data){
this.$Notice.error({ title: '', desc: (this.$t('app.formpage.workflow.submiterror') as string) + ', ' + response.data.message });
}
return;
}
this.onFormLoad(arg,'submit');
this.$store.dispatch('viewaction/datasaved', { viewtag: this.viewtag });
this.$Notice.info({ title: '', desc: (this.$t('app.formpage.workflow.submitsuccess') as string) });
resolve(response);
}).catch((response: any) => {
if (response && response.status && response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
reject(response);
return;
}
if (!response || !response.status || !response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.sysException') as string) });
reject(response);
return;
}
reject(response);
});
}).catch((response: any) => {
if (response && response.status && response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
reject(response);
return;
}
if (!response || !response.status || !response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.sysException') as string) });
reject(response);
return;
}
reject(response);
})
})
}
/**
* 面板行为
*
* @param {string} [action] 调用的实体行为
* @param {string} [emitAction] 抛出行为
* @param {*} [data={}] 传入数据
* @param {boolean} [showloading] 是否显示加载状态
*
* @memberof Main5Base
*/
public panelAction(action:string,emitAction:string,data:any ={},showloading?:boolean):void{
if (!action || (action && Object.is(action, ''))) {
return;
}
const arg: any = { ...data };
const formdata = this.getValues();
Object.assign(arg, formdata);
Object.assign(arg,this.viewparams);
const post: Promise<any> = this.service.frontLogic(action,JSON.parse(JSON.stringify(this.context)),arg, showloading);
post.then((response: any) => {
if (!response.status || response.status !== 200) {
if (response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
}
return;
}
const data = response.data;
this.onFormLoad(data,emitAction);
this.$emit(emitAction, data);
this.$nextTick(() => {
this.formState.next({ type: emitAction, data: data });
});
}).catch((response: any) => {
if (response && response.status && response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
return;
}
if (!response || !response.status || !response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.sysException') as string) });
return;
}
});
}
/**
* 表单项更新
*
* @param {string} mode 界面行为名称
* @param {*} [data={}] 请求数据
* @param {string[]} updateDetails 更新项
* @param {boolean} [showloading] 是否显示加载状态
* @returns {void}
* @memberof Main5Base
*/
public updateFormItems(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void {
if (!mode || (mode && Object.is(mode, ''))) {
return;
}
const arg: any = { ...data };
Object.assign(arg,this.viewparams);
const post: Promise<any> = this.service.frontLogic(mode,JSON.parse(JSON.stringify(this.context)),arg, showloading);
post.then((response: any) => {
if (!response || response.status !== 200) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.formpage.updateerror') as string) });
return;
}
const data = response.data;
const _data: any = {};
updateDetails.forEach((name: string) => {
if (!data.hasOwnProperty(name)) {
return;
}
Object.assign(_data, { [name]: data[name] });
});
this.setFormEnableCond(_data);
this.fillForm(_data,'updateFormItem');
this.formLogic({ name: '', newVal: null, oldVal: null });
this.dataChang.next(JSON.stringify(this.data));
AppCenterService.notifyMessage({name:"IBIZSample0001",action:'appRefresh',data:data});
this.$nextTick(() => {
this.formState.next({ type: 'updateformitem', ufimode: arg.srfufimode, data: _data });
});
}).catch((response: any) => {
if (response && response.status && response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
return;
}
if (!response || !response.status || !response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.sysException') as string) });
return;
}
});
}
/**
* 回车事件
*
* @param {*} $event
* @memberof Main5Base
*/
public onEnter($event: any): void {
}
/**
* 保存并退出
*
* @param {any[]} args
* @memberof Main5Base
*/
public saveAndExit(data:any[]):Promise<any>{
let _this = this;
return new Promise((resolve: any, reject: any) =>{
let arg: any = {};
if(data && data.length > 0){
Object.assign(arg,data[0]);
}
_this.currentAction = "saveAndExit";
_this.save([arg]).then((res) =>{
if(res){
_this.closeView(res.data);
}
resolve(res);
}).catch((error) =>{
reject(error);
})
})
}
/**
* 保存并新建
*
* @param {any[]} args
* @memberof Main5Base
*/
public saveAndNew(data:any[]):Promise<any>{
let _this = this;
return new Promise((resolve: any, reject: any) =>{
let arg: any = {};
if(data && data.length > 0){
Object.assign(arg,data[0]);
}
_this.currentAction = "saveAndNew";
_this.save([arg]).then((res) =>{
_this.ResetData(res);
_this.loadDraft({});
}).catch((error) =>{
reject(error);
})
})
}
/**
* 删除并退出
*
* @param {any[]} args
* @memberof Main5Base
*/
public removeAndExit(data:any[]):Promise<any>{
let _this = this;
return new Promise((resolve: any, reject: any) =>{
let arg: any = {};
if(data && data.length > 0){
Object.assign(arg,data[0]);
}
_this.remove([arg]).then((res) =>{
if(res){
_this.closeView(res.data);
}
resolve(res);
}).catch((error) =>{
reject(error);
})
})
}
/**
* 关系界面数据保存完成
*
* @param {any} $event
* @memberof Main5Base
*/
public drdatasaved($event:any){
let _this = this;
this.drcounter--;
if(this.drcounter === 0){
this.save(this.drsaveopt, undefined, false).then((res) =>{
this.saveState(res);
this.drsaveopt = {};
if(Object.is(_this.currentAction, "saveAndNew")){
_this.ResetData(res);
_this.loadDraft({});
}else if(Object.is(_this.currentAction, "saveAndExit")){
if(res){
_this.closeView(res.data);
}
}
});
}
}
/**
* 新建默认值
* @memberof Main5Base
*/
public createDefault(){
}
/**
* 更新默认值
* @memberof Main5Base
*/
public updateDefault(){
}
}
</script>
<style lang='less'>
@import './main5-form.less';
</style>
\ No newline at end of file
/**
* Main5 部件模型
*
* @export
* @class Main5Model
*/
export default class Main5Model {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Main5Model
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'srfupdatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srforikey',
},
{
name: 'srfkey',
prop: 'ibizsample0001id',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'ibizsample0001name',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'ibizsample0001name',
prop: 'ibizsample0001name',
dataType: 'TEXT',
},
{
name: 'formitem',
dataType:'FORMITEM',
},
{
name: 'formitem1',
dataType:'FORMITEM',
},
{
name: 'formitem2',
dataType:'FORMITEM',
},
{
name: 'formitem3',
dataType:'FORMITEM',
},
{
name: 'formitem4',
dataType:'FORMITEM',
},
{
name: 'formitem5',
dataType:'FORMITEM',
},
{
name: 'formitem6',
dataType:'FORMITEM',
},
{
name: 'formitem7',
dataType:'FORMITEM',
},
{
name: 'formitem8',
dataType:'FORMITEM',
},
{
name: 'formitem9',
dataType:'FORMITEM',
},
{
name: 'formitem10',
dataType:'FORMITEM',
},
{
name: 'createman',
prop: 'createman',
dataType: 'TEXT',
},
{
name: 'createdate',
prop: 'createdate',
dataType: 'DATETIME',
},
{
name: 'updateman',
prop: 'updateman',
dataType: 'TEXT',
},
{
name: 'updatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'ibizsample0001id',
prop: 'ibizsample0001id',
dataType: 'GUID',
},
{
name: 'ibizsample0001',
prop: 'ibizsample0001id',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import IBIZSample0001Service from '@/service/ibizsample0001/ibizsample0001-service';
import Main5Model from './main5-form-model';
/**
* Main5 部件服务对象
*
* @export
* @class Main5Service
*/
export default class Main5Service extends ControlService {
/**
* 示例实体01服务对象
*
* @type {IBIZSample0001Service}
* @memberof Main5Service
*/
public appEntityService: IBIZSample0001Service = new IBIZSample0001Service({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof Main5Service
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of Main5Service.
*
* @param {*} [opts={}]
* @memberof Main5Service
*/
constructor(opts: any = {}) {
super(opts);
this.model = new Main5Model();
}
/**
* 远端数据
*
* @type {*}
* @memberof Main5Service
*/
private remoteCopyData:any = {};
/**
* 处理数据
*
* @private
* @param {Promise<any>} promise
* @returns {Promise<any>}
* @memberof Main5Service
*/
private doItems(promise: Promise<any>, deKeyField: string, deName: string): Promise<any> {
return new Promise((resolve, reject) => {
promise.then((response: any) => {
if (response && response.status === 200) {
const data = response.data;
data.forEach((item:any,index:number) =>{
item[deName] = item[deKeyField];
data[index] = item;
});
resolve(data);
} else {
reject([])
}
}).catch((response: any) => {
reject([])
});
});
}
/**
* 获取跨实体数据集合
*
* @param {string} serviceName 服务名称
* @param {string} interfaceName 接口名称
* @param {*} data
* @param {boolean} [isloading]
* @returns {Promise<any[]>}
* @memberof Main5Service
*/
@Errorlog
public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> {
data.page = data.page ? data.page : 0;
data.size = data.size ? data.size : 1000;
return Promise.reject([])
}
/**
* 启动工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof Main5Service
*/
@Errorlog
public wfstart(action: string,context: any = {},data: any = {}, isloading?: boolean,localdata?:any): Promise<any> {
data = this.handleWFData(data,true);
context = this.handleRequestData(action,context,data).context;
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](context,data, isloading,localdata);
} else {
result = this.appEntityService.WFStart(context,data, isloading,localdata);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 提交工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof Main5Service
*/
@Errorlog
public wfsubmit(action: string,context: any = {}, data: any = {}, isloading?: boolean,localdata?:any): Promise<any> {
data = this.handleWFData(data,true);
context = this.handleRequestData(action,context,data,true).context;
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](context,data, isloading,localdata);
} else {
result = this.appEntityService.WFSubmit(context,data, isloading,localdata);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 添加数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {boolean} [isWorkflow] 是否在工作流中添加数据
* @returns {Promise<any>}
* @memberof Main5Service
*/
@Errorlog
public add(action: string, context: any = {},data: any = {}, isloading?: boolean,isWorkflow?:boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Create(Context,Data, isloading);
}
result.then((response) => {
if(isWorkflow){
resolve(response);
}else{
this.handleResponse(action, response);
resolve(response);
}
}).catch(response => {
reject(response);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Main5Service
*/
@Errorlog
public delete(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Remove(Context,Data, isloading);
}
result.then((response) => {
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {boolean} [isWorkflow] 是否在工作流中修改数据
* @returns {Promise<any>}
* @memberof Main5Service
*/
@Errorlog
public update(action: string, context: any = {},data: any = {}, isloading?: boolean,isWorkflow?:boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Update(Context,Data, isloading);
}
result.then((response) => {
if(isWorkflow){
resolve(response);
}else{
this.handleResponse(action, response);
resolve(response);
}
}).catch(response => {
reject(response);
});
});
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Main5Service
*/
@Errorlog
public get(action: string,context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Get(Context,Data, isloading);
}
result.then((response) => {
this.setRemoteCopyData(response);
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 加载草稿
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Main5Service
*/
@Errorlog
public loadDraft(action: string,context: any = {}, data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
//仿真主键数据
const PrimaryKey = Util.createUUID();
Data.ibizsample0001id = PrimaryKey;
Data.ibizsample0001 = PrimaryKey;
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.GetDraft(Context,Data, isloading);
}
result.then((response) => {
this.setRemoteCopyData(response);
response.data.ibizsample0001id = PrimaryKey;
this.handleResponse(action, response, true);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 前台逻辑
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Main5Service
*/
@Errorlog
public frontLogic(action:string,context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any)=>{
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
return Promise.reject({ status: 500, data: { title: '失败', message: '系统异常' } });
}
result.then((response) => {
this.handleResponse(action, response,true);
resolve(response);
}).catch(response => {
reject(response);
});
})
}
/**
* 处理请求数据
*
* @param action 行为
* @param data 数据
* @memberof Main5Service
*/
public handleRequestData(action: string,context:any, data: any = {},isMerge:boolean = false){
let mode: any = this.getMode();
if (!mode && mode.getDataItems instanceof Function) {
return data;
}
let formItemItems: any[] = mode.getDataItems();
let requestData:any = {};
if(isMerge && (data && data.viewparams)){
Object.assign(requestData,data.viewparams);
}
formItemItems.forEach((item:any) =>{
if(item && item.dataType && Object.is(item.dataType,'FONTKEY')){
if(item && item.prop){
requestData[item.prop] = context[item.name];
}
}else{
if(item && item.prop){
requestData[item.prop] = data[item.name];
}else{
if(item.dataType && Object.is(item.dataType,"FORMPART")){
Object.assign(requestData,data[item.name]);
}
}
}
});
let tempContext:any = JSON.parse(JSON.stringify(context));
if(tempContext && tempContext.srfsessionid){
tempContext.srfsessionkey = tempContext.srfsessionid;
delete tempContext.srfsessionid;
}
return {context:tempContext,data:requestData};
}
/**
* 通过属性名称获取表单项名称
*
* @param name 实体属性名称
* @memberof Main5Service
*/
public getItemNameByDeName(name:string) :string{
let itemName = name;
let mode: any = this.getMode();
if (!mode && mode.getDataItems instanceof Function) {
return name;
}
let formItemItems: any[] = mode.getDataItems();
formItemItems.forEach((item:any)=>{
if(item.prop === name){
itemName = item.name;
}
});
return itemName.trim();
}
/**
* 重写处理返回数据
*
* @param {string} action
* @param {*} response
* @memberof Main5Service
*/
public handleResponseData(action: string, data: any = {},isCreate?:boolean,codelistArray?:any){
let model: any = this.getMode();
if (!model && model.getDataItems instanceof Function) {
return data;
}
let item: any = {};
let dataItems: any[] = model.getDataItems();
dataItems.forEach(dataitem => {
let val = data.hasOwnProperty(dataitem.prop) ? data[dataitem.prop] : null;
if (val === null) {
val = data.hasOwnProperty(dataitem.name) ? data[dataitem.name] : null;
}
if((isCreate === undefined || isCreate === null ) && Object.is(dataitem.dataType, 'GUID') && Object.is(dataitem.name, 'srfkey') && (val && !Object.is(val, ''))){
isCreate = true;
}
item[dataitem.name] = val;
// 转化代码表
if(codelistArray && dataitem.codelist){
if(codelistArray.get(dataitem.codelist.tag) && codelistArray.get(dataitem.codelist.tag).get(val)){
item[dataitem.name] = codelistArray.get(dataitem.codelist.tag).get(val);
}
}
});
item.srfuf = data.srfuf ? data.srfuf : (isCreate ? "0" : "1");
item = Object.assign(data,item);
return item;
}
/**
* 设置远端数据
*
* @param result 远端请求结果
* @memberof Main5Service
*/
public setRemoteCopyData(result:any){
if (result && result.status === 200) {
this.remoteCopyData = Util.deepCopy(result.data);
}
}
/**
* 获取远端数据
*
* @memberof Main5Service
*/
public getRemoteCopyData(){
return this.remoteCopyData;
}
}
\ No newline at end of file
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-form {
overflow: auto;
> .ivu-row {
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
.app-form {
>.ivu-row:nth-child(2) {
>.ivu-col:nth-child(1) {
>.ivu-row.app-form-group.app-group-hiddden-caption:nth-child(1) {
margin-top: 12px;
}
}
}
}
.app-form{
// 表单行间距
.app-form-item{
margin-bottom: 20px;
}
// 表单按钮margin
.app-form-button{
margin:0 6px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import Main5Base from './main5-form-base.vue';
@Component({
components: {
}
})
export default class Main5 extends Main5Base {
}
</script>
\ No newline at end of file
......@@ -294,7 +294,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":"menuitem4" , "name":"部件" , "items":[{ "id":"menuitem12" , "name":"编辑表单" , "items":[{ "id":"menuitem47" , "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":"menuitem16" , "name":"搜索表单" },{ "id":"menuitem13" , "name":"表格" , "items":[{ "id":"menuitem57" , "name":"禁用排序" },{ "id":"menuitem59" , "name":"行操作" },{ "id":"menuitem58" , "name":"行编辑" }]},{ "id":"menuitem14" , "name":"树视图" , "items":[{ "id":"menuitem60" , "name":"静态节点" },{ "id":"menuitem61" , "name":"动态节点(代码表)" },{ "id":"menuitem62" , "name":"动态节点(实体)" },{ "id":"menuitem63" , "name":"右键操作" },{ "id":"menuitem64" , "name":"动态参数过滤" }]},{ "id":"menuitem37" , "name":"图表" , "items":[{ "id":"menuitem38" , "name":"柱状图" },{ "id":"menuitem39" , "name":"折线图" },{ "id":"menuitem40" , "name":"饼图" },{ "id":"menuitem41" , "name":"区域图" },{ "id":"menuitem42" , "name":"雷达图" },{ "id":"menuitem43" , "name":"仪表盘" },{ "id":"menuitem44" , "name":"K线图" }]},{ "id":"menuitem17" , "name":"向导" },{ "id":"menuitem18" , "name":"界面行为" , "items":[{ "id":"menuitem65" , "name":"前端界面行为" },{ "id":"menuitem66" , "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":"menuitem69" , "name":"工作流" },{ "id":"menuitem2" , "name":"更多" , "items":[{ "id":"menuitem46" , "name":"数据导出导入" },{ "id":"menuitem45" , "name":"数据打印" },{ "id":"menuitem67" , "name":"索引实体" },{ "id":"menuitem68" , "name":"继承实体" },{ "id":"menuitem70" , "name":"主状态" },{ "id":"menuitem71" , "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":"menuitem47" , "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":"menuitem16" , "name":"搜索表单" },{ "id":"menuitem13" , "name":"表格" , "items":[{ "id":"menuitem57" , "name":"禁用排序" },{ "id":"menuitem59" , "name":"行操作" },{ "id":"menuitem58" , "name":"行编辑" }]},{ "id":"menuitem14" , "name":"树视图" , "items":[{ "id":"menuitem60" , "name":"静态节点" },{ "id":"menuitem61" , "name":"动态节点(代码表)" },{ "id":"menuitem62" , "name":"动态节点(实体)" },{ "id":"menuitem63" , "name":"右键操作" },{ "id":"menuitem64" , "name":"动态参数过滤" }]},{ "id":"menuitem37" , "name":"图表" , "items":[{ "id":"menuitem38" , "name":"柱状图" },{ "id":"menuitem39" , "name":"折线图" },{ "id":"menuitem40" , "name":"饼图" },{ "id":"menuitem41" , "name":"区域图" },{ "id":"menuitem42" , "name":"雷达图" },{ "id":"menuitem43" , "name":"仪表盘" },{ "id":"menuitem44" , "name":"K线图" }]},{ "id":"menuitem17" , "name":"向导" },{ "id":"menuitem18" , "name":"界面行为" , "items":[{ "id":"menuitem65" , "name":"前端界面行为" },{ "id":"menuitem66" , "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":"menuitem69" , "name":"工作流" },{ "id":"menuitem2" , "name":"更多" , "items":[{ "id":"menuitem46" , "name":"数据导出导入" },{ "id":"menuitem45" , "name":"数据打印" },{ "id":"menuitem67" , "name":"索引实体" },{ "id":"menuitem68" , "name":"继承实体" },{ "id":"menuitem70" , "name":"主状态" },{ "id":"menuitem71" , "name":"多表单" }]}] }]
}
]
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册