|
@@ -70,7 +70,7 @@
|
|
|
</HcTooltip>
|
|
|
<HcTooltip keys="query_download">
|
|
|
<el-button
|
|
|
- :disabled="tableCheckedKeys.length <= 0" :loading="downloadLoading" hc-btn
|
|
|
+ :disabled="isCanDown||tableCheckedKeys.length <= 0" :loading="downloadLoading" hc-btn
|
|
|
color="#A16222" @click="batchDownload"
|
|
|
>
|
|
|
<HcIcon name="download" />
|
|
@@ -79,7 +79,7 @@
|
|
|
</HcTooltip>
|
|
|
<HcTooltip keys="query_print">
|
|
|
<el-button
|
|
|
- :disabled="tableCheckedKeys.length <= 0" :loading="printLoading" hc-btn
|
|
|
+ :disabled="isCanDown||tableCheckedKeys.length <= 0" :loading="printLoading" hc-btn
|
|
|
color="#A16222" @click="batchPrint"
|
|
|
>
|
|
|
<HcIcon name="printer" />
|
|
@@ -271,7 +271,7 @@ import queryApi from '~api/data-fill/query'
|
|
|
import { eVisaTaskCheckApi } from '~api/other'
|
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
|
import wbsApi from '~api/data-fill/wbs'
|
|
|
-
|
|
|
+import website from '~src/config'
|
|
|
//变量
|
|
|
const useAppState = useAppStore()
|
|
|
const projectId = ref(useAppState.getProjectId)
|
|
@@ -296,7 +296,8 @@ watch(() => [useAppState.getCollapse, searchTreeVal.value, useAppState.isLayout]
|
|
|
isSearchTree.value = false
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+//是否禁用下载打印按钮
|
|
|
+const isCanDown=ref(false)
|
|
|
//自动展开缓存
|
|
|
const treeAutoExpandKeys = ref(getStoreValue('wbsTreeExpandKeys') || [])
|
|
|
|
|
@@ -306,6 +307,8 @@ onMounted(() => {
|
|
|
getReportNumber()
|
|
|
getFirstTaskStatus()
|
|
|
getDictBizClassify()
|
|
|
+ isCanDown.value = !website.localModel
|
|
|
+
|
|
|
})
|
|
|
|
|
|
|