inl-ui 0.1.120 → 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/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
|
@@ -106,7 +106,7 @@ const getCommonHeaders = () => {
|
|
|
106
106
|
};
|
|
107
107
|
const defaultConfig = {
|
|
108
108
|
timeout: 1e3 * 10,
|
|
109
|
-
baseURL: "/
|
|
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(`/
|
|
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: "/
|
|
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: "/
|
|
7806
|
+
baseURL: "/mtapi/common/v1/"
|
|
7807
7807
|
}).instance;
|
|
7808
7808
|
const systemTitle = vue.inject("systemTitle");
|
|
7809
7809
|
const platformLogo = vue.inject("platformLogo");
|
|
@@ -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("/
|
|
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("/
|
|
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("/
|
|
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("/
|
|
8489
|
+
await fetch("/mtapi/common/v1/log/insert", {
|
|
8490
8490
|
method: "POST",
|
|
8491
8491
|
headers: {
|
|
8492
8492
|
...headers,
|
|
@@ -8745,7 +8745,8 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
8745
8745
|
uniqueKey: dataId.value,
|
|
8746
8746
|
icon: props.icon,
|
|
8747
8747
|
isExtraTab: true,
|
|
8748
|
-
params: ___default["default"].omit(route.query, "name")
|
|
8748
|
+
params: ___default["default"].omit(route.query, "name"),
|
|
8749
|
+
ogiginId: newRoute.params.id || newRoute.query.id
|
|
8749
8750
|
};
|
|
8750
8751
|
const detail = detailList.value.find(item => item.uniqueKey === tab.uniqueKey);
|
|
8751
8752
|
if (detail) {
|
|
@@ -8839,7 +8840,7 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
8839
8840
|
}
|
|
8840
8841
|
}, [vue.createVNode(props.cpn, {
|
|
8841
8842
|
"key": item.id,
|
|
8842
|
-
"id": item.
|
|
8843
|
+
"id": item.ogiginId,
|
|
8843
8844
|
"isActive": isActive.value && isDetailActive,
|
|
8844
8845
|
"onClose": () => handleClose(item),
|
|
8845
8846
|
"onRefresh": () => handleRefresh(item)
|
|
@@ -9138,7 +9139,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9138
9139
|
}]];
|
|
9139
9140
|
const infos = vue.ref([]);
|
|
9140
9141
|
const videoMove = async direction => {
|
|
9141
|
-
await axios__default["default"].get("/
|
|
9142
|
+
await axios__default["default"].get("/mtapi/vms/v1/control/hik/control", {
|
|
9142
9143
|
params: {
|
|
9143
9144
|
cameraUuid: _prop.camera,
|
|
9144
9145
|
command: direction
|
|
@@ -9153,7 +9154,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9153
9154
|
const arr = infos.value.map(info => {
|
|
9154
9155
|
return {};
|
|
9155
9156
|
});
|
|
9156
|
-
const res = await axios__default["default"].get("/
|
|
9157
|
+
const res = await axios__default["default"].get("/mtapi/vms/v1/camera/getThingDevice", {
|
|
9157
9158
|
params: {
|
|
9158
9159
|
cameraUuid: uuid
|
|
9159
9160
|
},
|
|
@@ -9169,7 +9170,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9169
9170
|
};
|
|
9170
9171
|
const camera = vue.ref({});
|
|
9171
9172
|
const getVideoDetail = async val => {
|
|
9172
|
-
const res = await axios__default["default"].get(`/
|
|
9173
|
+
const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9173
9174
|
headers: {
|
|
9174
9175
|
token: sessionStorage.getItem("token") || ""
|
|
9175
9176
|
}
|
|
@@ -9200,7 +9201,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9200
9201
|
immediate: true
|
|
9201
9202
|
});
|
|
9202
9203
|
const changeStream = async code => {
|
|
9203
|
-
const res = await axios__default["default"].get(`/
|
|
9204
|
+
const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
9204
9205
|
headers: {
|
|
9205
9206
|
token: sessionStorage.getItem("token") || ""
|
|
9206
9207
|
},
|
|
@@ -9423,7 +9424,7 @@ var Tree = vue.defineComponent({
|
|
|
9423
9424
|
});
|
|
9424
9425
|
const getQueryGroup = async params => {
|
|
9425
9426
|
return new Promise(async resolve => {
|
|
9426
|
-
const res = await axios__default["default"].get("/
|
|
9427
|
+
const res = await axios__default["default"].get("/mtapi/vms/v1/cameraGroup/tree", {
|
|
9427
9428
|
headers: {
|
|
9428
9429
|
token: sessionStorage.getItem("token") || ""
|
|
9429
9430
|
},
|
|
@@ -9441,7 +9442,7 @@ var Tree = vue.defineComponent({
|
|
|
9441
9442
|
};
|
|
9442
9443
|
const getGroup = async () => {
|
|
9443
9444
|
return new Promise(async resolve => {
|
|
9444
|
-
const res = await axios__default["default"].get("/
|
|
9445
|
+
const res = await axios__default["default"].get("/mtapi/vms/v1/cameraGroupType/findAll", {
|
|
9445
9446
|
headers: {
|
|
9446
9447
|
token: sessionStorage.getItem("token") || ""
|
|
9447
9448
|
}
|
|
@@ -9717,7 +9718,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9717
9718
|
showInfo.value = _prop.showInfo;
|
|
9718
9719
|
});
|
|
9719
9720
|
const videoMove = async direction => {
|
|
9720
|
-
await axios__default["default"].get("/
|
|
9721
|
+
await axios__default["default"].get("/mtapi/vms/v1/control/hik/control", {
|
|
9721
9722
|
params: {
|
|
9722
9723
|
cameraUuid: _prop.camera,
|
|
9723
9724
|
command: direction
|
|
@@ -9742,7 +9743,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9742
9743
|
if (tcpcArr.length === 0) {
|
|
9743
9744
|
return;
|
|
9744
9745
|
}
|
|
9745
|
-
const res = await axios__default["default"].post("/
|
|
9746
|
+
const res = await axios__default["default"].post("/mtapi/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
|
|
9746
9747
|
headers: {
|
|
9747
9748
|
token: sessionStorage.getItem("token")
|
|
9748
9749
|
}
|
|
@@ -9763,7 +9764,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9763
9764
|
const arr = infos.value.map(info => {
|
|
9764
9765
|
return {};
|
|
9765
9766
|
});
|
|
9766
|
-
const res = await axios__default["default"].post("/
|
|
9767
|
+
const res = await axios__default["default"].post("/mtapi/vms/v1/cameraRelThing/getByParam", {
|
|
9767
9768
|
cameraUuid: uuid2
|
|
9768
9769
|
}, {
|
|
9769
9770
|
headers: {
|
|
@@ -9783,7 +9784,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9783
9784
|
};
|
|
9784
9785
|
const camera = vue.ref({});
|
|
9785
9786
|
const getVideoDetail = async val => {
|
|
9786
|
-
const res = await axios__default["default"].get(`/
|
|
9787
|
+
const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9787
9788
|
headers: {
|
|
9788
9789
|
token: sessionStorage.getItem("token") || ""
|
|
9789
9790
|
}
|
|
@@ -9900,7 +9901,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9900
9901
|
immediate: true
|
|
9901
9902
|
});
|
|
9902
9903
|
const changeStream = async code => {
|
|
9903
|
-
const res = await axios__default["default"].get(`/
|
|
9904
|
+
const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
9904
9905
|
headers: {
|
|
9905
9906
|
token: sessionStorage.getItem("token") || ""
|
|
9906
9907
|
},
|
|
@@ -10886,7 +10887,7 @@ const VideoPlayerV1 = vue.defineComponent({
|
|
|
10886
10887
|
videoInfo2.value = camera;
|
|
10887
10888
|
init();
|
|
10888
10889
|
} else if (camera && typeof camera === "string") {
|
|
10889
|
-
const res = await axios__default["default"].post(`/
|
|
10890
|
+
const res = await axios__default["default"].post(`/mtapi/sfvideo/v1/camera/getCameraByCameraId`, {
|
|
10890
10891
|
id: camera
|
|
10891
10892
|
}, {
|
|
10892
10893
|
headers: {
|
|
@@ -11686,7 +11687,7 @@ var index$3 = installComponent(PeopleSelect, "people-select");
|
|
|
11686
11687
|
|
|
11687
11688
|
const getParamList$1 = async data => {
|
|
11688
11689
|
const headers = getCommonHeaders();
|
|
11689
|
-
const res = await fetch("/
|
|
11690
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
11690
11691
|
method: "POST",
|
|
11691
11692
|
body: JSON.stringify(data),
|
|
11692
11693
|
headers
|
|
@@ -11695,7 +11696,7 @@ const getParamList$1 = async data => {
|
|
|
11695
11696
|
};
|
|
11696
11697
|
const getParamDefineList$1 = async groupId => {
|
|
11697
11698
|
const headers = getCommonHeaders();
|
|
11698
|
-
const res = await fetch(`/
|
|
11699
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
11699
11700
|
method: "GET",
|
|
11700
11701
|
headers
|
|
11701
11702
|
});
|
|
@@ -11703,7 +11704,7 @@ const getParamDefineList$1 = async groupId => {
|
|
|
11703
11704
|
};
|
|
11704
11705
|
const batchSaveParamsValue$1 = async form => {
|
|
11705
11706
|
const headers = getCommonHeaders();
|
|
11706
|
-
const res = await fetch("/
|
|
11707
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
11707
11708
|
method: "POST",
|
|
11708
11709
|
headers,
|
|
11709
11710
|
body: JSON.stringify(form)
|
|
@@ -12495,7 +12496,7 @@ const ParamItem = vue.defineComponent({
|
|
|
12495
12496
|
|
|
12496
12497
|
const getParamList = async data => {
|
|
12497
12498
|
const headers = getCommonHeaders();
|
|
12498
|
-
const res = await fetch("/
|
|
12499
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
12499
12500
|
method: "POST",
|
|
12500
12501
|
body: JSON.stringify(data),
|
|
12501
12502
|
headers
|
|
@@ -12504,7 +12505,7 @@ const getParamList = async data => {
|
|
|
12504
12505
|
};
|
|
12505
12506
|
const getParamDefineList = async groupId => {
|
|
12506
12507
|
const headers = getCommonHeaders();
|
|
12507
|
-
const res = await fetch(`/
|
|
12508
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
12508
12509
|
method: "GET",
|
|
12509
12510
|
headers
|
|
12510
12511
|
});
|
|
@@ -12512,7 +12513,7 @@ const getParamDefineList = async groupId => {
|
|
|
12512
12513
|
};
|
|
12513
12514
|
const batchSaveParamsValue = async form => {
|
|
12514
12515
|
const headers = getCommonHeaders();
|
|
12515
|
-
const res = await fetch("/
|
|
12516
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
12516
12517
|
method: "POST",
|
|
12517
12518
|
headers,
|
|
12518
12519
|
body: JSON.stringify(form)
|
|
@@ -13167,7 +13168,7 @@ const SszComment = vue.defineComponent({
|
|
|
13167
13168
|
// 评论api的前缀
|
|
13168
13169
|
baseUrl: {
|
|
13169
13170
|
type: String,
|
|
13170
|
-
default: "/
|
|
13171
|
+
default: "/mtapi/taskcoordinationcenter/v2/tri/"
|
|
13171
13172
|
},
|
|
13172
13173
|
// 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
|
|
13173
13174
|
commentProps: {
|
|
@@ -13279,7 +13280,7 @@ function formatDataString(str) {
|
|
|
13279
13280
|
function request(question, streamCallback, doneCallback) {
|
|
13280
13281
|
const controller = new AbortController();
|
|
13281
13282
|
const signal = controller.signal;
|
|
13282
|
-
fetch("/
|
|
13283
|
+
fetch("/mtapi/chat/v1/chat/chat", {
|
|
13283
13284
|
signal,
|
|
13284
13285
|
method: "POST",
|
|
13285
13286
|
headers: {
|
|
@@ -13396,7 +13397,7 @@ async function audioToText(file) {
|
|
|
13396
13397
|
const formData = new FormData();
|
|
13397
13398
|
formData.append("file", file);
|
|
13398
13399
|
formData.append("upload_id", "1");
|
|
13399
|
-
const [path] = await fetch("/
|
|
13400
|
+
const [path] = await fetch("/mtapi/chat/v1/upload", {
|
|
13400
13401
|
// headers,
|
|
13401
13402
|
method: "POST",
|
|
13402
13403
|
body: formData
|
|
@@ -13407,7 +13408,7 @@ async function audioToText(file) {
|
|
|
13407
13408
|
}
|
|
13408
13409
|
const {
|
|
13409
13410
|
result
|
|
13410
|
-
} = await fetch(`/
|
|
13411
|
+
} = await fetch(`/mtapi/chat/v1/translate?path=${path}&session_hash=1`, {
|
|
13411
13412
|
headers,
|
|
13412
13413
|
method: "POST"
|
|
13413
13414
|
}).then(res => res.json());
|
package/dist/components/index.js
CHANGED
|
@@ -78,7 +78,7 @@ const getCommonHeaders = () => {
|
|
|
78
78
|
};
|
|
79
79
|
const defaultConfig = {
|
|
80
80
|
timeout: 1e3 * 10,
|
|
81
|
-
baseURL: "/
|
|
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(`/
|
|
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: "/
|
|
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: "/
|
|
7778
|
+
baseURL: "/mtapi/common/v1/"
|
|
7779
7779
|
}).instance;
|
|
7780
7780
|
const systemTitle = inject("systemTitle");
|
|
7781
7781
|
const platformLogo = inject("platformLogo");
|
|
@@ -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("/
|
|
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("/
|
|
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("/
|
|
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("/
|
|
8461
|
+
await fetch("/mtapi/common/v1/log/insert", {
|
|
8462
8462
|
method: "POST",
|
|
8463
8463
|
headers: {
|
|
8464
8464
|
...headers,
|
|
@@ -8717,7 +8717,8 @@ const getDetailContainer = () => defineComponent({
|
|
|
8717
8717
|
uniqueKey: dataId.value,
|
|
8718
8718
|
icon: props.icon,
|
|
8719
8719
|
isExtraTab: true,
|
|
8720
|
-
params: _.omit(route.query, "name")
|
|
8720
|
+
params: _.omit(route.query, "name"),
|
|
8721
|
+
ogiginId: newRoute.params.id || newRoute.query.id
|
|
8721
8722
|
};
|
|
8722
8723
|
const detail = detailList.value.find(item => item.uniqueKey === tab.uniqueKey);
|
|
8723
8724
|
if (detail) {
|
|
@@ -8811,7 +8812,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
8811
8812
|
}
|
|
8812
8813
|
}, [createVNode(props.cpn, {
|
|
8813
8814
|
"key": item.id,
|
|
8814
|
-
"id": item.
|
|
8815
|
+
"id": item.ogiginId,
|
|
8815
8816
|
"isActive": isActive.value && isDetailActive,
|
|
8816
8817
|
"onClose": () => handleClose(item),
|
|
8817
8818
|
"onRefresh": () => handleRefresh(item)
|
|
@@ -9110,7 +9111,7 @@ const VideoBox = defineComponent({
|
|
|
9110
9111
|
}]];
|
|
9111
9112
|
const infos = ref([]);
|
|
9112
9113
|
const videoMove = async direction => {
|
|
9113
|
-
await axios$2.get("/
|
|
9114
|
+
await axios$2.get("/mtapi/vms/v1/control/hik/control", {
|
|
9114
9115
|
params: {
|
|
9115
9116
|
cameraUuid: _prop.camera,
|
|
9116
9117
|
command: direction
|
|
@@ -9125,7 +9126,7 @@ const VideoBox = defineComponent({
|
|
|
9125
9126
|
const arr = infos.value.map(info => {
|
|
9126
9127
|
return {};
|
|
9127
9128
|
});
|
|
9128
|
-
const res = await axios$2.get("/
|
|
9129
|
+
const res = await axios$2.get("/mtapi/vms/v1/camera/getThingDevice", {
|
|
9129
9130
|
params: {
|
|
9130
9131
|
cameraUuid: uuid
|
|
9131
9132
|
},
|
|
@@ -9141,7 +9142,7 @@ const VideoBox = defineComponent({
|
|
|
9141
9142
|
};
|
|
9142
9143
|
const camera = ref({});
|
|
9143
9144
|
const getVideoDetail = async val => {
|
|
9144
|
-
const res = await axios$2.get(`/
|
|
9145
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9145
9146
|
headers: {
|
|
9146
9147
|
token: sessionStorage.getItem("token") || ""
|
|
9147
9148
|
}
|
|
@@ -9172,7 +9173,7 @@ const VideoBox = defineComponent({
|
|
|
9172
9173
|
immediate: true
|
|
9173
9174
|
});
|
|
9174
9175
|
const changeStream = async code => {
|
|
9175
|
-
const res = await axios$2.get(`/
|
|
9176
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
9176
9177
|
headers: {
|
|
9177
9178
|
token: sessionStorage.getItem("token") || ""
|
|
9178
9179
|
},
|
|
@@ -9395,7 +9396,7 @@ var Tree = defineComponent({
|
|
|
9395
9396
|
});
|
|
9396
9397
|
const getQueryGroup = async params => {
|
|
9397
9398
|
return new Promise(async resolve => {
|
|
9398
|
-
const res = await axios$2.get("/
|
|
9399
|
+
const res = await axios$2.get("/mtapi/vms/v1/cameraGroup/tree", {
|
|
9399
9400
|
headers: {
|
|
9400
9401
|
token: sessionStorage.getItem("token") || ""
|
|
9401
9402
|
},
|
|
@@ -9413,7 +9414,7 @@ var Tree = defineComponent({
|
|
|
9413
9414
|
};
|
|
9414
9415
|
const getGroup = async () => {
|
|
9415
9416
|
return new Promise(async resolve => {
|
|
9416
|
-
const res = await axios$2.get("/
|
|
9417
|
+
const res = await axios$2.get("/mtapi/vms/v1/cameraGroupType/findAll", {
|
|
9417
9418
|
headers: {
|
|
9418
9419
|
token: sessionStorage.getItem("token") || ""
|
|
9419
9420
|
}
|
|
@@ -9689,7 +9690,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9689
9690
|
showInfo.value = _prop.showInfo;
|
|
9690
9691
|
});
|
|
9691
9692
|
const videoMove = async direction => {
|
|
9692
|
-
await axios$2.get("/
|
|
9693
|
+
await axios$2.get("/mtapi/vms/v1/control/hik/control", {
|
|
9693
9694
|
params: {
|
|
9694
9695
|
cameraUuid: _prop.camera,
|
|
9695
9696
|
command: direction
|
|
@@ -9714,7 +9715,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9714
9715
|
if (tcpcArr.length === 0) {
|
|
9715
9716
|
return;
|
|
9716
9717
|
}
|
|
9717
|
-
const res = await axios$2.post("/
|
|
9718
|
+
const res = await axios$2.post("/mtapi/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
|
|
9718
9719
|
headers: {
|
|
9719
9720
|
token: sessionStorage.getItem("token")
|
|
9720
9721
|
}
|
|
@@ -9735,7 +9736,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9735
9736
|
const arr = infos.value.map(info => {
|
|
9736
9737
|
return {};
|
|
9737
9738
|
});
|
|
9738
|
-
const res = await axios$2.post("/
|
|
9739
|
+
const res = await axios$2.post("/mtapi/vms/v1/cameraRelThing/getByParam", {
|
|
9739
9740
|
cameraUuid: uuid2
|
|
9740
9741
|
}, {
|
|
9741
9742
|
headers: {
|
|
@@ -9755,7 +9756,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9755
9756
|
};
|
|
9756
9757
|
const camera = ref({});
|
|
9757
9758
|
const getVideoDetail = async val => {
|
|
9758
|
-
const res = await axios$2.get(`/
|
|
9759
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9759
9760
|
headers: {
|
|
9760
9761
|
token: sessionStorage.getItem("token") || ""
|
|
9761
9762
|
}
|
|
@@ -9872,7 +9873,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9872
9873
|
immediate: true
|
|
9873
9874
|
});
|
|
9874
9875
|
const changeStream = async code => {
|
|
9875
|
-
const res = await axios$2.get(`/
|
|
9876
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
9876
9877
|
headers: {
|
|
9877
9878
|
token: sessionStorage.getItem("token") || ""
|
|
9878
9879
|
},
|
|
@@ -10858,7 +10859,7 @@ const VideoPlayerV1 = defineComponent({
|
|
|
10858
10859
|
videoInfo2.value = camera;
|
|
10859
10860
|
init();
|
|
10860
10861
|
} else if (camera && typeof camera === "string") {
|
|
10861
|
-
const res = await axios$2.post(`/
|
|
10862
|
+
const res = await axios$2.post(`/mtapi/sfvideo/v1/camera/getCameraByCameraId`, {
|
|
10862
10863
|
id: camera
|
|
10863
10864
|
}, {
|
|
10864
10865
|
headers: {
|
|
@@ -11658,7 +11659,7 @@ var index$3 = installComponent(PeopleSelect, "people-select");
|
|
|
11658
11659
|
|
|
11659
11660
|
const getParamList$1 = async data => {
|
|
11660
11661
|
const headers = getCommonHeaders();
|
|
11661
|
-
const res = await fetch("/
|
|
11662
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
11662
11663
|
method: "POST",
|
|
11663
11664
|
body: JSON.stringify(data),
|
|
11664
11665
|
headers
|
|
@@ -11667,7 +11668,7 @@ const getParamList$1 = async data => {
|
|
|
11667
11668
|
};
|
|
11668
11669
|
const getParamDefineList$1 = async groupId => {
|
|
11669
11670
|
const headers = getCommonHeaders();
|
|
11670
|
-
const res = await fetch(`/
|
|
11671
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
11671
11672
|
method: "GET",
|
|
11672
11673
|
headers
|
|
11673
11674
|
});
|
|
@@ -11675,7 +11676,7 @@ const getParamDefineList$1 = async groupId => {
|
|
|
11675
11676
|
};
|
|
11676
11677
|
const batchSaveParamsValue$1 = async form => {
|
|
11677
11678
|
const headers = getCommonHeaders();
|
|
11678
|
-
const res = await fetch("/
|
|
11679
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
11679
11680
|
method: "POST",
|
|
11680
11681
|
headers,
|
|
11681
11682
|
body: JSON.stringify(form)
|
|
@@ -12467,7 +12468,7 @@ const ParamItem = defineComponent({
|
|
|
12467
12468
|
|
|
12468
12469
|
const getParamList = async data => {
|
|
12469
12470
|
const headers = getCommonHeaders();
|
|
12470
|
-
const res = await fetch("/
|
|
12471
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
12471
12472
|
method: "POST",
|
|
12472
12473
|
body: JSON.stringify(data),
|
|
12473
12474
|
headers
|
|
@@ -12476,7 +12477,7 @@ const getParamList = async data => {
|
|
|
12476
12477
|
};
|
|
12477
12478
|
const getParamDefineList = async groupId => {
|
|
12478
12479
|
const headers = getCommonHeaders();
|
|
12479
|
-
const res = await fetch(`/
|
|
12480
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
12480
12481
|
method: "GET",
|
|
12481
12482
|
headers
|
|
12482
12483
|
});
|
|
@@ -12484,7 +12485,7 @@ const getParamDefineList = async groupId => {
|
|
|
12484
12485
|
};
|
|
12485
12486
|
const batchSaveParamsValue = async form => {
|
|
12486
12487
|
const headers = getCommonHeaders();
|
|
12487
|
-
const res = await fetch("/
|
|
12488
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
12488
12489
|
method: "POST",
|
|
12489
12490
|
headers,
|
|
12490
12491
|
body: JSON.stringify(form)
|
|
@@ -13139,7 +13140,7 @@ const SszComment = defineComponent({
|
|
|
13139
13140
|
// 评论api的前缀
|
|
13140
13141
|
baseUrl: {
|
|
13141
13142
|
type: String,
|
|
13142
|
-
default: "/
|
|
13143
|
+
default: "/mtapi/taskcoordinationcenter/v2/tri/"
|
|
13143
13144
|
},
|
|
13144
13145
|
// 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
|
|
13145
13146
|
commentProps: {
|
|
@@ -13251,7 +13252,7 @@ function formatDataString(str) {
|
|
|
13251
13252
|
function request(question, streamCallback, doneCallback) {
|
|
13252
13253
|
const controller = new AbortController();
|
|
13253
13254
|
const signal = controller.signal;
|
|
13254
|
-
fetch("/
|
|
13255
|
+
fetch("/mtapi/chat/v1/chat/chat", {
|
|
13255
13256
|
signal,
|
|
13256
13257
|
method: "POST",
|
|
13257
13258
|
headers: {
|
|
@@ -13368,7 +13369,7 @@ async function audioToText(file) {
|
|
|
13368
13369
|
const formData = new FormData();
|
|
13369
13370
|
formData.append("file", file);
|
|
13370
13371
|
formData.append("upload_id", "1");
|
|
13371
|
-
const [path] = await fetch("/
|
|
13372
|
+
const [path] = await fetch("/mtapi/chat/v1/upload", {
|
|
13372
13373
|
// headers,
|
|
13373
13374
|
method: "POST",
|
|
13374
13375
|
body: formData
|
|
@@ -13379,7 +13380,7 @@ async function audioToText(file) {
|
|
|
13379
13380
|
}
|
|
13380
13381
|
const {
|
|
13381
13382
|
result
|
|
13382
|
-
} = await fetch(`/
|
|
13383
|
+
} = await fetch(`/mtapi/chat/v1/translate?path=${path}&session_hash=1`, {
|
|
13383
13384
|
headers,
|
|
13384
13385
|
method: "POST"
|
|
13385
13386
|
}).then(res => res.json());
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -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(`/
|
|
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(`/
|
|
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") || ""
|
package/dist/hooks/index.js
CHANGED
|
@@ -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(`/
|
|
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(`/
|
|
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") || ""
|