Browse Source

修改标签的逻辑

wangfumin 3 weeks ago
parent
commit
0a0c30d91b
5 changed files with 12 additions and 12 deletions
  1. 7 7
      src/api/constant.ts
  2. 1 1
      src/api/instance.ts
  3. 2 2
      src/api/tagging-style.ts
  4. 1 1
      src/views/login.vue
  5. 1 1
      src/views/tagging/index.vue

+ 7 - 7
src/api/constant.ts

@@ -34,7 +34,7 @@ export const FUSE_INSERT_MODEL = `${namespace}/caseFusion/add`
 export const FUSE_UPDATE_MODEL = `${namespace}/caseFusion/update`
 export const FUSE_DELETE_MODEL = `${namespace}/caseFusion/delete`
 // 场景列表
-export const SCENE_LIST_ALL = `/service/manage/scene/list`
+export const SCENE_LIST_ALL = `${namespace}/scene/list`
 export const MODEL_LIST = `${namespace}/case/sceneList`
 export const MODEL_SIGN = `${namespace}/model/getInfo`
 export const SYNC_INFO = `${namespace}/caseLive/getTakeLookRoom`;
@@ -125,12 +125,12 @@ export const FLODER_LIST = `${namespace}/caseFiles/allList`
 export const UPLOAD_FILE = `${namespace}/upload/file`
 
 // 素材库分页
-export const MATERIAL_PAG = `/service/manage/dictFile/pageList/media-library`
-export const ADD_MATERIAL = `/service/manage/common/upload/fileNew`
-export const DEL_MATERIAL = `/service/manage/dictFile/del/media-library`
-export const MATERIAL_GROUP_LIST = `/service/manage/dict/getByKey/media-library`
-export const MATERIAL_TA_GROUP_LIST = `/service/manage/dict/getByUseType/trace_evidence`
-export const SYNC_MATERIAL = `/service/manage/caseFusion/refreshTraceEvidenceInfoList/`
+export const MATERIAL_PAG = `${namespace}/dictFile/pageList/media-library`
+export const ADD_MATERIAL = `${namespace}/common/upload/fileNew`
+export const DEL_MATERIAL = `${namespace}/dictFile/del/media-library`
+export const MATERIAL_GROUP_LIST = `${namespace}/dict/getByKey/media-library`
+export const MATERIAL_TA_GROUP_LIST = `${namespace}/dict/getByUseType/trace_evidence`
+export const SYNC_MATERIAL = `${namespace}/caseFusion/refreshTraceEvidenceInfoList/`
 
 
 // 动画模块

+ 1 - 1
src/api/instance.ts

@@ -28,7 +28,7 @@ export const {
 
 export const gotoLogin = () => {
   if (import.meta.env.DEV) {
-    GAxios.post("/service/manage/login", {
+    GAxios.post("/fusion/login", {
       password: "MRinIEn3ExMjM0NTY=Q5Lm39urQWzN7k4oCG",
       userName: "super-admin",
       username: "super-admin",

+ 2 - 2
src/api/tagging-style.ts

@@ -125,8 +125,8 @@ export const fetchTaggingStyles = async () => {
   const tree: any = { children: [] };
   genTree(treeData, tree);
   styleTypes.length = 0
-  // styleTypes.push(...tree.children)
-  // Object.assign(defStyleType, tree.children[tree.children.length - 1])
+  styleTypes.push(...tree.children)
+  Object.assign(defStyleType, tree.children[tree.children.length - 1])
   
   console.error('StyleT', styleTypes)
 

+ 1 - 1
src/views/login.vue

@@ -75,7 +75,7 @@ const login = (username: string, password: string) => {
   const headers = { fusionId: params.caseId, "page-type": type };
 
   GAxios.post(
-    "/service/manage/login",
+    "/fusion/login",
     {
       password: encodePwd(password),
       userName: username,

+ 1 - 1
src/views/tagging/index.vue

@@ -84,7 +84,7 @@ const quiskAdd = async (key: string) => {
 
 const exposeTagging = async () => {
   const list = await selectMaterials({
-    useType: "trace_evidence",
+    // useType: "trace_evidence",
     readonly: true,
     format: ["jpg", "png", "mp4", "mp3", "wav", "jpeg"],
   });