소스 검색

时间选择优化

wsp 1 년 전
부모
커밋
7e8f215b5e
1개의 변경된 파일12개의 추가작업 그리고 2개의 파일을 삭제
  1. 12 2
      src/views/bannerman/index.vue

+ 12 - 2
src/views/bannerman/index.vue

@@ -364,7 +364,10 @@ onMounted(()=>{
                 
                 :on-change="handleChange"
                 :file-list="fileList">
-                <el-button  v-loading="uploading" size="small" type="primary">{{ uploading?'上传中...':(ruleForm.addr?'重新上传':'点击上传') }}</el-button>
+
+                <img style="width:60px;height:60px;" v-if="ruleForm.addr" :src="ruleForm.addr" class="avatar" />
+                <el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
+                <!-- <el-button  v-loading="uploading" size="small" type="primary">{{ uploading?'上传中...':(ruleForm.addr?'重新上传':'点击上传') }}</el-button> -->
                
               </el-upload>
               </el-form-item>
@@ -438,7 +441,14 @@ onMounted(()=>{
 </style>
 
 <style lang="scss" scoped>
-   
+    .avatar-uploader-icon{
+      border:1px #000 dashed;
+      display:flex;
+      justify-content: center;
+      align-items: center;
+      height:60px;
+      width:60px;
+    }
     .table-user-wrap{
       display:flex;
       align-items: center;