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

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

上级 3f1093bf
......@@ -51,7 +51,7 @@
<layout class="edit-view2">
<sider class="edit-view2-drbar" :width="240">
<div :class="{'edit-view2-drbar__caption': true, 'is-active': !(drItem && drItem.id && drItem.id !== 'form')}" @click="drBarChange">
<span>订单</span>
<span>测试标题</span>
</div>
<view_drbar
:viewState="viewState"
......
......@@ -51,7 +51,7 @@
<div class="content-container">
<div class="edit-view3">
<div class="edit-view3-drheader">
<span :class="{ 'dr-tab-item': true, 'is-active': drItem && drItem.id === 'form' }" @click="handleDrTabChange">订单</span>
<span :class="{ 'dr-tab-item': true, 'is-active': drItem && drItem.id === 'form' }" @click="handleDrTabChange">测试标题</span>
<view_drtab
:viewState="viewState"
name='drtab'
......
......@@ -49,7 +49,7 @@
<layout class="edit-view2">
<sider class="edit-view2-drbar" :width="240">
<div :class="{'edit-view2-drbar__caption': true, 'is-active': !(drItem && drItem.id && drItem.id !== 'form')}" @click="drBarChange">
<span>订单</span>
<span>测试标题</span>
</div>
<view_drbar
:viewState="viewState"
......
......@@ -49,7 +49,7 @@
<layout class="edit-view2">
<sider class="edit-view2-drbar" :width="240">
<div :class="{'edit-view2-drbar__caption': true, 'is-active': !(drItem && drItem.id && drItem.id !== 'form')}" @click="drBarChange">
<span>订单</span>
<span>测试标题</span>
</div>
<view_drbar
:viewState="viewState"
......
......@@ -49,7 +49,7 @@
<layout class="edit-view2">
<sider class="edit-view2-drbar" :width="240">
<div :class="{'edit-view2-drbar__caption': true, 'is-active': !(drItem && drItem.id && drItem.id !== 'form')}" @click="drBarChange">
<span>订单</span>
<span>测试标题</span>
</div>
<view_drbar
:viewState="viewState"
......
<template>
<div class='portlet db-rawitem1 redToolBar' :style="{}">
<p class='portlet-title'>
<span>
直接内容测试
</span>
</p>
<el-divider class="divider"></el-divider>
<div class="portlet-with-title">
<app-rawitem
:viewparams="viewparams"
:context="context"
contentStyle="redToolBar"
sizeStyle=""
contentType="RAW"
:htmlContent='``'
>
21313132测试
</app-rawitem>
</div>
</div>
</template>
// 基于 @CONTROL/门户部件/CONTROL-BASE.vue.ftl 生成
<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 Db_rawitem1Service from './db-rawitem1-portlet-service';
import UIService from '@/uiservice/ui-service';
import { Environment } from '@/environments/environment';
@Component({
components: {
}
})
export default class Db_rawitem1Base extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof Db_rawitem1Base
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Db_rawitem1Base
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof Db_rawitem1Base
*/
@Prop() public context!: any;
/**
* 视图参数
*
* @type {*}
* @memberof Db_rawitem1Base
*/
@Prop() public viewparams!: any;
/**
* 视图操作参数
*
* @type {*}
* @memberof Db_rawitem1Base
*/
@Prop() public viewCtx!: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Db_rawitem1Base
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof Db_rawitem1Base
*/
public getControlType(): string {
return 'PORTLET'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Db_rawitem1Base
*/
public counterServiceArray:Array<any> = [];
/**
* 建构部件服务对象
*
* @type {Db_rawitem1Service}
* @memberof Db_rawitem1Base
*/
public service: Db_rawitem1Service = new Db_rawitem1Service({ $store: this.$store });
/**
* 关闭视图
*
* @param {any} args
* @memberof Db_rawitem1Base
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof Db_rawitem1Base
*/
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 {number}
* @memberof Db_rawitem1Base
*/
@Prop() public height?: number;
/**
* 宽度
*
* @type {number}
* @memberof Db_rawitem1Base
*/
@Prop() public width?: number;
/**
* 门户部件类型
*
* @type {string}
* @memberof Db_rawitem1Base
*/
public portletType: string = 'rawitem';
/**
* 部件类型
*
* @type {string}
* @memberof Db_rawitem1Base
*/
public controlType: string = 'PORTLET';
/**
* 视图默认使用
*
* @type {string}
* @memberof Db_rawitem1Base
*/
@Inject({from:'navModel',default: 'tab'})
public navModel!:string;
/**
* 界面行为模型数据
*
* @memberof Db_rawitem1Base
*/
public uiactionModel: any = {
}
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof Db_rawitem1Base
*/
@Prop({default: false})public isAdaptiveSize!: boolean;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Db_rawitem1Base
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Db_rawitem1Base
*/
public getData(): any {
return {};
}
/**
* 获取高度
*
* @returns {any[]}
* @memberof Db_rawitem1Base
*/
get getHeight(){
if(!this.$util.isEmpty(this.height) && !this.$util.isNumberNaN(this.height)){
if(this.height == 0){
return 'auto';
}else{
return this.height+'px';
}
}else{
return 'auto';
}
}
/**
* 刷新
*
* @memberof Db_rawitem1Base
*/
public refresh(args?: any) {
}
/**
* vue 生命周期
*
* @memberof Db_rawitem1Base
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof Db_rawitem1Base
*/
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if(Object.is(tag, "all-portlet") && Object.is(action,'loadmodel')){
this.calcUIActionAuthState(data);
}
if (!Object.is(tag, this.name)) {
return;
}
const refs: any = this.$refs;
Object.keys(refs).forEach((_name: string) => {
this.viewState.next({ tag: _name, action: action, data: data });
});
});
}
}
/**
* vue 生命周期
*
* @memberof Db_rawitem1Base
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Db_rawitem1Base
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
/**
* 计算界面行为权限
*
* @memberof Db_rawitem1Base
*/
public calcUIActionAuthState(data:any = {}) {
// 如果是操作栏,不计算权限
if(this.portletType && Object.is('actionbar', this.portletType)) {
return;
}
let _this: any = this;
let uiservice: any = _this.appUIService ? _this.appUIService : new UIService();
if(_this.uiactionModel){
ViewTool.calcActionItemAuthState(data,_this.uiactionModel,uiservice);
}
}
}
</script>
<style lang='less'>
@import './db-rawitem1-portlet.less';
</style>
// 基于 @CONTROL/门户部件/MODEL.ts.ftl 生成
/**
* Db_rawitem1 部件模型
*
* @export
* @class Db_rawitem1Model
*/
export default class Db_rawitem1Model {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Db_rawitem1Model
*/
public getDataItems(): any[] {
return [
]
}
}
// 基于 @CONTROL/门户部件/SERVICE.ts.ftl 生成
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Db_rawitem1 部件服务对象
*
* @export
* @class Db_rawitem1Service
*/
export default class Db_rawitem1Service extends ControlService {
}
// 基于 @CONTROL/门户部件/CONTROL.less.ftl 生成
// this is less
.portlet{
height: 100%;
width: 100%;
> .portlet-title{
padding: 14px 16px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 52px;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
justify-content: space-between;
width:100%;
line-height: 22px;
font-size: 16px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #304265;
font-weight: 600;
i{
margin-right: 5px;
}
>.portlet-action{
margin-left: 12px;
font-size: 14px;
>a{
padding: 6px;
}
}
}
> .divider {
margin: 0px 0px 11px 0px;
}
> .portlet-with-title{
width:100%;
height:calc(100% - 58px);
overflow:auto;
padding:0px 12px;
}
> .portlet-without-title{
width:100%;
height:100%;
overflow:auto;
padding:0px 12px;
}
.app-charts{
height: 100%!important;
}
.toolbar-container {
button{
margin: 6px 0px 4px 16px;
}
.ivu-badge{
.ivu-badge-count{
top: 0;
}
}
}
// 日历视图样式特殊处理(防止刷新时日历大小发生变化并且门户部件要定高)
.decalendarview {
height: 100%;
>.view-card {
height: 100%;
}
}
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import Db_rawitem1Base from './db-rawitem1-portlet-base.vue';
// 基于 @CONTROL/门户部件/CONTROL.vue.ftl 生成
@Component({
components: {
}
})
export default class Db_rawitem1 extends Db_rawitem1Base {
}
</script>
......@@ -1257,7 +1257,7 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 可定制应用看板
* 应用看板测试
*
* @param {*} [item={}]
* @memberof MainMenu
......
......@@ -1344,7 +1344,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/
public async load(opt: any = {}): Promise<any> {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsrWizardView_plugin' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1395,7 +1395,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/
public async loadDraft(opt: any = {}): Promise<any> {
if (!this.loaddraftAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsrWizardView_plugin' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1465,7 +1465,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
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: 'IBIZBOOKUsrWizardView_plugin' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1573,7 +1573,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
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: 'IBIZBOOKUsrWizardView_plugin' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg, { viewparams: this.viewparams });
......@@ -1781,7 +1781,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
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: 'IBIZBOOKUsrWizardView_plugin' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
......@@ -1447,7 +1447,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/
public async load(opt: any = {}): Promise<any> {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsrWizardView_plugin' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1499,7 +1499,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/
public async loadDraft(opt: any = {}): Promise<any> {
if (!this.loaddraftAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsrWizardView_plugin' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1569,7 +1569,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
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: 'IBIZBOOKUsrWizardView_plugin' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1677,7 +1677,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
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: 'IBIZBOOKUsrWizardView_plugin' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg, { viewparams: this.viewparams });
......@@ -1885,7 +1885,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
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: 'IBIZBOOKUsrWizardView_plugin' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
......@@ -369,7 +369,7 @@ export default class GuideBase extends Vue implements ControlInterface {
* @type {Boolean}
* @memberof GuideBase
*/
public isShowStepBar: Boolean = true ;
public isShowStepBar: Boolean = false ;
/**
* 获取多项数据
......
......@@ -1683,7 +1683,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public async load(opt: any = {}): Promise<any> {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr6EditView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9EditView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1735,7 +1735,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public async loadDraft(opt: any = {}): Promise<any> {
if (!this.loaddraftAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr6EditView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9EditView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1806,7 +1806,7 @@ export default class MainBase extends Vue implements ControlInterface {
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: 'IBIZBOOKUsr6EditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9EditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1914,7 +1914,7 @@ export default class MainBase extends Vue implements ControlInterface {
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: 'IBIZBOOKUsr6EditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9EditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg, { viewparams: this.viewparams });
......@@ -2128,7 +2128,7 @@ export default class MainBase extends Vue implements ControlInterface {
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: 'IBIZBOOKUsr6EditView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9EditView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
......@@ -670,7 +670,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -706,7 +706,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public async loadDraft(opt: any = {},mode?:string): Promise<any> {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -964,7 +964,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.fetchAction) {
this.$Notice.error({
title: this.$t("app.commonWords.wrong") as string,
desc: "IBIZOrderDetailSGridView9" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
desc: "IBIZOrderDetailSGridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
});
return;
}
......@@ -1123,7 +1123,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.removeAction) {
this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailSGridView9' + (this.$t('app.gridpage.notConfig.removeAction') as string)
desc: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.removeAction') as string)
});
return;
}
......@@ -1237,7 +1237,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public addBatch(arg: any = {}): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView9'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(!arg){
......@@ -2132,7 +2132,7 @@ export default class MainBase extends Vue implements ControlInterface {
try {
if (Object.is(item.rowDataState, 'create')) {
if (!this.createAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView9'+(this.$t('app.gridpage.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
} else {
Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context);
......@@ -2141,7 +2141,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}else if (Object.is(item.rowDataState, 'update')){
if (!this.updateAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView9'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
} else {
Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context);
......@@ -2217,7 +2217,7 @@ export default class MainBase extends Vue implements ControlInterface {
if(!this.loaddraftAction){
this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailSGridView9' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
desc: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
});
return;
}
......
<template>
<app-list-itemlayoutpanel :inputData="inputData" :actionModel="actionModel" @uiAction="(inputData, action, event)=>{this.$emit('uiAction',inputData, action, event)}"></app-list-itemlayoutpanel>
<div class="app-dr-tab">
<div
v-for="(item, index) in items"
:class="{
'app-dr-tab-item': true,
'dr-tab-item': true,
'is-disabled': item.disabled,
'is-active': selection.id === item.id
}"
@click="handleDrTabChange(item)">
<span class="text">{{ item.text }}</span>
</div>
</div>
</template>
// 基于 @CONTROL/数据关系分页部件/CONTROL-BASE.vue.ftl 生成
<script lang='tsx'>
......@@ -198,7 +210,6 @@ export default class DefaultBase extends Vue implements ControlInterface {
}
/**
......
......@@ -1263,11 +1263,13 @@
"codeName" : "Default",
"controlType" : "DRBAR",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "LOAD", "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrbars/Default",
"name" : "drbar",
......
......@@ -1263,11 +1263,13 @@
"codeName" : "Default",
"controlType" : "DRBAR",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "LOAD", "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrbars/Default",
"name" : "drbar",
......
......@@ -159,11 +159,13 @@
"codeName" : "Default",
"controlType" : "DRTAB",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrtabs/Default",
"name" : "drtab",
......@@ -273,10 +275,6 @@
"cssClass" : "fa fa-bomb"
}
} ],
"getPSSysPFPlugin" : {
"pluginType" : "CUSTOM",
"pluginCode" : "PFPlugin12"
},
"rTMOSFilePath" : "pssysapps/Web/psappdeviews/IBIZOrderSEditView3/psappviewctrls/drtab",
"uniqueTag" : "IBIZOrderSEditView3__drtab",
"modelid" : "1b5557a48588cf3b6a07b7bd6acedd53",
......
......@@ -159,11 +159,13 @@
"codeName" : "Default",
"controlType" : "DRTAB",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"height" : 40.0,
"hookEventNames" : [ "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrtabs/Default",
......
......@@ -159,11 +159,13 @@
"codeName" : "Default",
"controlType" : "DRTAB",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrtabs/Default",
"name" : "drtab",
......@@ -273,10 +275,6 @@
"cssClass" : "fa fa-bomb"
}
} ],
"getPSSysPFPlugin" : {
"pluginType" : "CUSTOM",
"pluginCode" : "PFPlugin12"
},
"rTMOSFilePath" : "pssysapps/Web/psappdeviews/IBIZOrderSEditView4/psappviewctrls/drtab",
"uniqueTag" : "IBIZOrderSEditView4__drtab",
"modelid" : "1b5557a48588cf3b6a07b7bd6acedd53",
......
......@@ -1263,11 +1263,13 @@
"codeName" : "Default",
"controlType" : "DRTAB",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrtabs/Default",
"name" : "drtab",
......
......@@ -1010,11 +1010,13 @@
"codeName" : "Default",
"controlType" : "DRTAB",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrtabs/Default",
"name" : "drtab",
"getPSAppCounterRef" : {
......
......@@ -1248,11 +1248,13 @@
"codeName" : "Default",
"controlType" : "DRBAR",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "LOAD", "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrbars/Default",
"name" : "drbar",
......
......@@ -1213,11 +1213,13 @@
"codeName" : "Default",
"controlType" : "DRBAR",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "LOAD", "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrbars/Default",
"name" : "drbar",
......
......@@ -1248,11 +1248,13 @@
"codeName" : "Default",
"controlType" : "DRBAR",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "LOAD", "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrbars/Default",
"name" : "drbar",
......
......@@ -1278,11 +1278,13 @@
"codeName" : "Default",
"controlType" : "DRBAR",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "LOAD", "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrbars/Default",
"name" : "drbar",
......
......@@ -285,6 +285,11 @@
"portletType" : "APPMENU",
"rTMOSFilePath" : "pssysapps/Web/psappportalviews/AppPortalView2/psappviewctrls/db_appmenu1",
"title" : "图标菜单",
"getTitlePSLanguageRes" : {
"lanResTag" : "MENUITEM.CAPTION.VIEW",
"mOSFilePath" : "pslanguageres/Auto70",
"rTMOSFilePath" : "pslanguageres/Auto70"
},
"showTitleBar" : true,
"modelid" : "446325986d8400c859090c8dba30546f",
"modeltype" : "PSSYSDBPART"
......
......@@ -1015,11 +1015,13 @@
"codeName" : "Default",
"controlType" : "DRBAR",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "LOAD", "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrbars/Default",
"name" : "drbar",
......@@ -1360,11 +1362,13 @@
"codeName" : "Default",
"controlType" : "DRTAB",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrtabs/Default",
"name" : "drtab",
"getPSAppCounterRef" : {
......@@ -1511,11 +1515,13 @@
"codeName" : "Default",
"controlType" : "DRBAR",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "LOAD", "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrbars/Default",
"name" : "drbar",
......@@ -1650,11 +1656,13 @@
"codeName" : "Default",
"controlType" : "DRTAB",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrtabs/Default",
"name" : "drtab",
......@@ -1764,10 +1772,6 @@
"cssClass" : "fa fa-bomb"
}
} ],
"getPSSysPFPlugin" : {
"pluginType" : "CUSTOM",
"pluginCode" : "PFPlugin12"
},
"rTMOSFilePath" : "pssysapps/Web/psappdeviews/IBIZOrderSEditView4/psappviewctrls/drtab",
"uniqueTag" : "IBIZOrderSEditView4__drtab",
"modelid" : "1b5557a48588cf3b6a07b7bd6acedd53",
......@@ -1813,11 +1817,13 @@
"codeName" : "Default",
"controlType" : "DRBAR",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "LOAD", "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrbars/Default",
"name" : "drbar",
......@@ -1952,11 +1958,13 @@
"codeName" : "Default",
"controlType" : "DRTAB",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"height" : 40.0,
"hookEventNames" : [ "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrtabs/Default",
......@@ -2217,11 +2225,13 @@
"codeName" : "Default",
"controlType" : "DRTAB",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrtabs/Default",
"name" : "drtab",
......@@ -2339,11 +2349,13 @@
"codeName" : "Default",
"controlType" : "DRTAB",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrtabs/Default",
"name" : "drtab",
......@@ -2453,10 +2465,6 @@
"cssClass" : "fa fa-bomb"
}
} ],
"getPSSysPFPlugin" : {
"pluginType" : "CUSTOM",
"pluginCode" : "PFPlugin12"
},
"rTMOSFilePath" : "pssysapps/Web/psappdeviews/IBIZOrderSEditView3/psappviewctrls/drtab",
"uniqueTag" : "IBIZOrderSEditView3__drtab",
"modelid" : "1b5557a48588cf3b6a07b7bd6acedd53",
......@@ -2560,11 +2568,13 @@
"codeName" : "Default",
"controlType" : "DRBAR",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "LOAD", "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrbars/Default",
"name" : "drbar",
......@@ -2699,11 +2709,13 @@
"codeName" : "Default",
"controlType" : "DRBAR",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "LOAD", "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrbars/Default",
"name" : "drbar",
......@@ -2838,11 +2850,13 @@
"codeName" : "Default",
"controlType" : "DRBAR",
"getEditItemCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.IBIZORDER",
"mOSFilePath" : "pslanguageres/Auto1479",
"rTMOSFilePath" : "pslanguageres/Auto1479"
"lanResTag" : "OTHER.TEST"
},
"editItemCaption" : "测试标题",
"getEditItemPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
},
"editItemCaption" : "订单",
"hookEventNames" : [ "LOAD", "SELECTIONCHANGE" ],
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDER/psdedrbars/Default",
"name" : "drbar",
......
......@@ -5203,7 +5203,7 @@
"appFuncType" : "APPVIEW",
"codeName" : "AppFunc82",
"mOSFilePath" : "pssysapps/Web/psappfuncs/AppFunc82",
"name" : "可定制应用看板",
"name" : "应用看板测试",
"openMode" : "INDEXVIEWTAB",
"getPSAppView" : {
"modelref" : true,
......@@ -5695,17 +5695,6 @@
"templCode" : "<AppViewLayout :class=\"classNames\">\r\n <template #viewHeaderLeft>\r\n <div v-if=\"model.showCaption && !noViewCaption\" class=\"view-header__left__caption\">\r\n <AppCaptionBar :caption=\"model.caption\" :title=\"model.title\" :capPSLanguageRes=\"model.capPSLanguageRes\" :titlePSLanguageRes=\"model.titlePSLanguageRes\"></AppCaptionBar>\r\n </div>\r\n </template>\r\n <template #viewHeaderRight>\r\n <div class=\"view-header__right__quicksearch\" v-show=\"!store.expandSearchForm\">\r\n <AppQuickSearch @search=\"(searchValue:string) => handleQuickSearch(controller, searchValue)\" />\r\n </div>\r\n <div class=\"view-header__right__toolbar\">\r\n <AppToolbar\r\n name=\"toolbar\"\r\n mode=\"listViewStripe\"\r\n :items=\"store.toolbarItems\"\r\n :loading=\"store.loadingHelper.isLoading\"\r\n @item-click=\"(name: string, event: MouseEvent, logic: any) => { handleToolbarItemClick(controller, name, event, logic) }\">\r\n </AppToolbar>\r\n </div>\r\n </template>\r\n <template #viewContentTop>\r\n </template>\r\n <template #default>\r\n <LnternalFuncListList\r\n :rowActiveMode='model.rowActiveMode'\r\n :actions=\"{\r\n loadDraftAction: 'GetDraft',\r\n createAction: 'Create',\r\n fetchAction: 'FetchDefault',\r\n removeAction: 'Remove',\r\n updateAction: 'Update'\r\n }\"\r\n :openView=\"store.openView\"\r\n :newView=\"store.newView\"\r\n name=\"list\"\r\n :context=\"store.context\"\r\n :viewParams=\"store.viewParams\"\r\n :closeView=\"store.closeView\"\r\n :pLoadingHelper=\"store.loadingHelper\"\r\n :pViewCtx=\"store.viewCtx\"\r\n @ctrl-init=\"(name:string, ability:any) => { handleCtrlInit(controller, name, ability) }\"\r\n @ctrl-action=\"(name:string, action:any, data:any) => { handleCtrlAction(controller, name, action, data) }\"\r\n @ctrl-destroy=\"(name:string, data:any) => { handleCtrlDestroy(controller, name, data) }\"></LnternalFuncListList>\r\n </template>\r\n </AppViewLayout>",
"templCode2" : "import { AppViewLayout } from \"@components/layout/view-layout\";\r\nimport { AppToolbar } from '@components/widgets/toolbar';\r\nimport QUICKSEARCHFORMSearchForm from '@widgets/ibizbook/quicksearchform-searchform/quicksearchform-searchform.vue';\r\nimport LnternalFuncListList from '@widgets/ibizbook/lnternal-func-list-list/lnternal-func-list-list.vue';\r\nimport {\r\n useNavParamsBind,\r\n useEventBind,\r\n getViewClassNames,\r\n handleQuickSearch,\r\n handleToolbarItemClick,\r\n handleCtrlAction,\r\n handleCtrlInit,\r\n handleCtrlDestroy,\r\n} from \"@/hooks/use-view\";\r\nimport { ListViewActionType, ListViewController, IListViewAbility, IListViewController, IListViewControllerParams, IListViewStore, IParam, IContext, ILoadingHelper, LoadingHelper, IEvent } from \"@/core\";\r\ninterface Props {\r\n name?: string,\r\n noViewCaption?: boolean,\r\n openType?: 'ROUTE' | 'EMBED' | 'MODAL',\r\n context?: IContext,\r\n viewParams?: IParam,\r\n pLoadingHelper?: ILoadingHelper,\r\n isLoadDefault?: boolean,\r\n controller: IListViewController<IListViewStore, IListViewAbility>\r\n}\r\n\r\nconst props = withDefaults(defineProps<Props>(), {\r\n noViewCaption: false,\r\n openType: 'ROUTE',\r\n isLoadDefault: true,\r\n});\r\nconst model: IParam = props.controller.getModel();\r\nconst store: IListViewStore = props.controller.getStore();\r\nconst classNames = computed(() => {\r\n \tconst classNames = getViewClassNames(model, props);\r\n Object.assign(classNames, {\"list-view-stripe\": true});\r\n return classNames;\r\n});",
"templCode3" : ".list-view-stripe {\r\n .ant-list-items {\r\n .ant-list-item:nth-child(even) {\r\n background-color: #fafafa;\r\n }\r\n }\r\n}"
}, {
"name" : "列表面板自定义插件",
"getPSSysPFPlugin" : {
"pluginType" : "CUSTOM",
"pluginCode" : "PFPlugin12"
},
"pluginCode" : "PFPlugin12",
"pluginType" : "CUSTOM",
"refMode" : "CONTROL",
"refTag" : "DRTAB",
"templCode" : "<app-list-itemlayoutpanel :inputData=\"inputData\" :actionModel=\"actionModel\" @uiAction=\"(inputData, action, event)=>{this.$emit('uiAction',inputData, action, event)}\"></app-list-itemlayoutpanel>"
}, {
"name" : "列表面板自定义插件",
"getPSSysPFPlugin" : {
......@@ -11432,6 +11421,11 @@
"portletType" : "APPMENU",
"rTMOSFilePath" : "pssysapps/Web/psappportalviews/AppPortalView2/psappviewctrls/db_appmenu1",
"title" : "图标菜单",
"getTitlePSLanguageRes" : {
"lanResTag" : "MENUITEM.CAPTION.VIEW",
"mOSFilePath" : "pslanguageres/Auto70",
"rTMOSFilePath" : "pslanguageres/Auto70"
},
"showTitleBar" : true,
"modelid" : "446325986d8400c859090c8dba30546f",
"modeltype" : "PSSYSDBPART"
......@@ -25,17 +25,6 @@
"templCode" : "<AppViewLayout :class=\"classNames\">\r\n <template #viewHeaderLeft>\r\n <div v-if=\"model.showCaption && !noViewCaption\" class=\"view-header__left__caption\">\r\n <AppCaptionBar :caption=\"model.caption\" :title=\"model.title\" :capPSLanguageRes=\"model.capPSLanguageRes\" :titlePSLanguageRes=\"model.titlePSLanguageRes\"></AppCaptionBar>\r\n </div>\r\n </template>\r\n <template #viewHeaderRight>\r\n <div class=\"view-header__right__quicksearch\" v-show=\"!store.expandSearchForm\">\r\n <AppQuickSearch @search=\"(searchValue:string) => handleQuickSearch(controller, searchValue)\" />\r\n </div>\r\n <div class=\"view-header__right__toolbar\">\r\n <AppToolbar\r\n name=\"toolbar\"\r\n mode=\"listViewStripe\"\r\n :items=\"store.toolbarItems\"\r\n :loading=\"store.loadingHelper.isLoading\"\r\n @item-click=\"(name: string, event: MouseEvent, logic: any) => { handleToolbarItemClick(controller, name, event, logic) }\">\r\n </AppToolbar>\r\n </div>\r\n </template>\r\n <template #viewContentTop>\r\n </template>\r\n <template #default>\r\n <LnternalFuncListList\r\n :rowActiveMode='model.rowActiveMode'\r\n :actions=\"{\r\n loadDraftAction: 'GetDraft',\r\n createAction: 'Create',\r\n fetchAction: 'FetchDefault',\r\n removeAction: 'Remove',\r\n updateAction: 'Update'\r\n }\"\r\n :openView=\"store.openView\"\r\n :newView=\"store.newView\"\r\n name=\"list\"\r\n :context=\"store.context\"\r\n :viewParams=\"store.viewParams\"\r\n :closeView=\"store.closeView\"\r\n :pLoadingHelper=\"store.loadingHelper\"\r\n :pViewCtx=\"store.viewCtx\"\r\n @ctrl-init=\"(name:string, ability:any) => { handleCtrlInit(controller, name, ability) }\"\r\n @ctrl-action=\"(name:string, action:any, data:any) => { handleCtrlAction(controller, name, action, data) }\"\r\n @ctrl-destroy=\"(name:string, data:any) => { handleCtrlDestroy(controller, name, data) }\"></LnternalFuncListList>\r\n </template>\r\n </AppViewLayout>",
"templCode2" : "import { AppViewLayout } from \"@components/layout/view-layout\";\r\nimport { AppToolbar } from '@components/widgets/toolbar';\r\nimport QUICKSEARCHFORMSearchForm from '@widgets/ibizbook/quicksearchform-searchform/quicksearchform-searchform.vue';\r\nimport LnternalFuncListList from '@widgets/ibizbook/lnternal-func-list-list/lnternal-func-list-list.vue';\r\nimport {\r\n useNavParamsBind,\r\n useEventBind,\r\n getViewClassNames,\r\n handleQuickSearch,\r\n handleToolbarItemClick,\r\n handleCtrlAction,\r\n handleCtrlInit,\r\n handleCtrlDestroy,\r\n} from \"@/hooks/use-view\";\r\nimport { ListViewActionType, ListViewController, IListViewAbility, IListViewController, IListViewControllerParams, IListViewStore, IParam, IContext, ILoadingHelper, LoadingHelper, IEvent } from \"@/core\";\r\ninterface Props {\r\n name?: string,\r\n noViewCaption?: boolean,\r\n openType?: 'ROUTE' | 'EMBED' | 'MODAL',\r\n context?: IContext,\r\n viewParams?: IParam,\r\n pLoadingHelper?: ILoadingHelper,\r\n isLoadDefault?: boolean,\r\n controller: IListViewController<IListViewStore, IListViewAbility>\r\n}\r\n\r\nconst props = withDefaults(defineProps<Props>(), {\r\n noViewCaption: false,\r\n openType: 'ROUTE',\r\n isLoadDefault: true,\r\n});\r\nconst model: IParam = props.controller.getModel();\r\nconst store: IListViewStore = props.controller.getStore();\r\nconst classNames = computed(() => {\r\n \tconst classNames = getViewClassNames(model, props);\r\n Object.assign(classNames, {\"list-view-stripe\": true});\r\n return classNames;\r\n});",
"templCode3" : ".list-view-stripe {\r\n .ant-list-items {\r\n .ant-list-item:nth-child(even) {\r\n background-color: #fafafa;\r\n }\r\n }\r\n}"
}, {
"name" : "列表面板自定义插件",
"getPSSysPFPlugin" : {
"pluginType" : "CUSTOM",
"pluginCode" : "PFPlugin12"
},
"pluginCode" : "PFPlugin12",
"pluginType" : "CUSTOM",
"refMode" : "CONTROL",
"refTag" : "DRTAB",
"templCode" : "<app-list-itemlayoutpanel :inputData=\"inputData\" :actionModel=\"actionModel\" @uiAction=\"(inputData, action, event)=>{this.$emit('uiAction',inputData, action, event)}\"></app-list-itemlayoutpanel>"
}, {
"name" : "列表面板自定义插件",
"getPSSysPFPlugin" : {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册