inl-ui 0.1.122-mtapi → 0.1.123
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/README.md +49 -49
- package/dist/components/index.cjs +42 -40
- package/dist/components/index.js +42 -40
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +52 -50
- package/dist/index.d.ts +1 -1
- package/dist/index.js +52 -50
- package/dist/theme/index.js +70 -70
- package/dist/theme/scripts/dark-vars.js +21 -21
- package/dist/theme/scripts/default-vars.js +25 -25
- package/dist/theme/scripts/light-vars.js +22 -22
- package/dist/theme/style/color/bezierEasing.less +110 -110
- package/dist/theme/style/color/colorPalette.less +81 -81
- package/dist/theme/style/color/colors.less +162 -162
- package/dist/theme/style/color/tinyColor.less +1184 -1184
- package/dist/theme/style/compact.less +4 -4
- package/dist/theme/style/dark.less +4 -4
- package/dist/theme/style/default.less +4 -4
- package/dist/theme/style/index.less +2 -2
- package/dist/theme/style/index.tsx +2 -2
- package/dist/theme/style/themes/compact.less +295 -295
- package/dist/theme/style/themes/dark.less +790 -790
- package/dist/theme/style/themes/default.less +1067 -1067
- package/dist/theme/style/themes/index.less +7 -7
- package/dist/theme/style/themes/var-dark.less +343 -343
- package/dist/theme/style/themes/var-default.less +184 -184
- package/dist/theme/style/themes/variable.less +1122 -1122
- package/dist/theme/style/variable.less +4 -4
- package/dist/tplib/index.cjs +9 -9
- package/dist/tplib/index.js +9 -9
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/video/index.cjs +12 -12
- package/dist/video/index.js +12 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
# 工业PC ui库
|
|
2
|
-
|
|
3
|
-
前端通用库,包括组件、hooks、utils等。
|
|
4
|
-
|
|
5
|
-
### 运行
|
|
6
|
-
|
|
7
|
-
+ 开发模式 yarn dev
|
|
8
|
-
+ 生产打包 yarn build
|
|
9
|
-
+ 生成文档 yarn build:docs
|
|
10
|
-
+ 打包图扑工具 yarn buildtp
|
|
11
|
-
|
|
12
|
-
### 使用方法
|
|
13
|
-
|
|
14
|
-
```javascript
|
|
15
|
-
import inl from 'inl-ui';
|
|
16
|
-
import 'inl-ui/dist/style.css';
|
|
17
|
-
|
|
18
|
-
vue.use(inl)
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
### 激活主题
|
|
24
|
-
|
|
25
|
-
**vite.config.ts**
|
|
26
|
-
|
|
27
|
-
```javascript
|
|
28
|
-
const additionalData = require("inl-ui/dist/theme").default;
|
|
29
|
-
|
|
30
|
-
...
|
|
31
|
-
|
|
32
|
-
css: {
|
|
33
|
-
preprocessorOptions: {
|
|
34
|
-
less: {
|
|
35
|
-
javascriptEnabled: true,
|
|
36
|
-
additionalData,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### 文档链接
|
|
43
|
-
|
|
44
|
-
##### [组件文档](./src/components/README.md)
|
|
45
|
-
|
|
46
|
-
##### [hooks文档](./src/hooks/README.md)
|
|
47
|
-
|
|
48
|
-
##### [Utils文档](./src/utils/README.md)
|
|
49
|
-
|
|
1
|
+
# 工业PC ui库
|
|
2
|
+
|
|
3
|
+
前端通用库,包括组件、hooks、utils等。
|
|
4
|
+
|
|
5
|
+
### 运行
|
|
6
|
+
|
|
7
|
+
+ 开发模式 yarn dev
|
|
8
|
+
+ 生产打包 yarn build
|
|
9
|
+
+ 生成文档 yarn build:docs
|
|
10
|
+
+ 打包图扑工具 yarn buildtp
|
|
11
|
+
|
|
12
|
+
### 使用方法
|
|
13
|
+
|
|
14
|
+
```javascript
|
|
15
|
+
import inl from 'inl-ui';
|
|
16
|
+
import 'inl-ui/dist/style.css';
|
|
17
|
+
|
|
18
|
+
vue.use(inl)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### 激活主题
|
|
24
|
+
|
|
25
|
+
**vite.config.ts**
|
|
26
|
+
|
|
27
|
+
```javascript
|
|
28
|
+
const additionalData = require("inl-ui/dist/theme").default;
|
|
29
|
+
|
|
30
|
+
...
|
|
31
|
+
|
|
32
|
+
css: {
|
|
33
|
+
preprocessorOptions: {
|
|
34
|
+
less: {
|
|
35
|
+
javascriptEnabled: true,
|
|
36
|
+
additionalData,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### 文档链接
|
|
43
|
+
|
|
44
|
+
##### [组件文档](./src/components/README.md)
|
|
45
|
+
|
|
46
|
+
##### [hooks文档](./src/hooks/README.md)
|
|
47
|
+
|
|
48
|
+
##### [Utils文档](./src/utils/README.md)
|
|
49
|
+
|
|
@@ -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;
|
|
@@ -211,18 +211,20 @@ function getIframeUrl(url) {
|
|
|
211
211
|
async function checkIframeUrl(url) {
|
|
212
212
|
const iframeUrl = getIframeUrl(url);
|
|
213
213
|
let code = 200;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
code
|
|
214
|
+
if (url.indexOf("noCheck") === -1) {
|
|
215
|
+
try {
|
|
216
|
+
const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
|
|
217
|
+
headers: getCommonHeaders()
|
|
218
|
+
});
|
|
219
|
+
if (res.status !== 404) {
|
|
220
|
+
const json = await res.json();
|
|
221
|
+
code = json.data;
|
|
222
|
+
if (json.code === "M5001") {
|
|
223
|
+
code = 500;
|
|
224
|
+
}
|
|
223
225
|
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
+
} catch (e) {}
|
|
227
|
+
}
|
|
226
228
|
return code;
|
|
227
229
|
}
|
|
228
230
|
|
|
@@ -7583,7 +7585,7 @@ class Login$1 {
|
|
|
7583
7585
|
constructor() {
|
|
7584
7586
|
this.getQueryInfo();
|
|
7585
7587
|
this.config.axios = new ApiInstance({
|
|
7586
|
-
baseURL: "/
|
|
7588
|
+
baseURL: "/api/common/v1/"
|
|
7587
7589
|
}).instance;
|
|
7588
7590
|
}
|
|
7589
7591
|
checkSystemInfo() {
|
|
@@ -7803,7 +7805,7 @@ var loginBox = vue.defineComponent({
|
|
|
7803
7805
|
});
|
|
7804
7806
|
const isClould = vue.inject("isClould");
|
|
7805
7807
|
const instance = new ApiInstance({
|
|
7806
|
-
baseURL: "/
|
|
7808
|
+
baseURL: "/api/common/v1/"
|
|
7807
7809
|
}).instance;
|
|
7808
7810
|
const systemTitle = vue.inject("systemTitle");
|
|
7809
7811
|
const platformLogo = vue.inject("platformLogo");
|
|
@@ -8467,26 +8469,26 @@ const isIndependentApp = query => !!query.token && !!query.onlyPage;
|
|
|
8467
8469
|
const loginFun = new Login$1();
|
|
8468
8470
|
const httpUtil = {
|
|
8469
8471
|
requestLogo: async () => {
|
|
8470
|
-
const res = await fetch("/
|
|
8472
|
+
const res = await fetch("/api/common/v1/sysconfig/searchImage?imgType=4&editImg=1&clientType=web");
|
|
8471
8473
|
const blob = await res.blob();
|
|
8472
8474
|
return URL.createObjectURL(blob);
|
|
8473
8475
|
},
|
|
8474
8476
|
requestUserTree: async () => {
|
|
8475
8477
|
const headers = getCommonHeaders();
|
|
8476
|
-
const res = await fetch("/
|
|
8478
|
+
const res = await fetch("/api/common/v1/menu/tree", {
|
|
8477
8479
|
headers
|
|
8478
8480
|
});
|
|
8479
8481
|
const treeData = await res.json();
|
|
8480
8482
|
return treeData.data;
|
|
8481
8483
|
},
|
|
8482
8484
|
requestCopyright: async () => {
|
|
8483
|
-
const res = await fetch("/
|
|
8485
|
+
const res = await fetch("/api/common/v1/sysconfig/getSysConfig?clientType=web");
|
|
8484
8486
|
const data = await res.json();
|
|
8485
8487
|
return data.data.homepageCopyright;
|
|
8486
8488
|
},
|
|
8487
8489
|
postLogout: async () => {
|
|
8488
8490
|
const headers = getCommonHeaders();
|
|
8489
|
-
await fetch("/
|
|
8491
|
+
await fetch("/api/common/v1/log/insert", {
|
|
8490
8492
|
method: "POST",
|
|
8491
8493
|
headers: {
|
|
8492
8494
|
...headers,
|
|
@@ -9137,7 +9139,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9137
9139
|
}]];
|
|
9138
9140
|
const infos = vue.ref([]);
|
|
9139
9141
|
const videoMove = async direction => {
|
|
9140
|
-
await axios__default["default"].get("/
|
|
9142
|
+
await axios__default["default"].get("/api/vms/v1/control/hik/control", {
|
|
9141
9143
|
params: {
|
|
9142
9144
|
cameraUuid: _prop.camera,
|
|
9143
9145
|
command: direction
|
|
@@ -9152,7 +9154,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9152
9154
|
const arr = infos.value.map(info => {
|
|
9153
9155
|
return {};
|
|
9154
9156
|
});
|
|
9155
|
-
const res = await axios__default["default"].get("/
|
|
9157
|
+
const res = await axios__default["default"].get("/api/vms/v1/camera/getThingDevice", {
|
|
9156
9158
|
params: {
|
|
9157
9159
|
cameraUuid: uuid
|
|
9158
9160
|
},
|
|
@@ -9168,7 +9170,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9168
9170
|
};
|
|
9169
9171
|
const camera = vue.ref({});
|
|
9170
9172
|
const getVideoDetail = async val => {
|
|
9171
|
-
const res = await axios__default["default"].get(`/
|
|
9173
|
+
const res = await axios__default["default"].get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9172
9174
|
headers: {
|
|
9173
9175
|
token: sessionStorage.getItem("token") || ""
|
|
9174
9176
|
}
|
|
@@ -9199,7 +9201,7 @@ const VideoBox = vue.defineComponent({
|
|
|
9199
9201
|
immediate: true
|
|
9200
9202
|
});
|
|
9201
9203
|
const changeStream = async code => {
|
|
9202
|
-
const res = await axios__default["default"].get(`/
|
|
9204
|
+
const res = await axios__default["default"].get(`/api/vms/v1/camera/getWebrtcUrls`, {
|
|
9203
9205
|
headers: {
|
|
9204
9206
|
token: sessionStorage.getItem("token") || ""
|
|
9205
9207
|
},
|
|
@@ -9422,7 +9424,7 @@ var Tree = vue.defineComponent({
|
|
|
9422
9424
|
});
|
|
9423
9425
|
const getQueryGroup = async params => {
|
|
9424
9426
|
return new Promise(async resolve => {
|
|
9425
|
-
const res = await axios__default["default"].get("/
|
|
9427
|
+
const res = await axios__default["default"].get("/api/vms/v1/cameraGroup/tree", {
|
|
9426
9428
|
headers: {
|
|
9427
9429
|
token: sessionStorage.getItem("token") || ""
|
|
9428
9430
|
},
|
|
@@ -9440,7 +9442,7 @@ var Tree = vue.defineComponent({
|
|
|
9440
9442
|
};
|
|
9441
9443
|
const getGroup = async () => {
|
|
9442
9444
|
return new Promise(async resolve => {
|
|
9443
|
-
const res = await axios__default["default"].get("/
|
|
9445
|
+
const res = await axios__default["default"].get("/api/vms/v1/cameraGroupType/findAll", {
|
|
9444
9446
|
headers: {
|
|
9445
9447
|
token: sessionStorage.getItem("token") || ""
|
|
9446
9448
|
}
|
|
@@ -9716,7 +9718,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9716
9718
|
showInfo.value = _prop.showInfo;
|
|
9717
9719
|
});
|
|
9718
9720
|
const videoMove = async direction => {
|
|
9719
|
-
await axios__default["default"].get("/
|
|
9721
|
+
await axios__default["default"].get("/api/vms/v1/control/hik/control", {
|
|
9720
9722
|
params: {
|
|
9721
9723
|
cameraUuid: _prop.camera,
|
|
9722
9724
|
command: direction
|
|
@@ -9741,7 +9743,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9741
9743
|
if (tcpcArr.length === 0) {
|
|
9742
9744
|
return;
|
|
9743
9745
|
}
|
|
9744
|
-
const res = await axios__default["default"].post("/
|
|
9746
|
+
const res = await axios__default["default"].post("/api/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
|
|
9745
9747
|
headers: {
|
|
9746
9748
|
token: sessionStorage.getItem("token")
|
|
9747
9749
|
}
|
|
@@ -9762,7 +9764,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9762
9764
|
const arr = infos.value.map(info => {
|
|
9763
9765
|
return {};
|
|
9764
9766
|
});
|
|
9765
|
-
const res = await axios__default["default"].post("/
|
|
9767
|
+
const res = await axios__default["default"].post("/api/vms/v1/cameraRelThing/getByParam", {
|
|
9766
9768
|
cameraUuid: uuid2
|
|
9767
9769
|
}, {
|
|
9768
9770
|
headers: {
|
|
@@ -9782,7 +9784,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9782
9784
|
};
|
|
9783
9785
|
const camera = vue.ref({});
|
|
9784
9786
|
const getVideoDetail = async val => {
|
|
9785
|
-
const res = await axios__default["default"].get(`/
|
|
9787
|
+
const res = await axios__default["default"].get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9786
9788
|
headers: {
|
|
9787
9789
|
token: sessionStorage.getItem("token") || ""
|
|
9788
9790
|
}
|
|
@@ -9899,7 +9901,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9899
9901
|
immediate: true
|
|
9900
9902
|
});
|
|
9901
9903
|
const changeStream = async code => {
|
|
9902
|
-
const res = await axios__default["default"].get(`/
|
|
9904
|
+
const res = await axios__default["default"].get(`/api/vms/v1/camera/getWebrtcUrls`, {
|
|
9903
9905
|
headers: {
|
|
9904
9906
|
token: sessionStorage.getItem("token") || ""
|
|
9905
9907
|
},
|
|
@@ -10885,7 +10887,7 @@ const VideoPlayerV1 = vue.defineComponent({
|
|
|
10885
10887
|
videoInfo2.value = camera;
|
|
10886
10888
|
init();
|
|
10887
10889
|
} else if (camera && typeof camera === "string") {
|
|
10888
|
-
const res = await axios__default["default"].post(`/
|
|
10890
|
+
const res = await axios__default["default"].post(`/api/sfvideo/v1/camera/getCameraByCameraId`, {
|
|
10889
10891
|
id: camera
|
|
10890
10892
|
}, {
|
|
10891
10893
|
headers: {
|
|
@@ -11685,7 +11687,7 @@ var index$3 = installComponent(PeopleSelect, "people-select");
|
|
|
11685
11687
|
|
|
11686
11688
|
const getParamList$1 = async data => {
|
|
11687
11689
|
const headers = getCommonHeaders();
|
|
11688
|
-
const res = await fetch("/
|
|
11690
|
+
const res = await fetch("/api/common/v1/param/group/list", {
|
|
11689
11691
|
method: "POST",
|
|
11690
11692
|
body: JSON.stringify(data),
|
|
11691
11693
|
headers
|
|
@@ -11694,7 +11696,7 @@ const getParamList$1 = async data => {
|
|
|
11694
11696
|
};
|
|
11695
11697
|
const getParamDefineList$1 = async groupId => {
|
|
11696
11698
|
const headers = getCommonHeaders();
|
|
11697
|
-
const res = await fetch(`/
|
|
11699
|
+
const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
11698
11700
|
method: "GET",
|
|
11699
11701
|
headers
|
|
11700
11702
|
});
|
|
@@ -11702,7 +11704,7 @@ const getParamDefineList$1 = async groupId => {
|
|
|
11702
11704
|
};
|
|
11703
11705
|
const batchSaveParamsValue$1 = async form => {
|
|
11704
11706
|
const headers = getCommonHeaders();
|
|
11705
|
-
const res = await fetch("/
|
|
11707
|
+
const res = await fetch("/api/common/v1/param/value/updateBatch", {
|
|
11706
11708
|
method: "POST",
|
|
11707
11709
|
headers,
|
|
11708
11710
|
body: JSON.stringify(form)
|
|
@@ -12494,7 +12496,7 @@ const ParamItem = vue.defineComponent({
|
|
|
12494
12496
|
|
|
12495
12497
|
const getParamList = async data => {
|
|
12496
12498
|
const headers = getCommonHeaders();
|
|
12497
|
-
const res = await fetch("/
|
|
12499
|
+
const res = await fetch("/api/common/v1/param/group/list", {
|
|
12498
12500
|
method: "POST",
|
|
12499
12501
|
body: JSON.stringify(data),
|
|
12500
12502
|
headers
|
|
@@ -12503,7 +12505,7 @@ const getParamList = async data => {
|
|
|
12503
12505
|
};
|
|
12504
12506
|
const getParamDefineList = async groupId => {
|
|
12505
12507
|
const headers = getCommonHeaders();
|
|
12506
|
-
const res = await fetch(`/
|
|
12508
|
+
const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
12507
12509
|
method: "GET",
|
|
12508
12510
|
headers
|
|
12509
12511
|
});
|
|
@@ -12511,7 +12513,7 @@ const getParamDefineList = async groupId => {
|
|
|
12511
12513
|
};
|
|
12512
12514
|
const batchSaveParamsValue = async form => {
|
|
12513
12515
|
const headers = getCommonHeaders();
|
|
12514
|
-
const res = await fetch("/
|
|
12516
|
+
const res = await fetch("/api/common/v1/param/value/updateBatch", {
|
|
12515
12517
|
method: "POST",
|
|
12516
12518
|
headers,
|
|
12517
12519
|
body: JSON.stringify(form)
|
|
@@ -13166,7 +13168,7 @@ const SszComment = vue.defineComponent({
|
|
|
13166
13168
|
// 评论api的前缀
|
|
13167
13169
|
baseUrl: {
|
|
13168
13170
|
type: String,
|
|
13169
|
-
default: "/
|
|
13171
|
+
default: "/api/taskcoordinationcenter/v2/tri/"
|
|
13170
13172
|
},
|
|
13171
13173
|
// 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
|
|
13172
13174
|
commentProps: {
|
|
@@ -13278,7 +13280,7 @@ function formatDataString(str) {
|
|
|
13278
13280
|
function request(question, streamCallback, doneCallback) {
|
|
13279
13281
|
const controller = new AbortController();
|
|
13280
13282
|
const signal = controller.signal;
|
|
13281
|
-
fetch("/
|
|
13283
|
+
fetch("/api/chat/v1/chat/chat", {
|
|
13282
13284
|
signal,
|
|
13283
13285
|
method: "POST",
|
|
13284
13286
|
headers: {
|
|
@@ -13395,7 +13397,7 @@ async function audioToText(file) {
|
|
|
13395
13397
|
const formData = new FormData();
|
|
13396
13398
|
formData.append("file", file);
|
|
13397
13399
|
formData.append("upload_id", "1");
|
|
13398
|
-
const [path] = await fetch("/
|
|
13400
|
+
const [path] = await fetch("/api/chat/v1/upload", {
|
|
13399
13401
|
// headers,
|
|
13400
13402
|
method: "POST",
|
|
13401
13403
|
body: formData
|
|
@@ -13406,7 +13408,7 @@ async function audioToText(file) {
|
|
|
13406
13408
|
}
|
|
13407
13409
|
const {
|
|
13408
13410
|
result
|
|
13409
|
-
} = await fetch(`/
|
|
13411
|
+
} = await fetch(`/api/chat/v1/translate?path=${path}&session_hash=1`, {
|
|
13410
13412
|
headers,
|
|
13411
13413
|
method: "POST"
|
|
13412
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: "/api/"
|
|
82
82
|
};
|
|
83
83
|
class ApiInstance {
|
|
84
84
|
instance;
|
|
@@ -183,18 +183,20 @@ function getIframeUrl(url) {
|
|
|
183
183
|
async function checkIframeUrl(url) {
|
|
184
184
|
const iframeUrl = getIframeUrl(url);
|
|
185
185
|
let code = 200;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
code
|
|
186
|
+
if (url.indexOf("noCheck") === -1) {
|
|
187
|
+
try {
|
|
188
|
+
const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
|
|
189
|
+
headers: getCommonHeaders()
|
|
190
|
+
});
|
|
191
|
+
if (res.status !== 404) {
|
|
192
|
+
const json = await res.json();
|
|
193
|
+
code = json.data;
|
|
194
|
+
if (json.code === "M5001") {
|
|
195
|
+
code = 500;
|
|
196
|
+
}
|
|
195
197
|
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
+
} catch (e) {}
|
|
199
|
+
}
|
|
198
200
|
return code;
|
|
199
201
|
}
|
|
200
202
|
|
|
@@ -7555,7 +7557,7 @@ class Login$1 {
|
|
|
7555
7557
|
constructor() {
|
|
7556
7558
|
this.getQueryInfo();
|
|
7557
7559
|
this.config.axios = new ApiInstance({
|
|
7558
|
-
baseURL: "/
|
|
7560
|
+
baseURL: "/api/common/v1/"
|
|
7559
7561
|
}).instance;
|
|
7560
7562
|
}
|
|
7561
7563
|
checkSystemInfo() {
|
|
@@ -7775,7 +7777,7 @@ var loginBox = defineComponent({
|
|
|
7775
7777
|
});
|
|
7776
7778
|
const isClould = inject("isClould");
|
|
7777
7779
|
const instance = new ApiInstance({
|
|
7778
|
-
baseURL: "/
|
|
7780
|
+
baseURL: "/api/common/v1/"
|
|
7779
7781
|
}).instance;
|
|
7780
7782
|
const systemTitle = inject("systemTitle");
|
|
7781
7783
|
const platformLogo = inject("platformLogo");
|
|
@@ -8439,26 +8441,26 @@ const isIndependentApp = query => !!query.token && !!query.onlyPage;
|
|
|
8439
8441
|
const loginFun = new Login$1();
|
|
8440
8442
|
const httpUtil = {
|
|
8441
8443
|
requestLogo: async () => {
|
|
8442
|
-
const res = await fetch("/
|
|
8444
|
+
const res = await fetch("/api/common/v1/sysconfig/searchImage?imgType=4&editImg=1&clientType=web");
|
|
8443
8445
|
const blob = await res.blob();
|
|
8444
8446
|
return URL.createObjectURL(blob);
|
|
8445
8447
|
},
|
|
8446
8448
|
requestUserTree: async () => {
|
|
8447
8449
|
const headers = getCommonHeaders();
|
|
8448
|
-
const res = await fetch("/
|
|
8450
|
+
const res = await fetch("/api/common/v1/menu/tree", {
|
|
8449
8451
|
headers
|
|
8450
8452
|
});
|
|
8451
8453
|
const treeData = await res.json();
|
|
8452
8454
|
return treeData.data;
|
|
8453
8455
|
},
|
|
8454
8456
|
requestCopyright: async () => {
|
|
8455
|
-
const res = await fetch("/
|
|
8457
|
+
const res = await fetch("/api/common/v1/sysconfig/getSysConfig?clientType=web");
|
|
8456
8458
|
const data = await res.json();
|
|
8457
8459
|
return data.data.homepageCopyright;
|
|
8458
8460
|
},
|
|
8459
8461
|
postLogout: async () => {
|
|
8460
8462
|
const headers = getCommonHeaders();
|
|
8461
|
-
await fetch("/
|
|
8463
|
+
await fetch("/api/common/v1/log/insert", {
|
|
8462
8464
|
method: "POST",
|
|
8463
8465
|
headers: {
|
|
8464
8466
|
...headers,
|
|
@@ -9109,7 +9111,7 @@ const VideoBox = defineComponent({
|
|
|
9109
9111
|
}]];
|
|
9110
9112
|
const infos = ref([]);
|
|
9111
9113
|
const videoMove = async direction => {
|
|
9112
|
-
await axios$2.get("/
|
|
9114
|
+
await axios$2.get("/api/vms/v1/control/hik/control", {
|
|
9113
9115
|
params: {
|
|
9114
9116
|
cameraUuid: _prop.camera,
|
|
9115
9117
|
command: direction
|
|
@@ -9124,7 +9126,7 @@ const VideoBox = defineComponent({
|
|
|
9124
9126
|
const arr = infos.value.map(info => {
|
|
9125
9127
|
return {};
|
|
9126
9128
|
});
|
|
9127
|
-
const res = await axios$2.get("/
|
|
9129
|
+
const res = await axios$2.get("/api/vms/v1/camera/getThingDevice", {
|
|
9128
9130
|
params: {
|
|
9129
9131
|
cameraUuid: uuid
|
|
9130
9132
|
},
|
|
@@ -9140,7 +9142,7 @@ const VideoBox = defineComponent({
|
|
|
9140
9142
|
};
|
|
9141
9143
|
const camera = ref({});
|
|
9142
9144
|
const getVideoDetail = async val => {
|
|
9143
|
-
const res = await axios$2.get(`/
|
|
9145
|
+
const res = await axios$2.get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9144
9146
|
headers: {
|
|
9145
9147
|
token: sessionStorage.getItem("token") || ""
|
|
9146
9148
|
}
|
|
@@ -9171,7 +9173,7 @@ const VideoBox = defineComponent({
|
|
|
9171
9173
|
immediate: true
|
|
9172
9174
|
});
|
|
9173
9175
|
const changeStream = async code => {
|
|
9174
|
-
const res = await axios$2.get(`/
|
|
9176
|
+
const res = await axios$2.get(`/api/vms/v1/camera/getWebrtcUrls`, {
|
|
9175
9177
|
headers: {
|
|
9176
9178
|
token: sessionStorage.getItem("token") || ""
|
|
9177
9179
|
},
|
|
@@ -9394,7 +9396,7 @@ var Tree = defineComponent({
|
|
|
9394
9396
|
});
|
|
9395
9397
|
const getQueryGroup = async params => {
|
|
9396
9398
|
return new Promise(async resolve => {
|
|
9397
|
-
const res = await axios$2.get("/
|
|
9399
|
+
const res = await axios$2.get("/api/vms/v1/cameraGroup/tree", {
|
|
9398
9400
|
headers: {
|
|
9399
9401
|
token: sessionStorage.getItem("token") || ""
|
|
9400
9402
|
},
|
|
@@ -9412,7 +9414,7 @@ var Tree = defineComponent({
|
|
|
9412
9414
|
};
|
|
9413
9415
|
const getGroup = async () => {
|
|
9414
9416
|
return new Promise(async resolve => {
|
|
9415
|
-
const res = await axios$2.get("/
|
|
9417
|
+
const res = await axios$2.get("/api/vms/v1/cameraGroupType/findAll", {
|
|
9416
9418
|
headers: {
|
|
9417
9419
|
token: sessionStorage.getItem("token") || ""
|
|
9418
9420
|
}
|
|
@@ -9688,7 +9690,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9688
9690
|
showInfo.value = _prop.showInfo;
|
|
9689
9691
|
});
|
|
9690
9692
|
const videoMove = async direction => {
|
|
9691
|
-
await axios$2.get("/
|
|
9693
|
+
await axios$2.get("/api/vms/v1/control/hik/control", {
|
|
9692
9694
|
params: {
|
|
9693
9695
|
cameraUuid: _prop.camera,
|
|
9694
9696
|
command: direction
|
|
@@ -9713,7 +9715,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9713
9715
|
if (tcpcArr.length === 0) {
|
|
9714
9716
|
return;
|
|
9715
9717
|
}
|
|
9716
|
-
const res = await axios$2.post("/
|
|
9718
|
+
const res = await axios$2.post("/api/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
|
|
9717
9719
|
headers: {
|
|
9718
9720
|
token: sessionStorage.getItem("token")
|
|
9719
9721
|
}
|
|
@@ -9734,7 +9736,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9734
9736
|
const arr = infos.value.map(info => {
|
|
9735
9737
|
return {};
|
|
9736
9738
|
});
|
|
9737
|
-
const res = await axios$2.post("/
|
|
9739
|
+
const res = await axios$2.post("/api/vms/v1/cameraRelThing/getByParam", {
|
|
9738
9740
|
cameraUuid: uuid2
|
|
9739
9741
|
}, {
|
|
9740
9742
|
headers: {
|
|
@@ -9754,7 +9756,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9754
9756
|
};
|
|
9755
9757
|
const camera = ref({});
|
|
9756
9758
|
const getVideoDetail = async val => {
|
|
9757
|
-
const res = await axios$2.get(`/
|
|
9759
|
+
const res = await axios$2.get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9758
9760
|
headers: {
|
|
9759
9761
|
token: sessionStorage.getItem("token") || ""
|
|
9760
9762
|
}
|
|
@@ -9871,7 +9873,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9871
9873
|
immediate: true
|
|
9872
9874
|
});
|
|
9873
9875
|
const changeStream = async code => {
|
|
9874
|
-
const res = await axios$2.get(`/
|
|
9876
|
+
const res = await axios$2.get(`/api/vms/v1/camera/getWebrtcUrls`, {
|
|
9875
9877
|
headers: {
|
|
9876
9878
|
token: sessionStorage.getItem("token") || ""
|
|
9877
9879
|
},
|
|
@@ -10857,7 +10859,7 @@ const VideoPlayerV1 = defineComponent({
|
|
|
10857
10859
|
videoInfo2.value = camera;
|
|
10858
10860
|
init();
|
|
10859
10861
|
} else if (camera && typeof camera === "string") {
|
|
10860
|
-
const res = await axios$2.post(`/
|
|
10862
|
+
const res = await axios$2.post(`/api/sfvideo/v1/camera/getCameraByCameraId`, {
|
|
10861
10863
|
id: camera
|
|
10862
10864
|
}, {
|
|
10863
10865
|
headers: {
|
|
@@ -11657,7 +11659,7 @@ var index$3 = installComponent(PeopleSelect, "people-select");
|
|
|
11657
11659
|
|
|
11658
11660
|
const getParamList$1 = async data => {
|
|
11659
11661
|
const headers = getCommonHeaders();
|
|
11660
|
-
const res = await fetch("/
|
|
11662
|
+
const res = await fetch("/api/common/v1/param/group/list", {
|
|
11661
11663
|
method: "POST",
|
|
11662
11664
|
body: JSON.stringify(data),
|
|
11663
11665
|
headers
|
|
@@ -11666,7 +11668,7 @@ const getParamList$1 = async data => {
|
|
|
11666
11668
|
};
|
|
11667
11669
|
const getParamDefineList$1 = async groupId => {
|
|
11668
11670
|
const headers = getCommonHeaders();
|
|
11669
|
-
const res = await fetch(`/
|
|
11671
|
+
const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
11670
11672
|
method: "GET",
|
|
11671
11673
|
headers
|
|
11672
11674
|
});
|
|
@@ -11674,7 +11676,7 @@ const getParamDefineList$1 = async groupId => {
|
|
|
11674
11676
|
};
|
|
11675
11677
|
const batchSaveParamsValue$1 = async form => {
|
|
11676
11678
|
const headers = getCommonHeaders();
|
|
11677
|
-
const res = await fetch("/
|
|
11679
|
+
const res = await fetch("/api/common/v1/param/value/updateBatch", {
|
|
11678
11680
|
method: "POST",
|
|
11679
11681
|
headers,
|
|
11680
11682
|
body: JSON.stringify(form)
|
|
@@ -12466,7 +12468,7 @@ const ParamItem = defineComponent({
|
|
|
12466
12468
|
|
|
12467
12469
|
const getParamList = async data => {
|
|
12468
12470
|
const headers = getCommonHeaders();
|
|
12469
|
-
const res = await fetch("/
|
|
12471
|
+
const res = await fetch("/api/common/v1/param/group/list", {
|
|
12470
12472
|
method: "POST",
|
|
12471
12473
|
body: JSON.stringify(data),
|
|
12472
12474
|
headers
|
|
@@ -12475,7 +12477,7 @@ const getParamList = async data => {
|
|
|
12475
12477
|
};
|
|
12476
12478
|
const getParamDefineList = async groupId => {
|
|
12477
12479
|
const headers = getCommonHeaders();
|
|
12478
|
-
const res = await fetch(`/
|
|
12480
|
+
const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
12479
12481
|
method: "GET",
|
|
12480
12482
|
headers
|
|
12481
12483
|
});
|
|
@@ -12483,7 +12485,7 @@ const getParamDefineList = async groupId => {
|
|
|
12483
12485
|
};
|
|
12484
12486
|
const batchSaveParamsValue = async form => {
|
|
12485
12487
|
const headers = getCommonHeaders();
|
|
12486
|
-
const res = await fetch("/
|
|
12488
|
+
const res = await fetch("/api/common/v1/param/value/updateBatch", {
|
|
12487
12489
|
method: "POST",
|
|
12488
12490
|
headers,
|
|
12489
12491
|
body: JSON.stringify(form)
|
|
@@ -13138,7 +13140,7 @@ const SszComment = defineComponent({
|
|
|
13138
13140
|
// 评论api的前缀
|
|
13139
13141
|
baseUrl: {
|
|
13140
13142
|
type: String,
|
|
13141
|
-
default: "/
|
|
13143
|
+
default: "/api/taskcoordinationcenter/v2/tri/"
|
|
13142
13144
|
},
|
|
13143
13145
|
// 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
|
|
13144
13146
|
commentProps: {
|
|
@@ -13250,7 +13252,7 @@ function formatDataString(str) {
|
|
|
13250
13252
|
function request(question, streamCallback, doneCallback) {
|
|
13251
13253
|
const controller = new AbortController();
|
|
13252
13254
|
const signal = controller.signal;
|
|
13253
|
-
fetch("/
|
|
13255
|
+
fetch("/api/chat/v1/chat/chat", {
|
|
13254
13256
|
signal,
|
|
13255
13257
|
method: "POST",
|
|
13256
13258
|
headers: {
|
|
@@ -13367,7 +13369,7 @@ async function audioToText(file) {
|
|
|
13367
13369
|
const formData = new FormData();
|
|
13368
13370
|
formData.append("file", file);
|
|
13369
13371
|
formData.append("upload_id", "1");
|
|
13370
|
-
const [path] = await fetch("/
|
|
13372
|
+
const [path] = await fetch("/api/chat/v1/upload", {
|
|
13371
13373
|
// headers,
|
|
13372
13374
|
method: "POST",
|
|
13373
13375
|
body: formData
|
|
@@ -13378,7 +13380,7 @@ async function audioToText(file) {
|
|
|
13378
13380
|
}
|
|
13379
13381
|
const {
|
|
13380
13382
|
result
|
|
13381
|
-
} = await fetch(`/
|
|
13383
|
+
} = await fetch(`/api/chat/v1/translate?path=${path}&session_hash=1`, {
|
|
13382
13384
|
headers,
|
|
13383
13385
|
method: "POST"
|
|
13384
13386
|
}).then(res => res.json());
|