Browse Source

feat: 后台审核添加字段isWebAudit

TIANYONG 2 weeks ago
parent
commit
53c478585d
3 changed files with 9 additions and 1 deletions
  1. 1 0
      src/page-instrument/view-detail/index.tsx
  2. 2 0
      src/state.ts
  3. 6 1
      src/utils/baseApi.ts

+ 1 - 0
src/page-instrument/view-detail/index.tsx

@@ -163,6 +163,7 @@ export default defineComponent({
       state.isWeb = query.systemType === 'web';
       state.tenantAlbumId = query.albumId;
       state.providerType = query.providerType || state.providerType;
+      state.isWebAudit = query.isWebAudit ? true : false;
       if (state.isPreView) {
         state.zoom = query.zoom  || 0.65
       }

+ 2 - 0
src/state.ts

@@ -616,6 +616,8 @@ const state = reactive({
   tenantAlbumId: '',
   /** 平台或者机构 */
   providerType: "PLATFORM" as "PLATFORM" | "TENANT",
+  /** 后台审核 */
+  isWebAudit: false,
 });
 const browserInfo = browser();
 let offset_duration = 0;

+ 6 - 1
src/utils/baseApi.ts

@@ -16,7 +16,12 @@ export const getMusicSheetDetail = (sysMusicScoreId: string, type?: string, musi
     url += state.tenantAlbumId == '1' ? `?providerType=TENANT` : `?tenantAlbumId=${state.tenantAlbumId}`
   }
   if (state.systemType === 'web') {
-    url = `/musicSheet/cbsDetail/${sysMusicScoreId}?providerType=${state.providerType}`
+    if (state.isWebAudit) {
+      url = `/musicSheet/cbsDetailAuth/${sysMusicScoreId}`
+    } else {
+      url = `/musicSheet/cbsDetail/${sysMusicScoreId}?providerType=${state.providerType}`
+    }
+    
   }
   return request.get(url, { noToken: type === 'open' ? true : false });
 };