| | |
| | | <span class="fontStyle color222">{{ data.cameraAddr }}</span> |
| | | </p> |
| | | <p v-for="(item, index) in data.event_levels" :key="index + 'rule'"> |
| | | <span>{{ data.task_name }}</span |
| | | > |
| | | <span v-if="item.dictValue !== '撤防'">{{ |
| | | <span v-if="data.is_warning === 1" style="color: red;">{{ data.task_name }}</span |
| | | > |
| | | <!-- <span v-else>{{ data.task_name }}</span> --> |
| | | |
| | | <span v-if="data.is_warning === 1" style="color: red;">{{ |
| | | item.dictValue |
| | | }}</span |
| | | > |
| | | > |
| | | <!-- <span v-else>{{ |
| | | item.dictValue |
| | | }}</span> --> |
| | | |
| | | </p> |
| | | <!-- <el-tooltip placement="right" popper-class="atooltip"> |
| | | <div slot="content"> |
| | |
| | | <img src="@/assets/img/article-fill@1x.png" > |
| | | <!-- <i class="iconfont iconcaidan" @click="detailsClick($event)"></i> --> |
| | | </el-tooltip> |
| | | <el-dropdown size="small" style="margin-left: 10px;" @command="handleCommand" > |
| | | <img src="@/assets/img/modelTraining.png" style="height: 15px;width: 14px"> |
| | | |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item :command="{ ruleName: data.rule_names[0].fileName, cameraId: data.video_point_id+'', cameraName: data.video_name,imagePath:data.image_path,status:1 }">正确</el-dropdown-item> |
| | | <el-dropdown-item :command="{ ruleName: data.rule_names[0].fileName, cameraId: data.video_point_id+'', cameraName: data.video_name,imagePath:data.image_path,status:2 }">错误</el-dropdown-item> |
| | | <el-dropdown-item :command="{ ruleName: data.rule_names[0].fileName, cameraId: data.video_point_id+'', cameraName: data.video_name,imagePath:data.image_path,status:0 }">不确定</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | <!-- <el-tooltip content="详情" placement="top" popper-class="atooltip"> |
| | | <i class="iconfont iconcaidan" @click="detailsClick($event)"></i> |
| | | </el-tooltip> --> |
| | |
| | | |
| | | <script> |
| | | import { collect } from "@/api/search"; |
| | | import {insertModelTraining} from "@/api/task"; |
| | | |
| | | Date.prototype.Format = function (fmt) { |
| | | var o = { |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | handleCommand(command) { |
| | | console.log(JSON.stringify(command)) |
| | | insertModelTraining(JSON.stringify(command)).then((res) => { |
| | | if (res && res.status === 200) { |
| | | this.$notify({ |
| | | type: "success", |
| | | message: "添加成功", |
| | | }); |
| | | } else { |
| | | this.$notify({ |
| | | type: "error", |
| | | message: "添加失败!", |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | getBottom() { |
| | | this.$nextTick(() => { |
| | | let imgDom = this.$refs.firstImg; |