|
@@ -54,29 +54,91 @@
|
|
|
@change="handleTableChange">
|
|
|
<!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" -->
|
|
|
|
|
|
+ <!-- 旁路状态 -->
|
|
|
+ <span slot="bypass" slot-scope="text, record">
|
|
|
+ <template v-if="record.bypassTag">
|
|
|
+ <a-tooltip placement="top">
|
|
|
+ <template slot="title">
|
|
|
+ {{ record.bypassTag }}
|
|
|
+ </template>
|
|
|
+ {{ text }}
|
|
|
+ </a-tooltip>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ {{ text }}
|
|
|
+ </template>
|
|
|
+ </span>
|
|
|
<!-- 仪表状态 -->
|
|
|
<span slot="instrumentStatus" slot-scope="text, record">
|
|
|
- <span :class="record.instrumentStatus === record.instrumentStatusNormal ? 'normal-tag':'abnormal-tag'">
|
|
|
- {{ text }}
|
|
|
- </span>
|
|
|
+ <template v-if="record.instrumentStatusTag">
|
|
|
+ <a-tooltip placement="top">
|
|
|
+ <template slot="title">
|
|
|
+ {{ record.instrumentStatusTag }}
|
|
|
+ </template>
|
|
|
+ <span :class="record.instrumentStatus === record.instrumentStatusNormal ? 'normal-tag':'abnormal-tag'">
|
|
|
+ {{ text }}
|
|
|
+ </span>
|
|
|
+ </a-tooltip>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <span :class="record.instrumentStatus === record.instrumentStatusNormal ? 'normal-tag':'abnormal-tag'">
|
|
|
+ {{ text }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
</span>
|
|
|
<!-- 输入卡件状态 -->
|
|
|
<span slot="inputStatus" slot-scope="text, record">
|
|
|
- <span :class="record.inputStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
|
|
|
- {{ text }}
|
|
|
- </span>
|
|
|
+ <template v-if="record.inputStatusTag">
|
|
|
+ <a-tooltip>
|
|
|
+ <template slot="title">
|
|
|
+ {{ record.inputStatusTag }}
|
|
|
+ </template>
|
|
|
+ <span :class="record.inputStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
|
|
|
+ {{ text }}
|
|
|
+ </span>
|
|
|
+ </a-tooltip>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <span :class="record.inputStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
|
|
|
+ {{ text }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
</span>
|
|
|
<!-- 输出卡件状态 -->
|
|
|
<span slot="outputStatus" slot-scope="text, record">
|
|
|
- <span :class="record.outputStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
|
|
|
- {{ text }}
|
|
|
- </span>
|
|
|
+ <template v-if="record.outputStatusTag">
|
|
|
+ <a-tooltip>
|
|
|
+ <template slot="title">
|
|
|
+ {{ record.outputStatusTag }}
|
|
|
+ </template>
|
|
|
+ <span :class="record.outputStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
|
|
|
+ {{ text }}
|
|
|
+ </span>
|
|
|
+ </a-tooltip>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <span :class="record.outputStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
|
|
|
+ {{ text }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
</span>
|
|
|
<!-- MP状态 -->
|
|
|
<span slot="mpStatus" slot-scope="text, record">
|
|
|
- <span :class="record.mpStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
|
|
|
- {{ text }}
|
|
|
- </span>
|
|
|
+ <template v-if="record.mpStatusTag">
|
|
|
+ <a-tooltip>
|
|
|
+ <template slot="title">
|
|
|
+ {{ record.mpStatusTag }}
|
|
|
+ </template>
|
|
|
+ <span :class="record.mpStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
|
|
|
+ {{ text }}
|
|
|
+ </span>
|
|
|
+ </a-tooltip>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <span :class="record.mpStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
|
|
|
+ {{ text }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
</span>
|
|
|
|
|
|
<template slot="htmlSlot" slot-scope="text">
|
|
@@ -182,7 +244,19 @@
|
|
|
// title:'联锁条件点位',
|
|
|
title:'联锁条件',
|
|
|
align:"center",
|
|
|
- dataIndex: 'interlockConditionTag'
|
|
|
+ dataIndex: 'interlockCondition',
|
|
|
+ customRender:(text,record,index)=> {
|
|
|
+ var interlockCondition = record.interlockSetUnit ? text + record.interlockSetUnit : text
|
|
|
+ var children = (
|
|
|
+ <a-tooltip>
|
|
|
+ <template slot="title">
|
|
|
+ { record.interlockConditionTag }
|
|
|
+ </template>
|
|
|
+ { interlockCondition }
|
|
|
+ </a-tooltip>
|
|
|
+ )
|
|
|
+ return children
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title:'描述',
|
|
@@ -200,7 +274,11 @@
|
|
|
{
|
|
|
title:'联锁设定值',
|
|
|
align:"center",
|
|
|
- dataIndex: 'interlockSetValue'
|
|
|
+ dataIndex: 'interlockSetValue',
|
|
|
+ customRender:function (t,r,index) {
|
|
|
+ var data = r.interlockSetUnit ? t + r.interlockSetUnit : t
|
|
|
+ return data
|
|
|
+ },
|
|
|
},
|
|
|
// {
|
|
|
// title:'当前值',
|
|
@@ -208,16 +286,25 @@
|
|
|
// dataIndex: 'currentValue'
|
|
|
// },
|
|
|
{
|
|
|
- title:'是否旁路',
|
|
|
+ title:'旁路状态',
|
|
|
align:"center",
|
|
|
- dataIndex: 'bypassName'
|
|
|
+ dataIndex: 'bypassName',
|
|
|
+ scopedSlots: { customRender: 'bypass' }
|
|
|
},
|
|
|
{
|
|
|
title:'联锁输出值',
|
|
|
align:"center",
|
|
|
dataIndex: 'interlockOutValue',
|
|
|
customRender:function (t,r,index) {
|
|
|
- return {children: t,attrs: {rowSpan:r.rowSpan3}};
|
|
|
+ var children = (
|
|
|
+ <a-tooltip>
|
|
|
+ <template slot="title">
|
|
|
+ { r.interlockOutValueTag }
|
|
|
+ </template>
|
|
|
+ { t }
|
|
|
+ </a-tooltip>
|
|
|
+ )
|
|
|
+ return {children: children,attrs: {rowSpan:r.rowSpan3}};
|
|
|
},
|
|
|
},
|
|
|
{
|