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

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

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