|
|
@@ -16,7 +16,7 @@
|
|
|
|
|
|
<el-table-column :label="this.$t('mc')" prop="productChName" width="130" />
|
|
|
<el-table-column :label="this.$t('bh')" prop="productChId" :show-overflow-tooltip="true" width="100" />
|
|
|
- <el-table-column :label="this.$t('dysxz')" prop="currentUpperValue" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column :label="this.$t('dlsxz')" prop="currentUpperValue" :show-overflow-tooltip="true" />
|
|
|
<el-table-column :label="this.$t('dyasxxxz')+'(V)'" prop="thresholdValue" width="300" >
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{$t('zdz')}}:{{ scope.row.voltageUpperValue}} / {{$t('zxz')}}:{{ scope.row.voltageDownValue}}</span>
|
|
|
@@ -24,7 +24,11 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column :label="this.$t('glsxz')+'(W)'" prop="powerUpperValue" :show-overflow-tooltip="true" />
|
|
|
<el-table-column :label="this.$t('hdlsxz')+'(Kwh)'" prop="alarmContentUpperValue" width="150" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column :label="this.$t('zt')" prop="productChStatus" width="80" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column :label="this.$t('zt')" prop="productChStatus" width="80" :show-overflow-tooltip="true" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{getDity(scope.row,'productChStatus')}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column :label="this.$t('cz')" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope" >
|
|
|
<el-button
|
|
|
@@ -64,44 +68,62 @@
|
|
|
<el-table height="600" :data="sensorThresholdList" :header-cell-style="{ background:'#FFFFFF',color:'#000000'}">
|
|
|
<el-table-column :label="this.$t('cgqxh')" prop="sensorId" :show-overflow-tooltip="true" width="120" />
|
|
|
<el-table-column :label="this.$t('cgqmc')" prop="sensorName" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column :label="$t('lx')" prop="sensorType" width="140" >
|
|
|
+ <el-table-column :label="$t('cgq')+$t('lx')" prop="sensorType" width="140" >
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{getDity(scope.row,'sensorType')}}</span>
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
- <el-table-column :label="this.$t('ljzt')" align="center" prop="connectionStatus" />
|
|
|
+ <el-table-column :label="$t('yz')+$t('lx')" prop="thresholdType" width="100" />
|
|
|
+ <el-table-column :label="this.$t('ljzt')" align="center" prop="connectionStatus" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{getDity(scope.row,'connectionStatus')}}</span>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ </el-table-column>
|
|
|
<el-table-column :label="this.$t('sznr')" align="center" prop="thresholdValue" />
|
|
|
<el-table-column :label="this.$t('dw')" align="center" prop="unit" />
|
|
|
<el-table-column :label="this.$t('cz')" align="center" width="130" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope" >
|
|
|
- <el-button v-if="scope.row.sensorType=='0' || scope.row.sensorType=='4' || scope.row.sensorType=='4' "
|
|
|
+ <el-button v-if="scope.row.sensorType=='0' || scope.row.sensorType=='4' || scope.row.sensorType=='5' "
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
@click="sensorStatusUpdate(scope.row)"
|
|
|
>{{$t('pz')}}</el-button>
|
|
|
|
|
|
- <el-button v-if="scope.row.sensorType==='1' "
|
|
|
+ <el-button v-if="scope.row.sensorType=='1' "
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-refresh"
|
|
|
@click="issueInstructionsReset(scope.row)"
|
|
|
>{{$t('fw')}}</el-button>
|
|
|
- <el-button v-if="scope.row.sensorType==='3'"
|
|
|
+ <el-button v-if="scope.row.sensorType=='3'"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-refresh"
|
|
|
@click="issueInstructionsRelease(scope.row)"
|
|
|
>{{$t('sf')}}</el-button>
|
|
|
- <el-dropdown v-if="scope.row.sensorType==='6'" style="margin-left:10px" size="mini" @command="(command) => sensorStatusHandleCommand(command, scope.row)" >
|
|
|
- <el-button icon="el-icon-d-arrow-right" size="mini" type="text" style="margin-left: 10px">{{$t('gd')}}</el-button>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item v-if="scope.row.connectionStatus == '0'" command="sensorStatusclose" style="margin-left: 10px">{{$t('gb')}}</el-dropdown-item>
|
|
|
- <el-dropdown-item v-if="scope.row.connectionStatus == '1'" command="sensorStatusopen" style="margin-left: 10px">{{$t('kq')}}</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
+ <el-button v-if="scope.row.sensorType=='6' && scope.row.connectionStatus == '0'"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ @click="sensorStatusHandleCommand('sensorStatusclose', scope.row)"
|
|
|
+ >{{$t('gb')}}</el-button>
|
|
|
+ <el-button v-if="scope.row.sensorType=='6' && scope.row.connectionStatus == '1'"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ @click="sensorStatusHandleCommand('sensorStatusopen', scope.row)"
|
|
|
+ >{{$t('kq')}}</el-button>
|
|
|
+ <!--<el-dropdown v-if="scope.row.sensorType=='6'" style="margin-left:10px" size="mini" @command="(command) => sensorStatusHandleCommand(command, scope.row)" >-->
|
|
|
+ <!--<el-button icon="el-icon-d-arrow-right" size="mini" type="text" style="margin-left: 10px">{{$t('gd')}}</el-button>-->
|
|
|
+ <!--<el-dropdown-menu slot="dropdown">-->
|
|
|
+ <!--<el-dropdown-item v-if="scope.row.connectionStatus == '0'" command="sensorStatusclose" style="margin-left: 10px">{{$t('gb')}}</el-dropdown-item>-->
|
|
|
+ <!--<el-dropdown-item v-if="scope.row.connectionStatus == '1'" command="sensorStatusopen" style="margin-left: 10px">{{$t('kq')}}</el-dropdown-item>-->
|
|
|
+ <!--</el-dropdown-menu>-->
|
|
|
|
|
|
- </el-dropdown>
|
|
|
+ <!--</el-dropdown>-->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -111,45 +133,45 @@
|
|
|
</el-col>
|
|
|
|
|
|
<!-- 编辑通道-->
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="750px" :close-on-click-modal="false" :close-on-press-escape="false" append-to-body>
|
|
|
- <el-form ref="form" :model="form" label-width="140px">
|
|
|
- <el-row :span="20">
|
|
|
- <el-col :span="12">
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="450px" :close-on-click-modal="false" :close-on-press-escape="false" append-to-body>
|
|
|
+ <el-form ref="form" :model="form" label-width="150px">
|
|
|
+ <el-row :span="22">
|
|
|
+ <el-col >
|
|
|
<el-form-item v-if="false" :label="this.$t('dylx')" prop="dyType">
|
|
|
<el-input :readonly="true" :disabled="true" v-model="form.dyType" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col >
|
|
|
<el-form-item :label="this.$t('mc')" prop="productChName">
|
|
|
<el-input v-model="form.productChName" :disabled="true" :readonly="true" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col >
|
|
|
<el-form-item v-if="false" :label="this.$t('bh')" prop="productChId">
|
|
|
<el-input v-model="form.productChId" :disabled="true" :readonly="true" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item :label="this.$t('dysxz')+'(A)'" prop="currentUpperValue">
|
|
|
+ <el-col >
|
|
|
+ <el-form-item :label="this.$t('dlsxz')+'(A)'" prop="currentUpperValue">
|
|
|
<el-input v-model="form.currentUpperValue" type="number"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col >
|
|
|
<el-form-item :label="this.$t('dysxz')+'(V)'" prop="voltageUpperValue">
|
|
|
<el-input v-model="form.voltageUpperValue" type="number"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col >
|
|
|
<el-form-item :label="this.$t('dyxxz')+'(V)'" prop="voltageDownValue">
|
|
|
<el-input v-model="form.voltageDownValue" type="number" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col >
|
|
|
<el-form-item :label="this.$t('glsxz')+'(W)'" prop="powerUpperValue">
|
|
|
<el-input v-model="form.powerUpperValue" type="number"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col >
|
|
|
<el-form-item :label="this.$t('hdlsxz')+'(Kwh)'" prop="alarmContentUpperValue">
|
|
|
<el-input v-model="form.alarmContentUpperValue" type="number"/>
|
|
|
</el-form-item>
|
|
|
@@ -162,36 +184,46 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 配制传感器-->
|
|
|
- <el-dialog :title="sensorStatusTitle" :visible.sync="sensorStatusOpen" width="750px" append-to-body>
|
|
|
- <el-form ref="sensorStatusForm" :model="sensorStatusForm" label-width="140px">
|
|
|
- <el-row :span="20">
|
|
|
- <el-col :span="12">
|
|
|
+ <el-dialog :title="sensorStatusTitle" :visible.sync="sensorStatusOpen" width="450px" append-to-body>
|
|
|
+ <el-form ref="sensorStatusForm" :model="sensorStatusForm" label-width="150px">
|
|
|
+ <el-row :span="22">
|
|
|
+ <el-col >
|
|
|
<el-form-item v-if="false" :label="this.$t('xuh')" prop="sensorId">
|
|
|
<el-input :readonly="true" :disabled="true" v-model="sensorStatusForm.sensorId" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col>
|
|
|
<el-form-item :label="this.$t('mc')" prop="sensorName">
|
|
|
<el-input v-model="sensorStatusForm.sensorName" :readonly="true" :disabled="true" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item v-if="false" :label="this.$t('lx')" prop="sensorType">
|
|
|
+ <el-col >
|
|
|
+ <el-form-item v-if="false" :label="this.$t('cgq')+this.$t('lx')" prop="sensorType">
|
|
|
<el-input v-model="sensorStatusForm.sensorType" :readonly="true" :disabled="true" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col >
|
|
|
+ <el-form-item :label="this.$t('cgq')+this.$t('lx')" prop="sensorTypeName">
|
|
|
+ <el-input v-model="sensorStatusForm.sensorTypeName" :readonly="true" :disabled="true" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col >
|
|
|
+ <el-form-item :label="$t('yz')+$t('lx')" prop="thresholdType">
|
|
|
+ <el-input v-model="sensorStatusForm.thresholdType" :readonly="true" :disabled="true"/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col>
|
|
|
<el-form-item :label="this.$t('dw')" prop="unit">
|
|
|
<el-input v-model="sensorStatusForm.unit" :readonly="true" :disabled="true"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col>
|
|
|
<el-form-item :label="this.$t('zxz')" prop="thresholdDownValue">
|
|
|
<el-input v-model="sensorStatusForm.thresholdDownValue" type="number"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col >
|
|
|
<el-form-item :label="this.$t('zdz')" prop="thresholdUpperValue">
|
|
|
<el-input v-model="sensorStatusForm.thresholdUpperValue" type="number" />
|
|
|
</el-form-item>
|
|
|
@@ -250,7 +282,11 @@
|
|
|
sensorStatusOpen: false, // 配置传感器
|
|
|
sensorStatusTitle: '',
|
|
|
sensorStatusTabs:[{"id":"0","name":"wsdcgq"},{"id":"1","name":"ywcgq"},{"id":"2","name":"sqcgq"},{"id":"3","name":"mjcgq"},{"id":"4","name":"qtcgq"},{"id":"5","name":"qyqlcgq"},{"id":"6","name":"ktcgq"}],
|
|
|
- dyTypes: [{"id":"0","name":"shib"},{"id":"1","name":"td"}]
|
|
|
+ dyTypes: [{"id":"0","name":"shib"},{"id":"1","name":"td"}],
|
|
|
+ // 在线/离线
|
|
|
+ connectionStatuss:[{"id":"0","name":"zx"},{"id":"1","name":"lix"}],
|
|
|
+ // 通道状态
|
|
|
+ productChStatuss:[{"id":"0","name":"duank"},{"id":"1","name":"jt"}],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -264,7 +300,10 @@
|
|
|
var name="";
|
|
|
var id="";
|
|
|
var formTrain=[];
|
|
|
- if(type=='accessControlStatus'){
|
|
|
+ if(type=='productChStatus'){
|
|
|
+ formTrain=this.productChStatuss
|
|
|
+ id=row.productChStatus
|
|
|
+ }else if(type=='accessControlStatus'){
|
|
|
formTrain=this.accessControlStatuss
|
|
|
id=row.accessControlStatus
|
|
|
}else if(type=='alarmStatus'){
|
|
|
@@ -304,6 +343,12 @@
|
|
|
/** 传感器按钮操作 */
|
|
|
sensorStatusUpdate(row) {
|
|
|
this.sensorStatusForm =row;
|
|
|
+ for (var i = 0; i < this.sensorStatusTabs.length; i++) {
|
|
|
+ let item = this.sensorStatusTabs[i]
|
|
|
+ if (row.sensorType== item.id) {
|
|
|
+ this.sensorStatusForm.sensorTypeName=this.$t(item.name);
|
|
|
+ }
|
|
|
+ }
|
|
|
this.sensorStatusOpen = true;
|
|
|
this.sensorStatusTitle = this.$t('pz');
|
|
|
},
|
|
|
@@ -568,6 +613,7 @@
|
|
|
const params={};
|
|
|
params.token=this.usertoken;
|
|
|
params.sensorType=this.sensorStatusForm.sensorType;
|
|
|
+ params.thresholdType=this.sensorStatusForm.thresholdType;
|
|
|
params.sensorId=this.sensorStatusForm.sensorId;
|
|
|
params.sensorName=this.sensorStatusForm.sensorName;
|
|
|
params.comSlogan=this.sensorStatusForm.comSlogan;
|