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

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

上级 c4ffc30e
...@@ -856,7 +856,7 @@ ...@@ -856,7 +856,7 @@
"viewtag": "7d37165f2f535b4a6d2116188fe83d18" "viewtag": "7d37165f2f535b4a6d2116188fe83d18"
}, },
"ibizorderdashboardview": { "ibizorderdashboardview": {
"title": "订单数据看板视图", "title": "数据看板",
"caption": "订单", "caption": "订单",
"viewtype": "DEPORTALVIEW", "viewtype": "DEPORTALVIEW",
"viewmodule": "Sample", "viewmodule": "Sample",
......
...@@ -582,9 +582,17 @@ function getLocaleResourceBase(){ ...@@ -582,9 +582,17 @@ function getLocaleResourceBase(){
}, },
exporandimportgrid_grid: { exporandimportgrid_grid: {
columns: { columns: {
ibizbookid: commonLogic.appcommonhandle("图书标识",null),
ibizbookname: commonLogic.appcommonhandle("图书名称",null), ibizbookname: commonLogic.appcommonhandle("图书名称",null),
updateman: commonLogic.appcommonhandle("更新人",null), author: commonLogic.appcommonhandle("图书作者",null),
updatedate: commonLogic.appcommonhandle("更新时间",null), type: commonLogic.appcommonhandle("图书类型",null),
press: commonLogic.appcommonhandle("图书出版社",null),
price: commonLogic.appcommonhandle("图书价格",null),
subtext: commonLogic.appcommonhandle("图书描述",null),
booknumber: commonLogic.appcommonhandle("图书数量",null),
tag: commonLogic.appcommonhandle("标签",null),
borrowway: commonLogic.appcommonhandle("借阅方式",null),
sailstate: commonLogic.appcommonhandle("图书销售状态",null),
}, },
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
uiactions: { uiactions: {
......
...@@ -582,9 +582,17 @@ function getLocaleResourceBase(){ ...@@ -582,9 +582,17 @@ function getLocaleResourceBase(){
}, },
exporandimportgrid_grid: { exporandimportgrid_grid: {
columns: { columns: {
ibizbookid: commonLogic.appcommonhandle("图书标识",null),
ibizbookname: commonLogic.appcommonhandle("图书名称",null), ibizbookname: commonLogic.appcommonhandle("图书名称",null),
updateman: commonLogic.appcommonhandle("更新人",null), author: commonLogic.appcommonhandle("图书作者",null),
updatedate: commonLogic.appcommonhandle("更新时间",null), type: commonLogic.appcommonhandle("图书类型",null),
press: commonLogic.appcommonhandle("图书出版社",null),
price: commonLogic.appcommonhandle("图书价格",null),
subtext: commonLogic.appcommonhandle("图书描述",null),
booknumber: commonLogic.appcommonhandle("图书数量",null),
tag: commonLogic.appcommonhandle("标签",null),
borrowway: commonLogic.appcommonhandle("借阅方式",null),
sailstate: commonLogic.appcommonhandle("图书销售状态",null),
}, },
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
uiactions: { uiactions: {
......
...@@ -141,7 +141,7 @@ function getLocaleResourceBase(){ ...@@ -141,7 +141,7 @@ function getLocaleResourceBase(){
}, },
dashboardview: { dashboardview: {
caption: commonLogic.appcommonhandle("订单",null), caption: commonLogic.appcommonhandle("订单",null),
title: commonLogic.appcommonhandle("订单数据看板视图",null), title: commonLogic.appcommonhandle("数据看板",null),
}, },
sf1editview: { sf1editview: {
caption: commonLogic.appcommonhandle("编辑表单新建默认值",null), caption: commonLogic.appcommonhandle("编辑表单新建默认值",null),
......
...@@ -141,7 +141,7 @@ function getLocaleResourceBase(){ ...@@ -141,7 +141,7 @@ function getLocaleResourceBase(){
}, },
dashboardview: { dashboardview: {
caption: commonLogic.appcommonhandle("订单",null), caption: commonLogic.appcommonhandle("订单",null),
title: commonLogic.appcommonhandle("订单数据看板视图",null), title: commonLogic.appcommonhandle("数据看板",null),
}, },
sf1editview: { sf1editview: {
caption: commonLogic.appcommonhandle("编辑表单新建默认值",null), caption: commonLogic.appcommonhandle("编辑表单新建默认值",null),
......
...@@ -864,7 +864,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -864,7 +864,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "7d37165f2f535b4a6d2116188fe83d18" "viewtag": "7d37165f2f535b4a6d2116188fe83d18"
}, },
"ibizorderdashboardview": { "ibizorderdashboardview": {
"title": "订单数据看板视图", "title": "数据看板",
"caption": "订单", "caption": "订单",
"viewtype": "DEPORTALVIEW", "viewtype": "DEPORTALVIEW",
"viewmodule": "Sample", "viewmodule": "Sample",
......
<template> <template>
<div class="view-container deeditview micro-component-edit-view"> <div class="view-container deeditview micro-component-edit-view">
<app-studioaction :viewTitle="$t(model.srfCaption)" viewName="microcomponenteditview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfCaption)" viewName="microcomponenteditview"></app-studioaction>
<card class='view-card ' :disHover="true" :bordered="false"> <card class='view-card view-no-caption ' :disHover="true" :bordered="false">
<div slot='title' class="header-container"> <div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
<div class='toolbar-container'> <div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem3.visabled" :disabled="toolBarModels.tbitem3.disabled" class=' deepskyblueToolBar' v-loading:i-button @click="toolbar_click({ tag: 'tbitem3' }, $event)"> <i-button v-show="toolBarModels.tbitem3.visabled" :disabled="toolBarModels.tbitem3.disabled" class=' deepskyblueToolBar' v-loading:i-button @click="toolbar_click({ tag: 'tbitem3' }, $event)">
......
...@@ -21,8 +21,20 @@ ...@@ -21,8 +21,20 @@
<template v-if="!isSingleSelect"> <template v-if="!isSingleSelect">
<el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column> <el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column>
</template> </template>
<template v-if="getColumnState('ibizbookid')">
<el-table-column show-overflow-tooltip :prop="'ibizbookid'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.ibizbookid')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.exporandimportgrid_grid.columns.ibizbookid')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.ibizbookid}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('ibizbookname')"> <template v-if="getColumnState('ibizbookname')">
<el-table-column show-overflow-tooltip :prop="'ibizbookname'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.ibizbookname')" :width="150" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'ibizbookname'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.ibizbookname')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.ibizbook.exporandimportgrid_grid.columns.ibizbookname')}} {{$t('entities.ibizbook.exporandimportgrid_grid.columns.ibizbookname')}}
...@@ -33,29 +45,117 @@ ...@@ -33,29 +45,117 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('updateman')"> <template v-if="getColumnState('author')">
<el-table-column show-overflow-tooltip :prop="'updateman'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.updateman')" :width="150" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'author'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.author')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.exporandimportgrid_grid.columns.author')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.author}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('type')">
<el-table-column show-overflow-tooltip :prop="'type'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.type')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.ibizbook.exporandimportgrid_grid.columns.updateman')}} {{$t('entities.ibizbook.exporandimportgrid_grid.columns.type')}}
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<template > <template >
<codelist :value="row.updateman" tag='SysOperator' codelistType='DYNAMIC' ></codelist> <codelist :value="row.type" tag='BookType' codelistType='STATIC' ></codelist>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('updatedate')"> <template v-if="getColumnState('press')">
<el-table-column show-overflow-tooltip :prop="'updatedate'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.updatedate')" :width="150" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'press'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.press')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.ibizbook.exporandimportgrid_grid.columns.updatedate')}} {{$t('entities.ibizbook.exporandimportgrid_grid.columns.press')}}
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<app-format-data format="YYYY-MM-DD HH:mm:ss" :data="row.updatedate"></app-format-data> <span>{{row.press}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('price')">
<el-table-column show-overflow-tooltip :prop="'price'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.price')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.exporandimportgrid_grid.columns.price')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<app-format-data dataType="FLOAT" precision="2" :data="row.price"></app-format-data>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('subtext')">
<el-table-column show-overflow-tooltip :prop="'subtext'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.subtext')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.exporandimportgrid_grid.columns.subtext')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.subtext}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('booknumber')">
<el-table-column show-overflow-tooltip :prop="'booknumber'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.booknumber')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.exporandimportgrid_grid.columns.booknumber')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.booknumber}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('tag')">
<el-table-column show-overflow-tooltip :prop="'tag'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.tag')" :width="100" :align="'left'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.exporandimportgrid_grid.columns.tag')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.tag}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('borrowway')">
<el-table-column show-overflow-tooltip :prop="'borrowway'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.borrowway')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.exporandimportgrid_grid.columns.borrowway')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.borrowway" tag='CodeList25' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('sailstate')">
<el-table-column show-overflow-tooltip :prop="'sailstate'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.sailstate')" :min-width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.exporandimportgrid_grid.columns.sailstate')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.sailstate" tag='BookSailState' codelistType='STATIC' ></codelist>
</template>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
...@@ -616,6 +716,15 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf ...@@ -616,6 +716,15 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
* @memberof ExporAndImportGridBase * @memberof ExporAndImportGridBase
*/ */
public allColumns: any[] = [ public allColumns: any[] = [
{
name: 'ibizbookid',
label: '图书标识',
langtag: 'entities.ibizbook.exporandimportgrid_grid.columns.ibizbookid',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{ {
name: 'ibizbookname', name: 'ibizbookname',
label: '图书名称', label: '图书名称',
...@@ -626,23 +735,86 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf ...@@ -626,23 +735,86 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
enableCond: 3 , enableCond: 3 ,
}, },
{ {
name: 'updateman', name: 'author',
label: '更新人', label: '图书作者',
langtag: 'entities.ibizbook.exporandimportgrid_grid.columns.updateman', langtag: 'entities.ibizbook.exporandimportgrid_grid.columns.author',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{
name: 'type',
label: '图书类型',
langtag: 'entities.ibizbook.exporandimportgrid_grid.columns.type',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{
name: 'press',
label: '图书出版社',
langtag: 'entities.ibizbook.exporandimportgrid_grid.columns.press',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{
name: 'price',
label: '图书价格',
langtag: 'entities.ibizbook.exporandimportgrid_grid.columns.price',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{
name: 'subtext',
label: '图书描述',
langtag: 'entities.ibizbook.exporandimportgrid_grid.columns.subtext',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{
name: 'booknumber',
label: '图书数量',
langtag: 'entities.ibizbook.exporandimportgrid_grid.columns.booknumber',
show: true, show: true,
unit: 'PX', unit: 'PX',
isEnableRowEdit: false, isEnableRowEdit: false,
enableCond: 3 , enableCond: 3 ,
}, },
{ {
name: 'updatedate', name: 'tag',
label: '更新时间', label: '标签',
langtag: 'entities.ibizbook.exporandimportgrid_grid.columns.updatedate', langtag: 'entities.ibizbook.exporandimportgrid_grid.columns.tag',
show: true, show: true,
unit: 'PX', unit: 'PX',
isEnableRowEdit: false, isEnableRowEdit: false,
enableCond: 3 , enableCond: 3 ,
}, },
{
name: 'borrowway',
label: '借阅方式',
langtag: 'entities.ibizbook.exporandimportgrid_grid.columns.borrowway',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{
name: 'sailstate',
label: '图书销售状态',
langtag: 'entities.ibizbook.exporandimportgrid_grid.columns.sailstate',
show: true,
unit: 'STAR',
isEnableRowEdit: false,
enableCond: 3 ,
},
] ]
/** /**
...@@ -1144,9 +1316,25 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf ...@@ -1144,9 +1316,25 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
public async formatExcelData(filterVal:any, jsonData:any) { public async formatExcelData(filterVal:any, jsonData:any) {
let codelistColumns:Array<any> = [ let codelistColumns:Array<any> = [
{ {
name: 'updateman', name: 'type',
srfkey: 'SysOperator', srfkey: 'BookType',
codelistType : 'DYNAMIC', codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
},
{
name: 'borrowway',
srfkey: 'CodeList25',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
},
{
name: 'sailstate',
srfkey: 'BookSailState',
codelistType : 'STATIC',
renderMode: 'other', renderMode: 'other',
textSeparator: '、', textSeparator: '、',
valueSeparator: ',', valueSeparator: ',',
...@@ -1361,7 +1549,7 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf ...@@ -1361,7 +1549,7 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
* @memberof ExporAndImportGridBase * @memberof ExporAndImportGridBase
*/ */
public arraySpanMethod({row, column, rowIndex, columnIndex} : any) { public arraySpanMethod({row, column, rowIndex, columnIndex} : any) {
let allColumns:Array<any> = ['ibizbookname','updateman','updatedate']; let allColumns:Array<any> = ['ibizbookid','ibizbookname','author','type','press','price','subtext','booknumber','tag','borrowway','sailstate'];
if(row && row.children) { if(row && row.children) {
if(columnIndex == (this.isSingleSelect ? 0:1)) { if(columnIndex == (this.isSingleSelect ? 0:1)) {
return [1, allColumns.length+1]; return [1, allColumns.length+1];
...@@ -1441,9 +1629,17 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf ...@@ -1441,9 +1629,17 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
const tree: any ={ const tree: any ={
groupById: Number((i+1)*100), groupById: Number((i+1)*100),
group: group.label, group: group.label,
ibizbookid:'',
ibizbookname:'', ibizbookname:'',
updateman:'', author:'',
updatedate:'', type:'',
press:'',
price:'',
subtext:'',
booknumber:'',
tag:'',
borrowway:'',
sailstate:'',
children: children children: children
} }
groupTree.push(tree); groupTree.push(tree);
...@@ -1470,9 +1666,17 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf ...@@ -1470,9 +1666,17 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
const Tree: any = { const Tree: any = {
groupById: Number((allGroup.length+1)*100), groupById: Number((allGroup.length+1)*100),
group: this.$t('app.gridpage.other'), group: this.$t('app.gridpage.other'),
ibizbookid:'',
ibizbookname:'', ibizbookname:'',
updateman:'', author:'',
updatedate:'', type:'',
press:'',
price:'',
subtext:'',
booknumber:'',
tag:'',
borrowway:'',
sailstate:'',
children: child children: child
} }
if(child && child.length > 0){ if(child && child.length > 0){
...@@ -1519,9 +1723,17 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf ...@@ -1519,9 +1723,17 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
const tree: any ={ const tree: any ={
groupById: Number((groupIndex+1)*100), groupById: Number((groupIndex+1)*100),
group: group, group: group,
ibizbookid:'',
ibizbookname:'', ibizbookname:'',
updateman:'', author:'',
updatedate:'', type:'',
press:'',
price:'',
subtext:'',
booknumber:'',
tag:'',
borrowway:'',
sailstate:'',
children: children, children: children,
} }
groupTree.push(tree); groupTree.push(tree);
...@@ -1939,10 +2151,16 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf ...@@ -1939,10 +2151,16 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
}); });
} }
} else if(Object.is(errorMessage[index].data.errorKey, 'DuplicateKeyException')){ } else if(Object.is(errorMessage[index].data.errorKey, 'DuplicateKeyException')){
this.$Notice.error({ let name: string = this.service.getNameByProp("ibizbookid");
title: (this.$t('app.commonWords.saveFailed') as string), if(name){
desc: errorMessage[index].data.message?errorMessage[index].data.message:(this.$t('app.commonWords.sysException') as string), let desc: any = this.allColumns.find((column: any) =>{
}); return Object.is(column.name, name);
});
this.$Notice.error({
title: (this.$t('app.commonWords.createFailed') as string),
desc: (desc ? desc.label : '') + " : " + item[name] + (this.$t('app.commonWords.isExist') as string) + '!',
});
}
}else { }else {
this.$Notice.error({ this.$Notice.error({
title: (this.$t('app.commonWords.saveFailed') as string), title: (this.$t('app.commonWords.saveFailed') as string),
...@@ -2051,6 +2269,7 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf ...@@ -2051,6 +2269,7 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
return; return;
} }
let tempContext: any = this.$util.deepCopy(this.context); let tempContext: any = this.$util.deepCopy(this.context);
Object.is(tempContext, { ibizbook: data.ibizbookid });
const arg: any = JSON.parse(JSON.stringify(data)); const arg: any = JSON.parse(JSON.stringify(data));
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
const post: Promise<any> = this.service.frontLogic(mode,JSON.parse(JSON.stringify(tempContext)),arg, showloading); const post: Promise<any> = this.service.frontLogic(mode,JSON.parse(JSON.stringify(tempContext)),arg, showloading);
......
...@@ -27,24 +27,34 @@ export default class ExporAndImportGridModel { ...@@ -27,24 +27,34 @@ export default class ExporAndImportGridModel {
}else{ }else{
return [ return [
{ {
name: 'ibizbookname', name: 'subtext',
prop: 'ibizbookname', prop: 'subtext',
dataType: 'TEXT',
},
{
name: 'press',
prop: 'press',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'tag',
prop: 'tag',
dataType: 'LONGTEXT',
},
{ {
name: 'ibizbookid', name: 'ibizbookid',
prop: 'ibizbookid', prop: 'ibizbookid',
dataType: 'GUID', dataType: 'GUID',
}, },
{ {
name: 'updateman', name: 'sailstate',
prop: 'updateman', prop: 'sailstate',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{ {
name: 'updatedate', name: 'type',
prop: 'updatedate', prop: 'type',
dataType: 'DATETIME', dataType: 'TEXT',
}, },
{ {
name: 'srfmstag', name: 'srfmstag',
...@@ -65,6 +75,31 @@ export default class ExporAndImportGridModel { ...@@ -65,6 +75,31 @@ export default class ExporAndImportGridModel {
dataType: 'GUID', dataType: 'GUID',
isEditable:true isEditable:true
}, },
{
name: 'author',
prop: 'author',
dataType: 'TEXT',
},
{
name: 'ibizbookname',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'price',
prop: 'price',
dataType: 'FLOAT',
},
{
name: 'booknumber',
prop: 'booknumber',
dataType: 'INT',
},
{
name: 'borrowway',
prop: 'borrowway',
dataType: 'SSCODELIST',
},
{ {
name: 'ibizbook', name: 'ibizbook',
prop: 'ibizbookid', prop: 'ibizbookid',
......
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
git clone -b master $para2 demosys/ git clone -b master $para2 demosys/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd demosys/ cd demosys/
mvn clean package -Pweb
cd demo-app/demo-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/demo-app-web.yaml iBizDemo --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 /demo-app-web.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /demo-app-web.jar
EXPOSE 51001 EXPOSE 8080
ADD demo-app-web.jar /demo-app-web.jar ADD demo-app-web.jar /demo-app-web.jar
...@@ -3,24 +3,9 @@ services: ...@@ -3,24 +3,9 @@ services:
demo-app-web: demo-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/demo-app-web:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/demo-app-web:latest
ports: ports:
- "51001:51001" - "8080:8080"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=51001
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_df847bdfd
- SPRING_DATASOURCE_PASSWORD=3d6@460A
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_df847bdfd?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_df847bdfd
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy: deploy:
resources: resources:
limits: limits:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册