Ver código fonte

权限控制优化

zq 6 horas atrás
pai
commit
6288761ef4

+ 4 - 4
src/views/book/courseware/create/components/base/common/UploadFile.vue

@@ -75,14 +75,14 @@
 
         <el-tooltip effect="dark" placement="top" content="提交到资源库">
           <SvgIcon
-            v-if="isEnable(projectResourcePopedom.is_can_upload) && canEditName && file.file_id"
+            v-if="isEnable(projectResourcePopedom.is_can_upload) && file.file_id"
             icon-class="upload"
             @click="addResource(file)"
           />
         </el-tooltip>
 
         <SvgIcon
-          v-if="isEnable(projectResourcePopedom.is_can_download) && canEditName && file.file_id"
+          v-if="isEnable(projectResourcePopedom.is_can_download) && file.file_id"
           icon-class="download"
           @click="downLoad(file)"
         />
@@ -274,7 +274,7 @@ export default {
         this.$message.warning(
           `当前限制选择 ${this.limit} 个文件,本次选择了 ${files.length} 个文件,共选择了 ${
             files.length + this.content.file_list.length
-          } 个文件`
+          } 个文件`,
         );
         return;
       }
@@ -285,7 +285,7 @@ export default {
       this.$message.warning(
         `当前限制选择 ${this.limit} 个文件,本次选择了 ${files.length} 个文件,共选择了 ${
           files.length + fileList.length
-        } 个文件`
+        } 个文件`,
       );
     },