|
@@ -86,11 +86,13 @@ watch(() => [
|
|
|
searchForm.value.nodeIds = treeData.id || ''
|
|
|
console.log(treeData, 'treeData')
|
|
|
getTableData()
|
|
|
+ getBtnstatus()
|
|
|
})
|
|
|
|
|
|
//渲染完成
|
|
|
onMounted(() => {
|
|
|
getTableData()
|
|
|
+ getBtnstatus()
|
|
|
})
|
|
|
|
|
|
|
|
@@ -197,6 +199,29 @@ const getBtnstatus = async ()=>{
|
|
|
|
|
|
}
|
|
|
}
|
|
|
+//撤回验收申请
|
|
|
+const cancelClick = ()=>{
|
|
|
+ window?.$messageBox?.alert('确认撤销? 撤销之后专家账号也一并清空删除', '提示', {
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '确认撤销',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ callback: async (action, ctx ) => {
|
|
|
+ if (action === 'confirm') {
|
|
|
+ ctx.confirmButtonLoading = true
|
|
|
+ const { code, msg, error } = await initialgApi.annulApply({
|
|
|
+ projectId:projectId.value,
|
|
|
+ })
|
|
|
+ ctx.confirmButtonLoading = true
|
|
|
+ if (!error && code === 200) {
|
|
|
+ window.$message?.success(msg)
|
|
|
+ getBtnstatus()
|
|
|
+ getTableData()
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ })
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|