Bladeren bron

修复上传用例文档没有隐藏的bug

linyk 2 jaren geleden
bovenliggende
commit
b752cb9911
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      src/pages/TestCase/testcases.vue

+ 2 - 2
src/pages/TestCase/testcases.vue

@@ -27,7 +27,7 @@
         :on-success="handleUploadTestCasesFileSuccess"
         :before-upload="beforeTestCasesFileUpload"
         :on-error="handleUploadTestCasesFileError"
-        :show-file-list="false">
+        :show-file-list="false" v-if="testCaseCanEdit">
         <el-button class="filter-item" style="margin-left: 10px;" type="primary" >上传测试用例</el-button>
       </el-upload>
       <el-upload style="display: inline-block;"
@@ -35,7 +35,7 @@
                  :on-success="handleUploadDefectsFileSuccess"
                  :before-upload="beforeDefectsFileUpload"
                  :on-error="handleUploadDefectsFileError"
-                 :show-file-list="false">
+                 :show-file-list="false" v-if="testCaseCanEdit">
         <el-button class="filter-item" style="margin-left: 10px;" type="primary" >上传缺陷报告</el-button>
       </el-upload>
       <el-button class="filter-item" style="margin-left: 10px;" type="primary" @click="handleCreate" v-if="testCaseCanEdit">