Loading src/layout/components/Sidebar/SidebarItem.vue +5 −0 Original line number Diff line number Diff line Loading @@ -100,3 +100,8 @@ function hasTitle(title){ } } </script> <style lang="scss" > .el-popper.is-light{ background: #29d; } </style> No newline at end of file src/views/algorithmControl/components/algorithmFile.vue +10 −1 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -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(); Loading Loading @@ -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 => { Loading src/views/algorithmList/components/details.vue +4 −2 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -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) }) } /** 查询案例文件列表 */ Loading src/views/algorithmList/components/form.vue +2 −2 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -140,7 +140,7 @@ function getList(id) { wrapList.value = response.rows; }); } /** 获取文件列表*/ /** 算法切换*/ function useNewFile(id) { useCurrentFil(id).then(response => { proxy.$modal.msgSuccess("变更成功"); Loading src/views/videoControl/pointControl/components/drawPoint.vue +5 −5 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 > Loading Loading @@ -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"> Loading Loading @@ -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 Loading
src/layout/components/Sidebar/SidebarItem.vue +5 −0 Original line number Diff line number Diff line Loading @@ -100,3 +100,8 @@ function hasTitle(title){ } } </script> <style lang="scss" > .el-popper.is-light{ background: #29d; } </style> No newline at end of file
src/views/algorithmControl/components/algorithmFile.vue +10 −1 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -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(); Loading Loading @@ -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 => { Loading
src/views/algorithmList/components/details.vue +4 −2 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -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) }) } /** 查询案例文件列表 */ Loading
src/views/algorithmList/components/form.vue +2 −2 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -140,7 +140,7 @@ function getList(id) { wrapList.value = response.rows; }); } /** 获取文件列表*/ /** 算法切换*/ function useNewFile(id) { useCurrentFil(id).then(response => { proxy.$modal.msgSuccess("变更成功"); Loading
src/views/videoControl/pointControl/components/drawPoint.vue +5 −5 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 > Loading Loading @@ -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"> Loading Loading @@ -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