摄像机管理 添加独立场景 场景名称 input改 select
| | |
| | | <template> |
| | | <div class="AddBox"> |
| | | <div class="title"> |
| | | {{ editData.type ? "修改" : "添加" }}{{ type === "separate" ? "独立" : "联动" }}场景 |
| | | </div> |
| | | <div class="title">{{ editData.type ? "修改" : "添加" }}{{ type === "separate" ? "独立" : "联动" }}场景</div> |
| | | |
| | | <div class="close iconfont" @click="close"></div> |
| | | |
| | | <el-form :model="ruleForm" :rules="rules" ref="form"> |
| | | <div class="label">场景名称</div> |
| | | <el-form-item prop="scene_name"> |
| | | <el-input class="h32" v-model="ruleForm.scene_name" placeholder="请输入"></el-input> |
| | | <!-- <el-input class="h32" v-model="ruleForm.scene_name" placeholder="请输入"></el-input> --> |
| | | |
| | | <el-select v-model="ruleForm.scene_name" filterable placeholder="请选择"> |
| | | <el-option v-for="item in scene_nameOptions" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <div class="label">事件等级</div> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | scene_nameOptions: [ |
| | | { |
| | | value: "明火", |
| | | label: "明火" |
| | | }, |
| | | { |
| | | value: "烟雾", |
| | | label: "烟雾" |
| | | }, |
| | | { |
| | | value: "翻越围栏", |
| | | label: "翻越围栏" |
| | | }, |
| | | { |
| | | value: "区域入侵", |
| | | label: "区域入侵" |
| | | }, |
| | | { |
| | | value: "人员撤离", |
| | | label: "人员撤离" |
| | | }, |
| | | { |
| | | value: "人员离岗", |
| | | label: "人员离岗" |
| | | }, |
| | | { |
| | | value: "人员聚集", |
| | | label: "人员聚集" |
| | | }, |
| | | { |
| | | value: "打电话", |
| | | label: "打电话" |
| | | }, |
| | | { |
| | | value: "抽烟", |
| | | label: "抽烟" |
| | | }, |
| | | { |
| | | value: "未佩戴安全帽", |
| | | label: "未佩戴安全帽" |
| | | }, |
| | | { |
| | | value: "未穿着工作服", |
| | | label: "未穿着工作服" |
| | | }, |
| | | { |
| | | value: "睡岗", |
| | | label: "睡岗" |
| | | } |
| | | ], |
| | | ruleForm: { |
| | | alarm_level: 1, |
| | | scene_name: "", |
| | |
| | | } |
| | | ], |
| | | rules: { |
| | | scene_name: [{ required: true, message: "请输入场景名称", trigger: "blur" }], |
| | | scene_name: [{ required: true, message: "请选择场景名称", trigger: "blur" }], |
| | | time_rule_id: [{ required: true, message: "请选择时间段", trigger: "blur" }] |
| | | }, |
| | | soundPath: "", |