|
@@ -82,15 +82,15 @@
|
|
|
>
|
|
|
<template #default="scope">
|
|
|
<el-select
|
|
|
- v-model="scope.row.tactics"
|
|
|
- style="width: 100px"
|
|
|
- @change="changeTactics(scope.row)"
|
|
|
+ v-model="scope.row.tactics"
|
|
|
+ style="width: 100px"
|
|
|
+ @change="changeTactics(scope.row)"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in tacticsOptions"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
+ v-for="item in tacticsOptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</template>
|
|
@@ -102,9 +102,9 @@
|
|
|
>
|
|
|
<template #default="scope">
|
|
|
<el-button
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- @click="jumpScreen(scope.row)"
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ @click="jumpScreen(scope.row)"
|
|
|
>
|
|
|
大屏
|
|
|
</el-button>
|
|
@@ -340,16 +340,18 @@
|
|
|
key="index"
|
|
|
style="margin: 10px 0"
|
|
|
>
|
|
|
- <span style="margin: 0 20px 0 0;font-weight: 600;font-size: 16px">道路 {{ item.radarId }}</span>
|
|
|
- <el-switch
|
|
|
- v-for="(v, k) in item.deviceRelays"
|
|
|
- key="k"
|
|
|
- v-model="v.state"
|
|
|
- class="ml-2"
|
|
|
- :disabled="k === 0"
|
|
|
- style="--el-switch-on-color: #13ce66; --el-switch-off-color: #ff4949"
|
|
|
- @click="switchButton(item, v, k)"
|
|
|
- />
|
|
|
+ <div v-if="item.genre === 6">
|
|
|
+ <span style="margin: 0 20px 0 0;font-weight: 600;font-size: 16px">道路 {{ item.radarId }}</span>
|
|
|
+ <el-switch
|
|
|
+ v-for="(v, k) in item.deviceRelays"
|
|
|
+ key="k"
|
|
|
+ v-model="v.state"
|
|
|
+ class="ml-2"
|
|
|
+ :disabled="k === 0"
|
|
|
+ style="--el-switch-on-color: #13ce66; --el-switch-off-color: #ff4949"
|
|
|
+ @click="switchButton(item, v, k)"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="tunnelTimeData.switchType === '单灯控制器'">
|
|
@@ -481,7 +483,7 @@ const userInfo = userData.userInfo
|
|
|
import { useRouter } from 'vue-router'
|
|
|
const router = useRouter()
|
|
|
|
|
|
-const lampList = [33,66,100]
|
|
|
+const lampList = [33, 66, 100]
|
|
|
const searchData = ref({
|
|
|
pageInfo: {
|
|
|
page: 1,
|
|
@@ -716,10 +718,10 @@ const tunnelTimeData = ref()
|
|
|
const isControlPanel = ref(false)
|
|
|
const tunnelControlPanel = (val) => {
|
|
|
isControlPanel.value = true
|
|
|
- let lampObj = {
|
|
|
- 0:0,
|
|
|
+ const lampObj = {
|
|
|
+ 0: 0,
|
|
|
33: 0,
|
|
|
- 50:50,
|
|
|
+ 50: 50,
|
|
|
66: 50,
|
|
|
100: 100,
|
|
|
}
|
|
@@ -749,7 +751,7 @@ const editTunnelTiming = async() => {
|
|
|
}
|
|
|
|
|
|
const lampSet = async(val) => {
|
|
|
- let judge = {
|
|
|
+ const judge = {
|
|
|
0: 33,
|
|
|
50: 66,
|
|
|
100: 100
|
|
@@ -934,7 +936,7 @@ const switchButton = async(device, relay, index) => {
|
|
|
}
|
|
|
|
|
|
// 大屏
|
|
|
-const useScreen = useScreenStore()
|
|
|
+const useScreen = useScreenStore()
|
|
|
const jumpScreen = (row) => {
|
|
|
useScreen.setController(row)
|
|
|
router.push('/dataDashboard')
|