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/components/index.cjs +33 -32
- package/dist/components/index.js +33 -32
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +43 -42
- package/dist/index.d.ts +1 -1
- package/dist/index.js +43 -42
- package/dist/theme/style/themes/variable.less +1 -1
- 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.121-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,
|
|
@@ -9701,7 +9701,8 @@ const getDetailContainer = () => defineComponent({
|
|
|
9701
9701
|
uniqueKey: dataId.value,
|
|
9702
9702
|
icon: props.icon,
|
|
9703
9703
|
isExtraTab: true,
|
|
9704
|
-
params: _.omit(route.query, "name")
|
|
9704
|
+
params: _.omit(route.query, "name"),
|
|
9705
|
+
ogiginId: newRoute.params.id || newRoute.query.id
|
|
9705
9706
|
};
|
|
9706
9707
|
const detail = detailList.value.find(item => item.uniqueKey === tab.uniqueKey);
|
|
9707
9708
|
if (detail) {
|
|
@@ -9795,7 +9796,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
9795
9796
|
}
|
|
9796
9797
|
}, [createVNode(props.cpn, {
|
|
9797
9798
|
"key": item.id,
|
|
9798
|
-
"id": item.
|
|
9799
|
+
"id": item.ogiginId,
|
|
9799
9800
|
"isActive": isActive.value && isDetailActive,
|
|
9800
9801
|
"onClose": () => handleClose(item),
|
|
9801
9802
|
"onRefresh": () => handleRefresh(item)
|
|
@@ -10094,7 +10095,7 @@ const VideoBox = defineComponent({
|
|
|
10094
10095
|
}]];
|
|
10095
10096
|
const infos = ref([]);
|
|
10096
10097
|
const videoMove = async direction => {
|
|
10097
|
-
await axios$2.get("/
|
|
10098
|
+
await axios$2.get("/mtapi/vms/v1/control/hik/control", {
|
|
10098
10099
|
params: {
|
|
10099
10100
|
cameraUuid: _prop.camera,
|
|
10100
10101
|
command: direction
|
|
@@ -10109,7 +10110,7 @@ const VideoBox = defineComponent({
|
|
|
10109
10110
|
const arr = infos.value.map(info => {
|
|
10110
10111
|
return {};
|
|
10111
10112
|
});
|
|
10112
|
-
const res = await axios$2.get("/
|
|
10113
|
+
const res = await axios$2.get("/mtapi/vms/v1/camera/getThingDevice", {
|
|
10113
10114
|
params: {
|
|
10114
10115
|
cameraUuid: uuid
|
|
10115
10116
|
},
|
|
@@ -10125,7 +10126,7 @@ const VideoBox = defineComponent({
|
|
|
10125
10126
|
};
|
|
10126
10127
|
const camera = ref({});
|
|
10127
10128
|
const getVideoDetail = async val => {
|
|
10128
|
-
const res = await axios$2.get(`/
|
|
10129
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
10129
10130
|
headers: {
|
|
10130
10131
|
token: sessionStorage.getItem("token") || ""
|
|
10131
10132
|
}
|
|
@@ -10156,7 +10157,7 @@ const VideoBox = defineComponent({
|
|
|
10156
10157
|
immediate: true
|
|
10157
10158
|
});
|
|
10158
10159
|
const changeStream = async code => {
|
|
10159
|
-
const res = await axios$2.get(`/
|
|
10160
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
10160
10161
|
headers: {
|
|
10161
10162
|
token: sessionStorage.getItem("token") || ""
|
|
10162
10163
|
},
|
|
@@ -10379,7 +10380,7 @@ var Tree = defineComponent({
|
|
|
10379
10380
|
});
|
|
10380
10381
|
const getQueryGroup = async params => {
|
|
10381
10382
|
return new Promise(async resolve => {
|
|
10382
|
-
const res = await axios$2.get("/
|
|
10383
|
+
const res = await axios$2.get("/mtapi/vms/v1/cameraGroup/tree", {
|
|
10383
10384
|
headers: {
|
|
10384
10385
|
token: sessionStorage.getItem("token") || ""
|
|
10385
10386
|
},
|
|
@@ -10397,7 +10398,7 @@ var Tree = defineComponent({
|
|
|
10397
10398
|
};
|
|
10398
10399
|
const getGroup = async () => {
|
|
10399
10400
|
return new Promise(async resolve => {
|
|
10400
|
-
const res = await axios$2.get("/
|
|
10401
|
+
const res = await axios$2.get("/mtapi/vms/v1/cameraGroupType/findAll", {
|
|
10401
10402
|
headers: {
|
|
10402
10403
|
token: sessionStorage.getItem("token") || ""
|
|
10403
10404
|
}
|
|
@@ -10673,7 +10674,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
10673
10674
|
showInfo.value = _prop.showInfo;
|
|
10674
10675
|
});
|
|
10675
10676
|
const videoMove = async direction => {
|
|
10676
|
-
await axios$2.get("/
|
|
10677
|
+
await axios$2.get("/mtapi/vms/v1/control/hik/control", {
|
|
10677
10678
|
params: {
|
|
10678
10679
|
cameraUuid: _prop.camera,
|
|
10679
10680
|
command: direction
|
|
@@ -10698,7 +10699,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
10698
10699
|
if (tcpcArr.length === 0) {
|
|
10699
10700
|
return;
|
|
10700
10701
|
}
|
|
10701
|
-
const res = await axios$2.post("/
|
|
10702
|
+
const res = await axios$2.post("/mtapi/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
|
|
10702
10703
|
headers: {
|
|
10703
10704
|
token: sessionStorage.getItem("token")
|
|
10704
10705
|
}
|
|
@@ -10719,7 +10720,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
10719
10720
|
const arr = infos.value.map(info => {
|
|
10720
10721
|
return {};
|
|
10721
10722
|
});
|
|
10722
|
-
const res = await axios$2.post("/
|
|
10723
|
+
const res = await axios$2.post("/mtapi/vms/v1/cameraRelThing/getByParam", {
|
|
10723
10724
|
cameraUuid: uuid2
|
|
10724
10725
|
}, {
|
|
10725
10726
|
headers: {
|
|
@@ -10739,7 +10740,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
10739
10740
|
};
|
|
10740
10741
|
const camera = ref({});
|
|
10741
10742
|
const getVideoDetail = async val => {
|
|
10742
|
-
const res = await axios$2.get(`/
|
|
10743
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
10743
10744
|
headers: {
|
|
10744
10745
|
token: sessionStorage.getItem("token") || ""
|
|
10745
10746
|
}
|
|
@@ -10856,7 +10857,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
10856
10857
|
immediate: true
|
|
10857
10858
|
});
|
|
10858
10859
|
const changeStream = async code => {
|
|
10859
|
-
const res = await axios$2.get(`/
|
|
10860
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
10860
10861
|
headers: {
|
|
10861
10862
|
token: sessionStorage.getItem("token") || ""
|
|
10862
10863
|
},
|
|
@@ -11842,7 +11843,7 @@ const VideoPlayerV1 = defineComponent({
|
|
|
11842
11843
|
videoInfo2.value = camera;
|
|
11843
11844
|
init();
|
|
11844
11845
|
} else if (camera && typeof camera === "string") {
|
|
11845
|
-
const res = await axios$2.post(`/
|
|
11846
|
+
const res = await axios$2.post(`/mtapi/sfvideo/v1/camera/getCameraByCameraId`, {
|
|
11846
11847
|
id: camera
|
|
11847
11848
|
}, {
|
|
11848
11849
|
headers: {
|
|
@@ -12642,7 +12643,7 @@ var index$4 = installComponent(PeopleSelect, "people-select");
|
|
|
12642
12643
|
|
|
12643
12644
|
const getParamList$1 = async data => {
|
|
12644
12645
|
const headers = getCommonHeaders();
|
|
12645
|
-
const res = await fetch("/
|
|
12646
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
12646
12647
|
method: "POST",
|
|
12647
12648
|
body: JSON.stringify(data),
|
|
12648
12649
|
headers
|
|
@@ -12651,7 +12652,7 @@ const getParamList$1 = async data => {
|
|
|
12651
12652
|
};
|
|
12652
12653
|
const getParamDefineList$1 = async groupId => {
|
|
12653
12654
|
const headers = getCommonHeaders();
|
|
12654
|
-
const res = await fetch(`/
|
|
12655
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
12655
12656
|
method: "GET",
|
|
12656
12657
|
headers
|
|
12657
12658
|
});
|
|
@@ -12659,7 +12660,7 @@ const getParamDefineList$1 = async groupId => {
|
|
|
12659
12660
|
};
|
|
12660
12661
|
const batchSaveParamsValue$1 = async form => {
|
|
12661
12662
|
const headers = getCommonHeaders();
|
|
12662
|
-
const res = await fetch("/
|
|
12663
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
12663
12664
|
method: "POST",
|
|
12664
12665
|
headers,
|
|
12665
12666
|
body: JSON.stringify(form)
|
|
@@ -13451,7 +13452,7 @@ const ParamItem = defineComponent({
|
|
|
13451
13452
|
|
|
13452
13453
|
const getParamList = async data => {
|
|
13453
13454
|
const headers = getCommonHeaders();
|
|
13454
|
-
const res = await fetch("/
|
|
13455
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
13455
13456
|
method: "POST",
|
|
13456
13457
|
body: JSON.stringify(data),
|
|
13457
13458
|
headers
|
|
@@ -13460,7 +13461,7 @@ const getParamList = async data => {
|
|
|
13460
13461
|
};
|
|
13461
13462
|
const getParamDefineList = async groupId => {
|
|
13462
13463
|
const headers = getCommonHeaders();
|
|
13463
|
-
const res = await fetch(`/
|
|
13464
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
13464
13465
|
method: "GET",
|
|
13465
13466
|
headers
|
|
13466
13467
|
});
|
|
@@ -13468,7 +13469,7 @@ const getParamDefineList = async groupId => {
|
|
|
13468
13469
|
};
|
|
13469
13470
|
const batchSaveParamsValue = async form => {
|
|
13470
13471
|
const headers = getCommonHeaders();
|
|
13471
|
-
const res = await fetch("/
|
|
13472
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
13472
13473
|
method: "POST",
|
|
13473
13474
|
headers,
|
|
13474
13475
|
body: JSON.stringify(form)
|
|
@@ -14123,7 +14124,7 @@ const SszComment = defineComponent({
|
|
|
14123
14124
|
// 评论api的前缀
|
|
14124
14125
|
baseUrl: {
|
|
14125
14126
|
type: String,
|
|
14126
|
-
default: "/
|
|
14127
|
+
default: "/mtapi/taskcoordinationcenter/v2/tri/"
|
|
14127
14128
|
},
|
|
14128
14129
|
// 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
|
|
14129
14130
|
commentProps: {
|
|
@@ -14235,7 +14236,7 @@ function formatDataString(str) {
|
|
|
14235
14236
|
function request(question, streamCallback, doneCallback) {
|
|
14236
14237
|
const controller = new AbortController();
|
|
14237
14238
|
const signal = controller.signal;
|
|
14238
|
-
fetch("/
|
|
14239
|
+
fetch("/mtapi/chat/v1/chat/chat", {
|
|
14239
14240
|
signal,
|
|
14240
14241
|
method: "POST",
|
|
14241
14242
|
headers: {
|
|
@@ -14352,7 +14353,7 @@ async function audioToText(file) {
|
|
|
14352
14353
|
const formData = new FormData();
|
|
14353
14354
|
formData.append("file", file);
|
|
14354
14355
|
formData.append("upload_id", "1");
|
|
14355
|
-
const [path] = await fetch("/
|
|
14356
|
+
const [path] = await fetch("/mtapi/chat/v1/upload", {
|
|
14356
14357
|
// headers,
|
|
14357
14358
|
method: "POST",
|
|
14358
14359
|
body: formData
|
|
@@ -14363,7 +14364,7 @@ async function audioToText(file) {
|
|
|
14363
14364
|
}
|
|
14364
14365
|
const {
|
|
14365
14366
|
result
|
|
14366
|
-
} = await fetch(`/
|
|
14367
|
+
} = await fetch(`/mtapi/chat/v1/translate?path=${path}&session_hash=1`, {
|
|
14367
14368
|
headers,
|
|
14368
14369
|
method: "POST"
|
|
14369
14370
|
}).then(res => res.json());
|
|
@@ -135,7 +135,7 @@ html {
|
|
|
135
135
|
// Popover background color
|
|
136
136
|
@popover-background: @component-background;
|
|
137
137
|
@popover-customize-border-color: @border-color-split;
|
|
138
|
-
@font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
138
|
+
@font-family: Arial, "微软雅黑", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
139
139
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
140
140
|
'Noto Color Emoji';
|
|
141
141
|
@code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
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() {
|