Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
digital-construction
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张牧越
digital-construction
Commits
2c0af2a2
Commit
2c0af2a2
authored
Jul 28, 2023
by
张牧越
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
df576b3a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
7 deletions
+5
-7
.env.development
.env.development
+1
-1
Index.vue
src/components/supervisory/Index.vue
+4
-4
noloadingRequest.js
src/utils/noloadingRequest.js
+0
-1
request.js
src/utils/request.js
+0
-1
No files found.
.env.development
View file @
2c0af2a2
NODE_ENV = "development"
Mock: true
VUE_APP_API_URL = "http:///
yth.vnet.io
"
VUE_APP_API_URL = "http:///
192.168.0.180:8002
"
src/components/supervisory/Index.vue
View file @
2c0af2a2
...
...
@@ -542,7 +542,7 @@ export default {
})
.
flat
();
allVideoIdArray
=
allVideoIdArray
.
slice
(
0
,
this
.
activeSplice
);
allVideoIdArray
.
map
((
id
,
index
)
=>
{
allVideoIdArray
.
map
((
id
)
=>
{
getVideoLiveAddressUrl
(
id
).
then
((
res
)
=>
{
if
(
res
.
data
.
live_address_url
)
{
this
.
cameraList
.
push
({
...
...
@@ -553,7 +553,7 @@ export default {
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
const
myVideoDiv
=
document
.
getElementById
(
`video-container-
${
index
+
1
}
`
`video-container-
${
this
.
cameraList
.
length
}
`
);
myVideoDiv
.
innerHTML
=
`<video
id="singleVideo
${
ts
}
"
...
...
@@ -577,13 +577,13 @@ export default {
});
this
.
createFullScreenBtn
(
singlePlayer
,
`#video-out-container-
${
index
+
1
}
`
`#video-out-container-
${
this
.
cameraList
.
length
}
`
);
this
.
$nextTick
(()
=>
{
singlePlayer
.
play
();
});
this
.
cameraList
[
index
].
player
=
singlePlayer
;
this
.
cameraList
[
this
.
cameraList
.
length
].
player
=
singlePlayer
;
this
.
$forceUpdate
();
});
},
500
);
...
...
src/utils/noloadingRequest.js
View file @
2c0af2a2
...
...
@@ -18,7 +18,6 @@ const getLocationParams = (keyWords) => {
};
const
noLoadingrequest
=
axios
.
create
({
withCredentials
:
false
,
baseURL
:
getLocationParams
(
"api_type"
)
?
process
.
env
.
VUE_APP_API_URL
:
''
,
})
noLoadingrequest
.
interceptors
.
request
.
use
(
...
...
src/utils/request.js
View file @
2c0af2a2
...
...
@@ -54,7 +54,6 @@ var hideLoading = _.debounce(() => {
const
request
=
axios
.
create
({
withCredentials
:
false
,
baseURL
:
getLocationParams
(
"api_type"
)
?
process
.
env
.
VUE_APP_API_URL
:
''
,
})
request
.
interceptors
.
request
.
use
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment