|
@@ -62,16 +62,51 @@
|
|
|
{{ record.tagname }}
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
- <template slot="tagaddress" slot-scope="text, record,index">
|
|
|
+ <!-- <template slot="tagaddress" slot-scope="text, record,index">
|
|
|
<a-form-model-item :prop="'data.'+index+'.tagaddress'" :rules="validatorRules.tagaddress" style="margin-bottom: 0px;">
|
|
|
<a-input v-model="record.tagaddress"></a-input>
|
|
|
</a-form-model-item>
|
|
|
- </template>
|
|
|
- <!-- <template slot="tagtype" slot-scope="text, record,index">
|
|
|
+ </template> -->
|
|
|
+ <template slot="tagtype" slot-scope="text, record,index">
|
|
|
<a-form-model-item :prop="'data.'+index+'.tagtype'" :rules="validatorRules.tagtype" style="margin-bottom: 0px;">
|
|
|
- <a-input v-model="record.tagtype"></a-input>
|
|
|
+ <j-search-select-tag v-model="record.tagtype" placeholder="请选择点位类型" dict="tpm_tag_type"/>
|
|
|
</a-form-model-item>
|
|
|
- </template> -->
|
|
|
+ </template>
|
|
|
+ <template slot="energytypeid" slot-scope="text, record,index">
|
|
|
+ <a-form-model-item :prop="'data.'+index+'.energytypeid'" :rules="validatorRules.energytypeid" style="margin-bottom: 0px;">
|
|
|
+ <j-search-select-tag v-model="record.energytypeid" placeholder="请选择能源分类" dict="base_energy_type,name,id"/>
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+ <template slot="energyitemid" slot-scope="text, record,index">
|
|
|
+ <a-form-model-item :prop="'data.'+index+'.energyitemid'" :rules="validatorRules.energyitemid" style="margin-bottom: 0px;">
|
|
|
+ <j-search-select-tag v-model="record.energyitemid" placeholder="请选择能源分项" dict="base_energy_item,energyitemname,id"/>
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+ <template slot="max" slot-scope="text, record,index">
|
|
|
+ <a-form-model-item :prop="'data.'+index+'.max'" :rules="validatorRules.max" style="margin-bottom: 0px;">
|
|
|
+ <a-input-number v-model="record.max" placeholder="请输入上限" style="width: 100%" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+ <template slot="min" slot-scope="text, record,index">
|
|
|
+ <a-form-model-item :prop="'data.'+index+'.min'" :rules="validatorRules.min" style="margin-bottom: 0px;">
|
|
|
+ <a-input-number v-model="record.min" placeholder="请输入下限" style="width: 100%" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+ <template slot="delay" slot-scope="text, record,index">
|
|
|
+ <a-form-model-item :prop="'data.'+index+'.delay'" :rules="validatorRules.delay" style="margin-bottom: 0px;">
|
|
|
+ <a-input-number v-model="record.delay" placeholder="请输入报警延时(分钟)" style="width: 100%" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+ <template slot="param1" slot-scope="text, record,index">
|
|
|
+ <a-form-model-item :prop="'data.'+index+'.param1'" :rules="validatorRules.param1" style="margin-bottom: 0px;">
|
|
|
+ <a-input v-model="record.param1" placeholder="请输入其他值1" ></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+ <template slot="param2" slot-scope="text, record,index">
|
|
|
+ <a-form-model-item :prop="'data.'+index+'.param2'" :rules="validatorRules.param2" style="margin-bottom: 0px;">
|
|
|
+ <a-input v-model="record.param2" placeholder="请输入其他值2" ></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
<template slot="operation" slot-scope="text, record">
|
|
|
<span>
|
|
|
<a-popconfirm title="是否要删除此行?" @confirm="remove(record.key)">
|
|
@@ -120,20 +155,22 @@ export default {
|
|
|
dataIndex: 'tagname',
|
|
|
key: 'tagname',
|
|
|
align: 'center',
|
|
|
+ width: '12%',
|
|
|
scopedSlots: { customRender: 'tagname' }
|
|
|
},
|
|
|
- {
|
|
|
- title: '点位地址',
|
|
|
- dataIndex: 'tagaddress',
|
|
|
- key: 'tagaddress',
|
|
|
- align: 'center',
|
|
|
- scopedSlots: { customRender: 'tagaddress' }
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: '点位地址',
|
|
|
+ // dataIndex: 'tagaddress',
|
|
|
+ // key: 'tagaddress',
|
|
|
+ // align: 'center',
|
|
|
+ // scopedSlots: { customRender: 'tagaddress' }
|
|
|
+ // },
|
|
|
{
|
|
|
title: '点位类型',
|
|
|
dataIndex: 'tagtype',
|
|
|
key: 'tagtype',
|
|
|
align: 'center',
|
|
|
+ width: '10%',
|
|
|
scopedSlots: { customRender: 'tagtype' }
|
|
|
},
|
|
|
{
|
|
@@ -141,6 +178,7 @@ export default {
|
|
|
dataIndex: 'energytypeid',
|
|
|
key: 'energytypeid',
|
|
|
align: 'center',
|
|
|
+ width: '12%',
|
|
|
scopedSlots: { customRender: 'energytypeid' }
|
|
|
},
|
|
|
{
|
|
@@ -148,16 +186,10 @@ export default {
|
|
|
dataIndex: 'energyitemid',
|
|
|
key: 'energyitemid',
|
|
|
align: 'center',
|
|
|
+ width: '12%',
|
|
|
scopedSlots: { customRender: 'energyitemid' }
|
|
|
},
|
|
|
{
|
|
|
- title: '下限',
|
|
|
- dataIndex: 'min',
|
|
|
- key: 'min',
|
|
|
- align: 'center',
|
|
|
- scopedSlots: { customRender: 'min' }
|
|
|
- },
|
|
|
- {
|
|
|
title: '上限',
|
|
|
dataIndex: 'max',
|
|
|
key: 'max',
|
|
@@ -165,6 +197,13 @@ export default {
|
|
|
scopedSlots: { customRender: 'max' }
|
|
|
},
|
|
|
{
|
|
|
+ title: '下限',
|
|
|
+ dataIndex: 'min',
|
|
|
+ key: 'min',
|
|
|
+ align: 'center',
|
|
|
+ scopedSlots: { customRender: 'min' }
|
|
|
+ },
|
|
|
+ {
|
|
|
title: '报警延时(分钟)',
|
|
|
dataIndex: 'delay',
|
|
|
key: 'delay',
|
|
@@ -185,24 +224,25 @@ export default {
|
|
|
align: 'center',
|
|
|
scopedSlots: { customRender: 'param2' }
|
|
|
},
|
|
|
- {
|
|
|
- title: '当前点位值',
|
|
|
- dataIndex: 'tagvalue',
|
|
|
- key: 'tagvalue',
|
|
|
- align: 'center',
|
|
|
- scopedSlots: { customRender: 'tagvalue' }
|
|
|
- },
|
|
|
- {
|
|
|
- title: '获得时间',
|
|
|
- dataIndex: 'logtime',
|
|
|
- key: 'logtime',
|
|
|
- align: 'center',
|
|
|
- scopedSlots: { customRender: 'logtime' }
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: '当前点位值',
|
|
|
+ // dataIndex: 'tagvalue',
|
|
|
+ // key: 'tagvalue',
|
|
|
+ // align: 'center',
|
|
|
+ // scopedSlots: { customRender: 'tagvalue' }
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: '获得时间',
|
|
|
+ // dataIndex: 'logtime',
|
|
|
+ // key: 'logtime',
|
|
|
+ // align: 'center',
|
|
|
+ // scopedSlots: { customRender: 'logtime' }
|
|
|
+ // },
|
|
|
{
|
|
|
title: '操作',
|
|
|
key: 'action',
|
|
|
align: 'center',
|
|
|
+ fixed:"right",
|
|
|
scopedSlots: { customRender: 'operation' }
|
|
|
}
|
|
|
],
|
|
@@ -317,7 +357,7 @@ export default {
|
|
|
|
|
|
<style scoped>
|
|
|
.center{
|
|
|
- height: 100%;
|
|
|
+ height: calc(100vh - 150px);
|
|
|
width: 100%;
|
|
|
display: flex;
|
|
|
}
|
|
@@ -340,7 +380,7 @@ export default {
|
|
|
/* border: 2px solid red; */
|
|
|
}
|
|
|
.bottom{
|
|
|
- height: 80%;
|
|
|
+ height: calc(100vh - 284px);
|
|
|
width: 100%;
|
|
|
display: flex;
|
|
|
/* border: 2px solid red; */
|