Browse Source

素材库图片查询接口调整

xionghaojie 3 năm trước cách đây
mục cha
commit
5aad50fb5c
1 tập tin đã thay đổi với 6 bổ sung4 xóa
  1. 6 4
      src/components/materialManage.vue

+ 6 - 4
src/components/materialManage.vue

@@ -29,9 +29,9 @@
                                 :class="{ active: isAllOption }" v-for="(item, index) in dataList" :key="index">
                                 <div class="del-btn" v-if="item.checked">✕</div>
                                 <span class="checked-item" v-if="item.checked"></span>
-                                <img class="bg-img" :src="item.url" alt="" />
+                                <img class="bg-img" :src="item.linkUrl" alt="" />
                                 <div class="inline-text-editor"><input maxlength="50" readonly="readonly"
-                                        v-model="item.title"></div>
+                                        v-model="item.resourceName"></div>
                             </li>
                         </ul>
                         <ul class="list-box video-box clearfix" v-if="fileType === 2">
@@ -132,11 +132,13 @@ export default {
         },
         query: function () {
             that.dataListLoading = true;
-            service.get("/sys/oss/page", {
+            service.get("/resource/pool/page", {
                 params: {
                     page: that.page,
                     limit: that.limit,
-                    fileType: that.dataForm.fileType,
+                    // fileType: that.dataForm.fileType,
+                    groupType: '1',
+                    uploadState: 3
                 }
             }).then((res) => {
                 that.dataListLoading = false;