9.26问题修复
parent
5071ae5146
commit
a7a686fd52
|
@ -56,7 +56,7 @@
|
|||
<el-button type="success" plain icon="Download" @click="handleBatchEnterState(0)" v-hasPermi="['manage:proProjectInfoSubdeptsUsers:export']">批量入场</el-button>
|
||||
</el-col>
|
||||
<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>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
@ -429,13 +429,16 @@ const data = reactive({
|
|||
prjWorkCategories: [], //项目人员岗位大类
|
||||
prjWorkTypes: [], //项目人员岗位类型
|
||||
isAdmin:userStore.isAdmin,
|
||||
baiduFaceLoading:false,
|
||||
})
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data)
|
||||
|
||||
//同步百度人脸库
|
||||
function handleSyncFace(){
|
||||
data.baiduFaceLoading = true
|
||||
updateBaiduFaceLibrary(queryParams.value.projectId).then(res=>{
|
||||
data.baiduFaceLoading = false
|
||||
proxy.$modal.msgSuccess('同步百度人脸库成功!')
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue