Commit fc0deba6 by 前端

Merge branch 'wuwx-v1.13.0' into 'v1.13.0'

Wuwx v1.13.0

See merge request !53
2 parents 87f09cf8 bb4eadc2
......@@ -77,6 +77,7 @@
</div>
</el-form-item>
</el-form>
<span v-if="tenantFlag">提示:每周五晚,系统自动恢复无线设备调频状态</span>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm" :loading="loading" size="small">确认</el-button>
<el-button @click="$emit('onFreqModalChange', false)" size="small">取消</el-button>
......@@ -89,7 +90,7 @@ import { adjFreq, GET_FREQ_DETAILS, REST_FREQ_INFO } from "services/vehicle";
import { deepClone, showToast } from "@/utils/util";
export default {
props: ["freqVisible", "sn", "enableFreq"],
props: ["freqVisible", "sn", "enableFreq", "tenantFlag"],
data() {
let checkCatchingTimer = (rule, vaule, cb) => {
if (this.freqForm.fqType == "0") {
......
......@@ -128,14 +128,25 @@
<el-button v-if="row.sns" type="text" size="mini" @click="btnClick('unbind', row)">解绑</el-button>
<!-- <el-button v-if="scope.scope.adjFreq === 1" type="text" size="mini" @click="btnClick('freq', scope.scope)">一键调频</el-button> -->
<el-button type="text" size="mini" @click="gotoMonitor(row)">监控</el-button>
<el-dropdown v-if="row.adjFreq" @command="handleCommand" style="margin-left:5px">
<template v-if="hasPermission('vehicle_vin_frequency')">
<el-dropdown v-if="row.adjFreq" @command="handleCommand" class="frequencyClass">
<el-button size="mini">
<i class="el-icon-arrow-down"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item v-if="row.adjFreq===1" :command="getCommand('freq', row.sn, row.enableFre)">一键调频</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
</template>
<!-- <el-dropdown v-if="row.adjFreq" @command="handleCommand" style="margin-left:5px">
<el-button size="mini">
<i class="el-icon-arrow-down"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item v-if="row.adjFreq===1" :command="getCommand('freq', row.sn, row.enableFre)">一键调频</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown> -->
</template>
</template>
</el-table-column>
......@@ -350,7 +361,7 @@
<!-- 车辆归属弹框 end -->
<!-- 一键调频 弹框 开始 -->
<freq-modal :freqVisible="freqVisible" v-if="freqVisible" :frequencyForm="frequencyForm" @onFreqModalChange="FreqModalChange" :sn="freqSn" :enableFreq="enableFreq"></freq-modal>
<freq-modal :tenantFlag="tenantFlag" :freqVisible="freqVisible" v-if="freqVisible" :frequencyForm="frequencyForm" @onFreqModalChange="FreqModalChange" :sn="freqSn" :enableFreq="enableFreq"></freq-modal>
<!-- 一键调频 弹框 end -->
</div>
......@@ -842,7 +853,8 @@ export default {
responseStatusList:{
1:'发送中',
2:'是'
}
},
tenantFlag: false
};
},
......@@ -874,6 +886,10 @@ export default {
});
}
this.getList();
let a = JSON.parse(localStorage.getItem('userInfo'));
if (a.tenant == "ZLGJ") {
this.tenantFlag = true;
}
},
methods: {
......@@ -1892,4 +1908,7 @@ export default {
margin-left: 10px;
}
}
.frequencyClass {
margin-left:5px
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!