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

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

上级 ac41ee39
......@@ -7,9 +7,23 @@
import { Vue, Component, Prop, Watch, Provide } from 'vue-property-decorator';
import { ImgurlBase64 } from '@/utils';
import { Environment } from "@/environments/environment";
import { PanelFieldModel } from '@/model/panel-detail';
@Component({})
export default class AppFieldImageDynamic extends Vue {
/**
* 名称
*
* @type {*}
* @memberof AppRawItemImage
*/
@Prop() public name!: string;
/**
* 模型
*
* @type {*}
* @memberof AppRawItemImage
*/
@Prop() public layoutModelDetails!: any;
/**
* 输入值
......@@ -25,7 +39,7 @@ export default class AppFieldImageDynamic extends Vue {
* @type {*}
* @memberof AppFieldImageDynamic
*/
@Prop() public model!: PanelFieldModel;
public model:any = null;
/**
* 动态图片路径
......@@ -59,7 +73,8 @@ export default class AppFieldImageDynamic extends Vue {
}
created() {
if (this.model) {
if (this.layoutModelDetails && this.name) {
this.model = this.layoutModelDetails[this.name];
this.containerStyle = this.model.getElementStyle();
}
this.handleDynaImg();
......
......@@ -16,10 +16,17 @@
</div>
</template>
<script lang='ts'>
import { PanelFieldModel } from '@/model/panel-detail';
import { Component, Vue, Prop, Watch } from 'vue-property-decorator';
@Component({})
export default class AppCarousel extends Vue {
/**
* 模型
*
* @type {*}
* @memberof AppRawItemImage
*/
@Prop() public layoutModelDetails!: any;
/**
* 父项所有数据
*
......@@ -41,7 +48,7 @@ export default class AppCarousel extends Vue {
* @type {*}
* @memberof AppCarousel
*/
@Prop() public model!: PanelFieldModel;
public model: any;
/**
* 名称
......@@ -99,7 +106,8 @@ export default class AppCarousel extends Vue {
* @memberof AppCarousel
*/
created() {
if (this.model) {
if (this.layoutModelDetails && this.name) {
this.model = this.layoutModelDetails[this.name];
this.containerStyle = this.model.getElementStyle();
}
//处理轮播图-动态数据
......
......@@ -9,6 +9,13 @@ import { PanelFieldModel } from '@/model/panel-detail';
import { Vue, Component, Prop, Watch, Provide } from 'vue-property-decorator';
@Component({})
export default class AppRawItemImage extends Vue {
/**
* 名称
*
* @type {*}
* @memberof AppRawItemImage
*/
@Prop() public name!: string;
/**
* 模型
......@@ -16,7 +23,7 @@ export default class AppRawItemImage extends Vue {
* @type {*}
* @memberof AppRawItemImage
*/
@Prop() public model!: PanelFieldModel;
@Prop() public layoutModelDetails!: any;
/**
* 图片地址
......@@ -42,8 +49,19 @@ export default class AppRawItemImage extends Vue {
*/
public containerStyle: any = null;
/**
* 容器样式
*
* @type {any}
* @memberof AppRawItemImage
*/
public model: any = null;
created() {
if (this.model) {
if (this.layoutModelDetails && this.name) {
this.model = this.layoutModelDetails[this.name];
this.containerStyle = this.model.getElementStyle();
}
}
......
......@@ -10,11 +10,26 @@
</template>
<script lang="ts">
import { PanelFieldModel } from '@/model/panel-detail';
import { Util } from '@/utils';
import { Component, Vue, Prop } from 'vue-property-decorator';
@Component({})
export default class AppRawItemVideo extends Vue {
/**
* 名称
*
* @type {*}
* @memberof AppRawItemImage
*/
@Prop() public name!: string;
/**
* 模型
*
* @type {*}
* @memberof AppRawItemImage
*/
@Prop() public layoutModelDetails!: any;
/**
* 视频播放数据
......@@ -28,7 +43,7 @@ export default class AppRawItemVideo extends Vue {
* @type {*}
* @memberof @memberof AppRawItemVideo
*/
@Prop() public model!: PanelFieldModel;
public model: any;
/**
* 播放器唯一标识
......@@ -64,7 +79,8 @@ export default class AppRawItemVideo extends Vue {
};
created() {
if (this.model) {
if (this.layoutModelDetails && this.name) {
this.model = this.layoutModelDetails[this.name];
this.containerStyle = this.model.getElementStyle();
}
}
......
......@@ -59,9 +59,10 @@
<app-simpleflex-container name="container4" :layoutModelDetails="layoutModelDetails">
<template #static_image1>
<app-rawitem-image
name="static_image1"
imgUrl=""
imageClass="fa fa-maxcdn"
:model="layoutModelDetails.static_image1"
:layoutModelDetails="layoutModelDetails"
>
</app-rawitem-image>
</template>
......@@ -72,7 +73,7 @@
<template #field_image>
<app-field-image-dynamic
name="field_image"
:model="layoutModelDetails.field_image"
:layoutModelDetails="layoutModelDetails"
:value="layoutData['field_image']">
</app-field-image-dynamic>
</template>
......@@ -89,7 +90,7 @@
type="STATIC_CAROUSEL"
name="static_carousel1"
:value="[ { key:'img1', iconClass:'fa fa-bank', type:'icon' }, { key:'img2', iconClass:'fa fa-jsfiddle', type:'icon' }, { key:'img3', iconClass:'fa fa-steam-square', type:'icon' }, { key:'autoplay', value:'1', }, { key:'timespan', value:'2000', } ]"
:model="layoutModelDetails.static_carousel1"
:layoutModelDetails="layoutModelDetails"
:data="layoutData"
>
</app-rawitem-carousel>
......@@ -104,7 +105,7 @@
name="field_carousel"
type="FIELD_CAROUSEL"
:value="layoutData['field_carousel']"
:model="layoutModelDetails.field_carousel">
:layoutModelDetails="layoutModelDetails">
</app-rawitem-carousel>
</template>
</app-simpleflex-container>
......@@ -115,7 +116,8 @@
<app-standard-container name="container8" :layoutModelDetails="layoutModelDetails">
<template #static_videoplayer1>
<app-rawitem-video
:model="layoutModelDetails.static_videoplayer1"
name="static_videoplayer1"
:layoutModelDetails="layoutModelDetails"
:videoParmas="[ { key:'mute', value:'1', }, { key:'replay', value:'0', }, { key:'autoplay', value:'1', }, { key:'showcontrols', value:'1', }, { key:'path', value:'https://vd4.bdstatic.com/mda-mifejxwmpy1x8x2q/sc/cae_h264_delogo/1646836428687905122/mda-mifejxwmpy1x8x2q.mp4?v_from_s=hkapp-haokan-hnb&auth_key=1667480983-0-0-2ad30d6604b82d46b3326c3e3a618370&bcevod_channel=searchbox_feed&pd=1&cd=0&pt=3&logid=2383589477&vid=3775835991227448045&abtest=104959_1&klogid=2383589477', } ]"
/>
</template>
......
......@@ -590,7 +590,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -626,7 +626,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -663,7 +663,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -699,7 +699,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -11,16 +11,6 @@
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getPSDETreeColumns" : [ {
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"name" : "author",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "图书名称",
"codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN",
......@@ -50,6 +40,16 @@
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"name" : "author",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "借出日期",
"codeName" : "lendouttime",
......
......@@ -19,21 +19,21 @@
}
} ],
"getPSDETreeColumns" : [ {
"caption" : "图书描述",
"codeName" : "subtext",
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "subtext",
"name" : "subtext",
"dataItemName" : "author",
"name" : "author",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "作者",
"codeName" : "author",
"caption" : "图书描述",
"codeName" : "subtext",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"name" : "author",
"dataItemName" : "subtext",
"name" : "subtext",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
......
......@@ -34,16 +34,6 @@
"id" : "GANTT"
},
"getPSDETreeColumns" : [ {
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"name" : "author",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "图书名称",
"codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN",
......@@ -73,6 +63,16 @@
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"name" : "author",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "借出日期",
"codeName" : "lendouttime",
......
......@@ -75,21 +75,21 @@
"id" : "TREEGRIDEX"
},
"getPSDETreeColumns" : [ {
"caption" : "图书描述",
"codeName" : "subtext",
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "subtext",
"name" : "subtext",
"dataItemName" : "author",
"name" : "author",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "作者",
"codeName" : "author",
"caption" : "图书描述",
"codeName" : "subtext",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"name" : "author",
"dataItemName" : "subtext",
"name" : "subtext",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册