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

xignzi006 部署微服务应用

上级 2b047ed1
.app-form-group {
>.ivu-card-head {
>p {
>i {
......@@ -7,9 +8,12 @@
}
}
}
>.ivu-card-extra {
.item-extract-mode {
display: flex;
.item {
margin-left: 12px;
}
......@@ -18,6 +22,7 @@
}
.app-form-group.app-group-collapse-contant {
.ivu-card-body {
display: none;
}
......@@ -25,9 +30,12 @@
.app-group-flex {
height: 100%;
overflow: auto;
> .ivu-card-body {
overflow-y: auto;
overflow-x: hidden;
>.ivu-card-body {
height: calc(100% - 51px);
overflow: auto;
overflow-y: auto;
overflow-x: hidden;
}
}
\ No newline at end of file
<template>
<div class="app-form-group">
<div v-if="uiStyle=='STYLE2'">
<div :class="classes">
<template v-if="uiStyle=='STYLE2'">
<app-form-group2
:caption="caption"
:uiStyle="uiStyle"
......@@ -10,8 +10,8 @@
:titleBarCloseMode="titleBarCloseMode">
<slot></slot>
</app-form-group2>
</div>
<div v-else>
</template>
<template v-else>
<card v-if="isShowCaption === true" :bordered="false" :dis-hover="true" :class="classes">
<p class='' slot='title'>
<icon v-if="titleBarCloseMode !== 0" :type="collapseContant ? 'ios-arrow-dropright-circle' : 'ios-arrow-dropdown-circle'"
......@@ -87,17 +87,17 @@
</template>
</a >
</template>
<div v-if="Object.is(layoutType, 'FLEX')">
<template v-if="Object.is(layoutType, 'FLEX')">
<slot></slot>
</div>
<div v-if="!Object.is(layoutType, 'FLEX')">
</template>
<template v-if="!Object.is(layoutType, 'FLEX')">
<row :gutter="10"><slot></slot></row>
</div>
</template>
</card>
<row v-if="isShowCaption === false" :class="classes">
<slot></slot>
</row>
</div>
<template v-if="isShowCaption === false">
<slot></slot>
</template>
</template>
</div>
</template>
......
.app-form-item-wrapper {
height: 100%;
}
.app-form-item {
height: 100%;
>.ivu-form-item-label {
text-decoration: none;
......@@ -8,45 +13,58 @@
}
>.ivu-form-item-content {
height: 100%;
min-height: 36px;
>.editor {
height: 100%;
}
}
}
.app-form-item-label-top {
.app-form-item.label-top, .app-form-item.label-bottom {
>.ivu-form-item-label {
float: none;
display: inline-block;
padding: 0 0 10px;
.app-form-item-label {
height: 16px;
}
.editor {
height: calc(100% - 16px);
}
}
.app-form-item-label-left {
.app-form-item.label-left, .app-form-item.label-right {
.app-form-item-label, .editor {
height: 100%;
}
}
.app-form-item.label-left {
.app-form-item-label {
float: left;
text-align: right;
padding-right: 12px;
padding-right: 10px;
}
}
.app-form-item-label-right {
.app-form-item.label-right {
.app-form-item-label {
float: right;
text-align: left;
padding-left: 12px;
padding-left: 10px;
}
}
.app-form-item-label-top {
.app-form-item.label-none {
.app-form-item-label {
display: block;
padding-bottom: 10px;
display: none !important;
}
}
.app-form-item-label-bottom {
.app-form-item-label {
display: block;
padding-top: 10px;
.editor {
height: 100%;
}
}
\ No newline at end of file
......@@ -40,7 +40,7 @@
class="login_reset">重置
</i-button>
</form-item>
<!--
<form-item>
<div style="text-align: center">
<span class="form_tipinfo">其他登录方式</span>
......@@ -53,7 +53,7 @@
<img src="/assets/img/weixin.svg" class="wx-svg-container" draggable="false">
</div>
</div>
</form-item>
</form-item> -->
</i-form>
<p class='login-tip'>
......@@ -87,7 +87,7 @@ export default class Login extends Vue {
* @type {*}
* @memberof Login
*/
public form: any = {loginname: 'guest', password: 'guest'};
public form: any = {loginname: 'pms_guest', password: 'guest@123'};
/**
* 登录提示语
......@@ -166,6 +166,9 @@ export default class Login extends Vue {
* @memberof Login
*/
public handleSubmit(): void {
let leftTime = new Date();
leftTime.setTime(leftTime.getSeconds() - 1000);
document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString();
const form: any = this.$refs.loginForm;
let validatestate: boolean = true;
form.validate((valid: boolean) => {
......@@ -219,7 +222,7 @@ export default class Login extends Vue {
*/
public goReset(): void {
const _this = this;
_this.form={loginname: 'guest', password: 'guest'}
_this.form={loginname: 'pms_guest', password: 'guest@123'}
}
/**
......
......@@ -253,6 +253,7 @@ export default class EditViewEngine extends ViewEngine {
this.view.$route.meta.info = info;
}
this.view.model.srfTitle = `${this.view.$t(viewdata.srfTitle)} - ${viewdata.dataInfo}`;
this.view.$emit('viewModelChange', this.view.model.srfTitle);
}
}
......
<template>
<div class="html-container" v-html="content"></div>
<div class="html-container" v-html="rHtml"></div>
</template>
<script lang="tsx">
import { Vue, Component, Prop, Watch } from 'vue-property-decorator';
import { Environment } from '../../../environments/environment';
/**
* 操作历史记录
......@@ -14,14 +15,34 @@ import { Vue, Component, Prop, Watch } from 'vue-property-decorator';
@Component({})
export default class HtmlContainer extends Vue {
/**
* 替换后html内容
*
* @type string
* @memberof HtmlContainer
*/
protected rHtml: string = '';
/**
* 呈现的Html内容
*
* @type string
* @memberof HtmlContainer
*/
@Prop({ default: '' })
@Prop({ default: `` })
public content!: string;
/**
* 监控html变化
*
* @memberof HtmlContainer
*/
@Watch('content', { immediate: true })
public watchContent(): void {
if (this.content && !Object.is(this.content, '')) {
this.rHtml = this.content.replace(/\{(\d+)\.(bmp|jpg|jpeg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp)\}/g, `${Environment.BaseUrl}${Environment.ExportFile}/$1`);
}
}
}
</script>
<style lang="less" scoped>
......
......@@ -44,7 +44,8 @@ export const StudioCore = {
v.component('studio-view', StudioView);
v.component('studio-embed-view', StudioEmbedView);
v.component('view-config-actions', ViewConfigActions);
v.component('html-container', HtmlContainer);
// 注册指令
v.directive('notification-signal', NotificationSignal);
v.directive('html-container', HtmlContainer);
}
};
\ No newline at end of file
......@@ -37,11 +37,14 @@ export class UIStateService {
const data: any = localStorage.getItem(this.localStoreKey);
if (data) {
this.fillLayoutState(JSON.parse(data));
} else {
this.fillLayoutState({});
}
} catch (error) { }
} catch (error) {
this.fillLayoutState({});
}
let z = this;
on(window, 'beforeunload', () => {
console.log(z.layoutState)
localStorage.setItem(this.localStoreKey, JSON.stringify(this.layoutState));
});
}
......
......@@ -219,6 +219,9 @@ export class StudioDrawer extends Vue {
{this.showViewList.map((item, i) => {
const ref: any = this.$refs[item.viewname + i];
if (!ref) {
setTimeout(() => {
this.$forceUpdate();
}, 300);
return;
}
return <span key={i}>
......
import Vue from 'vue';
import { StudioCore } from './studio-core';
import IBizStudioComponentsVue from 'ibiz-studio-components-vue';
import AppVuePivotTable from './components/app-vue-pivottable/app-vue-pivottable.vue';
// 注册Vue插件
export const UserDefaultComponent = {
install(v: any, opt: any) {
Vue.use(StudioCore);
Vue.use(IBizStudioComponentsVue);
v.component('app-vue-pivottable', AppVuePivotTable);
}
};
\ No newline at end of file
import Vue from 'vue';
import IBizStudioComponentsVue from 'ibiz-studio-components-vue';
import { UserDefaultComponent } from './user-default-register';
import AppVuePivotTable from './components/app-vue-pivottable/app-vue-pivottable.vue';
// 注册Vue插件
export const UserComponent = {
install(v: any, opt: any) {
Vue.use(UserDefaultComponent);
Vue.use(IBizStudioComponentsVue);
v.component('app-vue-pivottable', AppVuePivotTable);
}
};
\ No newline at end of file
......@@ -82,7 +82,7 @@ export class ViewTool {
if (param && !Object.is(param, '')) {
return `/${_pathName}/${param}`;
}
return `/${_pathName}/null`;
return `/${_pathName}`;
}
/**
......@@ -100,13 +100,13 @@ export class ViewTool {
let [arg] = args;
arg = arg ? arg : {};
deResParameters.forEach(({ pathName, parameterName }: { pathName: string, parameterName: string }) => {
let value:any = null;
let value: any = null;
if (viewParam[parameterName] && !Object.is(viewParam[parameterName], '') && !Object.is(viewParam[parameterName], 'null')) {
value = viewParam[parameterName];
} else if (arg[parameterName] && !Object.is(arg[parameterName], '') && !Object.is(arg[parameterName], 'null')) {
value = arg[parameterName];
}
routePath = `${routePath}/${pathName}/${value}`;
routePath = `${routePath}/${pathName}` + value !== null ? `/${value}` : '';
});
return routePath;
}
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-businesscentral.jar
EXPOSE 8080
EXPOSE 10320
ADD businesscentral-app-businesscentral.jar /businesscentral-app-businesscentral.jar
......@@ -3,9 +3,23 @@ services:
businesscentral-app-businesscentral:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-businesscentral:latest
ports:
- "8080:8080"
- "10320:10320"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=10320
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
- SPRING_DATASOURCE_PASSWORD=b1@@@772
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
resources:
limits:
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-provider-centralapi.jar
EXPOSE 10310
EXPOSE 8081
ADD businesscentral-provider-centralapi.jar /businesscentral-provider-centralapi.jar
......@@ -3,23 +3,9 @@ services:
businesscentral-provider-centralapi:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-provider-centralapi:latest
ports:
- "10310:10310"
- "8081:8081"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=10310
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
- SPRING_DATASOURCE_PASSWORD=b1@@@772
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy:
resources:
limits:
......
......@@ -37,11 +37,11 @@
git clone -b master $para2 ibizbusinesscentral/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizbusinesscentral/
mvn clean package -Pcentralapi
cd businesscentral-provider/businesscentral-provider-centralapi
mvn -Pcentralapi docker:build
mvn -Pcentralapi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/businesscentral-provider-centralapi.yaml iBizEE --with-registry-auth
mvn clean package -Pbusinesscentral
cd businesscentral-app/businesscentral-app-businesscentral
mvn -Pbusinesscentral docker:build
mvn -Pbusinesscentral docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/businesscentral-app-businesscentral.yaml iBizEE --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册