瀏覽代碼

fix 登录字体调大;禁用无二级品种的标签

cxmo 8 月之前
父節點
當前提交
58ae613b2b
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 1 0
      src/views/Login.vue
  2. 3 0
      src/views/media/components/MediaUpload.vue

+ 1 - 0
src/views/Login.vue

@@ -227,6 +227,7 @@ onMounted(() => {
         }
         }
       }
       }
       :deep(.el-button){
       :deep(.el-button){
+        font-size: 18px;
         height: 60px;
         height: 60px;
         z-index: 2;
         z-index: 2;
       }
       }

+ 3 - 0
src/views/media/components/MediaUpload.vue

@@ -58,6 +58,7 @@ const mediaData = reactive({
 watch(show,(newval)=>{
 watch(show,(newval)=>{
     if(newval){
     if(newval){
         formRef.value?.clearValidate()
         formRef.value?.clearValidate()
+        uploadLoading.value = false
         Object.assign(mediaData,props.modifydata)
         Object.assign(mediaData,props.modifydata)
         mediaData.labels = mediaData.labels.length?mediaData.labels.split(',').map(i=>Number(i)):''
         mediaData.labels = mediaData.labels.length?mediaData.labels.split(',').map(i=>Number(i)):''
         const AuthorItem = authorList.value.find(i=>i.Id===mediaData.author)||''
         const AuthorItem = authorList.value.find(i=>i.Id===mediaData.author)||''
@@ -92,6 +93,8 @@ function getLableList(){
     apiMediaCommon.getPermissionList().then(res=>{
     apiMediaCommon.getPermissionList().then(res=>{
         if(res.Ret!==200) return
         if(res.Ret!==200) return
         labelList.value = res.Data.List||[]
         labelList.value = res.Data.List||[]
+        //没有二级品种的标签禁用
+        labelList.value = labelList.value.map(i=>{return {...i,disabled:!i.children}})
     })
     })
 }
 }
 getLableList()
 getLableList()