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

lab_gzf 部署微服务应用

上级 92e9725a
......@@ -91,6 +91,11 @@ export default {
},
main_grid: {
columns: {
plannumber: "计划编号",
eamplanname: "维护计划名称",
assetname: "资产",
eamlocationname: "功能位置",
mdate: "制定日期",
},
uiactions: {
},
......
......@@ -90,6 +90,11 @@ export default {
},
main_grid: {
columns: {
plannumber: "计划编号",
eamplanname: "维护计划名称",
assetname: "资产",
eamlocationname: "功能位置",
mdate: "制定日期",
},
uiactions: {
},
......
......@@ -92,6 +92,46 @@ export class MainGridBase extends GridControlBase {
* @memberof MainGridBase
*/
public allColumns: any[] = [
{
name: 'plannumber',
label: '计划编号',
langtag: 'entities.eamplan.main_grid.columns.plannumber',
show: true,
util: 'PX',
isEnableRowEdit: false,
},
{
name: 'eamplanname',
label: '维护计划名称',
langtag: 'entities.eamplan.main_grid.columns.eamplanname',
show: true,
util: 'PX',
isEnableRowEdit: false,
},
{
name: 'assetname',
label: '资产',
langtag: 'entities.eamplan.main_grid.columns.assetname',
show: true,
util: 'PX',
isEnableRowEdit: false,
},
{
name: 'eamlocationname',
label: '功能位置',
langtag: 'entities.eamplan.main_grid.columns.eamlocationname',
show: true,
util: 'PX',
isEnableRowEdit: false,
},
{
name: 'mdate',
label: '制定日期',
langtag: 'entities.eamplan.main_grid.columns.mdate',
show: true,
util: 'PX',
isEnableRowEdit: false,
},
]
/**
......@@ -126,6 +166,11 @@ export class MainGridBase extends GridControlBase {
* @memberof MainBase
*/
public hasRowEdit: any = {
'plannumber':false,
'eamplanname':false,
'assetname':false,
'eamlocationname':false,
'mdate':false,
};
/**
......@@ -140,4 +185,18 @@ export class MainGridBase extends GridControlBase {
}
/**
* 导出数据格式化
*
* @param {*} filterVal
* @param {*} jsonData
* @param {any[]} [codelistColumns=[]]
* @returns {Promise<any>}
* @memberof MainGridBase
*/
public async formatExcelData(filterVal: any, jsonData: any, codelistColumns?: any[]): Promise<any> {
return super.formatExcelData(filterVal, jsonData, [
]);
}
}
\ No newline at end of file
......@@ -31,11 +31,26 @@ export default class MainModel {
prop: 'eamlocationid',
dataType: 'PICKUP',
},
{
name: 'eamlocationname',
prop: 'eamlocationname',
dataType: 'PICKUPTEXT',
},
{
name: 'mdate',
prop: 'mdate',
dataType: 'DATETIME',
},
{
name: 'eammonitorpointid',
prop: 'eammonitorpointid',
dataType: 'PICKUP',
},
{
name: 'plannumber',
prop: 'plannumber',
dataType: 'TEXT',
},
{
name: 'srfmajortext',
prop: 'eamplanname',
......@@ -57,6 +72,16 @@ export default class MainModel {
dataType: 'GUID',
isEditable:true
},
{
name: 'eamplanname',
prop: 'eamplanname',
dataType: 'TEXT',
},
{
name: 'assetname',
prop: 'assetname',
dataType: 'PICKUPTEXT',
},
{
name: 'eamplan',
prop: 'eamplanid',
......
......@@ -23,6 +23,81 @@
<template v-if="!isSingleSelect">
<el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column>
</template>
<template v-if="getColumnState('plannumber')">
<el-table-column show-overflow-tooltip :prop="'plannumber'" :label="$t('entities.eamplan.main_grid.columns.plannumber')" :width="160" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.eamplan.main_grid.columns.plannumber')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.plannumber}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('eamplanname')">
<el-table-column show-overflow-tooltip :prop="'eamplanname'" :label="$t('entities.eamplan.main_grid.columns.eamplanname')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.eamplan.main_grid.columns.eamplanname')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.eamplanname}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('assetname')">
<el-table-column show-overflow-tooltip :prop="'assetname'" :label="$t('entities.eamplan.main_grid.columns.assetname')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.eamplan.main_grid.columns.assetname')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<app-column-link deKeyField='eamasset' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'eamasset-info-view', height: 0,width: 0,title: $t('entities.eamasset.views.infoview.title'),placement: '', isRedirectView: false,deResParameters: [
{ pathName: 'eamlocations', parameterName: 'eamlocation' },
]
,parameters: [
{ pathName: 'eamassets', parameterName: 'eamasset' },
{ pathName: 'infoview', parameterName: 'infoview' }
]}" valueitem="assetid">
<span>{{row.assetname}}</span>
</app-column-link >
</template>
</el-table-column>
</template>
<template v-if="getColumnState('eamlocationname')">
<el-table-column show-overflow-tooltip :prop="'eamlocationname'" :label="$t('entities.eamplan.main_grid.columns.eamlocationname')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.eamplan.main_grid.columns.eamlocationname')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<app-column-link deKeyField='eamlocation' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'eamlocation-info-view', height: 0,width: 0,title: $t('entities.eamlocation.views.infoview.title'),placement: '', isRedirectView: false,deResParameters: [
]
,parameters: [
{ pathName: 'eamlocations', parameterName: 'eamlocation' },
{ pathName: 'infoview', parameterName: 'infoview' }
]}" valueitem="eamlocationid">
<span>{{row.eamlocationname}}</span>
</app-column-link >
</template>
</el-table-column>
</template>
<template v-if="getColumnState('mdate')">
<el-table-column show-overflow-tooltip :prop="'mdate'" :label="$t('entities.eamplan.main_grid.columns.mdate')" :width="180" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.eamplan.main_grid.columns.mdate')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<app-format-data format="YYYY-MM-DD HH:mm:ss" :data="row.mdate"></app-format-data>
</template>
</el-table-column>
</template>
<template v-if="adaptiveState">
<el-table-column></el-table-column>
</template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册