|
|
@@ -17,8 +17,8 @@
|
|
|
|
|
|
</el-form-item>
|
|
|
<el-form-item style="position: absolute;right: 0%;margin-right: 5%;">
|
|
|
- <el-button type="primary" size="mini" @click="handleZtCommand('open', queryParams.productId)">{{$t('zk')}}</el-button>
|
|
|
- <el-button type="primary" style=";background-color: #656B8B" size="mini" @click="handleZtCommand('close', queryParams.productId)">{{$t('zg')}}</el-button>
|
|
|
+ <el-button type="primary" v-if="this.productParams.jkfs=='2'" size="mini" @click="handleZtCommand('open', queryParams.productId)">{{$t('zk')}}</el-button>
|
|
|
+ <el-button type="primary" v-if="this.productParams.jkfs=='2'" style=";background-color: #656B8B" size="mini" @click="handleZtCommand('close', queryParams.productId)">{{$t('zg')}}</el-button>
|
|
|
<!--<el-dropdown style="margin-left:10px;" size="mini" @command="(command) => handleZtCommand(command, this.queryParams.productId)" >-->
|
|
|
<!--<el-button type='primary' size="mini" style="margin-left: 10px;margin-top: 10px;width: 80px;background-color: #656B8B">{{$t('shib')}}{{$t('cz')}}<i class="el-icon-caret-bottom" /></el-button>-->
|
|
|
<!--<el-dropdown-menu slot="dropdown">-->
|
|
|
@@ -37,6 +37,8 @@
|
|
|
<el-table-column label="设备id" v-if="false" prop="productId" />
|
|
|
<el-table-column fixed :label="this.$t('tdmc')" :min-width="getStringWidth(this.$t('tdmc'))" prop="productChName" />
|
|
|
<el-table-column fixed :label="this.$t('tdh')" :min-width="getStringWidth(this.$t('tdh'))" prop="productChId" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column align="center" v-if="this.productParams.dwkjk=='1'" :label="this.$t('MACadress')" :min-width="getStringWidth(this.$t('MACadress'))+50" prop="MACadress" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column align="center" v-if="this.productParams.dwkjk=='1'" :label="this.$t('IPadress')" :min-width="getStringWidth(this.$t('IPadress'))+50" prop="IPadress" :show-overflow-tooltip="true" />
|
|
|
|
|
|
<el-table-column :label="this.$t('sxxx')" :min-width="getStringWidth(this.$t('sxxx'))" prop="productPhOrder" :show-overflow-tooltip="true" >
|
|
|
<template slot-scope="scope">
|
|
|
@@ -58,9 +60,36 @@
|
|
|
<el-table-column :label="this.$t('pl')" v-if="this.productType!='1'" :min-width="getStringWidth(this.$t('pl'))" align="center" prop="productChPowerFreq" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column :label="this.$t('hdl')+'(kWh)'" :min-width="getStringWidth(this.$t('hdl')+'(kWh)')" align="center" prop="productChConsumption" :show-overflow-tooltip="true" />
|
|
|
<el-table-column :label="this.$t('glys')" v-if="this.productType!='1'" :min-width="getStringWidth(this.$t('glys'))" align="center" prop="productChPowerFactor" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column :label="this.$t('kqys')+'(S)'" :min-width="getStringWidth(this.$t('kqys')+'(S)')" sortable prop="firingInterval" align="center" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column :label="this.$t('gbys')+'(S)'" :min-width="getStringWidth(this.$t('gbys')+'(S)')" sortable align="center" prop="closeInterval" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column fixed="right" :label="this.$t('zt')" width="100" align="center" prop="productChStatus" >
|
|
|
+ <el-table-column v-if="this.productParams.jkfs=='2'" :label="this.$t('kqys')+'(S)'" :min-width="getStringWidth(this.$t('kqys')+'(S)')" sortable prop="firingInterval" align="center" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column v-if="this.productParams.jkfs=='2'" :label="this.$t('gbys')+'(S)'" :min-width="getStringWidth(this.$t('gbys')+'(S)')" sortable align="center" prop="closeInterval" :show-overflow-tooltip="true"/>
|
|
|
+ <el-table-column fixed="right" :label="this.$t('lxzt')" v-if="this.productParams.lxkz=='1'" :min-width="getStringWidth(this.$t('lxzt'))" align="center" prop="productChZeroStatus" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="getDity2(scope.row,'productChZeroStatus', scope.$index)=='0'" style="color: red">{{getDity1(scope.row,'productChZeroStatus', scope.$index)}}</span>
|
|
|
+ <span v-else-if="getDity2(scope.row,'productChZeroStatus', scope.$index)=='1'" style="color: green">{{getDity1(scope.row,'productChZeroStatus', scope.$index)}}</span>
|
|
|
+ <span v-else style="color: #c747b1">{{getDity1(scope.row,'productChZeroStatus', scope.$index)}}</span>
|
|
|
+ <!--<span v-else style="color: green">{{getDity1y1(scope.row,'productChStatus', scope.$index)}}</span>-->
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column fixed="right" :label="this.$t('lxcz')" v-if="this.productParams.lxkz=='1'" align="center" :min-width="getStringWidth(this.$t('lxcz'))" class-name="small-padding fixed-width">
|
|
|
+ <template slot-scope="scope" >
|
|
|
+ <el-button
|
|
|
+ v-if="getDity2(scope.row,'productChZeroStatus', scope.$index)=='0'"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ @click="handleCommand2('channelopen',scope.row)"
|
|
|
+ >{{$t('dk')}}</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="getDity2(scope.row,'productChZeroStatus', scope.$index)=='1'"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ @click="handleCommand2('channelclose',scope.row)"
|
|
|
+ >{{$t('gb')}}</el-button>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column fixed="right" :label="this.$t('zt')" v-if="this.productParams.jkfs=='2'" width="100" align="center" prop="productChStatus" >
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="getDity2(scope.row,'productChStatus', scope.$index)=='0'" style="color: red">{{getDity1(scope.row,'productChStatus', scope.$index)}}</span>
|
|
|
<span v-else-if="getDity2(scope.row,'productChStatus', scope.$index)=='1'" style="color: green">{{getDity1(scope.row,'productChStatus', scope.$index)}}</span>
|
|
|
@@ -68,7 +97,7 @@
|
|
|
<!--<span v-else style="color: green">{{getDity1y1(scope.row,'productChStatus', scope.$index)}}</span>-->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column fixed="right" :label="this.$t('cz')" align="center" :min-width="getStringWidth(this.$t('cz'))" class-name="small-padding fixed-width">
|
|
|
+ <el-table-column fixed="right" :label="this.$t('cz')" v-if="this.productParams.jkfs=='2'" align="center" :min-width="getStringWidth(this.$t('cz'))" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope" >
|
|
|
<el-button
|
|
|
v-if="getDity2(scope.row,'productChStatus', scope.$index)=='0'"
|
|
|
@@ -94,7 +123,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column fixed="right" :label="this.$t('pz')" align="center" width="100" class-name="small-padding fixed-width">
|
|
|
+ <el-table-column fixed="right" :label="this.$t('pz')" v-if="this.productParams.jkfs=='2'" align="center" width="100" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope" >
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
@@ -115,6 +144,8 @@
|
|
|
<el-table-column label="设备id" v-if="false" prop="productId" />
|
|
|
<el-table-column fixed :label="this.$t('tdmc')" :min-width="getStringWidth(this.$t('tdmc'))" prop="productChName" />
|
|
|
<el-table-column fixed :label="this.$t('tdh')" :min-width="getStringWidth(this.$t('tdh'))" prop="productChId" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column align="center" v-if="this.productParams.dwkjk=='1'" :label="this.$t('MACadress')" :min-width="getStringWidth(this.$t('MACadress'))+50" prop="MACadress" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column align="center" v-if="this.productParams.dwkjk=='1'" :label="this.$t('IPadress')" :min-width="getStringWidth(this.$t('IPadress'))+50" prop="IPadress" :show-overflow-tooltip="true" />
|
|
|
|
|
|
<el-table-column :label="this.$t('sxxx')" :min-width="getStringWidth(this.$t('sxxx'))" prop="productPhOrder" :show-overflow-tooltip="true" >
|
|
|
<template slot-scope="scope">
|
|
|
@@ -137,9 +168,9 @@
|
|
|
<el-table-column :label="this.$t('pl')" v-if="this.productType!='1'" :min-width="getStringWidth(this.$t('pl'))" align="center" prop="productChPowerFreq" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column :label="this.$t('hdl')+'(kWh)'" :min-width="getStringWidth(this.$t('hdl')+'(kWh)')" align="center" prop="productChConsumption" :show-overflow-tooltip="true" />
|
|
|
<el-table-column :label="this.$t('glys')" v-if="this.productType!='1'" :min-width="getStringWidth(this.$t('glys'))" align="center" prop="productChPowerFactor" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column :label="this.$t('kqys')+'(S)'" :min-width="getStringWidth(this.$t('kqys')+'(S)')" sortable prop="firingInterval" align="center" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column :label="this.$t('gbys')+'(S)'" :min-width="getStringWidth(this.$t('gbys')+'(S)')" sortable align="center" prop="closeInterval" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column fixed="right" :label="this.$t('zt')" width="100" align="center" prop="productChStatus" >
|
|
|
+ <el-table-column :label="this.$t('kqys')+'(S)'" v-if="this.productParams.jkfs=='2'" :min-width="getStringWidth(this.$t('kqys')+'(S)')" sortable prop="firingInterval" align="center" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column :label="this.$t('gbys')+'(S)'" v-if="this.productParams.jkfs=='2'" :min-width="getStringWidth(this.$t('gbys')+'(S)')" sortable align="center" prop="closeInterval" :show-overflow-tooltip="true"/>
|
|
|
+ <el-table-column fixed="right" :label="this.$t('zt')" v-if="this.productParams.jkfs=='2'" width="100" align="center" prop="productChStatus" >
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="getDity2(scope.row,'productChStatus', scope.$index)=='0'" style="color: red">{{getDity1(scope.row,'productChStatus', scope.$index)}}</span>
|
|
|
<span v-else-if="getDity2(scope.row,'productChStatus', scope.$index)=='1'" style="color: green">{{getDity1(scope.row,'productChStatus', scope.$index)}}</span>
|
|
|
@@ -147,7 +178,7 @@
|
|
|
<!--<span v-else style="color: green">{{getDity1y1(scope.row,'productChStatus', scope.$index)}}</span>-->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column fixed="right" :label="this.$t('cz')" align="center" :min-width="getStringWidth(this.$t('cz'))" class-name="small-padding fixed-width">
|
|
|
+ <el-table-column fixed="right" :label="this.$t('cz')" v-if="this.productParams.jkfs=='2'" align="center" :min-width="getStringWidth(this.$t('cz'))" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope" >
|
|
|
<el-button
|
|
|
v-if="getDity2(scope.row,'productChStatus', scope.$index)=='0'"
|
|
|
@@ -166,6 +197,33 @@
|
|
|
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column fixed="right" :label="this.$t('lxzt')" v-if="this.productParams.lxkz=='1'" :min-width="getStringWidth(this.$t('lxzt'))" align="center" prop="productChZeroStatus" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="getDity2(scope.row,'productChZeroStatus', scope.$index)=='0'" style="color: red">{{getDity1(scope.row,'productChZeroStatus', scope.$index)}}</span>
|
|
|
+ <span v-else-if="getDity2(scope.row,'productChZeroStatus', scope.$index)=='1'" style="color: green">{{getDity1(scope.row,'productChZeroStatus', scope.$index)}}</span>
|
|
|
+ <span v-else style="color: #c747b1">{{getDity1(scope.row,'productChZeroStatus', scope.$index)}}</span>
|
|
|
+ <!--<span v-else style="color: green">{{getDity1y1(scope.row,'productChStatus', scope.$index)}}</span>-->
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column fixed="right" :label="this.$t('lxcz')" v-if="this.productParams.lxkz=='1'" align="center" :min-width="getStringWidth(this.$t('lxcz'))" class-name="small-padding fixed-width">
|
|
|
+ <template slot-scope="scope" >
|
|
|
+ <el-button
|
|
|
+ v-if="getDity2(scope.row,'productChZeroStatus', scope.$index)=='0'"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ @click="handleCommand2('channelopen',scope.row)"
|
|
|
+ >{{$t('dk')}}</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="getDity2(scope.row,'productChZeroStatus', scope.$index)=='1'"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ @click="handleCommand2('channelclose',scope.row)"
|
|
|
+ >{{$t('gb')}}</el-button>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column fixed="right" :label="this.$t('sclx')" :min-width="getStringWidth(this.$t('sclx'))" align="center" prop="outputType" :show-overflow-tooltip="true" >
|
|
|
<template slot-scope="scope">
|
|
|
<span @click="onclickOutType(scope.row, scope.$index)" v-if="scope.row.outputType=='1'" style="color: red;cursor: pointer">{{getDity(scope.row,'outputTypes')}}</span>
|
|
|
@@ -173,7 +231,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column fixed="right" :label="this.$t('pz')" align="center" width="100" class-name="small-padding fixed-width">
|
|
|
+ <el-table-column fixed="right" :label="this.$t('pz')" v-if="this.productParams.jkfs=='2'" align="center" width="100" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope" >
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
@@ -195,6 +253,8 @@
|
|
|
<el-table-column label="设备id" v-if="false" prop="productId" />
|
|
|
<el-table-column fixed :label="this.$t('tdmc')" :min-width="getStringWidth(this.$t('tdmc'))" prop="productChName" />
|
|
|
<el-table-column fixed :label="this.$t('tdh')" :min-width="getStringWidth(this.$t('tdh'))" prop="productChId" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column align="center" v-if="this.productParams.dwkjk=='1'" :label="this.$t('MACadress')" :min-width="getStringWidth(this.$t('MACadress'))+50" prop="MACadress" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column align="center" v-if="this.productParams.dwkjk=='1'" :label="this.$t('IPadress')" :min-width="getStringWidth(this.$t('IPadress'))+50" prop="IPadress" :show-overflow-tooltip="true" />
|
|
|
<el-table-column :label="this.$t('sxxx')" v-if="this.productType=='3'" prop="productPhOrder" :show-overflow-tooltip="true" >
|
|
|
<template slot-scope="scope">
|
|
|
<span >{{getDity(scope.row,'productPhOrders')}}</span>
|
|
|
@@ -213,9 +273,9 @@
|
|
|
<el-table-column :label="this.$t('pl')" v-if="this.productType!='1'" :min-width="getStringWidth(this.$t('pl'))" align="center" prop="productChPowerFreq" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column :label="this.$t('hdl')+'(kWh)'" :min-width="getStringWidth(this.$t('hdl')+'(kWh)')" align="center" prop="productChConsumption" :show-overflow-tooltip="true" />
|
|
|
<el-table-column :label="this.$t('glys')" v-if="this.productType!='1'" :min-width="getStringWidth(this.$t('glys'))" align="center" prop="productChPowerFactor" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column :label="this.$t('kqys')+'(S)'" :min-width="getStringWidth(this.$t('kqys')+'(S)')" sortable prop="firingInterval" align="center" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column :label="this.$t('gbys')+'(S)'" :min-width="getStringWidth(this.$t('gbys')+'(S)')" sortable align="center" prop="closeInterval" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column fixed="right" :label="this.$t('zt')" align="center" prop="productChStatus" >
|
|
|
+ <el-table-column :label="this.$t('kqys')+'(S)'" v-if="this.productParams.jkfs=='2'" :min-width="getStringWidth(this.$t('kqys')+'(S)')" sortable prop="firingInterval" align="center" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column :label="this.$t('gbys')+'(S)'" v-if="this.productParams.jkfs=='2'" :min-width="getStringWidth(this.$t('gbys')+'(S)')" sortable align="center" prop="closeInterval" :show-overflow-tooltip="true"/>
|
|
|
+ <el-table-column fixed="right" :label="this.$t('zt')" v-if="this.productParams.jkfs=='2'" align="center" prop="productChStatus" >
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.productChStatus=='0'" style="color: red">{{getDity(scope.row,'productChStatus')}}</span>
|
|
|
<span v-else-if="scope.row.productChStatus=='1'" style="color: green">{{getDity(scope.row,'productChStatus')}}</span>
|
|
|
@@ -223,7 +283,7 @@
|
|
|
<!--<span v-else style="color: green">{{getDity(scope.row,'productChStatus')}}</span>-->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column fixed="right" :label="this.$t('cz')" align="center" width="100" class-name="small-padding fixed-width">
|
|
|
+ <el-table-column fixed="right" :label="this.$t('cz')" v-if="this.productParams.jkfs=='2'" align="center" width="100" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope" >
|
|
|
<el-button
|
|
|
v-if="scope.row.productChStatus == '0'"
|
|
|
@@ -242,7 +302,34 @@
|
|
|
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column fixed="right" :label="this.$t('pz')" align="center" width="100" class-name="small-padding fixed-width">
|
|
|
+ <el-table-column fixed="right" :label="this.$t('lxzt')" v-if="this.productParams.lxkz=='1'" :min-width="getStringWidth(this.$t('lxzt'))" align="center" prop="productChZeroStatus" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="getDity2(scope.row,'productChZeroStatus', scope.$index)=='0'" style="color: red">{{getDity1(scope.row,'productChZeroStatus', scope.$index)}}</span>
|
|
|
+ <span v-else-if="getDity2(scope.row,'productChZeroStatus', scope.$index)=='1'" style="color: green">{{getDity1(scope.row,'productChZeroStatus', scope.$index)}}</span>
|
|
|
+ <span v-else style="color: #c747b1">{{getDity1(scope.row,'productChZeroStatus', scope.$index)}}</span>
|
|
|
+ <!--<span v-else style="color: green">{{getDity1y1(scope.row,'productChStatus', scope.$index)}}</span>-->
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column fixed="right" :label="this.$t('lxcz')" v-if="this.productParams.lxkz=='1'" align="center" :min-width="getStringWidth(this.$t('lxcz'))" class-name="small-padding fixed-width">
|
|
|
+ <template slot-scope="scope" >
|
|
|
+ <el-button
|
|
|
+ v-if="getDity2(scope.row,'productChZeroStatus', scope.$index)=='0'"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ @click="handleCommand2('channelopen',scope.row)"
|
|
|
+ >{{$t('dk')}}</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="getDity2(scope.row,'productChZeroStatus', scope.$index)=='1'"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ @click="handleCommand2('channelclose',scope.row)"
|
|
|
+ >{{$t('gb')}}</el-button>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column fixed="right" :label="this.$t('pz')" v-if="this.productParams.jkfs=='2'" align="center" width="100" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope" >
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
@@ -385,18 +472,20 @@
|
|
|
outputTypes:[{"id":"1","name":"sx"},{"id":"2","name":"dx"}],
|
|
|
// 输出状态
|
|
|
outputStatus:[{"id":"1","name":"sc"},{"id":"2","name":"bsc"}],
|
|
|
+
|
|
|
productType:"",
|
|
|
disabled2:false,
|
|
|
- disabled3:false
|
|
|
+ disabled3:false,
|
|
|
+ productParams:{}
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
//监听websocket消息
|
|
|
-
|
|
|
this.$bus.$on('CHANNEL_STATUS_MONITORING', this.onSocketMessageToChannel);
|
|
|
},
|
|
|
created() {
|
|
|
this.usertoken= this.$store.state.user.usertoken;
|
|
|
+ this.productParams= this.$store.state.user.productParams;
|
|
|
// this.dataRefreh();
|
|
|
this.queryProductList();
|
|
|
},
|
|
|
@@ -459,20 +548,46 @@
|
|
|
this.outOpen=true;
|
|
|
},
|
|
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
|
|
- if (columnIndex === 0 || columnIndex === 1 || columnIndex === 2 || columnIndex === 8 || columnIndex === 9 || columnIndex === 10 || columnIndex === 11 || columnIndex === 12 || columnIndex === 13 || columnIndex === 14 || columnIndex === 15 || columnIndex === 16 || columnIndex === 17 || columnIndex === 18 || columnIndex === 19 ) {
|
|
|
-
|
|
|
- if (rowIndex % 3 === 0) {
|
|
|
- return {
|
|
|
- rowspan: 3,
|
|
|
- colspan: 1
|
|
|
- };
|
|
|
- } else {
|
|
|
- return {
|
|
|
- rowspan: 0,
|
|
|
- colspan: 0
|
|
|
- };
|
|
|
+ // 三项判断默认全部三项列都显示
|
|
|
+ //监控方式:1-总检测 2-分监分控 3-分监不控
|
|
|
+ var jkfs=this.productParams.jkfs;
|
|
|
+ //电网口监测0-不启用 1-启用
|
|
|
+ var dwkjk=this.productParams.dwkjk;
|
|
|
+ //零线控制0-不启用 1-启用
|
|
|
+ var lxkz=this.productParams.lxkz;
|
|
|
+ if(dwkjk=="1"){
|
|
|
+ if (columnIndex != 5 && columnIndex != 6 && columnIndex != 7 && columnIndex != 8 && columnIndex != 9 ) {
|
|
|
+
|
|
|
+ if (rowIndex % 3 === 0) {
|
|
|
+ return {
|
|
|
+ rowspan: 3,
|
|
|
+ colspan: 1
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ return {
|
|
|
+ rowspan: 0,
|
|
|
+ colspan: 0
|
|
|
+ };
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if (columnIndex != 3 && columnIndex != 4 && columnIndex != 5 && columnIndex != 6 && columnIndex != 7 ) {
|
|
|
+
|
|
|
+ if (rowIndex % 3 === 0) {
|
|
|
+ return {
|
|
|
+ rowspan: 3,
|
|
|
+ colspan: 1
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ return {
|
|
|
+ rowspan: 0,
|
|
|
+ colspan: 0
|
|
|
+ };
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
|
|
|
// 设备列表
|
|
|
@@ -550,7 +665,19 @@
|
|
|
}
|
|
|
formTrain=this.productChStatuss
|
|
|
id=productChStatus
|
|
|
- }else if(type=='alarmStatus'){
|
|
|
+ }else if(type=='productChZeroStatus'){
|
|
|
+ var productChZeroStatus='';
|
|
|
+ for(var i=index;i<=index+2;i++){
|
|
|
+ const obj=this.channelList[i];
|
|
|
+ if(obj.outputStatus=='1'){
|
|
|
+ productChZeroStatus=obj.productChZeroStatus;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ formTrain=this.productChStatuss
|
|
|
+ id=productChZeroStatus
|
|
|
+ }
|
|
|
+ else if(type=='alarmStatus'){
|
|
|
formTrain=this.alarmStatuss
|
|
|
id=row.alarmStatus
|
|
|
}else if(type=='connectionStatus'){
|
|
|
@@ -593,6 +720,17 @@
|
|
|
}
|
|
|
formTrain=this.productChStatuss
|
|
|
id=productChStatus
|
|
|
+ }else if(type=='productChZeroStatus'){
|
|
|
+ var productChZeroStatus='';
|
|
|
+ for(var i=index;i<=index+2;i++){
|
|
|
+ const obj=this.channelList[i];
|
|
|
+ if(obj.outputStatus=='1'){
|
|
|
+ productChZeroStatus=obj.productChZeroStatus;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ formTrain=this.productChStatuss
|
|
|
+ id=productChZeroStatus
|
|
|
}
|
|
|
return id;
|
|
|
},
|