|
@@ -4,7 +4,8 @@
|
|
|
<HcTree
|
|
|
ref="rollingTreeRef"
|
|
|
:auto-expand-keys="treeAutoExpandKeys" :contract-id="contractId" :project-id="projectId"
|
|
|
- @node-tap="nodeElTreeClick" @node-loading="treeNodeLoading"
|
|
|
+ :is-check="true" @node-tap="nodeElTreeClick"
|
|
|
+ @node-loading="treeNodeLoading"
|
|
|
@menu-tap="ElTreeMenuClick"
|
|
|
@node-check-change="ECheckChange"
|
|
|
/>
|
|
@@ -14,9 +15,10 @@
|
|
|
<div v-if="propercent > 0 && propercent < 100" class="demo-progress">
|
|
|
<el-progress :percentage="propercent" :stroke-width="30" :text-inside="true" status="success" />
|
|
|
</div>
|
|
|
- <HcTooltip keys="archives_rolling_btn_update">
|
|
|
+ <!-- <HcTooltip keys="archives_rolling_btn_update">
|
|
|
<el-button :disabled="propercent > 0 && propercent < 100" :loading="updateArchiveLoad" hc-btn type="primary" @click="updateArchive">立即更新立卷</el-button>
|
|
|
- </HcTooltip>
|
|
|
+ </HcTooltip> -->
|
|
|
+ <el-button v-if="userInfo.user_id === '1541381503819694081'" :disabled="propercent > 0 && propercent < 100" :loading="updateArchiveLoad" hc-btn type="primary" @click="updateArchive">立即更新立卷</el-button>
|
|
|
</template>
|
|
|
<template #search>
|
|
|
<div class="flex-1 text-right text-12px text-red-5">
|
|
@@ -55,7 +57,7 @@ const projectId = ref(useAppState.getProjectId)
|
|
|
const contractId = ref(useAppState.getContractId)
|
|
|
const projectInfo = ref(useAppState.getProjectInfo)
|
|
|
const isCollapse = ref(useAppState.getCollapse)
|
|
|
-
|
|
|
+const userInfo = ref(useAppState.getUserInfo)
|
|
|
//监听
|
|
|
watch(() => useAppState.getCollapse, (Collapse) => {
|
|
|
isCollapse.value = Collapse
|