natasha преди 10 месеца
родител
ревизия
8ce6cd77e3
променени са 1 файла, в които са добавени 55 реда и са изтрити 46 реда
  1. 55 46
      src/views/cdkey_manage/AddGoods.vue

+ 55 - 46
src/views/cdkey_manage/AddGoods.vue

@@ -337,40 +337,48 @@
           </el-input>
         </div>
       </div>
-      <ul class="item-box">
-        <li
-          v-for="(itemC, indexC) in tableData"
-          :key="indexC"
-          @click="changeSelectGoods(itemC)"
-        >
-          <el-image
-            class="image"
-            :src="
-              itemC.cover_image_url || itemC.iss_cover_url
-                ? itemC.cover_image_url || itemC.iss_cover_url
-                : itemC.goods_type === 2
-                ? require('../../assets/baozhi' +
-                    (Math.floor(Math.random() * 2) + 1) +
-                    '.png')
-                : require('../../assets/kecheng' +
-                    (Math.floor(Math.random() * 3) + 1) +
-                    '.png')
-            "
-            :fit="'cover'"
-          >
-          </el-image>
-          <el-checkbox
-            v-model="itemC.check"
-            @change="changeSelectGoods(itemC)"
-            >{{ itemC.name || itemC.iss_name }}</el-checkbox
+      <template
+        v-if="
+          (itemType === 'baozhi' && baozhiForm.orderValue === 'false') ||
+          itemType === 'jingdu' ||
+          (itemType === 'huakan' && huakanForm.orderValue === 'false') ||
+          itemType === 'kecheng'
+        "
+      >
+        <ul class="item-box">
+          <li
+            v-for="(itemC, indexC) in tableData"
+            :key="indexC"
+            @click="changeSelectGoods(itemC)"
           >
-        </li>
-      </ul>
-      <div class="nodata" v-if="total_count === 0">
-        <img src="../../assets/nodata.png" />
-        <p>找不到文件</p>
-      </div>
-      <!-- <el-pagination
+            <el-image
+              class="image"
+              :src="
+                itemC.cover_image_url || itemC.iss_cover_url
+                  ? itemC.cover_image_url || itemC.iss_cover_url
+                  : itemC.goods_type === 2
+                  ? require('../../assets/baozhi' +
+                      (Math.floor(Math.random() * 2) + 1) +
+                      '.png')
+                  : require('../../assets/kecheng' +
+                      (Math.floor(Math.random() * 3) + 1) +
+                      '.png')
+              "
+              :fit="'cover'"
+            >
+            </el-image>
+            <el-checkbox
+              v-model="itemC.check"
+              @change="changeSelectGoods(itemC)"
+              >{{ itemC.name || itemC.iss_name }}</el-checkbox
+            >
+          </li>
+        </ul>
+        <div class="nodata" v-if="total_count === 0">
+          <img src="../../assets/nodata.png" />
+          <p>找不到文件</p>
+        </div>
+        <!-- <el-pagination
             background
             :current-page="currentPages"
             :page-size="page_capacitys"
@@ -381,19 +389,20 @@
             @current-change="(val)=>handleCurrentChange(val,'currentPages')"
             v-if="total_count>0&&(courseForm.categoryValue==='ZB'||itemType==='jingdu')"
         /> -->
-      <el-pagination
-        background
-        :current-page="currentPage"
-        :page-size="page_capacity"
-        :page-sizes="[9, 18, 27, 36, 45, 54]"
-        :total="total_count"
-        layout="total, prev, pager, next, sizes, jumper"
-        @size-change="
-          (val) => handleSizeChange(val, 'page_capacity', 'currentPage')
-        "
-        @current-change="(val) => handleCurrentChange(val, 'currentPage')"
-        v-else-if="total_count > 0"
-      />
+        <el-pagination
+          background
+          :current-page="currentPage"
+          :page-size="page_capacity"
+          :page-sizes="[9, 18, 27, 36, 45, 54]"
+          :total="total_count"
+          layout="total, prev, pager, next, sizes, jumper"
+          @size-change="
+            (val) => handleSizeChange(val, 'page_capacity', 'currentPage')
+          "
+          @current-change="(val) => handleCurrentChange(val, 'currentPage')"
+          v-else-if="total_count > 0"
+        />
+      </template>
     </div>
   </div>
 </template>