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

zhouweidong 部署微服务应用 [ibz-ou,统一组织单位]

上级 74556a7f
...@@ -35,6 +35,35 @@ ...@@ -35,6 +35,35 @@
"codename":"Item_3", "codename":"Item_3",
"value": "性别不详", "value": "性别不详",
"disabled": false
}
]
},
{
"srfkey": "YesNo",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "1",
"label": "是",
"text": "是",
"class":"",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "0",
"label": "否",
"text": "否",
"class":"",
"data":"",
"codename":"Item_0",
"value": "0",
"disabled": false "disabled": false
} }
] ]
......
...@@ -8,6 +8,11 @@ function getLocaleResourceBase(){ ...@@ -8,6 +8,11 @@ function getLocaleResourceBase(){
"性别不详": commonLogic.appcommonhandle("性别不详",null), "性别不详": commonLogic.appcommonhandle("性别不详",null),
"empty": commonLogic.appcommonhandle("",null) "empty": commonLogic.appcommonhandle("",null)
}, },
YesNo: {
"1": commonLogic.appcommonhandle("是",null),
"0": commonLogic.appcommonhandle("否",null),
"empty": commonLogic.appcommonhandle("",null)
},
}; };
return data; return data;
} }
......
...@@ -8,6 +8,11 @@ function getLocaleResourceBase(){ ...@@ -8,6 +8,11 @@ function getLocaleResourceBase(){
"性别不详": commonLogic.appcommonhandle("性别不详",null), "性别不详": commonLogic.appcommonhandle("性别不详",null),
"empty": commonLogic.appcommonhandle("",null), "empty": commonLogic.appcommonhandle("",null),
}, },
YesNo: {
"1": commonLogic.appcommonhandle("是",null),
"0": commonLogic.appcommonhandle("否",null),
"empty": commonLogic.appcommonhandle("",null),
},
}; };
return data; return data;
} }
......
...@@ -20,6 +20,7 @@ function getLocaleResourceBase(){ ...@@ -20,6 +20,7 @@ function getLocaleResourceBase(){
parentdeptname: commonLogic.appcommonhandle("上级部门",null), parentdeptname: commonLogic.appcommonhandle("上级部门",null),
createdate: commonLogic.appcommonhandle("创建时间",null), createdate: commonLogic.appcommonhandle("创建时间",null),
updatedate: commonLogic.appcommonhandle("最后修改时间",null), updatedate: commonLogic.appcommonhandle("最后修改时间",null),
isvalid: commonLogic.appcommonhandle("启用标志",null),
}, },
views: { views: {
pickupgridview: { pickupgridview: {
...@@ -79,6 +80,7 @@ function getLocaleResourceBase(){ ...@@ -79,6 +80,7 @@ function getLocaleResourceBase(){
leaderid: commonLogic.appcommonhandle("分管领导标识",null), leaderid: commonLogic.appcommonhandle("分管领导标识",null),
leadername: commonLogic.appcommonhandle("分管领导",null), leadername: commonLogic.appcommonhandle("分管领导",null),
showorder: commonLogic.appcommonhandle("排序",null), showorder: commonLogic.appcommonhandle("排序",null),
isvalid: commonLogic.appcommonhandle("启用",null),
createdate: commonLogic.appcommonhandle("创建时间",null), createdate: commonLogic.appcommonhandle("创建时间",null),
updatedate: commonLogic.appcommonhandle("最后修改时间",null), updatedate: commonLogic.appcommonhandle("最后修改时间",null),
}, },
......
...@@ -20,6 +20,7 @@ function getLocaleResourceBase(){ ...@@ -20,6 +20,7 @@ function getLocaleResourceBase(){
parentdeptname: commonLogic.appcommonhandle("上级部门",null), parentdeptname: commonLogic.appcommonhandle("上级部门",null),
createdate: commonLogic.appcommonhandle("创建时间",null), createdate: commonLogic.appcommonhandle("创建时间",null),
updatedate: commonLogic.appcommonhandle("最后修改时间",null), updatedate: commonLogic.appcommonhandle("最后修改时间",null),
isvalid: commonLogic.appcommonhandle("启用标志",null),
}, },
views: { views: {
pickupgridview: { pickupgridview: {
...@@ -79,6 +80,7 @@ function getLocaleResourceBase(){ ...@@ -79,6 +80,7 @@ function getLocaleResourceBase(){
leaderid: commonLogic.appcommonhandle("分管领导标识",null), leaderid: commonLogic.appcommonhandle("分管领导标识",null),
leadername: commonLogic.appcommonhandle("分管领导",null), leadername: commonLogic.appcommonhandle("分管领导",null),
showorder: commonLogic.appcommonhandle("排序",null), showorder: commonLogic.appcommonhandle("排序",null),
isvalid: commonLogic.appcommonhandle("启用",null),
createdate: commonLogic.appcommonhandle("创建时间",null), createdate: commonLogic.appcommonhandle("创建时间",null),
updatedate: commonLogic.appcommonhandle("最后修改时间",null), updatedate: commonLogic.appcommonhandle("最后修改时间",null),
}, },
......
...@@ -15,6 +15,7 @@ function getLocaleResourceBase(){ ...@@ -15,6 +15,7 @@ function getLocaleResourceBase(){
enable: commonLogic.appcommonhandle("逻辑有效",null), enable: commonLogic.appcommonhandle("逻辑有效",null),
createdate: commonLogic.appcommonhandle("创建时间",null), createdate: commonLogic.appcommonhandle("创建时间",null),
updatedate: commonLogic.appcommonhandle("最后修改时间",null), updatedate: commonLogic.appcommonhandle("最后修改时间",null),
isvalid: commonLogic.appcommonhandle("启用标志",null),
}, },
views: { views: {
pickupgridview: { pickupgridview: {
...@@ -60,6 +61,7 @@ function getLocaleResourceBase(){ ...@@ -60,6 +61,7 @@ function getLocaleResourceBase(){
orglevel: commonLogic.appcommonhandle("单位级别",null), orglevel: commonLogic.appcommonhandle("单位级别",null),
shortname: commonLogic.appcommonhandle("单位简称",null), shortname: commonLogic.appcommonhandle("单位简称",null),
showorder: commonLogic.appcommonhandle("排序",null), showorder: commonLogic.appcommonhandle("排序",null),
isvalid: commonLogic.appcommonhandle("启用",null),
porgid: commonLogic.appcommonhandle("上级单位",null), porgid: commonLogic.appcommonhandle("上级单位",null),
createdate: commonLogic.appcommonhandle("创建时间",null), createdate: commonLogic.appcommonhandle("创建时间",null),
updatedate: commonLogic.appcommonhandle("最后修改时间",null), updatedate: commonLogic.appcommonhandle("最后修改时间",null),
......
...@@ -15,6 +15,7 @@ function getLocaleResourceBase(){ ...@@ -15,6 +15,7 @@ function getLocaleResourceBase(){
enable: commonLogic.appcommonhandle("逻辑有效",null), enable: commonLogic.appcommonhandle("逻辑有效",null),
createdate: commonLogic.appcommonhandle("创建时间",null), createdate: commonLogic.appcommonhandle("创建时间",null),
updatedate: commonLogic.appcommonhandle("最后修改时间",null), updatedate: commonLogic.appcommonhandle("最后修改时间",null),
isvalid: commonLogic.appcommonhandle("启用标志",null),
}, },
views: { views: {
pickupgridview: { pickupgridview: {
...@@ -60,6 +61,7 @@ function getLocaleResourceBase(){ ...@@ -60,6 +61,7 @@ function getLocaleResourceBase(){
orglevel: commonLogic.appcommonhandle("单位级别",null), orglevel: commonLogic.appcommonhandle("单位级别",null),
shortname: commonLogic.appcommonhandle("单位简称",null), shortname: commonLogic.appcommonhandle("单位简称",null),
showorder: commonLogic.appcommonhandle("排序",null), showorder: commonLogic.appcommonhandle("排序",null),
isvalid: commonLogic.appcommonhandle("启用",null),
porgid: commonLogic.appcommonhandle("上级单位",null), porgid: commonLogic.appcommonhandle("上级单位",null),
createdate: commonLogic.appcommonhandle("创建时间",null), createdate: commonLogic.appcommonhandle("创建时间",null),
updatedate: commonLogic.appcommonhandle("最后修改时间",null), updatedate: commonLogic.appcommonhandle("最后修改时间",null),
......
...@@ -43,6 +43,35 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -43,6 +43,35 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"codename":"Item_3", "codename":"Item_3",
value: "性别不详", value: "性别不详",
disabled: false,
},
]
},
{
srfkey: "YesNo",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "1",
label: "是",
text: "是",
"class":"",
"data":"",
"codename":"Item_1",
value: "1",
disabled: false,
},
{
id: "0",
label: "否",
text: "否",
"class":"",
"data":"",
"codename":"Item_0",
value: "0",
disabled: false, disabled: false,
}, },
] ]
......
...@@ -66,6 +66,9 @@ export default class DeptTreeModel { ...@@ -66,6 +66,9 @@ export default class DeptTreeModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -119,6 +119,27 @@ ...@@ -119,6 +119,27 @@
</app-form-item> </app-form-item>
</i-col>
<i-col v-show="detailsModel.isvalid.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='isvalid' :itemRules="this.rules().isvalid" class='' :caption="$t('entities.sysdepartment.main_form.details.isvalid')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.isvalid.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.isvalid"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.isvalid.disabled"
valueType="number"
style="width:100px;width: 100px;"
tag='YesNo'
codelistType='STATIC'
placeholder='请选择...'>
</dropdown-list>
</app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.createdate.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.createdate.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='createdate' :itemRules="this.rules().createdate" class='' :caption="$t('entities.sysdepartment.main_form.details.createdate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createdate.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='createdate' :itemRules="this.rules().createdate" class='' :caption="$t('entities.sysdepartment.main_form.details.createdate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createdate.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -548,6 +569,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -548,6 +569,7 @@ export default class MainBase extends Vue implements ControlInterface {
leaderid: null, leaderid: null,
leadername: null, leadername: null,
showorder: null, showorder: null,
isvalid: null,
createdate: null, createdate: null,
updatedate: null, updatedate: null,
sysdepartment:null, sysdepartment:null,
...@@ -637,6 +659,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -637,6 +659,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'change' }, { required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'change' },
{ required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'blur' }, { required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'blur' },
], ],
isvalid: [
{ required: this.detailsModel.isvalid.required, type: 'number', message: '启用 值不能为空', trigger: 'change' },
{ required: this.detailsModel.isvalid.required, type: 'number', message: '启用 值不能为空', trigger: 'blur' },
],
createdate: [ createdate: [
{ required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'change' }, { required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'blur' }, { required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'blur' },
...@@ -795,6 +821,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -795,6 +821,8 @@ export default class MainBase extends Vue implements ControlInterface {
leadername: new FormItemModel({ caption: '分管领导', detailType: 'FORMITEM', name: 'leadername', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) leadername: new FormItemModel({ caption: '分管领导', detailType: 'FORMITEM', name: 'leadername', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
showorder: new FormItemModel({ caption: '排序', detailType: 'FORMITEM', name: 'showorder', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) showorder: new FormItemModel({ caption: '排序', detailType: 'FORMITEM', name: 'showorder', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
isvalid: new FormItemModel({ caption: '启用', detailType: 'FORMITEM', name: 'isvalid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
createdate: new FormItemModel({ caption: '创建时间', detailType: 'FORMITEM', name: 'createdate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) createdate: new FormItemModel({ caption: '创建时间', detailType: 'FORMITEM', name: 'createdate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -1054,6 +1082,18 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1054,6 +1082,18 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'showorder', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'showorder', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 isvalid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.isvalid')
onIsvalidChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'isvalid', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 createdate 值 * 监控表单属性 createdate 值
* *
...@@ -1162,6 +1202,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1162,6 +1202,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
......
...@@ -120,6 +120,11 @@ export default class MainModel { ...@@ -120,6 +120,11 @@ export default class MainModel {
prop: 'showorder', prop: 'showorder',
dataType: 'INT', dataType: 'INT',
}, },
{
name: 'isvalid',
prop: 'isvalid',
dataType: 'YESNO',
},
{ {
name: 'createdate', name: 'createdate',
prop: 'createdate', prop: 'createdate',
......
...@@ -66,6 +66,9 @@ export default class MPickupViewpickupviewpanelModel { ...@@ -66,6 +66,9 @@ export default class MPickupViewpickupviewpanelModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -66,6 +66,9 @@ export default class PickupViewpickupviewpanelModel { ...@@ -66,6 +66,9 @@ export default class PickupViewpickupviewpanelModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -66,6 +66,9 @@ export default class TreeExpViewtreeexpbarModel { ...@@ -66,6 +66,9 @@ export default class TreeExpViewtreeexpbarModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -77,6 +77,27 @@ ...@@ -77,6 +77,27 @@
</app-form-item> </app-form-item>
</i-col>
<i-col v-show="detailsModel.isvalid.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='isvalid' :itemRules="this.rules().isvalid" class='' :caption="$t('entities.sysorganization.main_form.details.isvalid')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.isvalid.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.isvalid"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.isvalid.disabled"
valueType="number"
style="width:100px;width: 100px;"
tag='YesNo'
codelistType='STATIC'
placeholder='请选择...'>
</dropdown-list>
</app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.createdate.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.createdate.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='createdate' :itemRules="this.rules().createdate" class='' :caption="$t('entities.sysorganization.main_form.details.createdate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createdate.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='createdate' :itemRules="this.rules().createdate" class='' :caption="$t('entities.sysorganization.main_form.details.createdate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createdate.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -500,6 +521,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -500,6 +521,7 @@ export default class MainBase extends Vue implements ControlInterface {
orglevel: null, orglevel: null,
shortname: null, shortname: null,
showorder: null, showorder: null,
isvalid: null,
porgid: null, porgid: null,
createdate: null, createdate: null,
updatedate: null, updatedate: null,
...@@ -578,6 +600,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -578,6 +600,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'change' }, { required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'change' },
{ required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'blur' }, { required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'blur' },
], ],
isvalid: [
{ required: this.detailsModel.isvalid.required, type: 'number', message: '启用 值不能为空', trigger: 'change' },
{ required: this.detailsModel.isvalid.required, type: 'number', message: '启用 值不能为空', trigger: 'blur' },
],
createdate: [ createdate: [
{ required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'change' }, { required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'blur' }, { required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'blur' },
...@@ -724,6 +750,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -724,6 +750,8 @@ export default class MainBase extends Vue implements ControlInterface {
shortname: new FormItemModel({ caption: '单位简称', detailType: 'FORMITEM', name: 'shortname', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) shortname: new FormItemModel({ caption: '单位简称', detailType: 'FORMITEM', name: 'shortname', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
showorder: new FormItemModel({ caption: '排序', detailType: 'FORMITEM', name: 'showorder', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) showorder: new FormItemModel({ caption: '排序', detailType: 'FORMITEM', name: 'showorder', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
isvalid: new FormItemModel({ caption: '启用', detailType: 'FORMITEM', name: 'isvalid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
porgid: new FormItemModel({ caption: '上级单位', detailType: 'FORMITEM', name: 'porgid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) porgid: new FormItemModel({ caption: '上级单位', detailType: 'FORMITEM', name: 'porgid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -913,6 +941,18 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -913,6 +941,18 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'showorder', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'showorder', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 isvalid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.isvalid')
onIsvalidChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'isvalid', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 porgid 值 * 监控表单属性 porgid 值
* *
...@@ -1021,6 +1061,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1021,6 +1061,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
......
...@@ -90,6 +90,11 @@ export default class MainModel { ...@@ -90,6 +90,11 @@ export default class MainModel {
prop: 'showorder', prop: 'showorder',
dataType: 'INT', dataType: 'INT',
}, },
{
name: 'isvalid',
prop: 'isvalid',
dataType: 'YESNO',
},
{ {
name: 'porgid', name: 'porgid',
prop: 'parentorgid', prop: 'parentorgid',
......
...@@ -51,6 +51,9 @@ export default class OrgTreeModel { ...@@ -51,6 +51,9 @@ export default class OrgTreeModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -51,6 +51,9 @@ export default class PickupViewpickupviewpanelModel { ...@@ -51,6 +51,9 @@ export default class PickupViewpickupviewpanelModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -51,6 +51,9 @@ export default class TreeExpViewtreeexpbarModel { ...@@ -51,6 +51,9 @@ export default class TreeExpViewtreeexpbarModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
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 -Papi mvn clean package -Pweb
cd ibzou-provider/ibzou-provider-api cd ibzou-app/ibzou-app-web
mvn -Papi docker:build mvn -Pweb docker:build
mvn -Papi docker:push mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzou-provider-api.yaml ibzlab-rt --with-registry-auth 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>
......
...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_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 8080 EXPOSE 30001
ADD ibzou-app-web.jar /ibzou-app-web.jar ADD ibzou-app-web.jar /ibzou-app-web.jar
...@@ -3,9 +3,23 @@ services: ...@@ -3,9 +3,23 @@ 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:
- "8080:8080" - "30001:30001"
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.100.243: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&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
- NACOS=172.16.100.243:8848
- SPRING_CLOUD_NACOS_DISCOVERY_GROUP=ibizdev
deploy: deploy:
resources: resources:
limits: limits:
......
...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-provider-api.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-provider-api.jar
EXPOSE 40001 EXPOSE 8081
ADD ibzou-provider-api.jar /ibzou-provider-api.jar ADD ibzou-provider-api.jar /ibzou-provider-api.jar
...@@ -3,23 +3,9 @@ services: ...@@ -3,23 +3,9 @@ services:
ibzou-provider-api: ibzou-provider-api:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-provider-api:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-provider-api:latest
ports: ports:
- "40001:40001" - "8081:8081"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
- SERVER_PORT=40001
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.100.243: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&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
- NACOS=172.16.100.243:8848
- SPRING_CLOUD_NACOS_DISCOVERY_GROUP=ibizdev
deploy: deploy:
resources: resources:
limits: limits:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册