Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
fanxing_new
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 802e4887
authored
4 years ago
by
潘建波
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ocx下载提示
1 parent
bfc48606
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
17 deletions
dist.zip
src/views/public/videoPlay.vue
src/views/resource/store_confs.vue
src/views/sceneManage/videoplay.vue
src/views/taskManage/editSet.vue
dist.zip
View file @
802e488
No preview for this file type
This diff is collapsed.
Click to expand it.
src/views/public/videoPlay.vue
View file @
802e488
...
...
@@ -96,7 +96,14 @@ export default {
file_type
:
"video_ocx"
};
this
.
$api
.
ops
.
downloadOcx
(
params
).
then
(
response
=>
{
location
.
href
=
response
.
data
.
file_url
;
if
(
response
.
ecode
)
{
this
.
$message
({
type
:
"error"
,
message
:
response
.
enode
});
}
else
{
location
.
href
=
response
.
file_url
;
}
});
}
else
{
this
.
$message
.
error
(
"视频控件加载失败请用IE10及以上版本打开!"
);
...
...
@@ -149,12 +156,16 @@ export default {
},
mounted
()
{
if
(
this
.
checkIE
())
{
let
isLoadingOcx
=
typeof
document
.
getElementById
(
"VionVideo"
).
GetVersion
()
===
"string"
?
true
:
false
;
if
(
!
isLoadingOcx
)
{
this
.
installOcxInfo
();
try
{
let
isLoadingOcx
=
typeof
document
.
getElementById
(
"VionVideo"
).
GetVersion
()
===
"string"
?
true
:
false
;
if
(
!
isLoadingOcx
)
{
this
.
installOcxInfo
();
}
}
catch
(
error
)
{
this
.
downloadOCx
();
}
}
},
...
...
This diff is collapsed.
Click to expand it.
src/views/resource/store_confs.vue
View file @
802e488
...
...
@@ -188,7 +188,19 @@ export default {
upData
.
append
(
"is_temp"
,
0
);
});
this
.
$api
.
resource
.
uploadStore
(
upData
).
then
(
res
=>
{
this
.
query
();
if
(
res
.
unid
)
{
this
.
addVisible
=
false
;
this
.
query
();
this
.
$message
({
type
:
"success"
,
message
:
"上传成功!"
});
}
else
{
this
.
$message
({
type
:
"error"
,
message
:
res
.
enote
});
}
});
},
uploadsuccess
()
{
...
...
This diff is collapsed.
Click to expand it.
src/views/sceneManage/videoplay.vue
View file @
802e488
...
...
@@ -113,12 +113,13 @@ export default {
},
mounted
()
{
this
.
initocx
();
// try {
// if (document.getElementById("VionVideo").GetVersion()) {
// }
// } catch (error) {
// this.downloadOCx();
// }
try
{
if
(
document
.
getElementById
(
"VionVideo"
).
GetVersion
())
{
console
.
log
(
"ocx已安装"
);
}
}
catch
(
error
)
{
this
.
downloadOCx
();
}
},
watch
:
{
ocxstate
(
val
)
{
...
...
This diff is collapsed.
Click to expand it.
src/views/taskManage/editSet.vue
View file @
802e488
...
...
@@ -205,7 +205,7 @@ export default {
var
freeArr
=
[];
this
.
freeList
.
forEach
(
ele
=>
{
if
(
ele
.
license_info
&&
ele
.
license_info
.
platType
)
{
this
.
platT
.
push
(
ele
.
license_info
.
platType
);
this
.
platT
.
set
(
ele
.
license_info
.
platType
);
}
});
}
...
...
@@ -328,8 +328,19 @@ export default {
editTask
(
data
)
{
data
.
is_send
=
this
.
sendstatus
(
data
);
this
.
$api
.
task
.
editTask
(
data
,
this
.
formData
.
task_id
).
then
(
res
=>
{
this
.
setvisible
=
false
;
this
.
$emit
(
"refresh"
);
if
(
res
.
ecode
==
"200"
)
{
this
.
setvisible
=
false
;
this
.
$emit
(
"refresh"
);
this
.
$message
({
message
:
res
.
enote
,
type
:
"success"
});
}
else
{
this
.
$message
({
message
:
res
.
enote
,
type
:
"error"
});
}
});
},
sendstatus
(
data
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment