Commit 31dd16d6 authored by 胡占生's avatar 胡占生 🇨🇳
Browse files

fix: 左侧菜单页 背景修复,

算法管理 增加版本切换,算法详情修复算法边界展示问题,点位管理切换字段
parent 9041e125
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -100,3 +100,8 @@ function hasTitle(title){
  }
}
</script>
<style lang="scss" >
.el-popper.is-light{
  background: #29d;
}
</style>
 No newline at end of file
+10 −1
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@
            <!-- <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
                            >版本内容</el-button> -->
            <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)">删除</el-button>
            <el-button link type="primary" icon="Sort" @click="useNewFile(scope.row.id)">版本切换</el-button>
          </template>
        </el-table-column>
      </el-table>
@@ -87,7 +88,7 @@
</template>

<script setup>
import { addFile, deleteFile, updateFile, listFile } from "@/api/algorithmList/algorithmFile.js";
import { addFile, deleteFile, updateFile, listFile ,useCurrentFil} from "@/api/algorithmList/algorithmFile.js";
import FileAlgUpload from '@/components/FileAlgUpload'
const { proxy } = getCurrentInstance();
const emit = defineEmits();
@@ -168,6 +169,14 @@ function handleDelete(row) {
  }).catch(() => { });
}

/** 算法切换*/
function useNewFile(id) {
  useCurrentFil(id).then(response => {
    proxy.$modal.msgSuccess("变更成功");
    getList()
  });
}

/** 提交按钮 */
function submitForm() {
  proxy.$refs["algRef"].validate(valid => {
+4 −2
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@
                    </div>
                    <el-divider />
                    <div class="img-box  gird-layout">
                      <div  class="img-item"  v-for="item in invalidImgList" :key="item.id">
                      <div  class="img-item"  v-for="item in effectiveImgList" :key="item.id">
                        <ImagePreview style="height: 100%;" :src="item.caseFile"/>
                      </div>
                    </div>
@@ -235,9 +235,11 @@ function getDetials(){
  })
  listBoundary({ algorithmId: roleId}).then(res=>{
    effectiveList.value = res.rows.filter(item => item.caseType === '0')
    effectiveImgList.value = res.rows.filter(item => item.caseType === '0'&&item.caseFile)
    console.log("🚀 ~ listBoundary ~ effectiveImgList.value:", effectiveImgList.value)
    invalidList.value = res.rows.filter(item => item.caseType === '1')
    invalidImgList.value = res.rows.filter(item => item.caseType === '1'&&item.caseFile)
    effectiveImgList.value = res.rows.filter(item => item.caseType === '0'&&item.caseFile)
    console.log("🚀 ~ listBoundary ~  invalidImgList.value:",  invalidImgList.value)
  })
}
/** 查询案例文件列表 */
+2 −2
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@
            <template #default="scope">
              <!-- <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
                              >版本内容</el-button> -->
              <el-button link type="primary" icon="Delete" @click="useNewFile(scope.row.id)">版本切换</el-button>
              <el-button link type="primary" icon="Sort" @click="useNewFile(scope.row.id)">版本切换</el-button>
            </template>
          </el-table-column>
        </el-table>
@@ -140,7 +140,7 @@ function getList(id) {
    wrapList.value = response.rows;
  });
}
/** 获取文件列表*/
/** 算法切换*/
function useNewFile(id) {
  useCurrentFil(id).then(response => {
    proxy.$modal.msgSuccess("变更成功");
+5 −5
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@
            :model="unref(algorithmManage.form)"
            :rules="rules"
            label-position="left"
            label-width="110px"
            label-width="120px"
            class="demo-form-inline"
          >
            <el-form-item
@@ -95,7 +95,7 @@
                ><template #suffix>/秒</template></el-input
              >
            </el-form-item>
            <el-form-item label="拉流间隔时间" prop="inferenceInterval">
            <el-form-item label="识别间隔(跳帧)" prop="inferenceInterval">
              <el-input v-model="unref(algorithmManage.form).inferenceInterval"
                ><template #suffix>/秒</template></el-input
              >
@@ -162,7 +162,7 @@
          >
          <el-button @click="getNewPhoto" v-else>重新取图</el-button>
          <el-button type="primary" @click="clearDraw">重绘标记</el-button>
          <el-button type="primary" @click="++drawIndex">绘下一个</el-button>
          <el-button type="primary" @click="++drawIndex">下一个</el-button>
        </div>
        <div class="right-draw-content">
          <template v-if="algorithmManage.form.value.liveMap">
@@ -258,9 +258,9 @@
          v-model="unref(aiAlgorithm.form).continueWarnTime"
        />
      </el-form-item>
      <el-form-item label="识别间隔(跳帧)" prop="identifyIntervals">
      <!-- <el-form-item label="识别间隔(跳帧)" prop="identifyIntervals">
        <el-input v-model="unref(aiAlgorithm.form).identifyIntervals" />
      </el-form-item>
      </el-form-item> -->
      <el-form-item label="标签阈值" prop="labelThreshold">
        <el-input v-model="unref(aiAlgorithm.form).labelThreshold" />
      </el-form-item>
Loading