inl-ui 0.1.119 → 0.1.121-mtapi

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.
package/dist/index.cjs CHANGED
@@ -43,7 +43,7 @@ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios$2);
43
43
  var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
44
44
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
45
45
 
46
- var version = "0.1.119";
46
+ var version = "0.1.121-mtapi";
47
47
 
48
48
  const setTheme = theme => {
49
49
  if (theme === "dark") {
@@ -245,7 +245,7 @@ const getCommonHeaders = () => {
245
245
  };
246
246
  const defaultConfig = {
247
247
  timeout: 1e3 * 10,
248
- baseURL: "/api/"
248
+ baseURL: "/mtapi/"
249
249
  };
250
250
  class ApiInstance {
251
251
  instance;
@@ -316,7 +316,7 @@ class Login$1 {
316
316
  constructor() {
317
317
  this.getQueryInfo();
318
318
  this.config.axios = new ApiInstance({
319
- baseURL: "/api/common/v1/"
319
+ baseURL: "/mtapi/common/v1/"
320
320
  }).instance;
321
321
  }
322
322
  checkSystemInfo() {
@@ -6640,14 +6640,14 @@ const Endpoint = RTCEndpoint;
6640
6640
 
6641
6641
  const playOneWebRtcMt = async (uuid, domId, dom, token) => {
6642
6642
  let play;
6643
- const response = await fetch(`/api/vms/v1/camera/getByUuid?uuid=${uuid}`, {
6643
+ const response = await fetch(`/mtapi/vms/v1/camera/getByUuid?uuid=${uuid}`, {
6644
6644
  method: "GET",
6645
6645
  headers: {
6646
6646
  token: token || sessionStorage.getItem("token") || ""
6647
6647
  }
6648
6648
  });
6649
6649
  const res = await response.json();
6650
- const urlResponse = await fetch(`/api/vms/v1/camera/getWebrtcUrls?uuid=${uuid}`, {
6650
+ const urlResponse = await fetch(`/mtapi/vms/v1/camera/getWebrtcUrls?uuid=${uuid}`, {
6651
6651
  method: "GET",
6652
6652
  headers: {
6653
6653
  token: token || sessionStorage.getItem("token") || ""
@@ -6959,7 +6959,7 @@ function getAlarmingCamera(config) {
6959
6959
  } catch (error) {}
6960
6960
  let timer = null;
6961
6961
  const getCurrentAlarm = async () => {
6962
- const res = await fetch("/api/alarmlite/v1/record/list", {
6962
+ const res = await fetch("/mtapi/alarmlite/v1/record/list", {
6963
6963
  method: "POST",
6964
6964
  headers,
6965
6965
  body: JSON.stringify({
@@ -6974,7 +6974,7 @@ function getAlarmingCamera(config) {
6974
6974
  return data.records;
6975
6975
  };
6976
6976
  const getCameraList = async (instId, zthingCode, alarmId, alarmName) => {
6977
- const res = await fetch(`/api/thing/v1/adapter/thing/relation/findZInstsByClass/${instId}/DEVICE_CAMERA`, {
6977
+ const res = await fetch(`/mtapi/thing/v1/adapter/thing/relation/findZInstsByClass/${instId}/DEVICE_CAMERA`, {
6978
6978
  method: "GET",
6979
6979
  headers
6980
6980
  });
@@ -7018,7 +7018,7 @@ const findAlarmDeviceById = async (ic, token) => {
7018
7018
  try {
7019
7019
  headers = resetHeader(token);
7020
7020
  } catch (error) {}
7021
- const res = await fetch("/api/thing/v1/adapter/thing/common/findAlarmDevice", {
7021
+ const res = await fetch("/mtapi/thing/v1/adapter/thing/common/findAlarmDevice", {
7022
7022
  method: "POST",
7023
7023
  headers,
7024
7024
  body: JSON.stringify({
@@ -7031,7 +7031,7 @@ const findAlarmDeviceById = async (ic, token) => {
7031
7031
  };
7032
7032
  const getDeviceList = async (param, token) => {
7033
7033
  const headers = resetHeader(token);
7034
- const res = await fetch("/api/thing/v1/metric/data/getDataList", {
7034
+ const res = await fetch("/mtapi/thing/v1/metric/data/getDataList", {
7035
7035
  method: "POST",
7036
7036
  headers,
7037
7037
  body: JSON.stringify(param)
@@ -7054,7 +7054,7 @@ const paramsToString = obj => {
7054
7054
  return arr.join("&");
7055
7055
  };
7056
7056
  const GetDeviceDetailOnce = async (codes, params) => {
7057
- const resPromise = await fetch("/api/mtip/thing/v2/thingInst/findByCodeList?" + paramsToString(params), {
7057
+ const resPromise = await fetch("/mtapi/mtip/thing/v2/thingInst/findByCodeList?" + paramsToString(params), {
7058
7058
  method: "POST",
7059
7059
  headers: resetHeader(params.token),
7060
7060
  body: JSON.stringify(codes)
@@ -7092,7 +7092,7 @@ const RefreshDeviceDetail = async (codes, token) => {
7092
7092
  }
7093
7093
  }
7094
7094
  }
7095
- const resPromise = await fetch("/api/mtip/thing/v2/thingInst/reloadPropertiesValue", {
7095
+ const resPromise = await fetch("/mtapi/mtip/thing/v2/thingInst/reloadPropertiesValue", {
7096
7096
  method: "POST",
7097
7097
  headers: resetHeader(token),
7098
7098
  body: JSON.stringify(pointCodes)
@@ -7212,7 +7212,7 @@ const getCorrelationInts = (data, code) => {
7212
7212
  };
7213
7213
  const findRelationEntitiesPage = async (data, code, params) => {
7214
7214
  const getDeviceState = getCorrelationInts(data, code);
7215
- const res = await fetch("/api/mtip/thing/v2/thingInst/findRelationEntitiesPage?" + paramsToString(params), {
7215
+ const res = await fetch("/mtapi/mtip/thing/v2/thingInst/findRelationEntitiesPage?" + paramsToString(params), {
7216
7216
  headers: resetHeader(params.token),
7217
7217
  method: "POST",
7218
7218
  body: JSON.stringify(getDeviceState)
@@ -7323,7 +7323,7 @@ async function checkIframeUrl(url) {
7323
7323
  const iframeUrl = getIframeUrl(url);
7324
7324
  let code = 200;
7325
7325
  try {
7326
- const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
7326
+ const res = await fetch(`/mtapi/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
7327
7327
  headers: getCommonHeaders()
7328
7328
  });
7329
7329
  if (res.status !== 404) {
@@ -8789,7 +8789,7 @@ var loginBox = vue.defineComponent({
8789
8789
  });
8790
8790
  const isClould = vue.inject("isClould");
8791
8791
  const instance = new ApiInstance({
8792
- baseURL: "/api/common/v1/"
8792
+ baseURL: "/mtapi/common/v1/"
8793
8793
  }).instance;
8794
8794
  const systemTitle = vue.inject("systemTitle");
8795
8795
  const platformLogo = vue.inject("platformLogo");
@@ -9453,26 +9453,26 @@ const isIndependentApp = query => !!query.token && !!query.onlyPage;
9453
9453
  const loginFun = new Login$1();
9454
9454
  const httpUtil = {
9455
9455
  requestLogo: async () => {
9456
- const res = await fetch("/api/common/v1/sysconfig/searchImage?imgType=4&editImg=1&clientType=web");
9456
+ const res = await fetch("/mtapi/common/v1/sysconfig/searchImage?imgType=4&editImg=1&clientType=web");
9457
9457
  const blob = await res.blob();
9458
9458
  return URL.createObjectURL(blob);
9459
9459
  },
9460
9460
  requestUserTree: async () => {
9461
9461
  const headers = getCommonHeaders();
9462
- const res = await fetch("/api/common/v1/menu/tree", {
9462
+ const res = await fetch("/mtapi/common/v1/menu/tree", {
9463
9463
  headers
9464
9464
  });
9465
9465
  const treeData = await res.json();
9466
9466
  return treeData.data;
9467
9467
  },
9468
9468
  requestCopyright: async () => {
9469
- const res = await fetch("/api/common/v1/sysconfig/getSysConfig?clientType=web");
9469
+ const res = await fetch("/mtapi/common/v1/sysconfig/getSysConfig?clientType=web");
9470
9470
  const data = await res.json();
9471
9471
  return data.data.homepageCopyright;
9472
9472
  },
9473
9473
  postLogout: async () => {
9474
9474
  const headers = getCommonHeaders();
9475
- await fetch("/api/common/v1/log/insert", {
9475
+ await fetch("/mtapi/common/v1/log/insert", {
9476
9476
  method: "POST",
9477
9477
  headers: {
9478
9478
  ...headers,
@@ -9731,7 +9731,8 @@ const getDetailContainer = () => vue.defineComponent({
9731
9731
  uniqueKey: dataId.value,
9732
9732
  icon: props.icon,
9733
9733
  isExtraTab: true,
9734
- params: ___default["default"].omit(route.query, "name")
9734
+ params: ___default["default"].omit(route.query, "name"),
9735
+ ogiginId: newRoute.params.id || newRoute.query.id
9735
9736
  };
9736
9737
  const detail = detailList.value.find(item => item.uniqueKey === tab.uniqueKey);
9737
9738
  if (detail) {
@@ -9825,7 +9826,7 @@ const getDetailContainer = () => vue.defineComponent({
9825
9826
  }
9826
9827
  }, [vue.createVNode(props.cpn, {
9827
9828
  "key": item.id,
9828
- "id": item.id,
9829
+ "id": item.ogiginId,
9829
9830
  "isActive": isActive.value && isDetailActive,
9830
9831
  "onClose": () => handleClose(item),
9831
9832
  "onRefresh": () => handleRefresh(item)
@@ -10124,7 +10125,7 @@ const VideoBox = vue.defineComponent({
10124
10125
  }]];
10125
10126
  const infos = vue.ref([]);
10126
10127
  const videoMove = async direction => {
10127
- await axios__default["default"].get("/api/vms/v1/control/hik/control", {
10128
+ await axios__default["default"].get("/mtapi/vms/v1/control/hik/control", {
10128
10129
  params: {
10129
10130
  cameraUuid: _prop.camera,
10130
10131
  command: direction
@@ -10139,7 +10140,7 @@ const VideoBox = vue.defineComponent({
10139
10140
  const arr = infos.value.map(info => {
10140
10141
  return {};
10141
10142
  });
10142
- const res = await axios__default["default"].get("/api/vms/v1/camera/getThingDevice", {
10143
+ const res = await axios__default["default"].get("/mtapi/vms/v1/camera/getThingDevice", {
10143
10144
  params: {
10144
10145
  cameraUuid: uuid
10145
10146
  },
@@ -10155,7 +10156,7 @@ const VideoBox = vue.defineComponent({
10155
10156
  };
10156
10157
  const camera = vue.ref({});
10157
10158
  const getVideoDetail = async val => {
10158
- const res = await axios__default["default"].get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
10159
+ const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
10159
10160
  headers: {
10160
10161
  token: sessionStorage.getItem("token") || ""
10161
10162
  }
@@ -10186,7 +10187,7 @@ const VideoBox = vue.defineComponent({
10186
10187
  immediate: true
10187
10188
  });
10188
10189
  const changeStream = async code => {
10189
- const res = await axios__default["default"].get(`/api/vms/v1/camera/getWebrtcUrls`, {
10190
+ const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
10190
10191
  headers: {
10191
10192
  token: sessionStorage.getItem("token") || ""
10192
10193
  },
@@ -10409,7 +10410,7 @@ var Tree = vue.defineComponent({
10409
10410
  });
10410
10411
  const getQueryGroup = async params => {
10411
10412
  return new Promise(async resolve => {
10412
- const res = await axios__default["default"].get("/api/vms/v1/cameraGroup/tree", {
10413
+ const res = await axios__default["default"].get("/mtapi/vms/v1/cameraGroup/tree", {
10413
10414
  headers: {
10414
10415
  token: sessionStorage.getItem("token") || ""
10415
10416
  },
@@ -10427,7 +10428,7 @@ var Tree = vue.defineComponent({
10427
10428
  };
10428
10429
  const getGroup = async () => {
10429
10430
  return new Promise(async resolve => {
10430
- const res = await axios__default["default"].get("/api/vms/v1/cameraGroupType/findAll", {
10431
+ const res = await axios__default["default"].get("/mtapi/vms/v1/cameraGroupType/findAll", {
10431
10432
  headers: {
10432
10433
  token: sessionStorage.getItem("token") || ""
10433
10434
  }
@@ -10703,7 +10704,7 @@ const VideoBoxV2 = vue.defineComponent({
10703
10704
  showInfo.value = _prop.showInfo;
10704
10705
  });
10705
10706
  const videoMove = async direction => {
10706
- await axios__default["default"].get("/api/vms/v1/control/hik/control", {
10707
+ await axios__default["default"].get("/mtapi/vms/v1/control/hik/control", {
10707
10708
  params: {
10708
10709
  cameraUuid: _prop.camera,
10709
10710
  command: direction
@@ -10728,7 +10729,7 @@ const VideoBoxV2 = vue.defineComponent({
10728
10729
  if (tcpcArr.length === 0) {
10729
10730
  return;
10730
10731
  }
10731
- const res = await axios__default["default"].post("/api/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
10732
+ const res = await axios__default["default"].post("/mtapi/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
10732
10733
  headers: {
10733
10734
  token: sessionStorage.getItem("token")
10734
10735
  }
@@ -10749,7 +10750,7 @@ const VideoBoxV2 = vue.defineComponent({
10749
10750
  const arr = infos.value.map(info => {
10750
10751
  return {};
10751
10752
  });
10752
- const res = await axios__default["default"].post("/api/vms/v1/cameraRelThing/getByParam", {
10753
+ const res = await axios__default["default"].post("/mtapi/vms/v1/cameraRelThing/getByParam", {
10753
10754
  cameraUuid: uuid2
10754
10755
  }, {
10755
10756
  headers: {
@@ -10769,7 +10770,7 @@ const VideoBoxV2 = vue.defineComponent({
10769
10770
  };
10770
10771
  const camera = vue.ref({});
10771
10772
  const getVideoDetail = async val => {
10772
- const res = await axios__default["default"].get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
10773
+ const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
10773
10774
  headers: {
10774
10775
  token: sessionStorage.getItem("token") || ""
10775
10776
  }
@@ -10886,7 +10887,7 @@ const VideoBoxV2 = vue.defineComponent({
10886
10887
  immediate: true
10887
10888
  });
10888
10889
  const changeStream = async code => {
10889
- const res = await axios__default["default"].get(`/api/vms/v1/camera/getWebrtcUrls`, {
10890
+ const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
10890
10891
  headers: {
10891
10892
  token: sessionStorage.getItem("token") || ""
10892
10893
  },
@@ -11872,7 +11873,7 @@ const VideoPlayerV1 = vue.defineComponent({
11872
11873
  videoInfo2.value = camera;
11873
11874
  init();
11874
11875
  } else if (camera && typeof camera === "string") {
11875
- const res = await axios__default["default"].post(`/api/sfvideo/v1/camera/getCameraByCameraId`, {
11876
+ const res = await axios__default["default"].post(`/mtapi/sfvideo/v1/camera/getCameraByCameraId`, {
11876
11877
  id: camera
11877
11878
  }, {
11878
11879
  headers: {
@@ -12672,7 +12673,7 @@ var index$4 = installComponent(PeopleSelect, "people-select");
12672
12673
 
12673
12674
  const getParamList$1 = async data => {
12674
12675
  const headers = getCommonHeaders();
12675
- const res = await fetch("/api/common/v1/param/group/list", {
12676
+ const res = await fetch("/mtapi/common/v1/param/group/list", {
12676
12677
  method: "POST",
12677
12678
  body: JSON.stringify(data),
12678
12679
  headers
@@ -12681,7 +12682,7 @@ const getParamList$1 = async data => {
12681
12682
  };
12682
12683
  const getParamDefineList$1 = async groupId => {
12683
12684
  const headers = getCommonHeaders();
12684
- const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
12685
+ const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
12685
12686
  method: "GET",
12686
12687
  headers
12687
12688
  });
@@ -12689,7 +12690,7 @@ const getParamDefineList$1 = async groupId => {
12689
12690
  };
12690
12691
  const batchSaveParamsValue$1 = async form => {
12691
12692
  const headers = getCommonHeaders();
12692
- const res = await fetch("/api/common/v1/param/value/updateBatch", {
12693
+ const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
12693
12694
  method: "POST",
12694
12695
  headers,
12695
12696
  body: JSON.stringify(form)
@@ -13481,7 +13482,7 @@ const ParamItem = vue.defineComponent({
13481
13482
 
13482
13483
  const getParamList = async data => {
13483
13484
  const headers = getCommonHeaders();
13484
- const res = await fetch("/api/common/v1/param/group/list", {
13485
+ const res = await fetch("/mtapi/common/v1/param/group/list", {
13485
13486
  method: "POST",
13486
13487
  body: JSON.stringify(data),
13487
13488
  headers
@@ -13490,7 +13491,7 @@ const getParamList = async data => {
13490
13491
  };
13491
13492
  const getParamDefineList = async groupId => {
13492
13493
  const headers = getCommonHeaders();
13493
- const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
13494
+ const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
13494
13495
  method: "GET",
13495
13496
  headers
13496
13497
  });
@@ -13498,7 +13499,7 @@ const getParamDefineList = async groupId => {
13498
13499
  };
13499
13500
  const batchSaveParamsValue = async form => {
13500
13501
  const headers = getCommonHeaders();
13501
- const res = await fetch("/api/common/v1/param/value/updateBatch", {
13502
+ const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
13502
13503
  method: "POST",
13503
13504
  headers,
13504
13505
  body: JSON.stringify(form)
@@ -14153,7 +14154,7 @@ const SszComment = vue.defineComponent({
14153
14154
  // 评论api的前缀
14154
14155
  baseUrl: {
14155
14156
  type: String,
14156
- default: "/api/taskcoordinationcenter/v2/tri/"
14157
+ default: "/mtapi/taskcoordinationcenter/v2/tri/"
14157
14158
  },
14158
14159
  // 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
14159
14160
  commentProps: {
@@ -14265,7 +14266,7 @@ function formatDataString(str) {
14265
14266
  function request(question, streamCallback, doneCallback) {
14266
14267
  const controller = new AbortController();
14267
14268
  const signal = controller.signal;
14268
- fetch("/api/chat/v1/chat/chat", {
14269
+ fetch("/mtapi/chat/v1/chat/chat", {
14269
14270
  signal,
14270
14271
  method: "POST",
14271
14272
  headers: {
@@ -14382,7 +14383,7 @@ async function audioToText(file) {
14382
14383
  const formData = new FormData();
14383
14384
  formData.append("file", file);
14384
14385
  formData.append("upload_id", "1");
14385
- const [path] = await fetch("/api/chat/v1/upload", {
14386
+ const [path] = await fetch("/mtapi/chat/v1/upload", {
14386
14387
  // headers,
14387
14388
  method: "POST",
14388
14389
  body: formData
@@ -14393,7 +14394,7 @@ async function audioToText(file) {
14393
14394
  }
14394
14395
  const {
14395
14396
  result
14396
- } = await fetch(`/api/chat/v1/translate?path=${path}&session_hash=1`, {
14397
+ } = await fetch(`/mtapi/chat/v1/translate?path=${path}&session_hash=1`, {
14397
14398
  headers,
14398
14399
  method: "POST"
14399
14400
  }).then(res => res.json());
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { Key } from 'ant-design-vue/lib/table/interface';
11
11
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
12
12
  import * as _ant_design_icons_vue_lib_components_IconFont from '@ant-design/icons-vue/lib/components/IconFont';
13
13
 
14
- var version = "0.1.119";
14
+ var version = "0.1.121-mtapi";
15
15
 
16
16
  declare const _default$p: {
17
17
  set(theme: string): void;