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

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

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