9.26问题修复

dev_xd
lj7788@126.com 2025-09-26 16:57:12 +08:00
parent 5071ae5146
commit a7a686fd52
1 changed files with 4 additions and 1 deletions

View File

@ -56,7 +56,7 @@
<el-button type="success" plain icon="Download" @click="handleBatchEnterState(0)" v-hasPermi="['manage:proProjectInfoSubdeptsUsers:export']"></el-button> <el-button type="success" plain icon="Download" @click="handleBatchEnterState(0)" v-hasPermi="['manage:proProjectInfoSubdeptsUsers:export']"></el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="primary" icon="Refresh" @click="handleSyncFace()" v-if="data.isAdmin"></el-button> <el-button type="primary" icon="Refresh" :loading="data.baiduFaceLoading" @click="handleSyncFace()" v-if="data.isAdmin"></el-button>
</el-col> </el-col>
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
@ -429,13 +429,16 @@ const data = reactive({
prjWorkCategories: [], // prjWorkCategories: [], //
prjWorkTypes: [], // prjWorkTypes: [], //
isAdmin:userStore.isAdmin, isAdmin:userStore.isAdmin,
baiduFaceLoading:false,
}) })
const { queryParams, form, rules } = toRefs(data) const { queryParams, form, rules } = toRefs(data)
// //
function handleSyncFace(){ function handleSyncFace(){
data.baiduFaceLoading = true
updateBaiduFaceLibrary(queryParams.value.projectId).then(res=>{ updateBaiduFaceLibrary(queryParams.value.projectId).then(res=>{
data.baiduFaceLoading = false
proxy.$modal.msgSuccess('同步百度人脸库成功!') proxy.$modal.msgSuccess('同步百度人脸库成功!')
}); });
} }