inl-ui 0.1.109 → 0.1.111-mtapi-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -106,7 +106,7 @@ const getCommonHeaders = () => {
106
106
  };
107
107
  const defaultConfig = {
108
108
  timeout: 1e3 * 10,
109
- baseURL: "/api/"
109
+ baseURL: "/mtapi/"
110
110
  };
111
111
  class ApiInstance {
112
112
  instance;
@@ -212,7 +212,7 @@ async function checkIframeUrl(url) {
212
212
  const iframeUrl = getIframeUrl(url);
213
213
  let code = 200;
214
214
  try {
215
- const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
215
+ const res = await fetch(`/mtapi/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
216
216
  headers: getCommonHeaders()
217
217
  });
218
218
  if (res.status !== 404) {
@@ -7583,7 +7583,7 @@ class Login$1 {
7583
7583
  constructor() {
7584
7584
  this.getQueryInfo();
7585
7585
  this.config.axios = new ApiInstance({
7586
- baseURL: "/api/common/v1/"
7586
+ baseURL: "/mtapi/common/v1/"
7587
7587
  }).instance;
7588
7588
  }
7589
7589
  checkSystemInfo() {
@@ -7803,7 +7803,7 @@ var loginBox = vue.defineComponent({
7803
7803
  });
7804
7804
  const isClould = vue.inject("isClould");
7805
7805
  const instance = new ApiInstance({
7806
- baseURL: "/api/common/v1/"
7806
+ baseURL: "/mtapi/common/v1/"
7807
7807
  }).instance;
7808
7808
  const systemTitle = vue.inject("systemTitle");
7809
7809
  const platformLogo = vue.inject("platformLogo");
@@ -8088,7 +8088,7 @@ const Login = vue.defineComponent({
8088
8088
  default: "\u7CFB\u7EDF\u767B\u5F55"
8089
8089
  },
8090
8090
  bg: {
8091
- default: "",
8091
+ default: "/micro-assets/platform-web/login-bg.png",
8092
8092
  type: String
8093
8093
  },
8094
8094
  loginFn: Function
@@ -8467,26 +8467,26 @@ const isIndependentApp = query => !!query.token && !!query.onlyPage;
8467
8467
  const loginFun = new Login$1();
8468
8468
  const httpUtil = {
8469
8469
  requestLogo: async () => {
8470
- const res = await fetch("/api/common/v1/sysconfig/searchImage?imgType=4&editImg=1&clientType=web");
8470
+ const res = await fetch("/mtapi/common/v1/sysconfig/searchImage?imgType=4&editImg=1&clientType=web");
8471
8471
  const blob = await res.blob();
8472
8472
  return URL.createObjectURL(blob);
8473
8473
  },
8474
8474
  requestUserTree: async () => {
8475
8475
  const headers = getCommonHeaders();
8476
- const res = await fetch("/api/common/v1/menu/tree", {
8476
+ const res = await fetch("/mtapi/common/v1/menu/tree", {
8477
8477
  headers
8478
8478
  });
8479
8479
  const treeData = await res.json();
8480
8480
  return treeData.data;
8481
8481
  },
8482
8482
  requestCopyright: async () => {
8483
- const res = await fetch("/api/common/v1/sysconfig/getSysConfig?clientType=web");
8483
+ const res = await fetch("/mtapi/common/v1/sysconfig/getSysConfig?clientType=web");
8484
8484
  const data = await res.json();
8485
8485
  return data.data.homepageCopyright;
8486
8486
  },
8487
8487
  postLogout: async () => {
8488
8488
  const headers = getCommonHeaders();
8489
- await fetch("/api/common/v1/log/insert", {
8489
+ await fetch("/mtapi/common/v1/log/insert", {
8490
8490
  method: "POST",
8491
8491
  headers: {
8492
8492
  ...headers,
@@ -8729,15 +8729,19 @@ const getDetailContainer = () => vue.defineComponent({
8729
8729
  }
8730
8730
  };
8731
8731
  const addTab = ___default["default"].debounce(newRoute => {
8732
- dataId.value = newRoute.params.id;
8732
+ dataId.value = newRoute.params.id || newRoute.query.id;
8733
8733
  const {
8734
- name
8734
+ name,
8735
+ newTab
8735
8736
  } = route.query;
8737
+ if (newTab) {
8738
+ dataId.value = newTab;
8739
+ }
8736
8740
  const tab = {
8737
8741
  name,
8738
8742
  url: route.fullPath,
8739
8743
  key: props.name,
8740
- uniqueKey: newRoute.params.id,
8744
+ uniqueKey: props.name + dataId.value,
8741
8745
  icon: props.icon,
8742
8746
  isExtraTab: true,
8743
8747
  params: ___default["default"].omit(route.query, "name")
@@ -8758,7 +8762,7 @@ const getDetailContainer = () => vue.defineComponent({
8758
8762
  detailList.value.push({
8759
8763
  ...tab,
8760
8764
  refreshKey: Date.now(),
8761
- id: newRoute.params.id
8765
+ id: dataId.value
8762
8766
  });
8763
8767
  console.log("detailList.value", detailList.value);
8764
8768
  setTimeout(() => {
@@ -8771,7 +8775,7 @@ const getDetailContainer = () => vue.defineComponent({
8771
8775
  }
8772
8776
  });
8773
8777
  }
8774
- const activeTabKey = props.name + tab.uniqueKey;
8778
+ const activeTabKey = tab.uniqueKey;
8775
8779
  qiankunState.value = {
8776
8780
  ...(qiankunState.value ?? {}),
8777
8781
  activeTabKey
@@ -9133,7 +9137,7 @@ const VideoBox = vue.defineComponent({
9133
9137
  }]];
9134
9138
  const infos = vue.ref([]);
9135
9139
  const videoMove = async direction => {
9136
- await axios__default["default"].get("/api/vms/v1/control/hik/control", {
9140
+ await axios__default["default"].get("/mtapi/vms/v1/control/hik/control", {
9137
9141
  params: {
9138
9142
  cameraUuid: _prop.camera,
9139
9143
  command: direction
@@ -9148,7 +9152,7 @@ const VideoBox = vue.defineComponent({
9148
9152
  const arr = infos.value.map(info => {
9149
9153
  return {};
9150
9154
  });
9151
- const res = await axios__default["default"].get("/api/vms/v1/camera/getThingDevice", {
9155
+ const res = await axios__default["default"].get("/mtapi/vms/v1/camera/getThingDevice", {
9152
9156
  params: {
9153
9157
  cameraUuid: uuid
9154
9158
  },
@@ -9164,7 +9168,7 @@ const VideoBox = vue.defineComponent({
9164
9168
  };
9165
9169
  const camera = vue.ref({});
9166
9170
  const getVideoDetail = async val => {
9167
- const res = await axios__default["default"].get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
9171
+ const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
9168
9172
  headers: {
9169
9173
  token: sessionStorage.getItem("token") || ""
9170
9174
  }
@@ -9195,7 +9199,7 @@ const VideoBox = vue.defineComponent({
9195
9199
  immediate: true
9196
9200
  });
9197
9201
  const changeStream = async code => {
9198
- const res = await axios__default["default"].get(`/api/vms/v1/camera/getWebrtcUrls`, {
9202
+ const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
9199
9203
  headers: {
9200
9204
  token: sessionStorage.getItem("token") || ""
9201
9205
  },
@@ -9418,7 +9422,7 @@ var Tree = vue.defineComponent({
9418
9422
  });
9419
9423
  const getQueryGroup = async params => {
9420
9424
  return new Promise(async resolve => {
9421
- const res = await axios__default["default"].get("/api/vms/v1/cameraGroup/tree", {
9425
+ const res = await axios__default["default"].get("/mtapi/vms/v1/cameraGroup/tree", {
9422
9426
  headers: {
9423
9427
  token: sessionStorage.getItem("token") || ""
9424
9428
  },
@@ -9436,7 +9440,7 @@ var Tree = vue.defineComponent({
9436
9440
  };
9437
9441
  const getGroup = async () => {
9438
9442
  return new Promise(async resolve => {
9439
- const res = await axios__default["default"].get("/api/vms/v1/cameraGroupType/findAll", {
9443
+ const res = await axios__default["default"].get("/mtapi/vms/v1/cameraGroupType/findAll", {
9440
9444
  headers: {
9441
9445
  token: sessionStorage.getItem("token") || ""
9442
9446
  }
@@ -9712,7 +9716,7 @@ const VideoBoxV2 = vue.defineComponent({
9712
9716
  showInfo.value = _prop.showInfo;
9713
9717
  });
9714
9718
  const videoMove = async direction => {
9715
- await axios__default["default"].get("/api/vms/v1/control/hik/control", {
9719
+ await axios__default["default"].get("/mtapi/vms/v1/control/hik/control", {
9716
9720
  params: {
9717
9721
  cameraUuid: _prop.camera,
9718
9722
  command: direction
@@ -9737,7 +9741,7 @@ const VideoBoxV2 = vue.defineComponent({
9737
9741
  if (tcpcArr.length === 0) {
9738
9742
  return;
9739
9743
  }
9740
- const res = await axios__default["default"].post("/api/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
9744
+ const res = await axios__default["default"].post("/mtapi/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
9741
9745
  headers: {
9742
9746
  token: sessionStorage.getItem("token")
9743
9747
  }
@@ -9758,7 +9762,7 @@ const VideoBoxV2 = vue.defineComponent({
9758
9762
  const arr = infos.value.map(info => {
9759
9763
  return {};
9760
9764
  });
9761
- const res = await axios__default["default"].post("/api/vms/v1/cameraRelThing/getByParam", {
9765
+ const res = await axios__default["default"].post("/mtapi/vms/v1/cameraRelThing/getByParam", {
9762
9766
  cameraUuid: uuid2
9763
9767
  }, {
9764
9768
  headers: {
@@ -9778,7 +9782,7 @@ const VideoBoxV2 = vue.defineComponent({
9778
9782
  };
9779
9783
  const camera = vue.ref({});
9780
9784
  const getVideoDetail = async val => {
9781
- const res = await axios__default["default"].get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
9785
+ const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
9782
9786
  headers: {
9783
9787
  token: sessionStorage.getItem("token") || ""
9784
9788
  }
@@ -9895,7 +9899,7 @@ const VideoBoxV2 = vue.defineComponent({
9895
9899
  immediate: true
9896
9900
  });
9897
9901
  const changeStream = async code => {
9898
- const res = await axios__default["default"].get(`/api/vms/v1/camera/getWebrtcUrls`, {
9902
+ const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
9899
9903
  headers: {
9900
9904
  token: sessionStorage.getItem("token") || ""
9901
9905
  },
@@ -10881,7 +10885,7 @@ const VideoPlayerV1 = vue.defineComponent({
10881
10885
  videoInfo2.value = camera;
10882
10886
  init();
10883
10887
  } else if (camera && typeof camera === "string") {
10884
- const res = await axios__default["default"].post(`/api/sfvideo/v1/camera/getCameraByCameraId`, {
10888
+ const res = await axios__default["default"].post(`/mtapi/sfvideo/v1/camera/getCameraByCameraId`, {
10885
10889
  id: camera
10886
10890
  }, {
10887
10891
  headers: {
@@ -11681,7 +11685,7 @@ var index$3 = installComponent(PeopleSelect, "people-select");
11681
11685
 
11682
11686
  const getParamList$1 = async data => {
11683
11687
  const headers = getCommonHeaders();
11684
- const res = await fetch("/api/common/v1/param/group/list", {
11688
+ const res = await fetch("/mtapi/common/v1/param/group/list", {
11685
11689
  method: "POST",
11686
11690
  body: JSON.stringify(data),
11687
11691
  headers
@@ -11690,7 +11694,7 @@ const getParamList$1 = async data => {
11690
11694
  };
11691
11695
  const getParamDefineList$1 = async groupId => {
11692
11696
  const headers = getCommonHeaders();
11693
- const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
11697
+ const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
11694
11698
  method: "GET",
11695
11699
  headers
11696
11700
  });
@@ -11698,7 +11702,7 @@ const getParamDefineList$1 = async groupId => {
11698
11702
  };
11699
11703
  const batchSaveParamsValue$1 = async form => {
11700
11704
  const headers = getCommonHeaders();
11701
- const res = await fetch("/api/common/v1/param/value/updateBatch", {
11705
+ const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
11702
11706
  method: "POST",
11703
11707
  headers,
11704
11708
  body: JSON.stringify(form)
@@ -12490,7 +12494,7 @@ const ParamItem = vue.defineComponent({
12490
12494
 
12491
12495
  const getParamList = async data => {
12492
12496
  const headers = getCommonHeaders();
12493
- const res = await fetch("/api/common/v1/param/group/list", {
12497
+ const res = await fetch("/mtapi/common/v1/param/group/list", {
12494
12498
  method: "POST",
12495
12499
  body: JSON.stringify(data),
12496
12500
  headers
@@ -12499,7 +12503,7 @@ const getParamList = async data => {
12499
12503
  };
12500
12504
  const getParamDefineList = async groupId => {
12501
12505
  const headers = getCommonHeaders();
12502
- const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
12506
+ const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
12503
12507
  method: "GET",
12504
12508
  headers
12505
12509
  });
@@ -12507,7 +12511,7 @@ const getParamDefineList = async groupId => {
12507
12511
  };
12508
12512
  const batchSaveParamsValue = async form => {
12509
12513
  const headers = getCommonHeaders();
12510
- const res = await fetch("/api/common/v1/param/value/updateBatch", {
12514
+ const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
12511
12515
  method: "POST",
12512
12516
  headers,
12513
12517
  body: JSON.stringify(form)
@@ -13162,7 +13166,7 @@ const SszComment = vue.defineComponent({
13162
13166
  // 评论api的前缀
13163
13167
  baseUrl: {
13164
13168
  type: String,
13165
- default: "/api/taskcoordinationcenter/v2/tri/"
13169
+ default: "/mtapi/taskcoordinationcenter/v2/tri/"
13166
13170
  },
13167
13171
  // 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
13168
13172
  commentProps: {
@@ -13274,7 +13278,7 @@ function formatDataString(str) {
13274
13278
  function request(question, streamCallback, doneCallback) {
13275
13279
  const controller = new AbortController();
13276
13280
  const signal = controller.signal;
13277
- fetch("/api/chat/v1/chat/chat", {
13281
+ fetch("/mtapi/chat/v1/chat/chat", {
13278
13282
  signal,
13279
13283
  method: "POST",
13280
13284
  headers: {
@@ -13391,7 +13395,7 @@ async function audioToText(file) {
13391
13395
  const formData = new FormData();
13392
13396
  formData.append("file", file);
13393
13397
  formData.append("upload_id", "1");
13394
- const [path] = await fetch("/api/chat/v1/upload", {
13398
+ const [path] = await fetch("/mtapi/chat/v1/upload", {
13395
13399
  // headers,
13396
13400
  method: "POST",
13397
13401
  body: formData
@@ -13402,7 +13406,7 @@ async function audioToText(file) {
13402
13406
  }
13403
13407
  const {
13404
13408
  result
13405
- } = await fetch(`/api/chat/v1/translate?path=${path}&session_hash=1`, {
13409
+ } = await fetch(`/mtapi/chat/v1/translate?path=${path}&session_hash=1`, {
13406
13410
  headers,
13407
13411
  method: "POST"
13408
13412
  }).then(res => res.json());
@@ -78,7 +78,7 @@ const getCommonHeaders = () => {
78
78
  };
79
79
  const defaultConfig = {
80
80
  timeout: 1e3 * 10,
81
- baseURL: "/api/"
81
+ baseURL: "/mtapi/"
82
82
  };
83
83
  class ApiInstance {
84
84
  instance;
@@ -184,7 +184,7 @@ async function checkIframeUrl(url) {
184
184
  const iframeUrl = getIframeUrl(url);
185
185
  let code = 200;
186
186
  try {
187
- const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
187
+ const res = await fetch(`/mtapi/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
188
188
  headers: getCommonHeaders()
189
189
  });
190
190
  if (res.status !== 404) {
@@ -7555,7 +7555,7 @@ class Login$1 {
7555
7555
  constructor() {
7556
7556
  this.getQueryInfo();
7557
7557
  this.config.axios = new ApiInstance({
7558
- baseURL: "/api/common/v1/"
7558
+ baseURL: "/mtapi/common/v1/"
7559
7559
  }).instance;
7560
7560
  }
7561
7561
  checkSystemInfo() {
@@ -7775,7 +7775,7 @@ var loginBox = defineComponent({
7775
7775
  });
7776
7776
  const isClould = inject("isClould");
7777
7777
  const instance = new ApiInstance({
7778
- baseURL: "/api/common/v1/"
7778
+ baseURL: "/mtapi/common/v1/"
7779
7779
  }).instance;
7780
7780
  const systemTitle = inject("systemTitle");
7781
7781
  const platformLogo = inject("platformLogo");
@@ -8060,7 +8060,7 @@ const Login = defineComponent({
8060
8060
  default: "\u7CFB\u7EDF\u767B\u5F55"
8061
8061
  },
8062
8062
  bg: {
8063
- default: "",
8063
+ default: "/micro-assets/platform-web/login-bg.png",
8064
8064
  type: String
8065
8065
  },
8066
8066
  loginFn: Function
@@ -8439,26 +8439,26 @@ const isIndependentApp = query => !!query.token && !!query.onlyPage;
8439
8439
  const loginFun = new Login$1();
8440
8440
  const httpUtil = {
8441
8441
  requestLogo: async () => {
8442
- const res = await fetch("/api/common/v1/sysconfig/searchImage?imgType=4&editImg=1&clientType=web");
8442
+ const res = await fetch("/mtapi/common/v1/sysconfig/searchImage?imgType=4&editImg=1&clientType=web");
8443
8443
  const blob = await res.blob();
8444
8444
  return URL.createObjectURL(blob);
8445
8445
  },
8446
8446
  requestUserTree: async () => {
8447
8447
  const headers = getCommonHeaders();
8448
- const res = await fetch("/api/common/v1/menu/tree", {
8448
+ const res = await fetch("/mtapi/common/v1/menu/tree", {
8449
8449
  headers
8450
8450
  });
8451
8451
  const treeData = await res.json();
8452
8452
  return treeData.data;
8453
8453
  },
8454
8454
  requestCopyright: async () => {
8455
- const res = await fetch("/api/common/v1/sysconfig/getSysConfig?clientType=web");
8455
+ const res = await fetch("/mtapi/common/v1/sysconfig/getSysConfig?clientType=web");
8456
8456
  const data = await res.json();
8457
8457
  return data.data.homepageCopyright;
8458
8458
  },
8459
8459
  postLogout: async () => {
8460
8460
  const headers = getCommonHeaders();
8461
- await fetch("/api/common/v1/log/insert", {
8461
+ await fetch("/mtapi/common/v1/log/insert", {
8462
8462
  method: "POST",
8463
8463
  headers: {
8464
8464
  ...headers,
@@ -8701,15 +8701,19 @@ const getDetailContainer = () => defineComponent({
8701
8701
  }
8702
8702
  };
8703
8703
  const addTab = _.debounce(newRoute => {
8704
- dataId.value = newRoute.params.id;
8704
+ dataId.value = newRoute.params.id || newRoute.query.id;
8705
8705
  const {
8706
- name
8706
+ name,
8707
+ newTab
8707
8708
  } = route.query;
8709
+ if (newTab) {
8710
+ dataId.value = newTab;
8711
+ }
8708
8712
  const tab = {
8709
8713
  name,
8710
8714
  url: route.fullPath,
8711
8715
  key: props.name,
8712
- uniqueKey: newRoute.params.id,
8716
+ uniqueKey: props.name + dataId.value,
8713
8717
  icon: props.icon,
8714
8718
  isExtraTab: true,
8715
8719
  params: _.omit(route.query, "name")
@@ -8730,7 +8734,7 @@ const getDetailContainer = () => defineComponent({
8730
8734
  detailList.value.push({
8731
8735
  ...tab,
8732
8736
  refreshKey: Date.now(),
8733
- id: newRoute.params.id
8737
+ id: dataId.value
8734
8738
  });
8735
8739
  console.log("detailList.value", detailList.value);
8736
8740
  setTimeout(() => {
@@ -8743,7 +8747,7 @@ const getDetailContainer = () => defineComponent({
8743
8747
  }
8744
8748
  });
8745
8749
  }
8746
- const activeTabKey = props.name + tab.uniqueKey;
8750
+ const activeTabKey = tab.uniqueKey;
8747
8751
  qiankunState.value = {
8748
8752
  ...(qiankunState.value ?? {}),
8749
8753
  activeTabKey
@@ -9105,7 +9109,7 @@ const VideoBox = defineComponent({
9105
9109
  }]];
9106
9110
  const infos = ref([]);
9107
9111
  const videoMove = async direction => {
9108
- await axios$2.get("/api/vms/v1/control/hik/control", {
9112
+ await axios$2.get("/mtapi/vms/v1/control/hik/control", {
9109
9113
  params: {
9110
9114
  cameraUuid: _prop.camera,
9111
9115
  command: direction
@@ -9120,7 +9124,7 @@ const VideoBox = defineComponent({
9120
9124
  const arr = infos.value.map(info => {
9121
9125
  return {};
9122
9126
  });
9123
- const res = await axios$2.get("/api/vms/v1/camera/getThingDevice", {
9127
+ const res = await axios$2.get("/mtapi/vms/v1/camera/getThingDevice", {
9124
9128
  params: {
9125
9129
  cameraUuid: uuid
9126
9130
  },
@@ -9136,7 +9140,7 @@ const VideoBox = defineComponent({
9136
9140
  };
9137
9141
  const camera = ref({});
9138
9142
  const getVideoDetail = async val => {
9139
- const res = await axios$2.get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
9143
+ const res = await axios$2.get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
9140
9144
  headers: {
9141
9145
  token: sessionStorage.getItem("token") || ""
9142
9146
  }
@@ -9167,7 +9171,7 @@ const VideoBox = defineComponent({
9167
9171
  immediate: true
9168
9172
  });
9169
9173
  const changeStream = async code => {
9170
- const res = await axios$2.get(`/api/vms/v1/camera/getWebrtcUrls`, {
9174
+ const res = await axios$2.get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
9171
9175
  headers: {
9172
9176
  token: sessionStorage.getItem("token") || ""
9173
9177
  },
@@ -9390,7 +9394,7 @@ var Tree = defineComponent({
9390
9394
  });
9391
9395
  const getQueryGroup = async params => {
9392
9396
  return new Promise(async resolve => {
9393
- const res = await axios$2.get("/api/vms/v1/cameraGroup/tree", {
9397
+ const res = await axios$2.get("/mtapi/vms/v1/cameraGroup/tree", {
9394
9398
  headers: {
9395
9399
  token: sessionStorage.getItem("token") || ""
9396
9400
  },
@@ -9408,7 +9412,7 @@ var Tree = defineComponent({
9408
9412
  };
9409
9413
  const getGroup = async () => {
9410
9414
  return new Promise(async resolve => {
9411
- const res = await axios$2.get("/api/vms/v1/cameraGroupType/findAll", {
9415
+ const res = await axios$2.get("/mtapi/vms/v1/cameraGroupType/findAll", {
9412
9416
  headers: {
9413
9417
  token: sessionStorage.getItem("token") || ""
9414
9418
  }
@@ -9684,7 +9688,7 @@ const VideoBoxV2 = defineComponent({
9684
9688
  showInfo.value = _prop.showInfo;
9685
9689
  });
9686
9690
  const videoMove = async direction => {
9687
- await axios$2.get("/api/vms/v1/control/hik/control", {
9691
+ await axios$2.get("/mtapi/vms/v1/control/hik/control", {
9688
9692
  params: {
9689
9693
  cameraUuid: _prop.camera,
9690
9694
  command: direction
@@ -9709,7 +9713,7 @@ const VideoBoxV2 = defineComponent({
9709
9713
  if (tcpcArr.length === 0) {
9710
9714
  return;
9711
9715
  }
9712
- const res = await axios$2.post("/api/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
9716
+ const res = await axios$2.post("/mtapi/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
9713
9717
  headers: {
9714
9718
  token: sessionStorage.getItem("token")
9715
9719
  }
@@ -9730,7 +9734,7 @@ const VideoBoxV2 = defineComponent({
9730
9734
  const arr = infos.value.map(info => {
9731
9735
  return {};
9732
9736
  });
9733
- const res = await axios$2.post("/api/vms/v1/cameraRelThing/getByParam", {
9737
+ const res = await axios$2.post("/mtapi/vms/v1/cameraRelThing/getByParam", {
9734
9738
  cameraUuid: uuid2
9735
9739
  }, {
9736
9740
  headers: {
@@ -9750,7 +9754,7 @@ const VideoBoxV2 = defineComponent({
9750
9754
  };
9751
9755
  const camera = ref({});
9752
9756
  const getVideoDetail = async val => {
9753
- const res = await axios$2.get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
9757
+ const res = await axios$2.get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
9754
9758
  headers: {
9755
9759
  token: sessionStorage.getItem("token") || ""
9756
9760
  }
@@ -9867,7 +9871,7 @@ const VideoBoxV2 = defineComponent({
9867
9871
  immediate: true
9868
9872
  });
9869
9873
  const changeStream = async code => {
9870
- const res = await axios$2.get(`/api/vms/v1/camera/getWebrtcUrls`, {
9874
+ const res = await axios$2.get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
9871
9875
  headers: {
9872
9876
  token: sessionStorage.getItem("token") || ""
9873
9877
  },
@@ -10853,7 +10857,7 @@ const VideoPlayerV1 = defineComponent({
10853
10857
  videoInfo2.value = camera;
10854
10858
  init();
10855
10859
  } else if (camera && typeof camera === "string") {
10856
- const res = await axios$2.post(`/api/sfvideo/v1/camera/getCameraByCameraId`, {
10860
+ const res = await axios$2.post(`/mtapi/sfvideo/v1/camera/getCameraByCameraId`, {
10857
10861
  id: camera
10858
10862
  }, {
10859
10863
  headers: {
@@ -11653,7 +11657,7 @@ var index$3 = installComponent(PeopleSelect, "people-select");
11653
11657
 
11654
11658
  const getParamList$1 = async data => {
11655
11659
  const headers = getCommonHeaders();
11656
- const res = await fetch("/api/common/v1/param/group/list", {
11660
+ const res = await fetch("/mtapi/common/v1/param/group/list", {
11657
11661
  method: "POST",
11658
11662
  body: JSON.stringify(data),
11659
11663
  headers
@@ -11662,7 +11666,7 @@ const getParamList$1 = async data => {
11662
11666
  };
11663
11667
  const getParamDefineList$1 = async groupId => {
11664
11668
  const headers = getCommonHeaders();
11665
- const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
11669
+ const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
11666
11670
  method: "GET",
11667
11671
  headers
11668
11672
  });
@@ -11670,7 +11674,7 @@ const getParamDefineList$1 = async groupId => {
11670
11674
  };
11671
11675
  const batchSaveParamsValue$1 = async form => {
11672
11676
  const headers = getCommonHeaders();
11673
- const res = await fetch("/api/common/v1/param/value/updateBatch", {
11677
+ const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
11674
11678
  method: "POST",
11675
11679
  headers,
11676
11680
  body: JSON.stringify(form)
@@ -12462,7 +12466,7 @@ const ParamItem = defineComponent({
12462
12466
 
12463
12467
  const getParamList = async data => {
12464
12468
  const headers = getCommonHeaders();
12465
- const res = await fetch("/api/common/v1/param/group/list", {
12469
+ const res = await fetch("/mtapi/common/v1/param/group/list", {
12466
12470
  method: "POST",
12467
12471
  body: JSON.stringify(data),
12468
12472
  headers
@@ -12471,7 +12475,7 @@ const getParamList = async data => {
12471
12475
  };
12472
12476
  const getParamDefineList = async groupId => {
12473
12477
  const headers = getCommonHeaders();
12474
- const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
12478
+ const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
12475
12479
  method: "GET",
12476
12480
  headers
12477
12481
  });
@@ -12479,7 +12483,7 @@ const getParamDefineList = async groupId => {
12479
12483
  };
12480
12484
  const batchSaveParamsValue = async form => {
12481
12485
  const headers = getCommonHeaders();
12482
- const res = await fetch("/api/common/v1/param/value/updateBatch", {
12486
+ const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
12483
12487
  method: "POST",
12484
12488
  headers,
12485
12489
  body: JSON.stringify(form)
@@ -13134,7 +13138,7 @@ const SszComment = defineComponent({
13134
13138
  // 评论api的前缀
13135
13139
  baseUrl: {
13136
13140
  type: String,
13137
- default: "/api/taskcoordinationcenter/v2/tri/"
13141
+ default: "/mtapi/taskcoordinationcenter/v2/tri/"
13138
13142
  },
13139
13143
  // 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
13140
13144
  commentProps: {
@@ -13246,7 +13250,7 @@ function formatDataString(str) {
13246
13250
  function request(question, streamCallback, doneCallback) {
13247
13251
  const controller = new AbortController();
13248
13252
  const signal = controller.signal;
13249
- fetch("/api/chat/v1/chat/chat", {
13253
+ fetch("/mtapi/chat/v1/chat/chat", {
13250
13254
  signal,
13251
13255
  method: "POST",
13252
13256
  headers: {
@@ -13363,7 +13367,7 @@ async function audioToText(file) {
13363
13367
  const formData = new FormData();
13364
13368
  formData.append("file", file);
13365
13369
  formData.append("upload_id", "1");
13366
- const [path] = await fetch("/api/chat/v1/upload", {
13370
+ const [path] = await fetch("/mtapi/chat/v1/upload", {
13367
13371
  // headers,
13368
13372
  method: "POST",
13369
13373
  body: formData
@@ -13374,7 +13378,7 @@ async function audioToText(file) {
13374
13378
  }
13375
13379
  const {
13376
13380
  result
13377
- } = await fetch(`/api/chat/v1/translate?path=${path}&session_hash=1`, {
13381
+ } = await fetch(`/mtapi/chat/v1/translate?path=${path}&session_hash=1`, {
13378
13382
  headers,
13379
13383
  method: "POST"
13380
13384
  }).then(res => res.json());
@@ -5948,14 +5948,14 @@ const Endpoint = RTCEndpoint;
5948
5948
 
5949
5949
  const playOneWebRtcMt = async (uuid, domId, dom, token) => {
5950
5950
  let play;
5951
- const response = await fetch(`/api/vms/v1/camera/getByUuid?uuid=${uuid}`, {
5951
+ const response = await fetch(`/mtapi/vms/v1/camera/getByUuid?uuid=${uuid}`, {
5952
5952
  method: "GET",
5953
5953
  headers: {
5954
5954
  token: token || sessionStorage.getItem("token") || ""
5955
5955
  }
5956
5956
  });
5957
5957
  const res = await response.json();
5958
- const urlResponse = await fetch(`/api/vms/v1/camera/getWebrtcUrls?uuid=${uuid}`, {
5958
+ const urlResponse = await fetch(`/mtapi/vms/v1/camera/getWebrtcUrls?uuid=${uuid}`, {
5959
5959
  method: "GET",
5960
5960
  headers: {
5961
5961
  token: token || sessionStorage.getItem("token") || ""
@@ -5939,14 +5939,14 @@ const Endpoint = RTCEndpoint;
5939
5939
 
5940
5940
  const playOneWebRtcMt = async (uuid, domId, dom, token) => {
5941
5941
  let play;
5942
- const response = await fetch(`/api/vms/v1/camera/getByUuid?uuid=${uuid}`, {
5942
+ const response = await fetch(`/mtapi/vms/v1/camera/getByUuid?uuid=${uuid}`, {
5943
5943
  method: "GET",
5944
5944
  headers: {
5945
5945
  token: token || sessionStorage.getItem("token") || ""
5946
5946
  }
5947
5947
  });
5948
5948
  const res = await response.json();
5949
- const urlResponse = await fetch(`/api/vms/v1/camera/getWebrtcUrls?uuid=${uuid}`, {
5949
+ const urlResponse = await fetch(`/mtapi/vms/v1/camera/getWebrtcUrls?uuid=${uuid}`, {
5950
5950
  method: "GET",
5951
5951
  headers: {
5952
5952
  token: token || sessionStorage.getItem("token") || ""