From 87d2fac9c381de99f75ce6c6c39b7d638b980d7e Mon Sep 17 00:00:00 2001
From: 杨磊 <505174330@qq.com>
Date: 星期四, 21 八月 2025 17:52:14 +0800
Subject: [PATCH] 1111

---
 src/assets/js/middleGround/api/resource.js |   42 +++++++++++++++++++++++++++++++-----------
 1 files changed, 31 insertions(+), 11 deletions(-)

diff --git a/src/assets/js/middleGround/api/resource.js b/src/assets/js/middleGround/api/resource.js
index a581057..e9f9213 100644
--- a/src/assets/js/middleGround/api/resource.js
+++ b/src/assets/js/middleGround/api/resource.js
@@ -1,4 +1,4 @@
-import request from "@/plugin/axios";
+import request from "@/plugin/axios/index.ts";
 import { publicStore, publicRepository } from "@/assets/js/config";
 import { tokenKey } from "@/assets/js/config";
 import { handleQueryResourceListData } from "../tool";
@@ -25,11 +25,19 @@
     sort,
     fields,
     itemId,
+    itemIds,
     itemType,
     coverSize,
-    filterList,
+    itemIdArr,
+    SysType,
+    tourism_isHighQualityResources,
   }) => {
     if (!path) return Promise.reject("鎺ュ彛璇锋眰蹇呰鍙傛暟涓嶈兘涓虹┖锛�");
+
+
+
+
+    
     const query = {
       AccessControl: {
         Path: path,
@@ -42,13 +50,9 @@
         Start: paging?.start || "0",
         Size: paging?.size || "10",
       },
-      SortQuery: sort
-        ? [sort]
-        : [
-            {
-              LinkOrder: "Desc",
-            },
-          ],
+      SortQuery: sort ? [sort] : [{
+        LinkOrder: "Desc"
+      }],
       CreateDate: [],
       Description: [],
       Name: [],
@@ -64,12 +68,18 @@
       ChildrenFolderCount: [],
       ChildrenCount: [],
       ...fields,
-      ...filterList,
     };
+    if (itemIdArr) query["Id"] = itemIdArr;
+    if (SysType) query["SysType="] = [`${SysType}`];
+    if (tourism_isHighQualityResources)
+      query["tourism_isHighQualityResources="] = [
+        `${tourism_isHighQualityResources}`,
+      ];
     if (itemId) query["Id="] = [`${itemId}`];
+    if (itemIds) query["Id="] = itemIds;
     if (itemType) query["Type="] = [`${itemType}`];
     const body = { query: JSON.stringify({ Query: [{ Q1: query }] }) };
-    let token = toolClass.getCookie(tokenKey);
+    let token = localStorage.getItem(tokenKey);
     return request({
       url: token ? "/resource/api/ApiAppUserQuery" : "/resource/api/ApiQuery",
       method: "post",
@@ -198,6 +208,16 @@
       data,
     });
   },
+
+  // 鑾峰彇cms鏀惰棌鍒楄〃
+  getCmsCollectList(data) {
+    const body = { query: JSON.stringify({ Query: [{ Q1: data }] }) };
+    return request({
+      url: "/resource/api/ApiAppUserQuery",
+      method: "post",
+      data: body,
+    });
+  },
 };
 
 export default resourceApi;

--
Gitblit v1.9.1