|
|
@@ -46,7 +46,7 @@
|
|
|
<span style="color: red">{{ scope.row.alarmContentUpperValue}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :label="this.$t('zt')" prop="productChStatus" :min-width="100" :show-overflow-tooltip="true" >
|
|
|
+ <el-table-column v-if="this.productParams.jkfs!='1' && this.productParams.jkfs!='3' " :label="this.$t('zt')" prop="productChStatus" :min-width="100" :show-overflow-tooltip="true" >
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.productChStatus=='0'" style="color: red">{{getDity(scope.row,'productChStatus')}}</span>
|
|
|
<span v-else style="color: green">{{getDity(scope.row,'productChStatus')}}</span>
|
|
|
@@ -60,7 +60,7 @@
|
|
|
type="text"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
>{{$t('pz')}}</el-button>
|
|
|
- <el-dropdown :disabled="scope.row.sfyxcz=='1'" v-if="scope.row.dyType == '0'" style="margin-left:10px" size="mini" @command="(command) => handleAllCommand(command, scope.row)" >
|
|
|
+ <el-dropdown :disabled="scope.row.sfyxcz=='1'" v-if="scope.row.dyType == '0' && productParams.jkfs!='1' && productParams.jkfs!='3'" style="margin-left:10px" size="mini" @command="(command) => handleAllCommand(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 command="channelopen" style="margin-left: 10px">{{$t('dk')}}</el-dropdown-item>
|
|
|
@@ -68,14 +68,14 @@
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
<el-button
|
|
|
- v-if="scope.row.productChStatus == '0' && scope.row.dyType == '1'"
|
|
|
+ v-if="scope.row.productChStatus == '0' && scope.row.dyType == '1' && productParams.jkfs!='1' && productParams.jkfs!='3'"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
:disabled="scope.row.sfyxcz=='1'"
|
|
|
@click="handleCommand('channelopen',scope.row)"
|
|
|
>{{$t('dk')}}</el-button>
|
|
|
<el-button
|
|
|
- v-if="scope.row.productChStatus == '1' && scope.row.dyType == '1'"
|
|
|
+ v-if="scope.row.productChStatus == '1' && scope.row.dyType == '1' && productParams.jkfs!='1' && productParams.jkfs!='3'"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
:disabled="scope.row.sfyxcz=='1'"
|
|
|
@@ -453,7 +453,8 @@
|
|
|
dialogwidth:'710px',
|
|
|
channelList:[],
|
|
|
disabled1:false,
|
|
|
- disabled2:false
|
|
|
+ disabled2:false,
|
|
|
+ productParams:{}
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -469,6 +470,12 @@
|
|
|
this.cookieslanguage = Cookies.get("flowinnIotLanguage");
|
|
|
if(this.cookieslanguage =='zh-CN'){
|
|
|
this.dialogwidth='600px';
|
|
|
+ };
|
|
|
+ this.productParams= this.$store.state.user.productParams;
|
|
|
+ //监控方式:1-总检测 2-分监分控 3-分监不控
|
|
|
+ var jkfs=this.productParams.jkfs;
|
|
|
+ if(jkfs=='1' || jkfs=='3'){
|
|
|
+ this.dzs=[{"id":"2","name":"jbj"}]
|
|
|
}
|
|
|
},
|
|
|
|