Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-admin
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
吴迪
gs1-admin
Commits
e41eeacc
Commit
e41eeacc
authored
Jan 23, 2022
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台新增预览功能
parent
3380b42e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
10 deletions
+45
-10
news.vue
src/views/modules/application/news.vue
+14
-1
indexcarouselmanage.vue
src/views/modules/info/indexcarouselmanage.vue
+2
-7
cases.vue
src/views/modules/standard/cases.vue
+14
-1
partners.vue
src/views/modules/standard/partners.vue
+15
-1
No files found.
src/views/modules/application/news.vue
View file @
e41eeacc
...
...
@@ -158,7 +158,7 @@
<el-button
v-if=
"isAuth('application:news:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('application:news:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('application:news:check')"
/>
<el-button
v-if=
"isAuth('application:news:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id,true
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('application:news:info')"
type=
"text"
size=
"small"
@
click=
"
previewHandle(scope.row
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('application:news:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('application:news:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
</
template
>
...
...
@@ -295,6 +295,19 @@ export default {
selectionChangeHandle
(
val
)
{
this
.
dataListSelections
=
val
},
// 预览
previewHandle
(
info
)
{
console
.
log
(
info
,
'预览'
);
let
url
;
if
(
!
info
.
directpath
||
info
.
directpath
===
null
)
{
url
=
`
${
this
.
$store
.
state
.
config
.
urls
}
/News/msg?id=
${
info
.
id
}
`
;
}
else
if
(
/^
\/
/
.
test
(
info
.
directpath
))
{
url
=
`
${
this
.
$store
.
state
.
config
.
urls
}${
info
.
directpath
}
`
;
}
else
{
url
=
info
.
directpath
;
}
window
.
open
(
url
,
'_blank'
);
},
// 新增 / 修改
addOrUpdateHandle
(
id
,
showInfo
)
{
this
.
addOrUpdateVisible
=
true
...
...
src/views/modules/info/indexcarouselmanage.vue
View file @
e41eeacc
...
...
@@ -269,13 +269,8 @@ export default {
})
},
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/home?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
directpath
,
'_blank'
)
}
console
.
log
(
data
,
'datadatadata'
);
window
.
open
(
`
${
this
.
$store
.
state
.
config
.
urls
}
/home?indexCarouselManageId=
${
data
.
id
}
`
,
'_blank'
)
},
// 删除
deleteHandle
(
id
)
{
...
...
src/views/modules/standard/cases.vue
View file @
e41eeacc
...
...
@@ -209,7 +209,7 @@
v-if=
"isAuth('standard:cases:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id, true
)"
@
click=
"
previewHandle(scope.row
)"
>
预览
</el-button
>
<el-button
...
...
@@ -390,6 +390,19 @@ export default {
selectionChangeHandle
(
val
)
{
this
.
dataListSelections
=
val
;
},
// 预览
previewHandle
(
info
)
{
console
.
log
(
info
,
'预览'
);
let
url
;
if
(
!
info
.
directpath
||
info
.
directpath
===
null
)
{
url
=
`
${
this
.
$store
.
state
.
config
.
urls
}
/Service/Partners/caseMsg?id=
${
info
.
id
}
`
;
}
else
if
(
/^
\/
/
.
test
(
info
.
directpath
))
{
url
=
`
${
this
.
$store
.
state
.
config
.
urls
}${
info
.
directpath
}
`
;
}
else
{
url
=
info
.
directpath
;
}
window
.
open
(
url
,
'_blank'
);
},
// 新增 / 修改
addOrUpdateHandle
(
id
,
showInfo
)
{
this
.
addOrUpdateVisible
=
true
;
...
...
src/views/modules/standard/partners.vue
View file @
e41eeacc
...
...
@@ -232,7 +232,7 @@
v-if=
"isAuth('standard:partners:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id, true
)"
@
click=
"
previewHandle(scope.row
)"
>
预览
</el-button
>
<el-button
...
...
@@ -437,6 +437,20 @@ export default {
selectionChangeHandle
(
val
)
{
this
.
dataListSelections
=
val
;
},
// 预览
previewHandle
(
info
)
{
console
.
log
(
info
,
'预览'
);
let
url
;
if
(
!
info
.
directpath
||
info
.
directpath
===
null
)
{
url
=
`
${
this
.
$store
.
state
.
config
.
urls
}
/Service/Partners/content?id=
${
info
.
id
}
`
;
}
else
if
(
/^
\/
/
.
test
(
info
.
directpath
))
{
url
=
`
${
this
.
$store
.
state
.
config
.
urls
}${
info
.
directpath
}
`
;
}
else
{
url
=
info
.
directpath
;
}
window
.
open
(
url
,
'_blank'
);
},
// 新增 / 修改
addOrUpdateHandle
(
id
,
showInfo
)
{
this
.
addOrUpdateVisible
=
true
;
...
...
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