inl-ui 0.1.121 → 0.1.122-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/components/index.cjs +34 -36
- package/dist/components/index.js +34 -36
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +44 -46
- package/dist/index.d.ts +1 -1
- package/dist/index.js +44 -46
- package/dist/tplib/index.cjs +9 -9
- package/dist/tplib/index.js +9 -9
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/video/index.cjs +12 -12
- package/dist/video/index.js +12 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
|
|
|
13
13
|
import { marked } from 'marked';
|
|
14
14
|
import '@sszj-temp/mobile/style.css';
|
|
15
15
|
|
|
16
|
-
var version = "0.1.
|
|
16
|
+
var version = "0.1.122-mtapi";
|
|
17
17
|
|
|
18
18
|
const setTheme = theme => {
|
|
19
19
|
if (theme === "dark") {
|
|
@@ -215,7 +215,7 @@ const getCommonHeaders = () => {
|
|
|
215
215
|
};
|
|
216
216
|
const defaultConfig = {
|
|
217
217
|
timeout: 1e3 * 10,
|
|
218
|
-
baseURL: "/
|
|
218
|
+
baseURL: "/mtapi/"
|
|
219
219
|
};
|
|
220
220
|
class ApiInstance {
|
|
221
221
|
instance;
|
|
@@ -286,7 +286,7 @@ class Login$1 {
|
|
|
286
286
|
constructor() {
|
|
287
287
|
this.getQueryInfo();
|
|
288
288
|
this.config.axios = new ApiInstance({
|
|
289
|
-
baseURL: "/
|
|
289
|
+
baseURL: "/mtapi/common/v1/"
|
|
290
290
|
}).instance;
|
|
291
291
|
}
|
|
292
292
|
checkSystemInfo() {
|
|
@@ -6610,14 +6610,14 @@ const Endpoint = RTCEndpoint;
|
|
|
6610
6610
|
|
|
6611
6611
|
const playOneWebRtcMt = async (uuid, domId, dom, token) => {
|
|
6612
6612
|
let play;
|
|
6613
|
-
const response = await fetch(`/
|
|
6613
|
+
const response = await fetch(`/mtapi/vms/v1/camera/getByUuid?uuid=${uuid}`, {
|
|
6614
6614
|
method: "GET",
|
|
6615
6615
|
headers: {
|
|
6616
6616
|
token: token || sessionStorage.getItem("token") || ""
|
|
6617
6617
|
}
|
|
6618
6618
|
});
|
|
6619
6619
|
const res = await response.json();
|
|
6620
|
-
const urlResponse = await fetch(`/
|
|
6620
|
+
const urlResponse = await fetch(`/mtapi/vms/v1/camera/getWebrtcUrls?uuid=${uuid}`, {
|
|
6621
6621
|
method: "GET",
|
|
6622
6622
|
headers: {
|
|
6623
6623
|
token: token || sessionStorage.getItem("token") || ""
|
|
@@ -6929,7 +6929,7 @@ function getAlarmingCamera(config) {
|
|
|
6929
6929
|
} catch (error) {}
|
|
6930
6930
|
let timer = null;
|
|
6931
6931
|
const getCurrentAlarm = async () => {
|
|
6932
|
-
const res = await fetch("/
|
|
6932
|
+
const res = await fetch("/mtapi/alarmlite/v1/record/list", {
|
|
6933
6933
|
method: "POST",
|
|
6934
6934
|
headers,
|
|
6935
6935
|
body: JSON.stringify({
|
|
@@ -6944,7 +6944,7 @@ function getAlarmingCamera(config) {
|
|
|
6944
6944
|
return data.records;
|
|
6945
6945
|
};
|
|
6946
6946
|
const getCameraList = async (instId, zthingCode, alarmId, alarmName) => {
|
|
6947
|
-
const res = await fetch(`/
|
|
6947
|
+
const res = await fetch(`/mtapi/thing/v1/adapter/thing/relation/findZInstsByClass/${instId}/DEVICE_CAMERA`, {
|
|
6948
6948
|
method: "GET",
|
|
6949
6949
|
headers
|
|
6950
6950
|
});
|
|
@@ -6988,7 +6988,7 @@ const findAlarmDeviceById = async (ic, token) => {
|
|
|
6988
6988
|
try {
|
|
6989
6989
|
headers = resetHeader(token);
|
|
6990
6990
|
} catch (error) {}
|
|
6991
|
-
const res = await fetch("/
|
|
6991
|
+
const res = await fetch("/mtapi/thing/v1/adapter/thing/common/findAlarmDevice", {
|
|
6992
6992
|
method: "POST",
|
|
6993
6993
|
headers,
|
|
6994
6994
|
body: JSON.stringify({
|
|
@@ -7001,7 +7001,7 @@ const findAlarmDeviceById = async (ic, token) => {
|
|
|
7001
7001
|
};
|
|
7002
7002
|
const getDeviceList = async (param, token) => {
|
|
7003
7003
|
const headers = resetHeader(token);
|
|
7004
|
-
const res = await fetch("/
|
|
7004
|
+
const res = await fetch("/mtapi/thing/v1/metric/data/getDataList", {
|
|
7005
7005
|
method: "POST",
|
|
7006
7006
|
headers,
|
|
7007
7007
|
body: JSON.stringify(param)
|
|
@@ -7024,7 +7024,7 @@ const paramsToString = obj => {
|
|
|
7024
7024
|
return arr.join("&");
|
|
7025
7025
|
};
|
|
7026
7026
|
const GetDeviceDetailOnce = async (codes, params) => {
|
|
7027
|
-
const resPromise = await fetch("/
|
|
7027
|
+
const resPromise = await fetch("/mtapi/mtip/thing/v2/thingInst/findByCodeList?" + paramsToString(params), {
|
|
7028
7028
|
method: "POST",
|
|
7029
7029
|
headers: resetHeader(params.token),
|
|
7030
7030
|
body: JSON.stringify(codes)
|
|
@@ -7062,7 +7062,7 @@ const RefreshDeviceDetail = async (codes, token) => {
|
|
|
7062
7062
|
}
|
|
7063
7063
|
}
|
|
7064
7064
|
}
|
|
7065
|
-
const resPromise = await fetch("/
|
|
7065
|
+
const resPromise = await fetch("/mtapi/mtip/thing/v2/thingInst/reloadPropertiesValue", {
|
|
7066
7066
|
method: "POST",
|
|
7067
7067
|
headers: resetHeader(token),
|
|
7068
7068
|
body: JSON.stringify(pointCodes)
|
|
@@ -7182,7 +7182,7 @@ const getCorrelationInts = (data, code) => {
|
|
|
7182
7182
|
};
|
|
7183
7183
|
const findRelationEntitiesPage = async (data, code, params) => {
|
|
7184
7184
|
const getDeviceState = getCorrelationInts(data, code);
|
|
7185
|
-
const res = await fetch("/
|
|
7185
|
+
const res = await fetch("/mtapi/mtip/thing/v2/thingInst/findRelationEntitiesPage?" + paramsToString(params), {
|
|
7186
7186
|
headers: resetHeader(params.token),
|
|
7187
7187
|
method: "POST",
|
|
7188
7188
|
body: JSON.stringify(getDeviceState)
|
|
@@ -7293,7 +7293,7 @@ async function checkIframeUrl(url) {
|
|
|
7293
7293
|
const iframeUrl = getIframeUrl(url);
|
|
7294
7294
|
let code = 200;
|
|
7295
7295
|
try {
|
|
7296
|
-
const res = await fetch(`/
|
|
7296
|
+
const res = await fetch(`/mtapi/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
|
|
7297
7297
|
headers: getCommonHeaders()
|
|
7298
7298
|
});
|
|
7299
7299
|
if (res.status !== 404) {
|
|
@@ -8759,7 +8759,7 @@ var loginBox = defineComponent({
|
|
|
8759
8759
|
});
|
|
8760
8760
|
const isClould = inject("isClould");
|
|
8761
8761
|
const instance = new ApiInstance({
|
|
8762
|
-
baseURL: "/
|
|
8762
|
+
baseURL: "/mtapi/common/v1/"
|
|
8763
8763
|
}).instance;
|
|
8764
8764
|
const systemTitle = inject("systemTitle");
|
|
8765
8765
|
const platformLogo = inject("platformLogo");
|
|
@@ -9423,26 +9423,26 @@ const isIndependentApp = query => !!query.token && !!query.onlyPage;
|
|
|
9423
9423
|
const loginFun = new Login$1();
|
|
9424
9424
|
const httpUtil = {
|
|
9425
9425
|
requestLogo: async () => {
|
|
9426
|
-
const res = await fetch("/
|
|
9426
|
+
const res = await fetch("/mtapi/common/v1/sysconfig/searchImage?imgType=4&editImg=1&clientType=web");
|
|
9427
9427
|
const blob = await res.blob();
|
|
9428
9428
|
return URL.createObjectURL(blob);
|
|
9429
9429
|
},
|
|
9430
9430
|
requestUserTree: async () => {
|
|
9431
9431
|
const headers = getCommonHeaders();
|
|
9432
|
-
const res = await fetch("/
|
|
9432
|
+
const res = await fetch("/mtapi/common/v1/menu/tree", {
|
|
9433
9433
|
headers
|
|
9434
9434
|
});
|
|
9435
9435
|
const treeData = await res.json();
|
|
9436
9436
|
return treeData.data;
|
|
9437
9437
|
},
|
|
9438
9438
|
requestCopyright: async () => {
|
|
9439
|
-
const res = await fetch("/
|
|
9439
|
+
const res = await fetch("/mtapi/common/v1/sysconfig/getSysConfig?clientType=web");
|
|
9440
9440
|
const data = await res.json();
|
|
9441
9441
|
return data.data.homepageCopyright;
|
|
9442
9442
|
},
|
|
9443
9443
|
postLogout: async () => {
|
|
9444
9444
|
const headers = getCommonHeaders();
|
|
9445
|
-
await fetch("/
|
|
9445
|
+
await fetch("/mtapi/common/v1/log/insert", {
|
|
9446
9446
|
method: "POST",
|
|
9447
9447
|
headers: {
|
|
9448
9448
|
...headers,
|
|
@@ -9693,7 +9693,6 @@ const getDetailContainer = () => defineComponent({
|
|
|
9693
9693
|
if (newTab) {
|
|
9694
9694
|
dataId.value = newTab;
|
|
9695
9695
|
}
|
|
9696
|
-
dataId.value = props.name + dataId.value;
|
|
9697
9696
|
const tab = {
|
|
9698
9697
|
name,
|
|
9699
9698
|
url: route.fullPath,
|
|
@@ -9701,10 +9700,9 @@ const getDetailContainer = () => defineComponent({
|
|
|
9701
9700
|
uniqueKey: dataId.value,
|
|
9702
9701
|
icon: props.icon,
|
|
9703
9702
|
isExtraTab: true,
|
|
9704
|
-
params: _.omit(route.query, "name")
|
|
9705
|
-
ogiginId: newRoute.params.id || newRoute.query.id
|
|
9703
|
+
params: _.omit(route.query, "name")
|
|
9706
9704
|
};
|
|
9707
|
-
const detail = detailList.value.find(item => item.uniqueKey === tab.uniqueKey);
|
|
9705
|
+
const detail = detailList.value.find(item => item.key + item.uniqueKey === tab.key + tab.uniqueKey);
|
|
9708
9706
|
if (detail) {
|
|
9709
9707
|
detail.url = newRoute.fullPath;
|
|
9710
9708
|
if (Array.isArray(qiankunState.value.extraTabs)) {
|
|
@@ -9733,7 +9731,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
9733
9731
|
}
|
|
9734
9732
|
});
|
|
9735
9733
|
}
|
|
9736
|
-
const activeTabKey = tab.uniqueKey;
|
|
9734
|
+
const activeTabKey = props.name + tab.uniqueKey;
|
|
9737
9735
|
qiankunState.value = {
|
|
9738
9736
|
...(qiankunState.value ?? {}),
|
|
9739
9737
|
activeTabKey
|
|
@@ -9796,7 +9794,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
9796
9794
|
}
|
|
9797
9795
|
}, [createVNode(props.cpn, {
|
|
9798
9796
|
"key": item.id,
|
|
9799
|
-
"id": item.
|
|
9797
|
+
"id": item.id,
|
|
9800
9798
|
"isActive": isActive.value && isDetailActive,
|
|
9801
9799
|
"onClose": () => handleClose(item),
|
|
9802
9800
|
"onRefresh": () => handleRefresh(item)
|
|
@@ -10095,7 +10093,7 @@ const VideoBox = defineComponent({
|
|
|
10095
10093
|
}]];
|
|
10096
10094
|
const infos = ref([]);
|
|
10097
10095
|
const videoMove = async direction => {
|
|
10098
|
-
await axios$2.get("/
|
|
10096
|
+
await axios$2.get("/mtapi/vms/v1/control/hik/control", {
|
|
10099
10097
|
params: {
|
|
10100
10098
|
cameraUuid: _prop.camera,
|
|
10101
10099
|
command: direction
|
|
@@ -10110,7 +10108,7 @@ const VideoBox = defineComponent({
|
|
|
10110
10108
|
const arr = infos.value.map(info => {
|
|
10111
10109
|
return {};
|
|
10112
10110
|
});
|
|
10113
|
-
const res = await axios$2.get("/
|
|
10111
|
+
const res = await axios$2.get("/mtapi/vms/v1/camera/getThingDevice", {
|
|
10114
10112
|
params: {
|
|
10115
10113
|
cameraUuid: uuid
|
|
10116
10114
|
},
|
|
@@ -10126,7 +10124,7 @@ const VideoBox = defineComponent({
|
|
|
10126
10124
|
};
|
|
10127
10125
|
const camera = ref({});
|
|
10128
10126
|
const getVideoDetail = async val => {
|
|
10129
|
-
const res = await axios$2.get(`/
|
|
10127
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
10130
10128
|
headers: {
|
|
10131
10129
|
token: sessionStorage.getItem("token") || ""
|
|
10132
10130
|
}
|
|
@@ -10157,7 +10155,7 @@ const VideoBox = defineComponent({
|
|
|
10157
10155
|
immediate: true
|
|
10158
10156
|
});
|
|
10159
10157
|
const changeStream = async code => {
|
|
10160
|
-
const res = await axios$2.get(`/
|
|
10158
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
10161
10159
|
headers: {
|
|
10162
10160
|
token: sessionStorage.getItem("token") || ""
|
|
10163
10161
|
},
|
|
@@ -10380,7 +10378,7 @@ var Tree = defineComponent({
|
|
|
10380
10378
|
});
|
|
10381
10379
|
const getQueryGroup = async params => {
|
|
10382
10380
|
return new Promise(async resolve => {
|
|
10383
|
-
const res = await axios$2.get("/
|
|
10381
|
+
const res = await axios$2.get("/mtapi/vms/v1/cameraGroup/tree", {
|
|
10384
10382
|
headers: {
|
|
10385
10383
|
token: sessionStorage.getItem("token") || ""
|
|
10386
10384
|
},
|
|
@@ -10398,7 +10396,7 @@ var Tree = defineComponent({
|
|
|
10398
10396
|
};
|
|
10399
10397
|
const getGroup = async () => {
|
|
10400
10398
|
return new Promise(async resolve => {
|
|
10401
|
-
const res = await axios$2.get("/
|
|
10399
|
+
const res = await axios$2.get("/mtapi/vms/v1/cameraGroupType/findAll", {
|
|
10402
10400
|
headers: {
|
|
10403
10401
|
token: sessionStorage.getItem("token") || ""
|
|
10404
10402
|
}
|
|
@@ -10674,7 +10672,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
10674
10672
|
showInfo.value = _prop.showInfo;
|
|
10675
10673
|
});
|
|
10676
10674
|
const videoMove = async direction => {
|
|
10677
|
-
await axios$2.get("/
|
|
10675
|
+
await axios$2.get("/mtapi/vms/v1/control/hik/control", {
|
|
10678
10676
|
params: {
|
|
10679
10677
|
cameraUuid: _prop.camera,
|
|
10680
10678
|
command: direction
|
|
@@ -10699,7 +10697,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
10699
10697
|
if (tcpcArr.length === 0) {
|
|
10700
10698
|
return;
|
|
10701
10699
|
}
|
|
10702
|
-
const res = await axios$2.post("/
|
|
10700
|
+
const res = await axios$2.post("/mtapi/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
|
|
10703
10701
|
headers: {
|
|
10704
10702
|
token: sessionStorage.getItem("token")
|
|
10705
10703
|
}
|
|
@@ -10720,7 +10718,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
10720
10718
|
const arr = infos.value.map(info => {
|
|
10721
10719
|
return {};
|
|
10722
10720
|
});
|
|
10723
|
-
const res = await axios$2.post("/
|
|
10721
|
+
const res = await axios$2.post("/mtapi/vms/v1/cameraRelThing/getByParam", {
|
|
10724
10722
|
cameraUuid: uuid2
|
|
10725
10723
|
}, {
|
|
10726
10724
|
headers: {
|
|
@@ -10740,7 +10738,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
10740
10738
|
};
|
|
10741
10739
|
const camera = ref({});
|
|
10742
10740
|
const getVideoDetail = async val => {
|
|
10743
|
-
const res = await axios$2.get(`/
|
|
10741
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
10744
10742
|
headers: {
|
|
10745
10743
|
token: sessionStorage.getItem("token") || ""
|
|
10746
10744
|
}
|
|
@@ -10857,7 +10855,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
10857
10855
|
immediate: true
|
|
10858
10856
|
});
|
|
10859
10857
|
const changeStream = async code => {
|
|
10860
|
-
const res = await axios$2.get(`/
|
|
10858
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
10861
10859
|
headers: {
|
|
10862
10860
|
token: sessionStorage.getItem("token") || ""
|
|
10863
10861
|
},
|
|
@@ -11843,7 +11841,7 @@ const VideoPlayerV1 = defineComponent({
|
|
|
11843
11841
|
videoInfo2.value = camera;
|
|
11844
11842
|
init();
|
|
11845
11843
|
} else if (camera && typeof camera === "string") {
|
|
11846
|
-
const res = await axios$2.post(`/
|
|
11844
|
+
const res = await axios$2.post(`/mtapi/sfvideo/v1/camera/getCameraByCameraId`, {
|
|
11847
11845
|
id: camera
|
|
11848
11846
|
}, {
|
|
11849
11847
|
headers: {
|
|
@@ -12643,7 +12641,7 @@ var index$4 = installComponent(PeopleSelect, "people-select");
|
|
|
12643
12641
|
|
|
12644
12642
|
const getParamList$1 = async data => {
|
|
12645
12643
|
const headers = getCommonHeaders();
|
|
12646
|
-
const res = await fetch("/
|
|
12644
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
12647
12645
|
method: "POST",
|
|
12648
12646
|
body: JSON.stringify(data),
|
|
12649
12647
|
headers
|
|
@@ -12652,7 +12650,7 @@ const getParamList$1 = async data => {
|
|
|
12652
12650
|
};
|
|
12653
12651
|
const getParamDefineList$1 = async groupId => {
|
|
12654
12652
|
const headers = getCommonHeaders();
|
|
12655
|
-
const res = await fetch(`/
|
|
12653
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
12656
12654
|
method: "GET",
|
|
12657
12655
|
headers
|
|
12658
12656
|
});
|
|
@@ -12660,7 +12658,7 @@ const getParamDefineList$1 = async groupId => {
|
|
|
12660
12658
|
};
|
|
12661
12659
|
const batchSaveParamsValue$1 = async form => {
|
|
12662
12660
|
const headers = getCommonHeaders();
|
|
12663
|
-
const res = await fetch("/
|
|
12661
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
12664
12662
|
method: "POST",
|
|
12665
12663
|
headers,
|
|
12666
12664
|
body: JSON.stringify(form)
|
|
@@ -13452,7 +13450,7 @@ const ParamItem = defineComponent({
|
|
|
13452
13450
|
|
|
13453
13451
|
const getParamList = async data => {
|
|
13454
13452
|
const headers = getCommonHeaders();
|
|
13455
|
-
const res = await fetch("/
|
|
13453
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
13456
13454
|
method: "POST",
|
|
13457
13455
|
body: JSON.stringify(data),
|
|
13458
13456
|
headers
|
|
@@ -13461,7 +13459,7 @@ const getParamList = async data => {
|
|
|
13461
13459
|
};
|
|
13462
13460
|
const getParamDefineList = async groupId => {
|
|
13463
13461
|
const headers = getCommonHeaders();
|
|
13464
|
-
const res = await fetch(`/
|
|
13462
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
13465
13463
|
method: "GET",
|
|
13466
13464
|
headers
|
|
13467
13465
|
});
|
|
@@ -13469,7 +13467,7 @@ const getParamDefineList = async groupId => {
|
|
|
13469
13467
|
};
|
|
13470
13468
|
const batchSaveParamsValue = async form => {
|
|
13471
13469
|
const headers = getCommonHeaders();
|
|
13472
|
-
const res = await fetch("/
|
|
13470
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
13473
13471
|
method: "POST",
|
|
13474
13472
|
headers,
|
|
13475
13473
|
body: JSON.stringify(form)
|
|
@@ -14124,7 +14122,7 @@ const SszComment = defineComponent({
|
|
|
14124
14122
|
// 评论api的前缀
|
|
14125
14123
|
baseUrl: {
|
|
14126
14124
|
type: String,
|
|
14127
|
-
default: "/
|
|
14125
|
+
default: "/mtapi/taskcoordinationcenter/v2/tri/"
|
|
14128
14126
|
},
|
|
14129
14127
|
// 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
|
|
14130
14128
|
commentProps: {
|
|
@@ -14236,7 +14234,7 @@ function formatDataString(str) {
|
|
|
14236
14234
|
function request(question, streamCallback, doneCallback) {
|
|
14237
14235
|
const controller = new AbortController();
|
|
14238
14236
|
const signal = controller.signal;
|
|
14239
|
-
fetch("/
|
|
14237
|
+
fetch("/mtapi/chat/v1/chat/chat", {
|
|
14240
14238
|
signal,
|
|
14241
14239
|
method: "POST",
|
|
14242
14240
|
headers: {
|
|
@@ -14353,7 +14351,7 @@ async function audioToText(file) {
|
|
|
14353
14351
|
const formData = new FormData();
|
|
14354
14352
|
formData.append("file", file);
|
|
14355
14353
|
formData.append("upload_id", "1");
|
|
14356
|
-
const [path] = await fetch("/
|
|
14354
|
+
const [path] = await fetch("/mtapi/chat/v1/upload", {
|
|
14357
14355
|
// headers,
|
|
14358
14356
|
method: "POST",
|
|
14359
14357
|
body: formData
|
|
@@ -14364,7 +14362,7 @@ async function audioToText(file) {
|
|
|
14364
14362
|
}
|
|
14365
14363
|
const {
|
|
14366
14364
|
result
|
|
14367
|
-
} = await fetch(`/
|
|
14365
|
+
} = await fetch(`/mtapi/chat/v1/translate?path=${path}&session_hash=1`, {
|
|
14368
14366
|
headers,
|
|
14369
14367
|
method: "POST"
|
|
14370
14368
|
}).then(res => res.json());
|
package/dist/tplib/index.cjs
CHANGED
|
@@ -5714,14 +5714,14 @@ const Endpoint = RTCEndpoint;
|
|
|
5714
5714
|
|
|
5715
5715
|
const playOneWebRtcMt = async (uuid, domId, dom, token) => {
|
|
5716
5716
|
let play;
|
|
5717
|
-
const response = await fetch(`/
|
|
5717
|
+
const response = await fetch(`/mtapi/vms/v1/camera/getByUuid?uuid=${uuid}`, {
|
|
5718
5718
|
method: "GET",
|
|
5719
5719
|
headers: {
|
|
5720
5720
|
token: token || sessionStorage.getItem("token") || ""
|
|
5721
5721
|
}
|
|
5722
5722
|
});
|
|
5723
5723
|
const res = await response.json();
|
|
5724
|
-
const urlResponse = await fetch(`/
|
|
5724
|
+
const urlResponse = await fetch(`/mtapi/vms/v1/camera/getWebrtcUrls?uuid=${uuid}`, {
|
|
5725
5725
|
method: "GET",
|
|
5726
5726
|
headers: {
|
|
5727
5727
|
token: token || sessionStorage.getItem("token") || ""
|
|
@@ -5981,7 +5981,7 @@ function getAlarmingCamera(config) {
|
|
|
5981
5981
|
} catch (error) {}
|
|
5982
5982
|
let timer = null;
|
|
5983
5983
|
const getCurrentAlarm = async () => {
|
|
5984
|
-
const res = await fetch("/
|
|
5984
|
+
const res = await fetch("/mtapi/alarmlite/v1/record/list", {
|
|
5985
5985
|
method: "POST",
|
|
5986
5986
|
headers,
|
|
5987
5987
|
body: JSON.stringify({
|
|
@@ -5996,7 +5996,7 @@ function getAlarmingCamera(config) {
|
|
|
5996
5996
|
return data.records;
|
|
5997
5997
|
};
|
|
5998
5998
|
const getCameraList = async (instId, zthingCode, alarmId, alarmName) => {
|
|
5999
|
-
const res = await fetch(`/
|
|
5999
|
+
const res = await fetch(`/mtapi/thing/v1/adapter/thing/relation/findZInstsByClass/${instId}/DEVICE_CAMERA`, {
|
|
6000
6000
|
method: "GET",
|
|
6001
6001
|
headers
|
|
6002
6002
|
});
|
|
@@ -6040,7 +6040,7 @@ const findAlarmDeviceById = async (ic, token) => {
|
|
|
6040
6040
|
try {
|
|
6041
6041
|
headers = resetHeader(token);
|
|
6042
6042
|
} catch (error) {}
|
|
6043
|
-
const res = await fetch("/
|
|
6043
|
+
const res = await fetch("/mtapi/thing/v1/adapter/thing/common/findAlarmDevice", {
|
|
6044
6044
|
method: "POST",
|
|
6045
6045
|
headers,
|
|
6046
6046
|
body: JSON.stringify({
|
|
@@ -6053,7 +6053,7 @@ const findAlarmDeviceById = async (ic, token) => {
|
|
|
6053
6053
|
};
|
|
6054
6054
|
const getDeviceList = async (param, token) => {
|
|
6055
6055
|
const headers = resetHeader(token);
|
|
6056
|
-
const res = await fetch("/
|
|
6056
|
+
const res = await fetch("/mtapi/thing/v1/metric/data/getDataList", {
|
|
6057
6057
|
method: "POST",
|
|
6058
6058
|
headers,
|
|
6059
6059
|
body: JSON.stringify(param)
|
|
@@ -6076,7 +6076,7 @@ const paramsToString = obj => {
|
|
|
6076
6076
|
return arr.join("&");
|
|
6077
6077
|
};
|
|
6078
6078
|
const GetDeviceDetailOnce = async (codes, params) => {
|
|
6079
|
-
const resPromise = await fetch("/
|
|
6079
|
+
const resPromise = await fetch("/mtapi/mtip/thing/v2/thingInst/findByCodeList?" + paramsToString(params), {
|
|
6080
6080
|
method: "POST",
|
|
6081
6081
|
headers: resetHeader(params.token),
|
|
6082
6082
|
body: JSON.stringify(codes)
|
|
@@ -6114,7 +6114,7 @@ const RefreshDeviceDetail = async (codes, token) => {
|
|
|
6114
6114
|
}
|
|
6115
6115
|
}
|
|
6116
6116
|
}
|
|
6117
|
-
const resPromise = await fetch("/
|
|
6117
|
+
const resPromise = await fetch("/mtapi/mtip/thing/v2/thingInst/reloadPropertiesValue", {
|
|
6118
6118
|
method: "POST",
|
|
6119
6119
|
headers: resetHeader(token),
|
|
6120
6120
|
body: JSON.stringify(pointCodes)
|
|
@@ -6234,7 +6234,7 @@ const getCorrelationInts = (data, code) => {
|
|
|
6234
6234
|
};
|
|
6235
6235
|
const findRelationEntitiesPage = async (data, code, params) => {
|
|
6236
6236
|
const getDeviceState = getCorrelationInts(data, code);
|
|
6237
|
-
const res = await fetch("/
|
|
6237
|
+
const res = await fetch("/mtapi/mtip/thing/v2/thingInst/findRelationEntitiesPage?" + paramsToString(params), {
|
|
6238
6238
|
headers: resetHeader(params.token),
|
|
6239
6239
|
method: "POST",
|
|
6240
6240
|
body: JSON.stringify(getDeviceState)
|
package/dist/tplib/index.js
CHANGED
|
@@ -5710,14 +5710,14 @@ const Endpoint = RTCEndpoint;
|
|
|
5710
5710
|
|
|
5711
5711
|
const playOneWebRtcMt = async (uuid, domId, dom, token) => {
|
|
5712
5712
|
let play;
|
|
5713
|
-
const response = await fetch(`/
|
|
5713
|
+
const response = await fetch(`/mtapi/vms/v1/camera/getByUuid?uuid=${uuid}`, {
|
|
5714
5714
|
method: "GET",
|
|
5715
5715
|
headers: {
|
|
5716
5716
|
token: token || sessionStorage.getItem("token") || ""
|
|
5717
5717
|
}
|
|
5718
5718
|
});
|
|
5719
5719
|
const res = await response.json();
|
|
5720
|
-
const urlResponse = await fetch(`/
|
|
5720
|
+
const urlResponse = await fetch(`/mtapi/vms/v1/camera/getWebrtcUrls?uuid=${uuid}`, {
|
|
5721
5721
|
method: "GET",
|
|
5722
5722
|
headers: {
|
|
5723
5723
|
token: token || sessionStorage.getItem("token") || ""
|
|
@@ -5977,7 +5977,7 @@ function getAlarmingCamera(config) {
|
|
|
5977
5977
|
} catch (error) {}
|
|
5978
5978
|
let timer = null;
|
|
5979
5979
|
const getCurrentAlarm = async () => {
|
|
5980
|
-
const res = await fetch("/
|
|
5980
|
+
const res = await fetch("/mtapi/alarmlite/v1/record/list", {
|
|
5981
5981
|
method: "POST",
|
|
5982
5982
|
headers,
|
|
5983
5983
|
body: JSON.stringify({
|
|
@@ -5992,7 +5992,7 @@ function getAlarmingCamera(config) {
|
|
|
5992
5992
|
return data.records;
|
|
5993
5993
|
};
|
|
5994
5994
|
const getCameraList = async (instId, zthingCode, alarmId, alarmName) => {
|
|
5995
|
-
const res = await fetch(`/
|
|
5995
|
+
const res = await fetch(`/mtapi/thing/v1/adapter/thing/relation/findZInstsByClass/${instId}/DEVICE_CAMERA`, {
|
|
5996
5996
|
method: "GET",
|
|
5997
5997
|
headers
|
|
5998
5998
|
});
|
|
@@ -6036,7 +6036,7 @@ const findAlarmDeviceById = async (ic, token) => {
|
|
|
6036
6036
|
try {
|
|
6037
6037
|
headers = resetHeader(token);
|
|
6038
6038
|
} catch (error) {}
|
|
6039
|
-
const res = await fetch("/
|
|
6039
|
+
const res = await fetch("/mtapi/thing/v1/adapter/thing/common/findAlarmDevice", {
|
|
6040
6040
|
method: "POST",
|
|
6041
6041
|
headers,
|
|
6042
6042
|
body: JSON.stringify({
|
|
@@ -6049,7 +6049,7 @@ const findAlarmDeviceById = async (ic, token) => {
|
|
|
6049
6049
|
};
|
|
6050
6050
|
const getDeviceList = async (param, token) => {
|
|
6051
6051
|
const headers = resetHeader(token);
|
|
6052
|
-
const res = await fetch("/
|
|
6052
|
+
const res = await fetch("/mtapi/thing/v1/metric/data/getDataList", {
|
|
6053
6053
|
method: "POST",
|
|
6054
6054
|
headers,
|
|
6055
6055
|
body: JSON.stringify(param)
|
|
@@ -6072,7 +6072,7 @@ const paramsToString = obj => {
|
|
|
6072
6072
|
return arr.join("&");
|
|
6073
6073
|
};
|
|
6074
6074
|
const GetDeviceDetailOnce = async (codes, params) => {
|
|
6075
|
-
const resPromise = await fetch("/
|
|
6075
|
+
const resPromise = await fetch("/mtapi/mtip/thing/v2/thingInst/findByCodeList?" + paramsToString(params), {
|
|
6076
6076
|
method: "POST",
|
|
6077
6077
|
headers: resetHeader(params.token),
|
|
6078
6078
|
body: JSON.stringify(codes)
|
|
@@ -6110,7 +6110,7 @@ const RefreshDeviceDetail = async (codes, token) => {
|
|
|
6110
6110
|
}
|
|
6111
6111
|
}
|
|
6112
6112
|
}
|
|
6113
|
-
const resPromise = await fetch("/
|
|
6113
|
+
const resPromise = await fetch("/mtapi/mtip/thing/v2/thingInst/reloadPropertiesValue", {
|
|
6114
6114
|
method: "POST",
|
|
6115
6115
|
headers: resetHeader(token),
|
|
6116
6116
|
body: JSON.stringify(pointCodes)
|
|
@@ -6230,7 +6230,7 @@ const getCorrelationInts = (data, code) => {
|
|
|
6230
6230
|
};
|
|
6231
6231
|
const findRelationEntitiesPage = async (data, code, params) => {
|
|
6232
6232
|
const getDeviceState = getCorrelationInts(data, code);
|
|
6233
|
-
const res = await fetch("/
|
|
6233
|
+
const res = await fetch("/mtapi/mtip/thing/v2/thingInst/findRelationEntitiesPage?" + paramsToString(params), {
|
|
6234
6234
|
headers: resetHeader(params.token),
|
|
6235
6235
|
method: "POST",
|
|
6236
6236
|
body: JSON.stringify(getDeviceState)
|
package/dist/utils/index.cjs
CHANGED
|
@@ -233,7 +233,7 @@ const getCommonHeaders = () => {
|
|
|
233
233
|
};
|
|
234
234
|
const defaultConfig = {
|
|
235
235
|
timeout: 1e3 * 10,
|
|
236
|
-
baseURL: "/
|
|
236
|
+
baseURL: "/mtapi/"
|
|
237
237
|
};
|
|
238
238
|
class ApiInstance {
|
|
239
239
|
instance;
|
|
@@ -304,7 +304,7 @@ class Login {
|
|
|
304
304
|
constructor() {
|
|
305
305
|
this.getQueryInfo();
|
|
306
306
|
this.config.axios = new ApiInstance({
|
|
307
|
-
baseURL: "/
|
|
307
|
+
baseURL: "/mtapi/common/v1/"
|
|
308
308
|
}).instance;
|
|
309
309
|
}
|
|
310
310
|
checkSystemInfo() {
|
package/dist/utils/index.js
CHANGED
|
@@ -205,7 +205,7 @@ const getCommonHeaders = () => {
|
|
|
205
205
|
};
|
|
206
206
|
const defaultConfig = {
|
|
207
207
|
timeout: 1e3 * 10,
|
|
208
|
-
baseURL: "/
|
|
208
|
+
baseURL: "/mtapi/"
|
|
209
209
|
};
|
|
210
210
|
class ApiInstance {
|
|
211
211
|
instance;
|
|
@@ -276,7 +276,7 @@ class Login {
|
|
|
276
276
|
constructor() {
|
|
277
277
|
this.getQueryInfo();
|
|
278
278
|
this.config.axios = new ApiInstance({
|
|
279
|
-
baseURL: "/
|
|
279
|
+
baseURL: "/mtapi/common/v1/"
|
|
280
280
|
}).instance;
|
|
281
281
|
}
|
|
282
282
|
checkSystemInfo() {
|