|
|
@ -70,9 +70,10 @@ |
|
|
|
<!-- 激光疲劳唤醒 --> |
|
|
|
<el-form-item label="工作模式"> |
|
|
|
<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-form-item> |
|
|
|
|
|
|
|
<el-form-item label="工作时长"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-input-number v-model="editData.type10.SETTM" :min="0" :max="100000" /> |
|
|
@ -83,16 +84,22 @@ |
|
|
|
|
|
|
|
<template v-else-if="searchData.deviceType == '12'"> |
|
|
|
<!-- 行车诱导 --> |
|
|
|
<el-form-item label="工作模式"> |
|
|
|
<el-select v-model="editData.type12.SETMD" placeholder="请选择"> |
|
|
|
<el-option v-for="value, key in gzztMap" :key="key" :label="value" :value="key" /> |
|
|
|
<el-alert title="行车诱导设备开启后无法自动关闭,需要再新增一个定时任务将其关闭。" type="warning" :closable="false" show-icon> |
|
|
|
</el-alert> |
|
|
|
<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-form-item> |
|
|
|
<el-form-item label="工作时长"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-input-number v-model="editData.type12.SETTM" :min="0" :max="100000" /> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" style="margin-left: 10px;">分钟</el-col> |
|
|
|
<el-form-item label="上行工作模式"> |
|
|
|
<el-select v-model="editData.type12.onWorkStatus" placeholder="请选择"> |
|
|
|
<el-option v-for="value, key in inducerWorkTypeDic" :key="key" :label="value" :value="key" /> |
|
|
|
</el-select> |
|
|
|
</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> |
|
|
|
</template> |
|
|
|
|
|
|
@ -100,7 +107,7 @@ |
|
|
|
<!-- 智能设备箱 --> |
|
|
|
<el-form-item label="工作模式"> |
|
|
|
<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-form-item> |
|
|
|
<el-form-item label="工作时长"> |
|
|
@ -123,7 +130,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
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 BoardPreview from "@screen/components/infoBoard/BoardPreview.vue"; |
|
|
|
import BoardInfoEditor from "@screen/components/infoBoard/BoardInfoEditor"; |
|
|
@ -151,8 +158,9 @@ export default { |
|
|
|
mode:"add", |
|
|
|
deviceTypeOptions, |
|
|
|
directionOptions, |
|
|
|
gzmsMap, |
|
|
|
gzztMap, |
|
|
|
awakerWorkModeDic, |
|
|
|
inducerModeDic, |
|
|
|
inducerWorkTypeDic, |
|
|
|
deviceArr:[], |
|
|
|
searchData: { |
|
|
|
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" } |
|
|
|
if (this.propData.deviceType == "2"){ |
|
|
|
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}; |
|
|
|
} else if (["12"].includes(this.propData.deviceType)) { |
|
|
|
this.editData["type" + this.propData.deviceType] = { ...this.propData.params }; |
|
|
|
} |
|
|
|
}else{ |
|
|
|
this.searchData.deviceType = ""; |
|
|
@ -278,7 +288,6 @@ export default { |
|
|
|
}, |
|
|
|
onSubmit(){ |
|
|
|
// this.boardDataTransform(); |
|
|
|
console.log(this.editData , "eeeeeeeeee"); |
|
|
|
let devices = []; |
|
|
|
this.deviceArr.forEach((item,index)=>{ |
|
|
|
if (this.editData.devices.includes(item.id)){ |
|
|
@ -315,10 +324,7 @@ export default { |
|
|
|
SETTM: this.editData.type10.SETTM |
|
|
|
} |
|
|
|
} else if (this.searchData.deviceType == "12") { |
|
|
|
return { |
|
|
|
SETMD: this.editData.type12.SETMD, |
|
|
|
SETTM: this.editData.type12.SETTM |
|
|
|
} |
|
|
|
return this.editData.type12 |
|
|
|
} else if (this.searchData.deviceType == "13") { |
|
|
|
return { |
|
|
|
SETMD: this.editData.type13.SETMD, |
|
|
@ -330,6 +336,9 @@ export default { |
|
|
|
if (Object.keys(this.editData['type' + this.searchData.deviceType]).length<=0){ |
|
|
|
this.editData['type'+this.searchData.deviceType] = {}; |
|
|
|
} |
|
|
|
if (this.searchData.deviceType == "12") { |
|
|
|
this.$set(this.editData["type" + this.searchData.deviceType], "mode", "00"); |
|
|
|
} |
|
|
|
this.onChange(); |
|
|
|
}, |
|
|
|
onChange() { |
|
|
|