|
@@ -15,10 +15,10 @@
|
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
|
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
|
-<!-- <a @click="handleToggleSearch" style="margin-left: 8px">-->
|
|
|
-<!-- {{ toggleSearchStatus ? '收起' : '展开' }}-->
|
|
|
-<!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>-->
|
|
|
-<!-- </a>-->
|
|
|
+ <!-- <a @click="handleToggleSearch" style="margin-left: 8px">-->
|
|
|
+ <!-- {{ toggleSearchStatus ? '收起' : '展开' }}-->
|
|
|
+ <!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>-->
|
|
|
+ <!-- </a>-->
|
|
|
</span>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -28,45 +28,27 @@
|
|
|
|
|
|
<!-- 操作按钮区域 -->
|
|
|
<div class="table-operator">
|
|
|
-<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
|
|
|
- <a-button type="primary" icon="download" @click="handleExportXls('0.5立方温箱历史数据')">导出</a-button>
|
|
|
-<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
|
|
|
-<!-- <a-button type="primary" icon="import">导入</a-button>-->
|
|
|
-<!-- </a-upload>-->
|
|
|
- <!-- 高级查询区域 -->
|
|
|
-<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
|
|
|
-<!-- <a-dropdown v-if="selectedRowKeys.length > 0">-->
|
|
|
-<!-- <a-menu slot="overlay">-->
|
|
|
-<!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>-->
|
|
|
-<!-- </a-menu>-->
|
|
|
-<!-- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>-->
|
|
|
-<!-- </a-dropdown>-->
|
|
|
+ <!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
|
|
|
+ <a-button type="primary" icon="download" @click="handleExportXls('1立方温箱历史数据')">导出</a-button>
|
|
|
+ <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
|
|
|
+ <!-- <a-button type="primary" icon="import">导入</a-button>-->
|
|
|
+ <!-- </a-upload>-->
|
|
|
+ <!-- <!– 高级查询区域 –>-->
|
|
|
+ <!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
|
|
|
+ <!-- <a-dropdown v-if="selectedRowKeys.length > 0">-->
|
|
|
+ <!-- <a-menu slot="overlay">-->
|
|
|
+ <!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>-->
|
|
|
+ <!-- </a-menu>-->
|
|
|
+ <!-- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>-->
|
|
|
+ <!-- </a-dropdown>-->
|
|
|
</div>
|
|
|
|
|
|
<!-- table区域-begin -->
|
|
|
<div>
|
|
|
-<!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">-->
|
|
|
-<!-- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项-->
|
|
|
-<!-- <a style="margin-left: 24px" @click="onClearSelected">清空</a>-->
|
|
|
-<!-- </div>-->
|
|
|
-
|
|
|
- <!-- 通过判断alarm的值,动态渲染对应数据这一列单元格的样式 -->
|
|
|
- <div slot="temperature" slot-scope="text, record">
|
|
|
- <span v-if="record.temperatureAlarm ==1" class="y">{{text}}</span>
|
|
|
- <span v-else>{{text}}</span>
|
|
|
- </div>
|
|
|
- <div slot="humidity" slot-scope="text, record">
|
|
|
- <span :class="record.humidityAlarm == 1?'y':''">{{text}}</span>
|
|
|
- </div>
|
|
|
- <div slot="currentA" slot-scope="text, record">
|
|
|
- <span :class="record.currentAAlarm == 1?'y':''">{{text}}</span>
|
|
|
- </div>
|
|
|
- <div slot="currentB" slot-scope="text, record">
|
|
|
- <span :class="record.currentBAlarm == 1?'y':''">{{text}}</span>
|
|
|
- </div>
|
|
|
- <div slot="currentC" slot-scope="text, record">
|
|
|
- <span :class="record.currentCAlarm == 1?'y':''">{{text}}</span>
|
|
|
- </div>
|
|
|
+ <!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">-->
|
|
|
+ <!-- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项-->
|
|
|
+ <!-- <a style="margin-left: 24px" @click="onClearSelected">清空</a>-->
|
|
|
+ <!-- </div>-->
|
|
|
|
|
|
<a-table
|
|
|
ref="table"
|
|
@@ -78,10 +60,27 @@
|
|
|
:dataSource="dataSource"
|
|
|
:pagination="ipagination"
|
|
|
:loading="loading"
|
|
|
- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
|
|
class="j-table-force-nowrap"
|
|
|
@change="handleTableChange">
|
|
|
|
|
|
+ <!-- 通过判断alarm的值,动态渲染对应数据这一列单元格的样式 -->
|
|
|
+ <div slot="temperature" slot-scope="text, record">
|
|
|
+ <span v-if="record.temperatureAlarm ==1" class="y">{{text}}</span>
|
|
|
+ <span v-else>{{text}}</span>
|
|
|
+ </div>
|
|
|
+ <div slot="humidity" slot-scope="text, record">
|
|
|
+ <span :class="record.humidityAlarm == 1?'y':''">{{text}}</span>
|
|
|
+ </div>
|
|
|
+ <div slot="currentA" slot-scope="text, record">
|
|
|
+ <span :class="record.currentAAlarm == 1?'y':''">{{text}}</span>
|
|
|
+ </div>
|
|
|
+ <div slot="currentB" slot-scope="text, record">
|
|
|
+ <span :class="record.currentBAlarm == 1?'y':''">{{text}}</span>
|
|
|
+ </div>
|
|
|
+ <div slot="currentC" slot-scope="text, record">
|
|
|
+ <span :class="record.currentCAlarm == 1?'y':''">{{text}}</span>
|
|
|
+ </div>
|
|
|
+
|
|
|
<template slot="htmlSlot" slot-scope="text">
|
|
|
<div v-html="text"></div>
|
|
|
</template>
|
|
@@ -124,7 +123,7 @@
|
|
|
</a-table>
|
|
|
</div>
|
|
|
|
|
|
- <itdm-wenxiang-history05-modal ref="modalForm" @ok="modalFormOk"></itdm-wenxiang-history05-modal>
|
|
|
+ <itdm-wenxiang-history1-modal ref="modalForm" @ok="modalFormOk"></itdm-wenxiang-history1-modal>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
@@ -146,16 +145,21 @@
|
|
|
description: '0.5立方温箱历史数据管理页面',
|
|
|
// 表头
|
|
|
columns: [
|
|
|
- {
|
|
|
- title: '#',
|
|
|
- dataIndex: '',
|
|
|
- key:'rowIndex',
|
|
|
- width:60,
|
|
|
- align:"center",
|
|
|
- customRender:function (t,r,index) {
|
|
|
- return parseInt(index)+1;
|
|
|
- }
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: '#',
|
|
|
+ // dataIndex: '',
|
|
|
+ // key:'rowIndex',
|
|
|
+ // width:60,
|
|
|
+ // align:"center",
|
|
|
+ // customRender:function (t,r,index) {
|
|
|
+ // return parseInt(index)+1;
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title:'设备id',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'deviceId_dictText'
|
|
|
+ // },
|
|
|
{
|
|
|
title:'设备名称',
|
|
|
align:"center",
|
|
@@ -169,116 +173,121 @@
|
|
|
{
|
|
|
title:'温度',
|
|
|
align:"center",
|
|
|
- dataIndex: 'temperature'
|
|
|
+ dataIndex: 'temperature',
|
|
|
+ scopedSlots: { customRender: 'temperature' }
|
|
|
},
|
|
|
{
|
|
|
- title:'温度上限',
|
|
|
+ title:'温度Max',
|
|
|
align:"center",
|
|
|
dataIndex: 'temperatureMax'
|
|
|
},
|
|
|
{
|
|
|
- title:'温度下限',
|
|
|
+ title:'温度Min',
|
|
|
align:"center",
|
|
|
dataIndex: 'temperatureMin'
|
|
|
},
|
|
|
- {
|
|
|
- title:'温度报警(0正常1报警)',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'temperatureAlarm'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title:'温度报警(0正常1报警)',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'temperatureAlarm_dictText'
|
|
|
+ // },
|
|
|
{
|
|
|
title:'湿度',
|
|
|
align:"center",
|
|
|
- dataIndex: 'humidity'
|
|
|
+ dataIndex: 'humidity',
|
|
|
+ scopedSlots: { customRender: 'humidity' }
|
|
|
},
|
|
|
{
|
|
|
- title:'湿度上限',
|
|
|
+ title:'湿度Max',
|
|
|
align:"center",
|
|
|
dataIndex: 'humidityMax'
|
|
|
},
|
|
|
{
|
|
|
- title:'湿度下限',
|
|
|
+ title:'湿度Min',
|
|
|
align:"center",
|
|
|
dataIndex: 'humidityMin'
|
|
|
},
|
|
|
- {
|
|
|
- title:'湿度报警(0正常1报警)',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'humidityAlarm'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title:'湿度报警(0正常1报警)',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'humidityAlarm_dictText'
|
|
|
+ // },
|
|
|
{
|
|
|
title:'A相电流',
|
|
|
align:"center",
|
|
|
- dataIndex: 'currentA'
|
|
|
+ dataIndex: 'currentA',
|
|
|
+ scopedSlots: { customRender: 'currentA' }
|
|
|
},
|
|
|
{
|
|
|
- title:'A相电流上限',
|
|
|
+ title:'A相电流Max',
|
|
|
align:"center",
|
|
|
dataIndex: 'currentAMax'
|
|
|
},
|
|
|
{
|
|
|
- title:'A相电流下限',
|
|
|
+ title:'A相电流Min',
|
|
|
align:"center",
|
|
|
dataIndex: 'currentAMin'
|
|
|
},
|
|
|
- {
|
|
|
- title:'A相电流报警(0正常1报警)',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'currentAAlarm'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title:'A相电流报警(0正常1报警)',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'currentAAlarm_dictText'
|
|
|
+ // },
|
|
|
{
|
|
|
title:'B相电流',
|
|
|
align:"center",
|
|
|
- dataIndex: 'currentB'
|
|
|
+ dataIndex: 'currentB',
|
|
|
+ scopedSlots: { customRender: 'currentB' }
|
|
|
},
|
|
|
{
|
|
|
- title:'B相电流上限',
|
|
|
+ title:'B相电流Max',
|
|
|
align:"center",
|
|
|
dataIndex: 'currentBMax'
|
|
|
},
|
|
|
{
|
|
|
- title:'B相电流下限',
|
|
|
+ title:'B相电流Min',
|
|
|
align:"center",
|
|
|
dataIndex: 'currentBMin'
|
|
|
},
|
|
|
- {
|
|
|
- title:'B相电流报警(0正常1报警)',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'currentBAlarm'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title:'B相电流报警(0正常1报警)',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'currentBAlarm_dictText'
|
|
|
+ // },
|
|
|
{
|
|
|
title:'C相电流',
|
|
|
align:"center",
|
|
|
- dataIndex: 'currentC'
|
|
|
+ dataIndex: 'currentC',
|
|
|
+ scopedSlots: { customRender: 'currentC' }
|
|
|
},
|
|
|
{
|
|
|
- title:'C相电流上限',
|
|
|
+ title:'C相电流Max',
|
|
|
align:"center",
|
|
|
dataIndex: 'currentCMax'
|
|
|
},
|
|
|
{
|
|
|
- title:'C相电流下限',
|
|
|
+ title:'C相电流Min',
|
|
|
align:"center",
|
|
|
dataIndex: 'currentCMin'
|
|
|
},
|
|
|
- {
|
|
|
- title:'C相电流报警(0正常1报警)',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'currentCAlarm'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title:'C相电流报警(0正常1报警)',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'currentCAlarm_dictText'
|
|
|
+ // },
|
|
|
{
|
|
|
title:'创建时间',
|
|
|
align:"center",
|
|
|
dataIndex: 'createTime'
|
|
|
},
|
|
|
- {
|
|
|
- title: '操作',
|
|
|
- dataIndex: 'action',
|
|
|
- align:"center",
|
|
|
- fixed:"right",
|
|
|
- width:147,
|
|
|
- scopedSlots: { customRender: 'action' }
|
|
|
- }
|
|
|
+ // {
|
|
|
+ // title: '操作',
|
|
|
+ // dataIndex: 'action',
|
|
|
+ // align:"center",
|
|
|
+ // fixed:"right",
|
|
|
+ // width:147,
|
|
|
+ // scopedSlots: { customRender: 'action' }
|
|
|
+ // }
|
|
|
],
|
|
|
url: {
|
|
|
list: "/itdmWenxiangHistory/itdmWenxiangHistory05/list",
|
|
@@ -335,4 +344,12 @@
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
@import '~@assets/less/common.less';
|
|
|
+ ::v-deep .ant-card-body{
|
|
|
+ padding-top: 0px !important;
|
|
|
+ padding-left: 10px !important;
|
|
|
+ padding-right: 10px !important;
|
|
|
+ }
|
|
|
+ .y {
|
|
|
+ color: red;
|
|
|
+ }
|
|
|
</style>
|