| | |
| | | <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; |