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

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

上级 9cf2e855
...@@ -110,11 +110,14 @@ export default { ...@@ -110,11 +110,14 @@ export default {
}, },
main2_grid: { main2_grid: {
columns: { columns: {
type: "图书类型",
author: "图书作者", author: "图书作者",
ibizbookname: "图书名称", ibizbookname: "图书名称",
press: "图书出版社", press: "图书出版社",
price: "图书价格", price: "图书价格",
type: "图书类型", createdate: "建立时间",
updatedate: "更新时间",
updateman: "更新人",
}, },
nodata:"", nodata:"",
uiactions: { uiactions: {
......
...@@ -109,11 +109,14 @@ export default { ...@@ -109,11 +109,14 @@ export default {
}, },
main2_grid: { main2_grid: {
columns: { columns: {
type: "图书类型",
author: "图书作者", author: "图书作者",
ibizbookname: "图书名称", ibizbookname: "图书名称",
press: "图书出版社", press: "图书出版社",
price: "图书价格", price: "图书价格",
type: "图书类型", createdate: "建立时间",
updatedate: "更新时间",
updateman: "更新人",
}, },
nodata:"", nodata:"",
uiactions: { uiactions: {
......
...@@ -31,6 +31,18 @@ ...@@ -31,6 +31,18 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('type')">
<el-table-column show-overflow-tooltip :prop="'type'" :label="$t('entities.ibizbook.main2_grid.columns.type')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.main2_grid.columns.type')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.type}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('author')"> <template v-if="getColumnState('author')">
<el-table-column show-overflow-tooltip :prop="'author'" :label="$t('entities.ibizbook.main2_grid.columns.author')" :width="100" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'author'" :label="$t('entities.ibizbook.main2_grid.columns.author')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
...@@ -79,15 +91,41 @@ ...@@ -79,15 +91,41 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('type')"> <template v-if="getColumnState('createdate')">
<el-table-column show-overflow-tooltip :prop="'type'" :label="$t('entities.ibizbook.main2_grid.columns.type')" :width="100" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'createdate'" :label="$t('entities.ibizbook.main2_grid.columns.createdate')" :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.main2_grid.columns.type')}} {{$t('entities.ibizbook.main2_grid.columns.createdate')}}
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.type}}</span> <app-format-data format="YYYY-MM-DD HH:mm:ss" :data="row.createdate"></app-format-data>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('updatedate')">
<el-table-column show-overflow-tooltip :prop="'updatedate'" :label="$t('entities.ibizbook.main2_grid.columns.updatedate')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.main2_grid.columns.updatedate')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<app-format-data format="YYYY-MM-DD HH:mm:ss" :data="row.updatedate"></app-format-data>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('updateman')">
<el-table-column show-overflow-tooltip :prop="'updateman'" :label="$t('entities.ibizbook.main2_grid.columns.updateman')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.main2_grid.columns.updateman')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.updateman" tag='SysOperator' codelistType='DYNAMIC' ></codelist>
</template>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
...@@ -648,6 +686,15 @@ export default class Main2Base extends Vue implements ControlInterface { ...@@ -648,6 +686,15 @@ export default class Main2Base extends Vue implements ControlInterface {
* @memberof Main2Base * @memberof Main2Base
*/ */
public allColumns: any[] = [ public allColumns: any[] = [
{
name: 'type',
label: '图书类型',
langtag: 'entities.ibizbook.main2_grid.columns.type',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{ {
name: 'author', name: 'author',
label: '图书作者', label: '图书作者',
...@@ -685,9 +732,27 @@ export default class Main2Base extends Vue implements ControlInterface { ...@@ -685,9 +732,27 @@ export default class Main2Base extends Vue implements ControlInterface {
enableCond: 3 , enableCond: 3 ,
}, },
{ {
name: 'type', name: 'createdate',
label: '图书类型', label: '建立时间',
langtag: 'entities.ibizbook.main2_grid.columns.type', langtag: 'entities.ibizbook.main2_grid.columns.createdate',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{
name: 'updatedate',
label: '更新时间',
langtag: 'entities.ibizbook.main2_grid.columns.updatedate',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{
name: 'updateman',
label: '更新人',
langtag: 'entities.ibizbook.main2_grid.columns.updateman',
show: true, show: true,
unit: 'PX', unit: 'PX',
isEnableRowEdit: false, isEnableRowEdit: false,
...@@ -1154,6 +1219,14 @@ export default class Main2Base extends Vue implements ControlInterface { ...@@ -1154,6 +1219,14 @@ export default class Main2Base extends Vue implements ControlInterface {
*/ */
public async formatExcelData(filterVal:any, jsonData:any) { public async formatExcelData(filterVal:any, jsonData:any) {
let codelistColumns:Array<any> = [ let codelistColumns:Array<any> = [
{
name: 'updateman',
srfkey: 'SysOperator',
codelistType : 'DYNAMIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
},
]; ];
let _this = this; let _this = this;
for (const codelist of codelistColumns) { for (const codelist of codelistColumns) {
...@@ -1360,7 +1433,7 @@ export default class Main2Base extends Vue implements ControlInterface { ...@@ -1360,7 +1433,7 @@ export default class Main2Base extends Vue implements ControlInterface {
* @memberof Main2Base * @memberof Main2Base
*/ */
public arraySpanMethod({row, column, rowIndex, columnIndex} : any) { public arraySpanMethod({row, column, rowIndex, columnIndex} : any) {
let allColumns:Array<any> = ['author','ibizbookname','press','price','type']; let allColumns:Array<any> = ['type','author','ibizbookname','press','price','createdate','updatedate','updateman'];
if(row && row.children && row.children.length>0) { if(row && row.children && row.children.length>0) {
if(columnIndex == (this.isSingleSelect ? 0:1)) { if(columnIndex == (this.isSingleSelect ? 0:1)) {
return [1, allColumns.length+1]; return [1, allColumns.length+1];
...@@ -1403,11 +1476,14 @@ export default class Main2Base extends Vue implements ControlInterface { ...@@ -1403,11 +1476,14 @@ export default class Main2Base extends Vue implements ControlInterface {
const tree: any ={ const tree: any ={
groupById: Number((groupIndex+1)*10), groupById: Number((groupIndex+1)*10),
group: group, group: group,
type:'',
author:'', author:'',
ibizbookname:'', ibizbookname:'',
press:'', press:'',
price:'', price:'',
type:'', createdate:'',
updatedate:'',
updateman:'',
children: children, children: children,
} }
groupTree.push(tree); groupTree.push(tree);
......
...@@ -51,6 +51,21 @@ export default class Main2Model { ...@@ -51,6 +51,21 @@ export default class Main2Model {
prop: 'ibizbookid', prop: 'ibizbookid',
dataType: 'GUID', dataType: 'GUID',
}, },
{
name: 'createdate',
prop: 'createdate',
dataType: 'DATETIME',
},
{
name: 'updateman',
prop: 'updateman',
dataType: 'TEXT',
},
{
name: 'updatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{ {
name: 'type', name: 'type',
prop: 'type', prop: 'type',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册