瀏覽代碼

下载打印按钮修改

duy 22 小時之前
父節點
當前提交
f188b76ae9
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. 7 4
      src/views/data-fill/query.vue

+ 7 - 4
src/views/data-fill/query.vue

@@ -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
+    
 })