inl-ui 0.1.110 → 0.1.111-mtapi-4
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 +40 -35
- package/dist/components/index.js +40 -35
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/iconfont.js +1 -1
- package/dist/index.cjs +50 -45
- package/dist/index.d.ts +1 -1
- package/dist/index.js +50 -45
- 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,
|
|
@@ -8729,15 +8729,20 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
8729
8729
|
}
|
|
8730
8730
|
};
|
|
8731
8731
|
const addTab = ___default["default"].debounce(newRoute => {
|
|
8732
|
-
dataId.value = newRoute.params.id;
|
|
8732
|
+
dataId.value = newRoute.params.id || newRoute.query.id;
|
|
8733
8733
|
const {
|
|
8734
|
-
name
|
|
8734
|
+
name,
|
|
8735
|
+
newTab
|
|
8735
8736
|
} = route.query;
|
|
8737
|
+
if (newTab) {
|
|
8738
|
+
dataId.value = newTab;
|
|
8739
|
+
}
|
|
8740
|
+
dataId.value = props.name + dataId.value;
|
|
8736
8741
|
const tab = {
|
|
8737
8742
|
name,
|
|
8738
8743
|
url: route.fullPath,
|
|
8739
8744
|
key: props.name,
|
|
8740
|
-
uniqueKey:
|
|
8745
|
+
uniqueKey: dataId.value,
|
|
8741
8746
|
icon: props.icon,
|
|
8742
8747
|
isExtraTab: true,
|
|
8743
8748
|
params: ___default["default"].omit(route.query, "name")
|
|
@@ -8758,7 +8763,7 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
8758
8763
|
detailList.value.push({
|
|
8759
8764
|
...tab,
|
|
8760
8765
|
refreshKey: Date.now(),
|
|
8761
|
-
id:
|
|
8766
|
+
id: dataId.value
|
|
8762
8767
|
});
|
|
8763
8768
|
console.log("detailList.value", detailList.value);
|
|
8764
8769
|
setTimeout(() => {
|
|
@@ -8771,7 +8776,7 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
8771
8776
|
}
|
|
8772
8777
|
});
|
|
8773
8778
|
}
|
|
8774
|
-
const activeTabKey =
|
|
8779
|
+
const activeTabKey = tab.uniqueKey;
|
|
8775
8780
|
qiankunState.value = {
|
|
8776
8781
|
...(qiankunState.value ?? {}),
|
|
8777
8782
|
activeTabKey
|
|
@@ -9133,7 +9138,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9133
9138
|
}]];
|
|
9134
9139
|
const infos = vue.ref([]);
|
|
9135
9140
|
const videoMove = async direction => {
|
|
9136
|
-
await axios__default["default"].get("/
|
|
9141
|
+
await axios__default["default"].get("/mtapi/vms/v1/control/hik/control", {
|
|
9137
9142
|
params: {
|
|
9138
9143
|
cameraUuid: _prop.camera,
|
|
9139
9144
|
command: direction
|
|
@@ -9148,7 +9153,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9148
9153
|
const arr = infos.value.map(info => {
|
|
9149
9154
|
return {};
|
|
9150
9155
|
});
|
|
9151
|
-
const res = await axios__default["default"].get("/
|
|
9156
|
+
const res = await axios__default["default"].get("/mtapi/vms/v1/camera/getThingDevice", {
|
|
9152
9157
|
params: {
|
|
9153
9158
|
cameraUuid: uuid
|
|
9154
9159
|
},
|
|
@@ -9164,7 +9169,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9164
9169
|
};
|
|
9165
9170
|
const camera = vue.ref({});
|
|
9166
9171
|
const getVideoDetail = async val => {
|
|
9167
|
-
const res = await axios__default["default"].get(`/
|
|
9172
|
+
const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9168
9173
|
headers: {
|
|
9169
9174
|
token: sessionStorage.getItem("token") || ""
|
|
9170
9175
|
}
|
|
@@ -9195,7 +9200,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9195
9200
|
immediate: true
|
|
9196
9201
|
});
|
|
9197
9202
|
const changeStream = async code => {
|
|
9198
|
-
const res = await axios__default["default"].get(`/
|
|
9203
|
+
const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
9199
9204
|
headers: {
|
|
9200
9205
|
token: sessionStorage.getItem("token") || ""
|
|
9201
9206
|
},
|
|
@@ -9418,7 +9423,7 @@ var Tree = vue.defineComponent({
|
|
|
9418
9423
|
});
|
|
9419
9424
|
const getQueryGroup = async params => {
|
|
9420
9425
|
return new Promise(async resolve => {
|
|
9421
|
-
const res = await axios__default["default"].get("/
|
|
9426
|
+
const res = await axios__default["default"].get("/mtapi/vms/v1/cameraGroup/tree", {
|
|
9422
9427
|
headers: {
|
|
9423
9428
|
token: sessionStorage.getItem("token") || ""
|
|
9424
9429
|
},
|
|
@@ -9436,7 +9441,7 @@ var Tree = vue.defineComponent({
|
|
|
9436
9441
|
};
|
|
9437
9442
|
const getGroup = async () => {
|
|
9438
9443
|
return new Promise(async resolve => {
|
|
9439
|
-
const res = await axios__default["default"].get("/
|
|
9444
|
+
const res = await axios__default["default"].get("/mtapi/vms/v1/cameraGroupType/findAll", {
|
|
9440
9445
|
headers: {
|
|
9441
9446
|
token: sessionStorage.getItem("token") || ""
|
|
9442
9447
|
}
|
|
@@ -9712,7 +9717,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9712
9717
|
showInfo.value = _prop.showInfo;
|
|
9713
9718
|
});
|
|
9714
9719
|
const videoMove = async direction => {
|
|
9715
|
-
await axios__default["default"].get("/
|
|
9720
|
+
await axios__default["default"].get("/mtapi/vms/v1/control/hik/control", {
|
|
9716
9721
|
params: {
|
|
9717
9722
|
cameraUuid: _prop.camera,
|
|
9718
9723
|
command: direction
|
|
@@ -9737,7 +9742,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9737
9742
|
if (tcpcArr.length === 0) {
|
|
9738
9743
|
return;
|
|
9739
9744
|
}
|
|
9740
|
-
const res = await axios__default["default"].post("/
|
|
9745
|
+
const res = await axios__default["default"].post("/mtapi/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
|
|
9741
9746
|
headers: {
|
|
9742
9747
|
token: sessionStorage.getItem("token")
|
|
9743
9748
|
}
|
|
@@ -9758,7 +9763,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9758
9763
|
const arr = infos.value.map(info => {
|
|
9759
9764
|
return {};
|
|
9760
9765
|
});
|
|
9761
|
-
const res = await axios__default["default"].post("/
|
|
9766
|
+
const res = await axios__default["default"].post("/mtapi/vms/v1/cameraRelThing/getByParam", {
|
|
9762
9767
|
cameraUuid: uuid2
|
|
9763
9768
|
}, {
|
|
9764
9769
|
headers: {
|
|
@@ -9778,7 +9783,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9778
9783
|
};
|
|
9779
9784
|
const camera = vue.ref({});
|
|
9780
9785
|
const getVideoDetail = async val => {
|
|
9781
|
-
const res = await axios__default["default"].get(`/
|
|
9786
|
+
const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9782
9787
|
headers: {
|
|
9783
9788
|
token: sessionStorage.getItem("token") || ""
|
|
9784
9789
|
}
|
|
@@ -9895,7 +9900,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9895
9900
|
immediate: true
|
|
9896
9901
|
});
|
|
9897
9902
|
const changeStream = async code => {
|
|
9898
|
-
const res = await axios__default["default"].get(`/
|
|
9903
|
+
const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
9899
9904
|
headers: {
|
|
9900
9905
|
token: sessionStorage.getItem("token") || ""
|
|
9901
9906
|
},
|
|
@@ -10881,7 +10886,7 @@ const VideoPlayerV1 = vue.defineComponent({
|
|
|
10881
10886
|
videoInfo2.value = camera;
|
|
10882
10887
|
init();
|
|
10883
10888
|
} else if (camera && typeof camera === "string") {
|
|
10884
|
-
const res = await axios__default["default"].post(`/
|
|
10889
|
+
const res = await axios__default["default"].post(`/mtapi/sfvideo/v1/camera/getCameraByCameraId`, {
|
|
10885
10890
|
id: camera
|
|
10886
10891
|
}, {
|
|
10887
10892
|
headers: {
|
|
@@ -11681,7 +11686,7 @@ var index$3 = installComponent(PeopleSelect, "people-select");
|
|
|
11681
11686
|
|
|
11682
11687
|
const getParamList$1 = async data => {
|
|
11683
11688
|
const headers = getCommonHeaders();
|
|
11684
|
-
const res = await fetch("/
|
|
11689
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
11685
11690
|
method: "POST",
|
|
11686
11691
|
body: JSON.stringify(data),
|
|
11687
11692
|
headers
|
|
@@ -11690,7 +11695,7 @@ const getParamList$1 = async data => {
|
|
|
11690
11695
|
};
|
|
11691
11696
|
const getParamDefineList$1 = async groupId => {
|
|
11692
11697
|
const headers = getCommonHeaders();
|
|
11693
|
-
const res = await fetch(`/
|
|
11698
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
11694
11699
|
method: "GET",
|
|
11695
11700
|
headers
|
|
11696
11701
|
});
|
|
@@ -11698,7 +11703,7 @@ const getParamDefineList$1 = async groupId => {
|
|
|
11698
11703
|
};
|
|
11699
11704
|
const batchSaveParamsValue$1 = async form => {
|
|
11700
11705
|
const headers = getCommonHeaders();
|
|
11701
|
-
const res = await fetch("/
|
|
11706
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
11702
11707
|
method: "POST",
|
|
11703
11708
|
headers,
|
|
11704
11709
|
body: JSON.stringify(form)
|
|
@@ -12490,7 +12495,7 @@ const ParamItem = vue.defineComponent({
|
|
|
12490
12495
|
|
|
12491
12496
|
const getParamList = async data => {
|
|
12492
12497
|
const headers = getCommonHeaders();
|
|
12493
|
-
const res = await fetch("/
|
|
12498
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
12494
12499
|
method: "POST",
|
|
12495
12500
|
body: JSON.stringify(data),
|
|
12496
12501
|
headers
|
|
@@ -12499,7 +12504,7 @@ const getParamList = async data => {
|
|
|
12499
12504
|
};
|
|
12500
12505
|
const getParamDefineList = async groupId => {
|
|
12501
12506
|
const headers = getCommonHeaders();
|
|
12502
|
-
const res = await fetch(`/
|
|
12507
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
12503
12508
|
method: "GET",
|
|
12504
12509
|
headers
|
|
12505
12510
|
});
|
|
@@ -12507,7 +12512,7 @@ const getParamDefineList = async groupId => {
|
|
|
12507
12512
|
};
|
|
12508
12513
|
const batchSaveParamsValue = async form => {
|
|
12509
12514
|
const headers = getCommonHeaders();
|
|
12510
|
-
const res = await fetch("/
|
|
12515
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
12511
12516
|
method: "POST",
|
|
12512
12517
|
headers,
|
|
12513
12518
|
body: JSON.stringify(form)
|
|
@@ -13162,7 +13167,7 @@ const SszComment = vue.defineComponent({
|
|
|
13162
13167
|
// 评论api的前缀
|
|
13163
13168
|
baseUrl: {
|
|
13164
13169
|
type: String,
|
|
13165
|
-
default: "/
|
|
13170
|
+
default: "/mtapi/taskcoordinationcenter/v2/tri/"
|
|
13166
13171
|
},
|
|
13167
13172
|
// 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
|
|
13168
13173
|
commentProps: {
|
|
@@ -13274,7 +13279,7 @@ function formatDataString(str) {
|
|
|
13274
13279
|
function request(question, streamCallback, doneCallback) {
|
|
13275
13280
|
const controller = new AbortController();
|
|
13276
13281
|
const signal = controller.signal;
|
|
13277
|
-
fetch("/
|
|
13282
|
+
fetch("/mtapi/chat/v1/chat/chat", {
|
|
13278
13283
|
signal,
|
|
13279
13284
|
method: "POST",
|
|
13280
13285
|
headers: {
|
|
@@ -13391,7 +13396,7 @@ async function audioToText(file) {
|
|
|
13391
13396
|
const formData = new FormData();
|
|
13392
13397
|
formData.append("file", file);
|
|
13393
13398
|
formData.append("upload_id", "1");
|
|
13394
|
-
const [path] = await fetch("/
|
|
13399
|
+
const [path] = await fetch("/mtapi/chat/v1/upload", {
|
|
13395
13400
|
// headers,
|
|
13396
13401
|
method: "POST",
|
|
13397
13402
|
body: formData
|
|
@@ -13402,7 +13407,7 @@ async function audioToText(file) {
|
|
|
13402
13407
|
}
|
|
13403
13408
|
const {
|
|
13404
13409
|
result
|
|
13405
|
-
} = await fetch(`/
|
|
13410
|
+
} = await fetch(`/mtapi/chat/v1/translate?path=${path}&session_hash=1`, {
|
|
13406
13411
|
headers,
|
|
13407
13412
|
method: "POST"
|
|
13408
13413
|
}).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,
|
|
@@ -8701,15 +8701,20 @@ const getDetailContainer = () => defineComponent({
|
|
|
8701
8701
|
}
|
|
8702
8702
|
};
|
|
8703
8703
|
const addTab = _.debounce(newRoute => {
|
|
8704
|
-
dataId.value = newRoute.params.id;
|
|
8704
|
+
dataId.value = newRoute.params.id || newRoute.query.id;
|
|
8705
8705
|
const {
|
|
8706
|
-
name
|
|
8706
|
+
name,
|
|
8707
|
+
newTab
|
|
8707
8708
|
} = route.query;
|
|
8709
|
+
if (newTab) {
|
|
8710
|
+
dataId.value = newTab;
|
|
8711
|
+
}
|
|
8712
|
+
dataId.value = props.name + dataId.value;
|
|
8708
8713
|
const tab = {
|
|
8709
8714
|
name,
|
|
8710
8715
|
url: route.fullPath,
|
|
8711
8716
|
key: props.name,
|
|
8712
|
-
uniqueKey:
|
|
8717
|
+
uniqueKey: dataId.value,
|
|
8713
8718
|
icon: props.icon,
|
|
8714
8719
|
isExtraTab: true,
|
|
8715
8720
|
params: _.omit(route.query, "name")
|
|
@@ -8730,7 +8735,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
8730
8735
|
detailList.value.push({
|
|
8731
8736
|
...tab,
|
|
8732
8737
|
refreshKey: Date.now(),
|
|
8733
|
-
id:
|
|
8738
|
+
id: dataId.value
|
|
8734
8739
|
});
|
|
8735
8740
|
console.log("detailList.value", detailList.value);
|
|
8736
8741
|
setTimeout(() => {
|
|
@@ -8743,7 +8748,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
8743
8748
|
}
|
|
8744
8749
|
});
|
|
8745
8750
|
}
|
|
8746
|
-
const activeTabKey =
|
|
8751
|
+
const activeTabKey = tab.uniqueKey;
|
|
8747
8752
|
qiankunState.value = {
|
|
8748
8753
|
...(qiankunState.value ?? {}),
|
|
8749
8754
|
activeTabKey
|
|
@@ -9105,7 +9110,7 @@ const VideoBox = defineComponent({
|
|
|
9105
9110
|
}]];
|
|
9106
9111
|
const infos = ref([]);
|
|
9107
9112
|
const videoMove = async direction => {
|
|
9108
|
-
await axios$2.get("/
|
|
9113
|
+
await axios$2.get("/mtapi/vms/v1/control/hik/control", {
|
|
9109
9114
|
params: {
|
|
9110
9115
|
cameraUuid: _prop.camera,
|
|
9111
9116
|
command: direction
|
|
@@ -9120,7 +9125,7 @@ const VideoBox = defineComponent({
|
|
|
9120
9125
|
const arr = infos.value.map(info => {
|
|
9121
9126
|
return {};
|
|
9122
9127
|
});
|
|
9123
|
-
const res = await axios$2.get("/
|
|
9128
|
+
const res = await axios$2.get("/mtapi/vms/v1/camera/getThingDevice", {
|
|
9124
9129
|
params: {
|
|
9125
9130
|
cameraUuid: uuid
|
|
9126
9131
|
},
|
|
@@ -9136,7 +9141,7 @@ const VideoBox = defineComponent({
|
|
|
9136
9141
|
};
|
|
9137
9142
|
const camera = ref({});
|
|
9138
9143
|
const getVideoDetail = async val => {
|
|
9139
|
-
const res = await axios$2.get(`/
|
|
9144
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9140
9145
|
headers: {
|
|
9141
9146
|
token: sessionStorage.getItem("token") || ""
|
|
9142
9147
|
}
|
|
@@ -9167,7 +9172,7 @@ const VideoBox = defineComponent({
|
|
|
9167
9172
|
immediate: true
|
|
9168
9173
|
});
|
|
9169
9174
|
const changeStream = async code => {
|
|
9170
|
-
const res = await axios$2.get(`/
|
|
9175
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
9171
9176
|
headers: {
|
|
9172
9177
|
token: sessionStorage.getItem("token") || ""
|
|
9173
9178
|
},
|
|
@@ -9390,7 +9395,7 @@ var Tree = defineComponent({
|
|
|
9390
9395
|
});
|
|
9391
9396
|
const getQueryGroup = async params => {
|
|
9392
9397
|
return new Promise(async resolve => {
|
|
9393
|
-
const res = await axios$2.get("/
|
|
9398
|
+
const res = await axios$2.get("/mtapi/vms/v1/cameraGroup/tree", {
|
|
9394
9399
|
headers: {
|
|
9395
9400
|
token: sessionStorage.getItem("token") || ""
|
|
9396
9401
|
},
|
|
@@ -9408,7 +9413,7 @@ var Tree = defineComponent({
|
|
|
9408
9413
|
};
|
|
9409
9414
|
const getGroup = async () => {
|
|
9410
9415
|
return new Promise(async resolve => {
|
|
9411
|
-
const res = await axios$2.get("/
|
|
9416
|
+
const res = await axios$2.get("/mtapi/vms/v1/cameraGroupType/findAll", {
|
|
9412
9417
|
headers: {
|
|
9413
9418
|
token: sessionStorage.getItem("token") || ""
|
|
9414
9419
|
}
|
|
@@ -9684,7 +9689,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9684
9689
|
showInfo.value = _prop.showInfo;
|
|
9685
9690
|
});
|
|
9686
9691
|
const videoMove = async direction => {
|
|
9687
|
-
await axios$2.get("/
|
|
9692
|
+
await axios$2.get("/mtapi/vms/v1/control/hik/control", {
|
|
9688
9693
|
params: {
|
|
9689
9694
|
cameraUuid: _prop.camera,
|
|
9690
9695
|
command: direction
|
|
@@ -9709,7 +9714,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9709
9714
|
if (tcpcArr.length === 0) {
|
|
9710
9715
|
return;
|
|
9711
9716
|
}
|
|
9712
|
-
const res = await axios$2.post("/
|
|
9717
|
+
const res = await axios$2.post("/mtapi/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
|
|
9713
9718
|
headers: {
|
|
9714
9719
|
token: sessionStorage.getItem("token")
|
|
9715
9720
|
}
|
|
@@ -9730,7 +9735,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9730
9735
|
const arr = infos.value.map(info => {
|
|
9731
9736
|
return {};
|
|
9732
9737
|
});
|
|
9733
|
-
const res = await axios$2.post("/
|
|
9738
|
+
const res = await axios$2.post("/mtapi/vms/v1/cameraRelThing/getByParam", {
|
|
9734
9739
|
cameraUuid: uuid2
|
|
9735
9740
|
}, {
|
|
9736
9741
|
headers: {
|
|
@@ -9750,7 +9755,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9750
9755
|
};
|
|
9751
9756
|
const camera = ref({});
|
|
9752
9757
|
const getVideoDetail = async val => {
|
|
9753
|
-
const res = await axios$2.get(`/
|
|
9758
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9754
9759
|
headers: {
|
|
9755
9760
|
token: sessionStorage.getItem("token") || ""
|
|
9756
9761
|
}
|
|
@@ -9867,7 +9872,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9867
9872
|
immediate: true
|
|
9868
9873
|
});
|
|
9869
9874
|
const changeStream = async code => {
|
|
9870
|
-
const res = await axios$2.get(`/
|
|
9875
|
+
const res = await axios$2.get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
9871
9876
|
headers: {
|
|
9872
9877
|
token: sessionStorage.getItem("token") || ""
|
|
9873
9878
|
},
|
|
@@ -10853,7 +10858,7 @@ const VideoPlayerV1 = defineComponent({
|
|
|
10853
10858
|
videoInfo2.value = camera;
|
|
10854
10859
|
init();
|
|
10855
10860
|
} else if (camera && typeof camera === "string") {
|
|
10856
|
-
const res = await axios$2.post(`/
|
|
10861
|
+
const res = await axios$2.post(`/mtapi/sfvideo/v1/camera/getCameraByCameraId`, {
|
|
10857
10862
|
id: camera
|
|
10858
10863
|
}, {
|
|
10859
10864
|
headers: {
|
|
@@ -11653,7 +11658,7 @@ var index$3 = installComponent(PeopleSelect, "people-select");
|
|
|
11653
11658
|
|
|
11654
11659
|
const getParamList$1 = async data => {
|
|
11655
11660
|
const headers = getCommonHeaders();
|
|
11656
|
-
const res = await fetch("/
|
|
11661
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
11657
11662
|
method: "POST",
|
|
11658
11663
|
body: JSON.stringify(data),
|
|
11659
11664
|
headers
|
|
@@ -11662,7 +11667,7 @@ const getParamList$1 = async data => {
|
|
|
11662
11667
|
};
|
|
11663
11668
|
const getParamDefineList$1 = async groupId => {
|
|
11664
11669
|
const headers = getCommonHeaders();
|
|
11665
|
-
const res = await fetch(`/
|
|
11670
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
11666
11671
|
method: "GET",
|
|
11667
11672
|
headers
|
|
11668
11673
|
});
|
|
@@ -11670,7 +11675,7 @@ const getParamDefineList$1 = async groupId => {
|
|
|
11670
11675
|
};
|
|
11671
11676
|
const batchSaveParamsValue$1 = async form => {
|
|
11672
11677
|
const headers = getCommonHeaders();
|
|
11673
|
-
const res = await fetch("/
|
|
11678
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
11674
11679
|
method: "POST",
|
|
11675
11680
|
headers,
|
|
11676
11681
|
body: JSON.stringify(form)
|
|
@@ -12462,7 +12467,7 @@ const ParamItem = defineComponent({
|
|
|
12462
12467
|
|
|
12463
12468
|
const getParamList = async data => {
|
|
12464
12469
|
const headers = getCommonHeaders();
|
|
12465
|
-
const res = await fetch("/
|
|
12470
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
12466
12471
|
method: "POST",
|
|
12467
12472
|
body: JSON.stringify(data),
|
|
12468
12473
|
headers
|
|
@@ -12471,7 +12476,7 @@ const getParamList = async data => {
|
|
|
12471
12476
|
};
|
|
12472
12477
|
const getParamDefineList = async groupId => {
|
|
12473
12478
|
const headers = getCommonHeaders();
|
|
12474
|
-
const res = await fetch(`/
|
|
12479
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
12475
12480
|
method: "GET",
|
|
12476
12481
|
headers
|
|
12477
12482
|
});
|
|
@@ -12479,7 +12484,7 @@ const getParamDefineList = async groupId => {
|
|
|
12479
12484
|
};
|
|
12480
12485
|
const batchSaveParamsValue = async form => {
|
|
12481
12486
|
const headers = getCommonHeaders();
|
|
12482
|
-
const res = await fetch("/
|
|
12487
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
12483
12488
|
method: "POST",
|
|
12484
12489
|
headers,
|
|
12485
12490
|
body: JSON.stringify(form)
|
|
@@ -13134,7 +13139,7 @@ const SszComment = defineComponent({
|
|
|
13134
13139
|
// 评论api的前缀
|
|
13135
13140
|
baseUrl: {
|
|
13136
13141
|
type: String,
|
|
13137
|
-
default: "/
|
|
13142
|
+
default: "/mtapi/taskcoordinationcenter/v2/tri/"
|
|
13138
13143
|
},
|
|
13139
13144
|
// 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
|
|
13140
13145
|
commentProps: {
|
|
@@ -13246,7 +13251,7 @@ function formatDataString(str) {
|
|
|
13246
13251
|
function request(question, streamCallback, doneCallback) {
|
|
13247
13252
|
const controller = new AbortController();
|
|
13248
13253
|
const signal = controller.signal;
|
|
13249
|
-
fetch("/
|
|
13254
|
+
fetch("/mtapi/chat/v1/chat/chat", {
|
|
13250
13255
|
signal,
|
|
13251
13256
|
method: "POST",
|
|
13252
13257
|
headers: {
|
|
@@ -13363,7 +13368,7 @@ async function audioToText(file) {
|
|
|
13363
13368
|
const formData = new FormData();
|
|
13364
13369
|
formData.append("file", file);
|
|
13365
13370
|
formData.append("upload_id", "1");
|
|
13366
|
-
const [path] = await fetch("/
|
|
13371
|
+
const [path] = await fetch("/mtapi/chat/v1/upload", {
|
|
13367
13372
|
// headers,
|
|
13368
13373
|
method: "POST",
|
|
13369
13374
|
body: formData
|
|
@@ -13374,7 +13379,7 @@ async function audioToText(file) {
|
|
|
13374
13379
|
}
|
|
13375
13380
|
const {
|
|
13376
13381
|
result
|
|
13377
|
-
} = await fetch(`/
|
|
13382
|
+
} = await fetch(`/mtapi/chat/v1/translate?path=${path}&session_hash=1`, {
|
|
13378
13383
|
headers,
|
|
13379
13384
|
method: "POST"
|
|
13380
13385
|
}).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") || ""
|