|
|
@@ -1,10 +1,11 @@
|
|
|
import { ColItem } from '@/api/common'
|
|
|
import { ElTableColumn } from 'element-ui/types/table-column'
|
|
|
const elTableAlignLeft = (tooltips: boolean = true): Partial<ElTableColumn> => ({
|
|
|
- align: 'left',
|
|
|
- headerAlign: 'left',
|
|
|
+ align: 'center',
|
|
|
+ headerAlign: 'center',
|
|
|
showOverflowTooltip: tooltips
|
|
|
})
|
|
|
+//指标管理
|
|
|
export const IMTableColumns: ColItem[] = [
|
|
|
{ type: 'selection', width: '50px' },
|
|
|
{ type: 'index', label: '序号', width: '50px', ...elTableAlignLeft() },
|
|
|
@@ -26,6 +27,7 @@ export const IMTableColumns: ColItem[] = [
|
|
|
{ prop: 'createDate', label: '操作时间', width: '150px', ...elTableAlignLeft() },
|
|
|
{ prop: 'operation', label: '操作', width: '150px', _slot: true, fixed: "right" },
|
|
|
]
|
|
|
+//工程管理
|
|
|
export const PMTableColumns: ColItem[] = [
|
|
|
{ type: 'index', label: '序号', width: '50px' },
|
|
|
{ prop: 'code', label: '工程编号' },
|
|
|
@@ -38,4 +40,73 @@ export const PMTableColumns: ColItem[] = [
|
|
|
{ prop: 'latitude', label: '纬度' },
|
|
|
{ prop: 'area', label: '工程面积(km²)', ...elTableAlignLeft() },
|
|
|
{ prop: 'operation', label: '操作', _slot: true },
|
|
|
+]
|
|
|
+//预警指标管理
|
|
|
+export const IFWITableColumns: ColItem[] = [
|
|
|
+ { type: 'selection', width: '50px' },
|
|
|
+ { type: 'index', label: '序号', width: '50px', ...elTableAlignLeft() },
|
|
|
+ { prop: 'warningMethod', label: '预警方式', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: 'warningType', label: '预警类型', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: 'warningGroup', label: '预警分组', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: 'warningIndexCode', label: '预警指标代码', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: 'warningIndexName', label: '预警指标名称', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: 'warningIndexShortName', label: '预警指标简称', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: 'explan', label: '说明', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: 'dataSources', label: '数据来源', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: 'linkedData', label: '关联数据', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: 'isEnable', label: '是否启用', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: 'createUserName', label: '操作人', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: 'createDate', label: '操作时间', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: 'operation', label: '操作', width: '150px', _slot: true, fixed: "right" },
|
|
|
+]
|
|
|
+//预警指标阈值管理
|
|
|
+export const IFWITTableColumns: ColItem[] = [
|
|
|
+ { type: 'selection', width: '50px' },
|
|
|
+ { type: 'index', label: '序号', width: '50px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '预警类型', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '预警分组', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '预警指标代码', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '预警指标名称', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '预警阈值编码', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '关注程度', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '指标参数', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '单位', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '特定值', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '下限', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '上限', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '有效时段', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '预警提示信息', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '详细信息', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '说明', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '是否启用', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '操作人', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '操作时间', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '操作', width: '150px', _slot: true, fixed: "right" },
|
|
|
+]
|
|
|
+//预警信息管理
|
|
|
+export const IFWIFTableColumns: ColItem[] = [
|
|
|
+ { type: 'selection', width: '50px' },
|
|
|
+ { type: 'index', label: '序号', width: '50px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '编号', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '预警指标名称', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '关注程度', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '预警等级', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '预警提示信息', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '预警详情', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '位置', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '经度', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '纬度', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '预警说明', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '处理状态', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '处理状态详情', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '说明', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '数据来源', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '关联数据', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '发现时间', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '预警时间', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '处理时间', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '操作时间', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '操作人', width: '150px', ...elTableAlignLeft() },
|
|
|
+ { prop: '', label: '是否显示', width: '150px', _slot: true, fixed: "right" },
|
|
|
+ { prop: '', label: '是否有效', width: '150px', _slot: true, fixed: "right" },
|
|
|
]
|