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