Преглед на файлове

下载打印按钮修改

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