|
@ -11,7 +11,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
</ElTableColumn> |
|
|
</ElTableColumn> |
|
|
|
|
|
|
|
|
<ElTableColumn prop="searchRule" width="260"> |
|
|
<ElTableColumn prop="searchRule" width="230"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div class="plhx"> |
|
|
<div class="plhx"> |
|
|
<el-select v-model="scope.row.searchRule" placeholder="检索规则条件"> |
|
|
<el-select v-model="scope.row.searchRule" placeholder="检索规则条件"> |
|
@ -32,7 +32,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
</ElTableColumn> |
|
|
</ElTableColumn> |
|
|
|
|
|
|
|
|
<ElTableColumn prop="deviceList" width="370"> |
|
|
<ElTableColumn prop="deviceList" width="400"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div class="mjs"> |
|
|
<div class="mjs"> |
|
|
<el-select v-if="scope.row.searchRule == 1" v-model="scope.row.deviceList" placeholder="请选择设备" |
|
|
<el-select v-if="scope.row.searchRule == 1" v-model="scope.row.deviceList" placeholder="请选择设备" |
|
@ -50,23 +50,23 @@ |
|
|
<el-option v-for="item in gzmsOptions" :key="item.value" :label="item.label" |
|
|
<el-option v-for="item in gzmsOptions" :key="item.value" :label="item.label" |
|
|
:value="item.value"></el-option> |
|
|
:value="item.value"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-input-number v-if="scope.row.deviceType == 10" placeholder="操作时长(分钟)" |
|
|
<el-input-number v-if="scope.row.deviceType == 10" placeholder="时长(分钟)" |
|
|
v-model="scope.row.operationDuration" :min="0" :max="999"></el-input-number> |
|
|
v-model="scope.row.operationDuration" :min="0" :max="999"></el-input-number> |
|
|
|
|
|
|
|
|
<div v-if="scope.row.deviceType == 12" class="mjs"> |
|
|
<el-select v-if="scope.row.deviceType == 12" v-model="scope.row.controlModel" |
|
|
<el-select v-model="scope.row.controlModel" placeholder="请选择控制模式"> |
|
|
placeholder="请选择模式"> |
|
|
<el-option label="手动模式" value="00"></el-option> |
|
|
<el-option label="手动模式" value="00"></el-option> |
|
|
<el-option label="自动模式" value="01"></el-option> |
|
|
<el-option label="自动模式" value="01"></el-option> |
|
|
<el-option label="万年历" value="02"></el-option> |
|
|
<el-option label="万年历" value="02"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-time-picker v-if="scope.row.controlModel == '01'" v-model="scope.row.time" is-range |
|
|
<el-time-picker v-if="scope.row.controlModel == '01' && scope.row.deviceType == 12" |
|
|
style="" range-separator="-" placeholder="选择时间" value-format="HH:mm" format="HH:mm"> |
|
|
v-model="scope.row.time" is-range style="" range-separator="-" placeholder="选择时间" |
|
|
</el-time-picker> |
|
|
value-format="HH:mm" format="HH:mm"> |
|
|
<el-select v-model="scope.row.state" placeholder="工作状态"> |
|
|
</el-time-picker> |
|
|
<el-option v-for="item in gzztOptions" :key="item.value" :label="item.label" |
|
|
<el-select v-if="scope.row.deviceType == 12" v-model="scope.row.state" placeholder="工作状态"> |
|
|
:value="item.value"></el-option> |
|
|
<el-option v-for="item in gzztOptions" :key="item.value" :label="item.label" |
|
|
</el-select> |
|
|
:value="item.value"></el-option> |
|
|
</div> |
|
|
</el-select> |
|
|
|
|
|
|
|
|
<el-input v-if="scope.row.deviceType == 5" v-model="scope.row.content" |
|
|
<el-input v-if="scope.row.deviceType == 5" v-model="scope.row.content" |
|
|
placeholder="请输入发布内容"></el-input> |
|
|
placeholder="请输入发布内容"></el-input> |
|
@ -220,7 +220,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
async created() { |
|
|
async created() { |
|
|
let loadData = await this.loadData(); |
|
|
let loadData = await this.loadData(1); |
|
|
// console.log('aa',loadData) |
|
|
// console.log('aa',loadData) |
|
|
this.sbOptions = loadData; |
|
|
this.sbOptions = loadData; |
|
|
}, |
|
|
}, |
|
@ -238,17 +238,10 @@ export default { |
|
|
// }) |
|
|
// }) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
changeDeviceType(value) { |
|
|
async changeDeviceType(value) { |
|
|
this.deviceType = value; |
|
|
this.deviceType = value; |
|
|
// if(value == 1){ |
|
|
console.log('value', value) |
|
|
// this.searchRule = 1 |
|
|
this.sbOptions = await this.loadData(value); |
|
|
// }else if(value == 2){ |
|
|
|
|
|
// this.searchRule = 1 |
|
|
|
|
|
// }else if(value == 3){ |
|
|
|
|
|
// this.searchRule = 1 |
|
|
|
|
|
// }else if(value == 4){ |
|
|
|
|
|
// this.searchRule = 1 |
|
|
|
|
|
// } |
|
|
|
|
|
}, |
|
|
}, |
|
|
onAdd(id) { |
|
|
onAdd(id) { |
|
|
this.tableData.push({ |
|
|
this.tableData.push({ |
|
@ -303,6 +296,10 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.ms { |
|
|
|
|
|
width: 160px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.plhx { |
|
|
.plhx { |
|
|
display: flex; |
|
|
display: flex; |
|
|
} |
|
|
} |
|
|