sd
2025-08-01 236a0b8334dfa75685c7ee69619d8e76536ba666
src/components/subComponents/CardItem.vue
@@ -416,6 +416,15 @@
          <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> -->
@@ -783,6 +792,7 @@
<script>
import { collect } from "@/api/search";
import {insertModelTraining} from "@/api/task";
Date.prototype.Format = function (fmt) {
  var o = {
@@ -891,6 +901,22 @@
    },
  },
  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;