소스 검색

按钮禁用

duy 2 년 전
부모
커밋
8e0e9aff54
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/tentative/detect/test-form.vue

+ 2 - 2
src/views/tentative/detect/test-form.vue

@@ -2,11 +2,11 @@
     <div class="hc-page-box">
         <HcCard actionUi="text-center">
             <template #header>
-                <el-button :type="authBtnTabKey === '1'?'primary':''" hc-btn @click="authBtnTabClick('1')">
+                <el-button :type="authBtnTabKey === '1'?'primary':''" hc-btn @click="authBtnTabClick('1')" :disabled="router.currentRoute.value.query?.id&&router.currentRoute.value.query?.id.length>0||nodeIdvalue.length>0||newId.length>0">
                     <HcIcon name="folder-user"/>
                     <span>施工自检</span>
                 </el-button>
-                <el-button :type="authBtnTabKey === '2'?'primary':''" hc-btn @click="authBtnTabClick('2')">
+                <el-button :type="authBtnTabKey === '2'?'primary':''" hc-btn @click="authBtnTabClick('2')" :disabled="router.currentRoute.value.query?.id&&router.currentRoute.value.query?.id.length>0||nodeIdvalue.length>0||newId.length>0">
                     <HcIcon name="folder-shield"/>
                     <span>监理质检</span>
                 </el-button>