|
@@ -28,7 +28,7 @@
|
|
</template> -->
|
|
</template> -->
|
|
<template #extra>
|
|
<template #extra>
|
|
<HcTooltip keys="archives_rolling_btn_update">
|
|
<HcTooltip keys="archives_rolling_btn_update">
|
|
- <el-button type="primary" hc-btn>
|
|
|
|
|
|
+ <el-button type="primary" hc-btn @click="updateArchive" :loading="updateArchiveLoad">
|
|
<HcIcon name="git-pull-request"/>
|
|
<HcIcon name="git-pull-request"/>
|
|
<span>立即更新立卷</span>
|
|
<span>立即更新立卷</span>
|
|
</el-button>
|
|
</el-button>
|
|
@@ -219,6 +219,21 @@ const viewPdf=async(id)=>{
|
|
window.$message?.warning(msg)
|
|
window.$message?.warning(msg)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+//更新立卷
|
|
|
|
+const updateArchiveLoad=ref(false)
|
|
|
|
+const updateArchive=async()=>{
|
|
|
|
+ updateArchiveLoad.value=true
|
|
|
|
+ const { error, code, data,msg } = await tuningApi.archiveAutoMethod({
|
|
|
|
+ projectId:projectId.value
|
|
|
|
+ })
|
|
|
|
+ updateArchiveLoad.value=false
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
+ window.$message?.success(msg)
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ window.$message?.warning(msg)
|
|
|
|
+ }
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|