Explorar o código

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

linyk %!s(int64=2) %!d(string=hai) anos
pai
achega
b752cb9911
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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">