Browse Source

智能研报选择版头版尾修改

jwyu 1 year ago
parent
commit
1b37ffee06
1 changed files with 11 additions and 11 deletions
  1. 11 11
      src/views/smartReport/components/ImgSource.vue

+ 11 - 11
src/views/smartReport/components/ImgSource.vue

@@ -13,20 +13,21 @@
                     @input="handleSearch"
                     style="width:240px"
 				/>
-                <el-select placeholder="请选择图片类型" v-model="type" clearable style="width:240px" @change="handleSearch">
+                <el-select placeholder="请选择图片类型" v-model="type" style="width:240px" @change="handleSearch">
                     <el-option label="版头" :value="1"></el-option>
                     <el-option label="版尾" :value="2"></el-option>
                 </el-select>
             </div>
         </div>
         <div class="main-box">
-            <div class="type-select-box">
+            <!-- <div class="type-select-box">
                 <span style="margin-right:20px">版面设置</span>
                 <el-radio-group v-model="setType">
                     <el-radio :label="1">版头</el-radio>
                     <el-radio :label="2">版尾</el-radio>
                 </el-radio-group>
-            </div>
+            </div> -->
+            <div style="flex:1;overflow-y: auto;">
             <tableNoData text="暂无数据" size="mini" v-if="list.length===0&&finished"/>
             <div class="list-wrap" v-infinite-scroll="handleLoadMore" :infinite-scroll-immediate="false">
                 <div 
@@ -39,6 +40,7 @@
                     <div class="title">{{item.ImgName}}</div>
                 </div>
             </div>
+            </div>
             <div class="btns-box">
                 <el-button type="primary" plain @click="handleClose">取消</el-button>
                 <el-button type="primary" @click="handleSave">保存</el-button>
@@ -53,7 +55,7 @@ export default {
     data() {
         return {
             keyword:'',
-            type:'',
+            type:1,
             list:[],
             page:1,
             pageSize:20,
@@ -106,16 +108,16 @@ export default {
         },
 
         handleSave(){
-            if(!this.setType){
-                this.$message.warning('请选择设置的版面类型')
-                return
-            }
+            // if(!this.setType){
+            //     this.$message.warning('请选择设置的版面类型')
+            //     return
+            // }
             if(!this.selectItem){
                 this.$message.warning('请选择版图')
                 return
             }
             this.$emit('change',{
-                type:this.setType,
+                type:this.type,
                 data:this.selectItem
             })
         }
@@ -154,8 +156,6 @@ div{
             display: flex;
             flex-wrap: wrap;
             gap: 20px;
-            flex: 1;
-            overflow-y: auto;
             padding-top: 20px;
             padding-bottom: 20px;
             .item{