Bladeren bron

屏蔽文档上传和下载按钮

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

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

@@ -22,22 +22,22 @@
         <el-option value="VALID" label="有效"/>
         <el-option value="INVALID" label="无效"/>
       </el-select>
-      <el-upload style="display: inline-block;"
-        :action="uploadTestCasesFileUrl"
-        :on-success="handleUploadTestCasesFileSuccess"
-        :before-upload="beforeTestCasesFileUpload"
-        :on-error="handleUploadTestCasesFileError"
-        :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;"
-                 :action="uploadDefectsFileUrl"
-                 :on-success="handleUploadDefectsFileSuccess"
-                 :before-upload="beforeDefectsFileUpload"
-                 :on-error="handleUploadDefectsFileError"
-                 :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;"-->
+<!--        :action="uploadTestCasesFileUrl"-->
+<!--        :on-success="handleUploadTestCasesFileSuccess"-->
+<!--        :before-upload="beforeTestCasesFileUpload"-->
+<!--        :on-error="handleUploadTestCasesFileError"-->
+<!--        :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;"-->
+<!--                 :action="uploadDefectsFileUrl"-->
+<!--                 :on-success="handleUploadDefectsFileSuccess"-->
+<!--                 :before-upload="beforeDefectsFileUpload"-->
+<!--                 :on-error="handleUploadDefectsFileError"-->
+<!--                 :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">
         新增测试用例
       </el-button>
@@ -50,7 +50,7 @@
       <el-button class="filter-item" style="margin-left: 10px;" type="success" @click="handleSubmitAudit" v-if="testCaseCanEdit">
         提交审核
       </el-button>
-      <el-link type="primary" style="margin-left: 20px" :href="templateDownloadUrl">文档模板下载</el-link>
+<!--      <el-link type="primary" style="margin-left: 20px" :href="templateDownloadUrl">文档模板下载</el-link>-->
       <span style="display: block; float: right; color: indianred; margin-right: 20px">提交状态:{{isCommitted ? '已提交' : '未提交'}}</span>
     </div>