|
@ -70,9 +70,10 @@ |
|
|
<!-- 激光疲劳唤醒 --> |
|
|
<!-- 激光疲劳唤醒 --> |
|
|
<el-form-item label="工作模式"> |
|
|
<el-form-item label="工作模式"> |
|
|
<el-select v-model="editData.type10.SETMD" placeholder="请选择"> |
|
|
<el-select v-model="editData.type10.SETMD" placeholder="请选择"> |
|
|
<el-option v-for="value,key in gzmsMap" :key="key" :label="value" :value="key" /> |
|
|
<el-option v-for="value,key in awakerWorkModeDic" :key="key" :label="value" :value="key" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="工作时长"> |
|
|
<el-form-item label="工作时长"> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<el-input-number v-model="editData.type10.SETTM" :min="0" :max="100000" /> |
|
|
<el-input-number v-model="editData.type10.SETTM" :min="0" :max="100000" /> |
|
@ -83,16 +84,22 @@ |
|
|
|
|
|
|
|
|
<template v-else-if="searchData.deviceType == '12'"> |
|
|
<template v-else-if="searchData.deviceType == '12'"> |
|
|
<!-- 行车诱导 --> |
|
|
<!-- 行车诱导 --> |
|
|
<el-form-item label="工作模式"> |
|
|
<el-alert title="行车诱导设备开启后无法自动关闭,需要再新增一个定时任务将其关闭。" type="warning" :closable="false" show-icon> |
|
|
<el-select v-model="editData.type12.SETMD" placeholder="请选择"> |
|
|
</el-alert> |
|
|
<el-option v-for="value, key in gzztMap" :key="key" :label="value" :value="key" /> |
|
|
<el-form-item label="工作模式(定时控制只能使用手动模式)"> |
|
|
|
|
|
<el-select v-model="editData.type12.mode" placeholder="请选择" disabled> |
|
|
|
|
|
<el-option v-for="value, key in inducerModeDic" :key="key" :label="value" :value="key" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="工作时长"> |
|
|
<el-form-item label="上行工作模式"> |
|
|
<el-col :span="8"> |
|
|
<el-select v-model="editData.type12.onWorkStatus" placeholder="请选择"> |
|
|
<el-input-number v-model="editData.type12.SETTM" :min="0" :max="100000" /> |
|
|
<el-option v-for="value, key in inducerWorkTypeDic" :key="key" :label="value" :value="key" /> |
|
|
</el-col> |
|
|
</el-select> |
|
|
<el-col :span="4" style="margin-left: 10px;">分钟</el-col> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="下行工作模式"> |
|
|
|
|
|
<el-select v-model="editData.type12.inWorkStatus" placeholder="请选择"> |
|
|
|
|
|
<el-option v-for="value, key in inducerWorkTypeDic" :key="key" :label="value" :value="key" /> |
|
|
|
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -100,7 +107,7 @@ |
|
|
<!-- 智能设备箱 --> |
|
|
<!-- 智能设备箱 --> |
|
|
<el-form-item label="工作模式"> |
|
|
<el-form-item label="工作模式"> |
|
|
<el-select v-model="editData.type13.SETMD" placeholder="请选择"> |
|
|
<el-select v-model="editData.type13.SETMD" placeholder="请选择"> |
|
|
<el-option v-for="value, key in gzmsMap" :key="key" :label="value" :value="key" /> |
|
|
<el-option v-for="value, key in awakerWorkModeDic" :key="key" :label="value" :value="key" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="工作时长"> |
|
|
<el-form-item label="工作时长"> |
|
@ -123,7 +130,7 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import Dialog from "@screen/components/Dialog/index.vue"; |
|
|
import Dialog from "@screen/components/Dialog/index.vue"; |
|
|
import { deviceTypeOptions, directionOptions, gzmsMap, gzztMap } from "@screen/utils/enum.js" |
|
|
import { deviceTypeOptions, directionOptions, awakerWorkModeDic, inducerModeDic, inducerWorkTypeDic } from "@screen/utils/enum.js" |
|
|
import { getDeviceList } from "@screen/utils/api/device.js" |
|
|
import { getDeviceList } from "@screen/utils/api/device.js" |
|
|
import BoardPreview from "@screen/components/infoBoard/BoardPreview.vue"; |
|
|
import BoardPreview from "@screen/components/infoBoard/BoardPreview.vue"; |
|
|
import BoardInfoEditor from "@screen/components/infoBoard/BoardInfoEditor"; |
|
|
import BoardInfoEditor from "@screen/components/infoBoard/BoardInfoEditor"; |
|
@ -151,8 +158,9 @@ export default { |
|
|
mode:"add", |
|
|
mode:"add", |
|
|
deviceTypeOptions, |
|
|
deviceTypeOptions, |
|
|
directionOptions, |
|
|
directionOptions, |
|
|
gzmsMap, |
|
|
awakerWorkModeDic, |
|
|
gzztMap, |
|
|
inducerModeDic, |
|
|
|
|
|
inducerWorkTypeDic, |
|
|
deviceArr:[], |
|
|
deviceArr:[], |
|
|
searchData: { |
|
|
searchData: { |
|
|
deviceType: "", |
|
|
deviceType: "", |
|
@ -213,8 +221,10 @@ export default { |
|
|
// { "STAY": 90, "ACTION": "1", "SPEED": "0", "COLOR": "ffff00", "FONT": "3", "FONT_SIZE": "24", "CONTENT": "长清收费站\\\\n出入口封闭", "width": "160", "height": "80", "formatStyle": "2" } |
|
|
// { "STAY": 90, "ACTION": "1", "SPEED": "0", "COLOR": "ffff00", "FONT": "3", "FONT_SIZE": "24", "CONTENT": "长清收费站\\\\n出入口封闭", "width": "160", "height": "80", "formatStyle": "2" } |
|
|
if (this.propData.deviceType == "2"){ |
|
|
if (this.propData.deviceType == "2"){ |
|
|
this.editData.type2 = BoardUtils.contentToDeviceItem(this.propData.params); |
|
|
this.editData.type2 = BoardUtils.contentToDeviceItem(this.propData.params); |
|
|
} else if (["5","10","12","13"].includes(this.propData.deviceType)){ |
|
|
} else if (["5","10","13"].includes(this.propData.deviceType)){ |
|
|
this.editData["type" + this.propData.deviceType] = { ...this.propData.params}; |
|
|
this.editData["type" + this.propData.deviceType] = { ...this.propData.params}; |
|
|
|
|
|
} else if (["12"].includes(this.propData.deviceType)) { |
|
|
|
|
|
this.editData["type" + this.propData.deviceType] = { ...this.propData.params }; |
|
|
} |
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
this.searchData.deviceType = ""; |
|
|
this.searchData.deviceType = ""; |
|
@ -278,7 +288,6 @@ export default { |
|
|
}, |
|
|
}, |
|
|
onSubmit(){ |
|
|
onSubmit(){ |
|
|
// this.boardDataTransform(); |
|
|
// this.boardDataTransform(); |
|
|
console.log(this.editData , "eeeeeeeeee"); |
|
|
|
|
|
let devices = []; |
|
|
let devices = []; |
|
|
this.deviceArr.forEach((item,index)=>{ |
|
|
this.deviceArr.forEach((item,index)=>{ |
|
|
if (this.editData.devices.includes(item.id)){ |
|
|
if (this.editData.devices.includes(item.id)){ |
|
@ -315,10 +324,7 @@ export default { |
|
|
SETTM: this.editData.type10.SETTM |
|
|
SETTM: this.editData.type10.SETTM |
|
|
} |
|
|
} |
|
|
} else if (this.searchData.deviceType == "12") { |
|
|
} else if (this.searchData.deviceType == "12") { |
|
|
return { |
|
|
return this.editData.type12 |
|
|
SETMD: this.editData.type12.SETMD, |
|
|
|
|
|
SETTM: this.editData.type12.SETTM |
|
|
|
|
|
} |
|
|
|
|
|
} else if (this.searchData.deviceType == "13") { |
|
|
} else if (this.searchData.deviceType == "13") { |
|
|
return { |
|
|
return { |
|
|
SETMD: this.editData.type13.SETMD, |
|
|
SETMD: this.editData.type13.SETMD, |
|
@ -330,6 +336,9 @@ export default { |
|
|
if (Object.keys(this.editData['type' + this.searchData.deviceType]).length<=0){ |
|
|
if (Object.keys(this.editData['type' + this.searchData.deviceType]).length<=0){ |
|
|
this.editData['type'+this.searchData.deviceType] = {}; |
|
|
this.editData['type'+this.searchData.deviceType] = {}; |
|
|
} |
|
|
} |
|
|
|
|
|
if (this.searchData.deviceType == "12") { |
|
|
|
|
|
this.$set(this.editData["type" + this.searchData.deviceType], "mode", "00"); |
|
|
|
|
|
} |
|
|
this.onChange(); |
|
|
this.onChange(); |
|
|
}, |
|
|
}, |
|
|
onChange() { |
|
|
onChange() { |
|
|