inl-ui 0.1.111-mtapi.1 → 0.1.112
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 +30 -30
- package/dist/components/index.js +30 -30
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +40 -40
- package/dist/index.d.ts +1 -1
- package/dist/index.js +40 -40
- 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: "/api/"
|
|
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(`/api/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: "/api/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: "/api/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("/api/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("/api/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("/api/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("/api/common/v1/log/insert", {
|
|
8490
8490
|
method: "POST",
|
|
8491
8491
|
headers: {
|
|
8492
8492
|
...headers,
|
|
@@ -9133,7 +9133,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9133
9133
|
}]];
|
|
9134
9134
|
const infos = vue.ref([]);
|
|
9135
9135
|
const videoMove = async direction => {
|
|
9136
|
-
await axios__default["default"].get("/
|
|
9136
|
+
await axios__default["default"].get("/api/vms/v1/control/hik/control", {
|
|
9137
9137
|
params: {
|
|
9138
9138
|
cameraUuid: _prop.camera,
|
|
9139
9139
|
command: direction
|
|
@@ -9148,7 +9148,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9148
9148
|
const arr = infos.value.map(info => {
|
|
9149
9149
|
return {};
|
|
9150
9150
|
});
|
|
9151
|
-
const res = await axios__default["default"].get("/
|
|
9151
|
+
const res = await axios__default["default"].get("/api/vms/v1/camera/getThingDevice", {
|
|
9152
9152
|
params: {
|
|
9153
9153
|
cameraUuid: uuid
|
|
9154
9154
|
},
|
|
@@ -9164,7 +9164,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9164
9164
|
};
|
|
9165
9165
|
const camera = vue.ref({});
|
|
9166
9166
|
const getVideoDetail = async val => {
|
|
9167
|
-
const res = await axios__default["default"].get(`/
|
|
9167
|
+
const res = await axios__default["default"].get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9168
9168
|
headers: {
|
|
9169
9169
|
token: sessionStorage.getItem("token") || ""
|
|
9170
9170
|
}
|
|
@@ -9195,7 +9195,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9195
9195
|
immediate: true
|
|
9196
9196
|
});
|
|
9197
9197
|
const changeStream = async code => {
|
|
9198
|
-
const res = await axios__default["default"].get(`/
|
|
9198
|
+
const res = await axios__default["default"].get(`/api/vms/v1/camera/getWebrtcUrls`, {
|
|
9199
9199
|
headers: {
|
|
9200
9200
|
token: sessionStorage.getItem("token") || ""
|
|
9201
9201
|
},
|
|
@@ -9418,7 +9418,7 @@ var Tree = vue.defineComponent({
|
|
|
9418
9418
|
});
|
|
9419
9419
|
const getQueryGroup = async params => {
|
|
9420
9420
|
return new Promise(async resolve => {
|
|
9421
|
-
const res = await axios__default["default"].get("/
|
|
9421
|
+
const res = await axios__default["default"].get("/api/vms/v1/cameraGroup/tree", {
|
|
9422
9422
|
headers: {
|
|
9423
9423
|
token: sessionStorage.getItem("token") || ""
|
|
9424
9424
|
},
|
|
@@ -9436,7 +9436,7 @@ var Tree = vue.defineComponent({
|
|
|
9436
9436
|
};
|
|
9437
9437
|
const getGroup = async () => {
|
|
9438
9438
|
return new Promise(async resolve => {
|
|
9439
|
-
const res = await axios__default["default"].get("/
|
|
9439
|
+
const res = await axios__default["default"].get("/api/vms/v1/cameraGroupType/findAll", {
|
|
9440
9440
|
headers: {
|
|
9441
9441
|
token: sessionStorage.getItem("token") || ""
|
|
9442
9442
|
}
|
|
@@ -9712,7 +9712,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9712
9712
|
showInfo.value = _prop.showInfo;
|
|
9713
9713
|
});
|
|
9714
9714
|
const videoMove = async direction => {
|
|
9715
|
-
await axios__default["default"].get("/
|
|
9715
|
+
await axios__default["default"].get("/api/vms/v1/control/hik/control", {
|
|
9716
9716
|
params: {
|
|
9717
9717
|
cameraUuid: _prop.camera,
|
|
9718
9718
|
command: direction
|
|
@@ -9737,7 +9737,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9737
9737
|
if (tcpcArr.length === 0) {
|
|
9738
9738
|
return;
|
|
9739
9739
|
}
|
|
9740
|
-
const res = await axios__default["default"].post("/
|
|
9740
|
+
const res = await axios__default["default"].post("/api/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
|
|
9741
9741
|
headers: {
|
|
9742
9742
|
token: sessionStorage.getItem("token")
|
|
9743
9743
|
}
|
|
@@ -9758,7 +9758,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9758
9758
|
const arr = infos.value.map(info => {
|
|
9759
9759
|
return {};
|
|
9760
9760
|
});
|
|
9761
|
-
const res = await axios__default["default"].post("/
|
|
9761
|
+
const res = await axios__default["default"].post("/api/vms/v1/cameraRelThing/getByParam", {
|
|
9762
9762
|
cameraUuid: uuid2
|
|
9763
9763
|
}, {
|
|
9764
9764
|
headers: {
|
|
@@ -9778,7 +9778,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9778
9778
|
};
|
|
9779
9779
|
const camera = vue.ref({});
|
|
9780
9780
|
const getVideoDetail = async val => {
|
|
9781
|
-
const res = await axios__default["default"].get(`/
|
|
9781
|
+
const res = await axios__default["default"].get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9782
9782
|
headers: {
|
|
9783
9783
|
token: sessionStorage.getItem("token") || ""
|
|
9784
9784
|
}
|
|
@@ -9895,7 +9895,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9895
9895
|
immediate: true
|
|
9896
9896
|
});
|
|
9897
9897
|
const changeStream = async code => {
|
|
9898
|
-
const res = await axios__default["default"].get(`/
|
|
9898
|
+
const res = await axios__default["default"].get(`/api/vms/v1/camera/getWebrtcUrls`, {
|
|
9899
9899
|
headers: {
|
|
9900
9900
|
token: sessionStorage.getItem("token") || ""
|
|
9901
9901
|
},
|
|
@@ -10881,7 +10881,7 @@ const VideoPlayerV1 = vue.defineComponent({
|
|
|
10881
10881
|
videoInfo2.value = camera;
|
|
10882
10882
|
init();
|
|
10883
10883
|
} else if (camera && typeof camera === "string") {
|
|
10884
|
-
const res = await axios__default["default"].post(`/
|
|
10884
|
+
const res = await axios__default["default"].post(`/api/sfvideo/v1/camera/getCameraByCameraId`, {
|
|
10885
10885
|
id: camera
|
|
10886
10886
|
}, {
|
|
10887
10887
|
headers: {
|
|
@@ -11681,7 +11681,7 @@ var index$3 = installComponent(PeopleSelect, "people-select");
|
|
|
11681
11681
|
|
|
11682
11682
|
const getParamList$1 = async data => {
|
|
11683
11683
|
const headers = getCommonHeaders();
|
|
11684
|
-
const res = await fetch("/
|
|
11684
|
+
const res = await fetch("/api/common/v1/param/group/list", {
|
|
11685
11685
|
method: "POST",
|
|
11686
11686
|
body: JSON.stringify(data),
|
|
11687
11687
|
headers
|
|
@@ -11690,7 +11690,7 @@ const getParamList$1 = async data => {
|
|
|
11690
11690
|
};
|
|
11691
11691
|
const getParamDefineList$1 = async groupId => {
|
|
11692
11692
|
const headers = getCommonHeaders();
|
|
11693
|
-
const res = await fetch(`/
|
|
11693
|
+
const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
11694
11694
|
method: "GET",
|
|
11695
11695
|
headers
|
|
11696
11696
|
});
|
|
@@ -11698,7 +11698,7 @@ const getParamDefineList$1 = async groupId => {
|
|
|
11698
11698
|
};
|
|
11699
11699
|
const batchSaveParamsValue$1 = async form => {
|
|
11700
11700
|
const headers = getCommonHeaders();
|
|
11701
|
-
const res = await fetch("/
|
|
11701
|
+
const res = await fetch("/api/common/v1/param/value/updateBatch", {
|
|
11702
11702
|
method: "POST",
|
|
11703
11703
|
headers,
|
|
11704
11704
|
body: JSON.stringify(form)
|
|
@@ -12490,7 +12490,7 @@ const ParamItem = vue.defineComponent({
|
|
|
12490
12490
|
|
|
12491
12491
|
const getParamList = async data => {
|
|
12492
12492
|
const headers = getCommonHeaders();
|
|
12493
|
-
const res = await fetch("/
|
|
12493
|
+
const res = await fetch("/api/common/v1/param/group/list", {
|
|
12494
12494
|
method: "POST",
|
|
12495
12495
|
body: JSON.stringify(data),
|
|
12496
12496
|
headers
|
|
@@ -12499,7 +12499,7 @@ const getParamList = async data => {
|
|
|
12499
12499
|
};
|
|
12500
12500
|
const getParamDefineList = async groupId => {
|
|
12501
12501
|
const headers = getCommonHeaders();
|
|
12502
|
-
const res = await fetch(`/
|
|
12502
|
+
const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
12503
12503
|
method: "GET",
|
|
12504
12504
|
headers
|
|
12505
12505
|
});
|
|
@@ -12507,7 +12507,7 @@ const getParamDefineList = async groupId => {
|
|
|
12507
12507
|
};
|
|
12508
12508
|
const batchSaveParamsValue = async form => {
|
|
12509
12509
|
const headers = getCommonHeaders();
|
|
12510
|
-
const res = await fetch("/
|
|
12510
|
+
const res = await fetch("/api/common/v1/param/value/updateBatch", {
|
|
12511
12511
|
method: "POST",
|
|
12512
12512
|
headers,
|
|
12513
12513
|
body: JSON.stringify(form)
|
|
@@ -13162,7 +13162,7 @@ const SszComment = vue.defineComponent({
|
|
|
13162
13162
|
// 评论api的前缀
|
|
13163
13163
|
baseUrl: {
|
|
13164
13164
|
type: String,
|
|
13165
|
-
default: "/
|
|
13165
|
+
default: "/api/taskcoordinationcenter/v2/tri/"
|
|
13166
13166
|
},
|
|
13167
13167
|
// 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
|
|
13168
13168
|
commentProps: {
|
|
@@ -13274,7 +13274,7 @@ function formatDataString(str) {
|
|
|
13274
13274
|
function request(question, streamCallback, doneCallback) {
|
|
13275
13275
|
const controller = new AbortController();
|
|
13276
13276
|
const signal = controller.signal;
|
|
13277
|
-
fetch("/
|
|
13277
|
+
fetch("/api/chat/v1/chat/chat", {
|
|
13278
13278
|
signal,
|
|
13279
13279
|
method: "POST",
|
|
13280
13280
|
headers: {
|
|
@@ -13391,7 +13391,7 @@ async function audioToText(file) {
|
|
|
13391
13391
|
const formData = new FormData();
|
|
13392
13392
|
formData.append("file", file);
|
|
13393
13393
|
formData.append("upload_id", "1");
|
|
13394
|
-
const [path] = await fetch("/
|
|
13394
|
+
const [path] = await fetch("/api/chat/v1/upload", {
|
|
13395
13395
|
// headers,
|
|
13396
13396
|
method: "POST",
|
|
13397
13397
|
body: formData
|
|
@@ -13402,7 +13402,7 @@ async function audioToText(file) {
|
|
|
13402
13402
|
}
|
|
13403
13403
|
const {
|
|
13404
13404
|
result
|
|
13405
|
-
} = await fetch(`/
|
|
13405
|
+
} = await fetch(`/api/chat/v1/translate?path=${path}&session_hash=1`, {
|
|
13406
13406
|
headers,
|
|
13407
13407
|
method: "POST"
|
|
13408
13408
|
}).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: "/api/"
|
|
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(`/api/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: "/api/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: "/api/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("/api/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("/api/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("/api/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("/api/common/v1/log/insert", {
|
|
8462
8462
|
method: "POST",
|
|
8463
8463
|
headers: {
|
|
8464
8464
|
...headers,
|
|
@@ -9105,7 +9105,7 @@ const VideoBox = defineComponent({
|
|
|
9105
9105
|
}]];
|
|
9106
9106
|
const infos = ref([]);
|
|
9107
9107
|
const videoMove = async direction => {
|
|
9108
|
-
await axios$2.get("/
|
|
9108
|
+
await axios$2.get("/api/vms/v1/control/hik/control", {
|
|
9109
9109
|
params: {
|
|
9110
9110
|
cameraUuid: _prop.camera,
|
|
9111
9111
|
command: direction
|
|
@@ -9120,7 +9120,7 @@ const VideoBox = defineComponent({
|
|
|
9120
9120
|
const arr = infos.value.map(info => {
|
|
9121
9121
|
return {};
|
|
9122
9122
|
});
|
|
9123
|
-
const res = await axios$2.get("/
|
|
9123
|
+
const res = await axios$2.get("/api/vms/v1/camera/getThingDevice", {
|
|
9124
9124
|
params: {
|
|
9125
9125
|
cameraUuid: uuid
|
|
9126
9126
|
},
|
|
@@ -9136,7 +9136,7 @@ const VideoBox = defineComponent({
|
|
|
9136
9136
|
};
|
|
9137
9137
|
const camera = ref({});
|
|
9138
9138
|
const getVideoDetail = async val => {
|
|
9139
|
-
const res = await axios$2.get(`/
|
|
9139
|
+
const res = await axios$2.get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9140
9140
|
headers: {
|
|
9141
9141
|
token: sessionStorage.getItem("token") || ""
|
|
9142
9142
|
}
|
|
@@ -9167,7 +9167,7 @@ const VideoBox = defineComponent({
|
|
|
9167
9167
|
immediate: true
|
|
9168
9168
|
});
|
|
9169
9169
|
const changeStream = async code => {
|
|
9170
|
-
const res = await axios$2.get(`/
|
|
9170
|
+
const res = await axios$2.get(`/api/vms/v1/camera/getWebrtcUrls`, {
|
|
9171
9171
|
headers: {
|
|
9172
9172
|
token: sessionStorage.getItem("token") || ""
|
|
9173
9173
|
},
|
|
@@ -9390,7 +9390,7 @@ var Tree = defineComponent({
|
|
|
9390
9390
|
});
|
|
9391
9391
|
const getQueryGroup = async params => {
|
|
9392
9392
|
return new Promise(async resolve => {
|
|
9393
|
-
const res = await axios$2.get("/
|
|
9393
|
+
const res = await axios$2.get("/api/vms/v1/cameraGroup/tree", {
|
|
9394
9394
|
headers: {
|
|
9395
9395
|
token: sessionStorage.getItem("token") || ""
|
|
9396
9396
|
},
|
|
@@ -9408,7 +9408,7 @@ var Tree = defineComponent({
|
|
|
9408
9408
|
};
|
|
9409
9409
|
const getGroup = async () => {
|
|
9410
9410
|
return new Promise(async resolve => {
|
|
9411
|
-
const res = await axios$2.get("/
|
|
9411
|
+
const res = await axios$2.get("/api/vms/v1/cameraGroupType/findAll", {
|
|
9412
9412
|
headers: {
|
|
9413
9413
|
token: sessionStorage.getItem("token") || ""
|
|
9414
9414
|
}
|
|
@@ -9684,7 +9684,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9684
9684
|
showInfo.value = _prop.showInfo;
|
|
9685
9685
|
});
|
|
9686
9686
|
const videoMove = async direction => {
|
|
9687
|
-
await axios$2.get("/
|
|
9687
|
+
await axios$2.get("/api/vms/v1/control/hik/control", {
|
|
9688
9688
|
params: {
|
|
9689
9689
|
cameraUuid: _prop.camera,
|
|
9690
9690
|
command: direction
|
|
@@ -9709,7 +9709,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9709
9709
|
if (tcpcArr.length === 0) {
|
|
9710
9710
|
return;
|
|
9711
9711
|
}
|
|
9712
|
-
const res = await axios$2.post("/
|
|
9712
|
+
const res = await axios$2.post("/api/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
|
|
9713
9713
|
headers: {
|
|
9714
9714
|
token: sessionStorage.getItem("token")
|
|
9715
9715
|
}
|
|
@@ -9730,7 +9730,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9730
9730
|
const arr = infos.value.map(info => {
|
|
9731
9731
|
return {};
|
|
9732
9732
|
});
|
|
9733
|
-
const res = await axios$2.post("/
|
|
9733
|
+
const res = await axios$2.post("/api/vms/v1/cameraRelThing/getByParam", {
|
|
9734
9734
|
cameraUuid: uuid2
|
|
9735
9735
|
}, {
|
|
9736
9736
|
headers: {
|
|
@@ -9750,7 +9750,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9750
9750
|
};
|
|
9751
9751
|
const camera = ref({});
|
|
9752
9752
|
const getVideoDetail = async val => {
|
|
9753
|
-
const res = await axios$2.get(`/
|
|
9753
|
+
const res = await axios$2.get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9754
9754
|
headers: {
|
|
9755
9755
|
token: sessionStorage.getItem("token") || ""
|
|
9756
9756
|
}
|
|
@@ -9867,7 +9867,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9867
9867
|
immediate: true
|
|
9868
9868
|
});
|
|
9869
9869
|
const changeStream = async code => {
|
|
9870
|
-
const res = await axios$2.get(`/
|
|
9870
|
+
const res = await axios$2.get(`/api/vms/v1/camera/getWebrtcUrls`, {
|
|
9871
9871
|
headers: {
|
|
9872
9872
|
token: sessionStorage.getItem("token") || ""
|
|
9873
9873
|
},
|
|
@@ -10853,7 +10853,7 @@ const VideoPlayerV1 = defineComponent({
|
|
|
10853
10853
|
videoInfo2.value = camera;
|
|
10854
10854
|
init();
|
|
10855
10855
|
} else if (camera && typeof camera === "string") {
|
|
10856
|
-
const res = await axios$2.post(`/
|
|
10856
|
+
const res = await axios$2.post(`/api/sfvideo/v1/camera/getCameraByCameraId`, {
|
|
10857
10857
|
id: camera
|
|
10858
10858
|
}, {
|
|
10859
10859
|
headers: {
|
|
@@ -11653,7 +11653,7 @@ var index$3 = installComponent(PeopleSelect, "people-select");
|
|
|
11653
11653
|
|
|
11654
11654
|
const getParamList$1 = async data => {
|
|
11655
11655
|
const headers = getCommonHeaders();
|
|
11656
|
-
const res = await fetch("/
|
|
11656
|
+
const res = await fetch("/api/common/v1/param/group/list", {
|
|
11657
11657
|
method: "POST",
|
|
11658
11658
|
body: JSON.stringify(data),
|
|
11659
11659
|
headers
|
|
@@ -11662,7 +11662,7 @@ const getParamList$1 = async data => {
|
|
|
11662
11662
|
};
|
|
11663
11663
|
const getParamDefineList$1 = async groupId => {
|
|
11664
11664
|
const headers = getCommonHeaders();
|
|
11665
|
-
const res = await fetch(`/
|
|
11665
|
+
const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
11666
11666
|
method: "GET",
|
|
11667
11667
|
headers
|
|
11668
11668
|
});
|
|
@@ -11670,7 +11670,7 @@ const getParamDefineList$1 = async groupId => {
|
|
|
11670
11670
|
};
|
|
11671
11671
|
const batchSaveParamsValue$1 = async form => {
|
|
11672
11672
|
const headers = getCommonHeaders();
|
|
11673
|
-
const res = await fetch("/
|
|
11673
|
+
const res = await fetch("/api/common/v1/param/value/updateBatch", {
|
|
11674
11674
|
method: "POST",
|
|
11675
11675
|
headers,
|
|
11676
11676
|
body: JSON.stringify(form)
|
|
@@ -12462,7 +12462,7 @@ const ParamItem = defineComponent({
|
|
|
12462
12462
|
|
|
12463
12463
|
const getParamList = async data => {
|
|
12464
12464
|
const headers = getCommonHeaders();
|
|
12465
|
-
const res = await fetch("/
|
|
12465
|
+
const res = await fetch("/api/common/v1/param/group/list", {
|
|
12466
12466
|
method: "POST",
|
|
12467
12467
|
body: JSON.stringify(data),
|
|
12468
12468
|
headers
|
|
@@ -12471,7 +12471,7 @@ const getParamList = async data => {
|
|
|
12471
12471
|
};
|
|
12472
12472
|
const getParamDefineList = async groupId => {
|
|
12473
12473
|
const headers = getCommonHeaders();
|
|
12474
|
-
const res = await fetch(`/
|
|
12474
|
+
const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
12475
12475
|
method: "GET",
|
|
12476
12476
|
headers
|
|
12477
12477
|
});
|
|
@@ -12479,7 +12479,7 @@ const getParamDefineList = async groupId => {
|
|
|
12479
12479
|
};
|
|
12480
12480
|
const batchSaveParamsValue = async form => {
|
|
12481
12481
|
const headers = getCommonHeaders();
|
|
12482
|
-
const res = await fetch("/
|
|
12482
|
+
const res = await fetch("/api/common/v1/param/value/updateBatch", {
|
|
12483
12483
|
method: "POST",
|
|
12484
12484
|
headers,
|
|
12485
12485
|
body: JSON.stringify(form)
|
|
@@ -13134,7 +13134,7 @@ const SszComment = defineComponent({
|
|
|
13134
13134
|
// 评论api的前缀
|
|
13135
13135
|
baseUrl: {
|
|
13136
13136
|
type: String,
|
|
13137
|
-
default: "/
|
|
13137
|
+
default: "/api/taskcoordinationcenter/v2/tri/"
|
|
13138
13138
|
},
|
|
13139
13139
|
// 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
|
|
13140
13140
|
commentProps: {
|
|
@@ -13246,7 +13246,7 @@ function formatDataString(str) {
|
|
|
13246
13246
|
function request(question, streamCallback, doneCallback) {
|
|
13247
13247
|
const controller = new AbortController();
|
|
13248
13248
|
const signal = controller.signal;
|
|
13249
|
-
fetch("/
|
|
13249
|
+
fetch("/api/chat/v1/chat/chat", {
|
|
13250
13250
|
signal,
|
|
13251
13251
|
method: "POST",
|
|
13252
13252
|
headers: {
|
|
@@ -13363,7 +13363,7 @@ async function audioToText(file) {
|
|
|
13363
13363
|
const formData = new FormData();
|
|
13364
13364
|
formData.append("file", file);
|
|
13365
13365
|
formData.append("upload_id", "1");
|
|
13366
|
-
const [path] = await fetch("/
|
|
13366
|
+
const [path] = await fetch("/api/chat/v1/upload", {
|
|
13367
13367
|
// headers,
|
|
13368
13368
|
method: "POST",
|
|
13369
13369
|
body: formData
|
|
@@ -13374,7 +13374,7 @@ async function audioToText(file) {
|
|
|
13374
13374
|
}
|
|
13375
13375
|
const {
|
|
13376
13376
|
result
|
|
13377
|
-
} = await fetch(`/
|
|
13377
|
+
} = await fetch(`/api/chat/v1/translate?path=${path}&session_hash=1`, {
|
|
13378
13378
|
headers,
|
|
13379
13379
|
method: "POST"
|
|
13380
13380
|
}).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(`/api/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(`/api/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(`/api/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(`/api/vms/v1/camera/getWebrtcUrls?uuid=${uuid}`, {
|
|
5950
5950
|
method: "GET",
|
|
5951
5951
|
headers: {
|
|
5952
5952
|
token: token || sessionStorage.getItem("token") || ""
|