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

lab_qyk 发布系统代码

上级 4c72c617
...@@ -619,7 +619,7 @@ export default class EntityService { ...@@ -619,7 +619,7 @@ export default class EntityService {
* @memberof EntityService * @memberof EntityService
*/ */
public async removeBatch(context: any = {},data: any, isloading?: boolean): Promise<any> { public async removeBatch(context: any = {},data: any, isloading?: boolean): Promise<any> {
return Http.getInstance().delete(`/${this.APPDENAME}/batch`,isloading,data); return Http.getInstance().delete(`/${this.APPDENAME}/batch`,isloading,data[this.APPDEKEY]);
} }
/** /**
......
...@@ -911,8 +911,9 @@ export default class EditGridBase extends Vue implements ControlInterface { ...@@ -911,8 +911,9 @@ export default class EditGridBase extends Vue implements ControlInterface {
keys.push(data.srfkey); keys.push(data.srfkey);
}); });
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ; let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
let _keys = keys.length > 1 ? keys : keys[0] ;
const context:any = JSON.parse(JSON.stringify(this.context)); const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibzdepartment: keys.join(';') }),Object.assign({ ibzdepartment: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibzdepartment: _keys }),Object.assign({ ibzdepartment: _keys },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
......
...@@ -1292,7 +1292,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1292,7 +1292,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public print(){ public print(){
let _this:any = this; let _this:any = this;
_this.$print({id:'form',popTitle:'主编辑表单'}); _this.$print({id:'ibzdepartment_main',popTitle:'主编辑表单'});
} }
/** /**
......
...@@ -764,8 +764,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -764,8 +764,9 @@ export default class MainBase extends Vue implements ControlInterface {
keys.push(data.srfkey); keys.push(data.srfkey);
}); });
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ; let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
let _keys = keys.length > 1 ? keys : keys[0] ;
const context:any = JSON.parse(JSON.stringify(this.context)); const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibzdepartment: keys.join(';') }),Object.assign({ ibzdepartment: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibzdepartment: _keys }),Object.assign({ ibzdepartment: _keys },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
......
...@@ -1131,7 +1131,7 @@ export default class NewFormBase extends Vue implements ControlInterface { ...@@ -1131,7 +1131,7 @@ export default class NewFormBase extends Vue implements ControlInterface {
*/ */
public print(){ public print(){
let _this:any = this; let _this:any = this;
_this.$print({id:'form',popTitle:'新建表单'}); _this.$print({id:'ibzdepartment_newform',popTitle:'新建表单'});
} }
/** /**
......
...@@ -1031,7 +1031,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1031,7 +1031,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public print(){ public print(){
let _this:any = this; let _this:any = this;
_this.$print({id:'form',popTitle:'主编辑表单'}); _this.$print({id:'ibzdeptmember_main',popTitle:'主编辑表单'});
} }
/** /**
......
...@@ -714,8 +714,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -714,8 +714,9 @@ export default class MainBase extends Vue implements ControlInterface {
keys.push(data.srfkey); keys.push(data.srfkey);
}); });
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ; let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
let _keys = keys.length > 1 ? keys : keys[0] ;
const context:any = JSON.parse(JSON.stringify(this.context)); const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibzdeptmember: keys.join(';') }),Object.assign({ ibzdeptmember: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibzdeptmember: _keys }),Object.assign({ ibzdeptmember: _keys },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
......
...@@ -999,7 +999,7 @@ export default class ChangePwBase extends Vue implements ControlInterface { ...@@ -999,7 +999,7 @@ export default class ChangePwBase extends Vue implements ControlInterface {
*/ */
public print(){ public print(){
let _this:any = this; let _this:any = this;
_this.$print({id:'form',popTitle:'变更密码'}); _this.$print({id:'ibzemployee_changepw',popTitle:'变更密码'});
} }
/** /**
......
...@@ -1003,8 +1003,9 @@ export default class EditGridBase extends Vue implements ControlInterface { ...@@ -1003,8 +1003,9 @@ export default class EditGridBase extends Vue implements ControlInterface {
keys.push(data.srfkey); keys.push(data.srfkey);
}); });
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ; let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
let _keys = keys.length > 1 ? keys : keys[0] ;
const context:any = JSON.parse(JSON.stringify(this.context)); const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibzemployee: keys.join(';') }),Object.assign({ ibzemployee: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibzemployee: _keys }),Object.assign({ ibzemployee: _keys },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
......
...@@ -1634,7 +1634,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1634,7 +1634,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public print(){ public print(){
let _this:any = this; let _this:any = this;
_this.$print({id:'form',popTitle:'主编辑表单'}); _this.$print({id:'ibzemployee_main',popTitle:'主编辑表单'});
} }
/** /**
......
...@@ -780,8 +780,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -780,8 +780,9 @@ export default class MainBase extends Vue implements ControlInterface {
keys.push(data.srfkey); keys.push(data.srfkey);
}); });
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ; let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
let _keys = keys.length > 1 ? keys : keys[0] ;
const context:any = JSON.parse(JSON.stringify(this.context)); const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibzemployee: keys.join(';') }),Object.assign({ ibzemployee: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibzemployee: _keys }),Object.assign({ ibzemployee: _keys },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
......
...@@ -1159,7 +1159,7 @@ export default class NewFormBase extends Vue implements ControlInterface { ...@@ -1159,7 +1159,7 @@ export default class NewFormBase extends Vue implements ControlInterface {
*/ */
public print(){ public print(){
let _this:any = this; let _this:any = this;
_this.$print({id:'form',popTitle:'新建表单'}); _this.$print({id:'ibzemployee_newform',popTitle:'新建表单'});
} }
/** /**
......
...@@ -1171,7 +1171,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1171,7 +1171,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public print(){ public print(){
let _this:any = this; let _this:any = this;
_this.$print({id:'form',popTitle:'主编辑表单'}); _this.$print({id:'ibzorganization_main',popTitle:'主编辑表单'});
} }
/** /**
......
...@@ -750,8 +750,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -750,8 +750,9 @@ export default class MainBase extends Vue implements ControlInterface {
keys.push(data.srfkey); keys.push(data.srfkey);
}); });
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ; let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
let _keys = keys.length > 1 ? keys : keys[0] ;
const context:any = JSON.parse(JSON.stringify(this.context)); const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibzorganization: keys.join(';') }),Object.assign({ ibzorganization: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibzorganization: _keys }),Object.assign({ ibzorganization: _keys },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
......
...@@ -1062,7 +1062,7 @@ export default class NewFormBase extends Vue implements ControlInterface { ...@@ -1062,7 +1062,7 @@ export default class NewFormBase extends Vue implements ControlInterface {
*/ */
public print(){ public print(){
let _this:any = this; let _this:any = this;
_this.$print({id:'form',popTitle:'新建表单'}); _this.$print({id:'ibzorganization_newform',popTitle:'新建表单'});
} }
/** /**
......
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
git clone -b master $para2 ibzou/ git clone -b master $para2 ibzou/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibzou/ cd ibzou/
mvn clean package -Pweb
cd ibzou-app/ibzou-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzou-app-web.yaml ibzlab-rt --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \ sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-app-web.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-app-web.jar
EXPOSE 30001 EXPOSE 8080
ADD ibzou-app-web.jar /ibzou-app-web.jar ADD ibzou-app-web.jar /ibzou-app-web.jar
...@@ -3,21 +3,9 @@ services: ...@@ -3,21 +3,9 @@ services:
ibzou-app-web: ibzou-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-app-web:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-app-web:latest
ports: ports:
- "30001:30001" - "8080:8080"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
- SERVER_PORT=30001
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
- SPRING_DATASOURCE_PASSWORD=@6dEfb3@
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
deploy: deploy:
mode: replicated mode: replicated
replicas: 1 replicas: 1
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册