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