|
@@ -148,6 +148,10 @@
|
|
|
<HcIcon name="file"/>
|
|
|
<span>附件</span>
|
|
|
</el-button>
|
|
|
+ <el-button hc-btn @click="syncdata" v-if="authBtnTabKey==='2'" :loading="syncdataloading">
|
|
|
+ <HcIcon name="refresh"/>
|
|
|
+ <span>同步质检资料</span>
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</HcCard>
|
|
|
</div>
|
|
@@ -1909,6 +1913,25 @@ const onmousedown = () => {
|
|
|
isMouseTree.value = false;
|
|
|
}
|
|
|
}
|
|
|
+//同步质检资料
|
|
|
+const syncdataloading=ref(false)
|
|
|
+const syncdata=async()=>{
|
|
|
+ const info = nodeDataInfo.value;
|
|
|
+ syncdataloading.value=true
|
|
|
+ const {error, code,msg} = await wbsApi.syncTbadata({
|
|
|
+ pKeyId: info?.primaryKeyId || '',
|
|
|
+
|
|
|
+ })
|
|
|
+ syncdataloading.value=false
|
|
|
+ if (!error && code === 200) {
|
|
|
+ window.$message?.success(msg)
|
|
|
+ getTableDataAll()
|
|
|
+ // window?.location?.reload() //刷新页面
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|