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

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

上级 27bbc6a5
.app-login-message{
height: 40px;
width: 100%;
.ivu-alert{
width: 100%;
height: 100%;
display: flex;
align-items: center;
background-color: rgb(255, 225, 225);
......
<template>
<div class="app-login-message">
<div :class="[model.sysCss, 'app-login-message']" :style="containerStyle">
<alert v-show="value" type="error" show-icon>{{ value }}</alert>
</div>
</template>
<script lang='ts'>
import { PanelFieldModel } from "@/model/panel-detail";
import { Component, Vue, Prop } from "vue-property-decorator";
@Component({})
export default class AppPreSetLoginMessage extends Vue {
export default class AppLoginMessage extends Vue {
/**
* 内容
* 模型
*
* @type {string}
* @memberof AppPreSetLoginMessage
* @memberof AppLoginInput
*/
@Prop() public value?: string;
@Prop() public model!: PanelFieldModel;
/**
* 值
*
* @type {string}
* @memberof AppLoginInput
*/
@Prop() public value!: string;
/**
* 名称
*
* @type {string}
* @memberof AppLoginInput
*/
@Prop() public name!: string;
/**
* 容器样式
*
* @type {any}
* @memberof AppLoginInput
*/
public containerStyle: any = null;
public mounted() {
if (this.model) {
this.containerStyle = this.model.getElementStyle();
}
}
}
</script>
......
<template>
<div class="app-rawitem-carousel">
<Carousel class="carsouel-container" :autoplay="swipeConfig.isAuto" :autoplay-speed="swipeConfig.timeSpan" radius-dot>
<Carousel class="carsouel-container" :autoplay="swipeConfig.isAuto" :autoplay-speed="swipeConfig.timeSpan"
radius-dot>
<CarouselItem v-for="(item, index) in swipeData" :key="index">
<div class="carousel-img-item">
<a v-if="item.linkPath" :href="item.linkPath">
......@@ -16,6 +17,8 @@
</template>
<script lang='ts'>
import { Component, Vue, Prop, Watch } from 'vue-property-decorator';
import { ImgurlBase64 } from '@/utils';
import { Environment } from "@/environments/environment";
@Component({})
export default class AppCarousel extends Vue {
/**
......@@ -83,10 +86,10 @@ export default class AppCarousel extends Vue {
* @param {*} oldVal
* @memberof AppCarousel
*/
@Watch('data', { immediate: true, deep: true })
@Watch('value', { immediate: true, deep: true })
public onDataChange(newVal: any, oldVal: any) {
if (newVal) {
this.handleSwipData(newVal);
// this.handleSwipData(newVal);
}
}
......@@ -95,8 +98,17 @@ export default class AppCarousel extends Vue {
* @memberof AppCarousel
*/
created() {
//处理轮播图-动态数据
if (this.type === "FIELD_CAROUSEL") {
if (this.value && typeof this.value === 'string') {
const swipeData = JSON.parse(this.value);
this.handleSwipData(swipeData);
}
} else if (this.type === "STATIC_CAROUSEL") {
//处理轮播图-静态数据
this.handleSwipData(this.value);
}
}
/**
* @description 处理轮播图数据
......@@ -116,6 +128,9 @@ export default class AppCarousel extends Vue {
this.swipeConfig = this.setSwipeConfig(data);
}
}
this.swipeData = this.swipeData.map((item: any) => {
return this.addressProcessing(item);
});
}
/**
......@@ -142,6 +157,51 @@ export default class AppCarousel extends Vue {
};
}
/**
* 处理轮播图地址
*
* @memberof AppPresetRawitem
*/
private async addressProcessing(item: any) {
let _item: any = {};
if (this.type === "FIELD_CAROUSEL") {
let url = `${Environment.BaseUrl}${Environment.ExportFile}/${item.id}`;
let res = await ImgurlBase64.getInstance().getImgURLOfBase64(url);
_item.linkPath = item.linkPath;
_item.imgPath = res;
_item.iconClass = item.iconclass;
} else if (this.type === "STATIC_CAROUSEL") {
_item.linkPath = item.linkPath;
_item.imgPath = this.getImagePath(item);
_item.iconClass = this.getImageClass(item) || '';
}
return _item;
}
//TODO
/**
* 获取图片路径
*
* @memberof AppPresetRawitem
*/
public getImagePath(item: any) {
if (item && item.getPSSysImage && item.getPSSysImage.imagePath) {
return item.getPSSysImage.imagePath;
}
}
/**
* @description 获取imageClass
* @param {*}
* @memberof AppRawItem
*/
public getImageClass(item: any) {
if (item && item.getPSSysImage && item.getPSSysImage.cssClass) {
return item.getPSSysImage.cssClass;
}
}
/**
* 处理图标大小
* @memberof AppMobCarousel
......
......@@ -371,6 +371,7 @@ function getAppLocale(){
menuitem126: commonLogic.appcommonhandle("自定义导航",null),
menuitem130: commonLogic.appcommonhandle("布局面板组件测试",null),
menuitem131: commonLogic.appcommonhandle("编辑视图(左右关系)",null),
menuitem142: commonLogic.appcommonhandle("列表视图(自定义面板)",null),
},
},
formpage:{
......
......@@ -371,6 +371,7 @@ function getAppLocale(){
menuitem126: commonLogic.appcommonhandle("自定义导航",null),
menuitem130: commonLogic.appcommonhandle("布局面板组件测试",null),
menuitem131: commonLogic.appcommonhandle("编辑视图(左右关系)",null),
menuitem142: commonLogic.appcommonhandle("列表视图(自定义面板)",null),
},
},
formpage:{
......
......@@ -371,6 +371,7 @@ function getAppLocale(){
menuitem126: commonLogic.appcommonhandle("自定义导航",null),
menuitem130: commonLogic.appcommonhandle("布局面板组件测试",null),
menuitem131: commonLogic.appcommonhandle("编辑视图(左右关系)",null),
menuitem142: commonLogic.appcommonhandle("列表视图(自定义面板)",null),
},
},
formpage:{
......
......@@ -1905,8 +1905,6 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("删除",null),
},
},
usr5dataviewtoolbar_toolbar: {
},
testcllistviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
......@@ -1961,6 +1959,8 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("删除",null),
},
},
usr5dataviewtoolbar_toolbar: {
},
treemajorstate_treeview: {
nodata:commonLogic.appcommonhandle("",null),
nodes: {
......
......@@ -1905,8 +1905,6 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("Remove {0}",null),
},
},
usr5dataviewtoolbar_toolbar: {
},
testcllistviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("New",null),
......@@ -1961,6 +1959,8 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("Remove {0}",null),
},
},
usr5dataviewtoolbar_toolbar: {
},
treemajorstate_treeview: {
nodata:commonLogic.appcommonhandle("",null),
nodes: {
......
......@@ -1905,8 +1905,6 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("删除",null),
},
},
usr5dataviewtoolbar_toolbar: {
},
testcllistviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
......@@ -1961,6 +1959,8 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("删除",null),
},
},
usr5dataviewtoolbar_toolbar: {
},
treemajorstate_treeview: {
nodata:commonLogic.appcommonhandle("",null),
nodes: {
......
......@@ -20,3 +20,4 @@
.portal-listview-noboxshadow{
box-shadow: 0px 0px 0px;
}
......@@ -20,3 +20,4 @@
.portal-listview-noboxshadow{
box-shadow: 0px 0px 0px;
}
......@@ -20,3 +20,4 @@
.portal-listview-noboxshadow{
box-shadow: 0px 0px 0px;
}
......@@ -20,3 +20,4 @@
.portal-listview-noboxshadow{
box-shadow: 0px 0px 0px;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKTestCLListViewBase from './ibizbooktest-cllist-view-base.vue';
import view_searchform from '@widgets/ibizbook/quicksearchform-searchform/quicksearchform-searchform.vue';
import view_list from '@widgets/ibizbook/lnternal-func-list-list/lnternal-func-list-list.vue';
@Component({
components: {
view_searchform,
view_list,
},
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 IBIZBOOKTestCLListView extends IBIZBOOKTestCLListViewBase {
}
</script>
\ No newline at end of file
......@@ -6,3 +6,4 @@
.portal-listview-noboxshadow{
box-shadow: 0px 0px 0px;
}
......@@ -25,3 +25,4 @@
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
......@@ -108,6 +108,7 @@ export const PageComponents = {
Vue.component('ibizcustomer-media-test-edit-view', () => import('@pages/sample/ibizcustomer-media-test-edit-view/ibizcustomer-media-test-edit-view.vue'));
Vue.component('ibizorder-test-custom-layout-panel-grid-exp-view', () => import('@pages/sample/ibizorder-test-custom-layout-panel-grid-exp-view/ibizorder-test-custom-layout-panel-grid-exp-view.vue'));
Vue.component('ibizorder-test-cledit-view2', () => import('@pages/sample/ibizorder-test-cledit-view2/ibizorder-test-cledit-view2.vue'));
Vue.component('ibizbooktest-cllist-view', () => import('@pages/sample/ibizbooktest-cllist-view/ibizbooktest-cllist-view.vue'));
Vue.component('ibizappviewgrid-view', () => import('@pages/sample/ibizappviewgrid-view/ibizappviewgrid-view.vue'));
Vue.component('ibizappviewlist-view', () => import('@pages/sample/ibizappviewlist-view/ibizappviewlist-view.vue'));
Vue.component('ibizappctrlgrid-view', () => import('@pages/sample/ibizappctrlgrid-view/ibizappctrlgrid-view.vue'));
......
......@@ -1678,6 +1678,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-test-cledit-view2/ibizorder-test-cledit-view2.vue'),
},
{
path: 'ibizbooks/:ibizbook?/testcllistview/:testcllistview?',
meta: {
caption: 'entities.ibizbook.views.testcllistview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'testcllistview', parameterName: 'testcllistview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbooktest-cllist-view/ibizbooktest-cllist-view.vue'),
},
{
path: 'ibizappviews/:ibizappview?/gridview/:gridview?',
meta: {
......@@ -4081,6 +4095,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizuniproduct-redirect-view/ibizuniproduct-redirect-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/testcllistview/:testcllistview?',
meta: {
caption: 'entities.ibizbook.views.testcllistview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'testcllistview', parameterName: 'testcllistview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbooktest-cllist-view/ibizbooktest-cllist-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/sf2editview/:sf2editview?',
meta: {
......
......@@ -1309,6 +1309,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizuniproduct-redirect-view/ibizuniproduct-redirect-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/testcllistview/:testcllistview?',
meta: {
caption: 'entities.ibizbook.views.testcllistview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'testcllistview', parameterName: 'testcllistview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbooktest-cllist-view/ibizbooktest-cllist-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/sf2editview/:sf2editview?',
meta: {
......
......@@ -38,7 +38,7 @@
<app-login-note-verify />
</template>
<template #auth_loginmsg>
<app-login-message />
<app-login-message name="auth_loginmsg" :model="layoutModelDetails.auth_loginmsg" :value="layoutData.auth_loginmsg" />
</template>
<template #auth_sso1>
<app-login-third />
......
......@@ -786,6 +786,7 @@ export const viewstate: any = {
'38b0b453d423e0772822db6be4f02505',
'2D42F3B7-3267-4276-9120-10F2D81E35AF',
'D6D7779F-95C9-48C0-B2E1-ED4C20E5E157',
'79C13556-8423-4886-ADB3-6FF73C1E97F1',
],
},
{
......@@ -1047,6 +1048,16 @@ export const viewstate: any = {
'88ca61cdf39cd0f97cf3863e9a6974b3',
],
},
{
viewtag: '79C13556-8423-4886-ADB3-6FF73C1E97F1',
viewmodule: 'Sample',
viewname: 'IBIZBOOKTestCLListView',
viewaction: '',
viewdatachange: false,
refviews: [
'58e37ccddda10feedac7c809d5cee02a',
],
},
{
viewtag: '7ccb985d6fc6a6795502a2ba742f95b5',
viewmodule: 'Sample',
......
......@@ -928,6 +928,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'UsrAppFunc1103768001':
this.clickUsrAppFunc1103768001(item);
return;
case 'UsrAppFunc1103202475':
this.clickUsrAppFunc1103202475(item);
return;
default:
console.warn('未指定应用功能');
}
......@@ -3461,6 +3464,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 列表视图(自定义面板)
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickUsrAppFunc1103202475(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'testcllistview', parameterName: 'testcllistview' },
];
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);
})
}
/**
* 数据加载
*
......
......@@ -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: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (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: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -621,7 +621,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: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -657,7 +657,7 @@ export default class QUICKSEARCHFORMBase 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: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -104,21 +104,6 @@ export default class MainModel {
prop: 'n_ibizordername_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_orderstate_eq',
prop: 'n_orderstate_eq',
dataType: 'QUERYPARAM'
},
{
name: 'n_ordertime_gt',
prop: 'n_ordertime_gt',
dataType: 'QUERYPARAM'
},
{
name: 'n_ordertime_lt',
prop: 'n_ordertime_lt',
dataType: 'QUERYPARAM'
},
{
name:'size',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册