Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
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
fukai
vue-gjjs
Commits
93bf2a36
Commit
93bf2a36
authored
Jul 21, 2020
by
傅凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改面含查看
parent
abae1376
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
6 deletions
+56
-6
PaperShow.vue
src/views/Business/Trnrel/Trndtl/PaperShow.vue
+48
-0
index.vue
src/views/Business/Trnrel/Trndtl/index.vue
+5
-2
Doc.vue
src/views/Public/Doc.vue
+3
-4
No files found.
src/views/Business/Trnrel/Trndtl/PaperShow.vue
0 → 100644
View file @
93bf2a36
<
template
>
<span>
<el-button
type=
"button"
size=
"mini"
@
click=
"showDocOrMsg"
>
显示
</el-button>
<el-dialog
title=
"机构选择"
:visible
.
sync=
"dialogOpen"
>
<div
v-if=
"srcmsg"
>
<span>
{{
srcmsg
}}
</span>
</div>
<!--
<div
v-if=
"isdoc"
>
<embed
:src=
"realdocpath"
/>
</div>
-->
</el-dialog>
</span>
</
template
>
<
script
>
export
default
{
props
:[
'path'
],
data
(){
return
{
dialogOpen
:
false
,
srcmsg
:
""
}
},
methods
:{
showDocOrMsg
(){
this
.
dialogOpen
=
true
if
(
!
this
.
isdoc
)
{
//发出异步请求
}
else
window
.
open
(
this
.
realdocpath
)
}
},
computed
:{
isdoc
(){
if
(
this
.
path
.
endsWith
(
".pdf"
))
return
true
else
return
false
},
realdocpath
(){
return
'/gjjs/files'
+
this
.
path
}
}
}
</
script
>
\ No newline at end of file
src/views/Business/Trnrel/Trndtl/index.vue
View file @
93bf2a36
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
label=
"操作"
label=
"操作"
>
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<
el-button
size=
"mini"
@
click=
"onRecpanButshw(scope.row)"
>
显示
</el-button
>
<
m-pager
:path=
"scope.row.docpth"
/
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -276,9 +276,12 @@
...
@@ -276,9 +276,12 @@
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
CodeTable
from
"~/config/CodeTable"
import
CodeTable
from
"~/config/CodeTable"
import
Utils
from
"~/utils"
import
Utils
from
"~/utils"
import
PaperShow
from
"./PaperShow"
export
default
{
export
default
{
components
:{
"m-pager"
:
PaperShow
},
data
(){
data
(){
return
{
return
{
codes
:{
codes
:{
...
...
src/views/Public/Doc.vue
View file @
93bf2a36
...
@@ -58,9 +58,7 @@ export default {
...
@@ -58,9 +58,7 @@ export default {
if
(
rtnmsg
.
code
==
SUCCESS
)
{
if
(
rtnmsg
.
code
==
SUCCESS
)
{
if
(
cortyp
==
'SWT'
||
cortyp
==
'FMT'
||
cortyp
==
'CMT'
)
{
if
(
cortyp
==
'SWT'
||
cortyp
==
'FMT'
||
cortyp
==
'CMT'
)
{
let
viewurl
=
"/gjjs/files"
+
rtnmsg
.
data
.
setmod_msgmod_docpth
;
let
viewurl
=
"/gjjs/files"
+
rtnmsg
.
data
.
setmod_msgmod_docpth
;
console
.
log
(
viewurl
)
alert
(
viewurl
)
window
.
location
.
href
=
viewurl
window
.
open
(
viewurl
,
'newwindow'
,
'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
window
.
open
(
viewurl
,
'newwindow'
,
'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
}
}
else
if
(
cortyp
==
'ELC'
)
else
if
(
cortyp
==
'ELC'
)
...
@@ -72,7 +70,8 @@ export default {
...
@@ -72,7 +70,8 @@ export default {
}
}
else
{
else
{
let
url
=
"/gjjs/files"
+
rtnmsg
.
data
.
trnmod_trndoc_docpth
;
let
url
=
"/gjjs/files"
+
rtnmsg
.
data
.
trnmod_trndoc_docpth
;
console
.
log
(
url
)
//console.log(url)
window
.
open
(
url
)
// window.location.href = url
// window.location.href = url
// let url = rtnmsg.data.trndoc_docpth;
// let url = rtnmsg.data.trndoc_docpth;
// let viewurl = "/psbcfront/pdfjs/web/viewer.html";
// let viewurl = "/psbcfront/pdfjs/web/viewer.html";
...
...
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