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
5ec84605
Commit
5ec84605
authored
Jan 26, 2022
by
Lyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情面包屑bug
parent
def5e0fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
20 deletions
+20
-20
news-add-or-update.vue
src/views/modules/application/news-add-or-update.vue
+9
-9
news.vue
src/views/modules/application/news.vue
+10
-10
newtopic.vue
src/views/modules/info/newtopic.vue
+1
-1
No files found.
src/views/modules/application/news-add-or-update.vue
View file @
5ec84605
...
@@ -106,16 +106,16 @@
...
@@ -106,16 +106,16 @@
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-upload
<el-upload
v-show=
"!showInfo"
v-show=
"!showInfo"
class=
"avatar-uploader"
class=
"avatar-uploader
avatar
"
action=
""
action=
""
:show-file-list=
"false"
:show-file-list=
"false"
:http-request=
"Upload"
:http-request=
"Upload"
:before-upload=
"beforeAvatarUpload"
:before-upload=
"beforeAvatarUpload"
>
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
"
avatar
"
/>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
""
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar"
/></p>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar
2
"
/></p>
</el-form-item>
</el-form-item>
<el-form-item
label=
"简介:"
prop=
"brief"
>
<el-form-item
label=
"简介:"
prop=
"brief"
>
...
@@ -204,13 +204,13 @@ export default {
...
@@ -204,13 +204,13 @@ export default {
},
},
piclevelList
,
piclevelList
,
id
:
[],
id
:
[],
title
:
""
,
title
:
''
,
className
:
""
,
className
:
''
,
cclassName
:
""
,
cclassName
:
''
}
;
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
classidList
)
;
console
.
log
(
this
.
classidList
)
},
},
methods
:
{
methods
:
{
getSelectName
(
list
,
id
)
{
getSelectName
(
list
,
id
)
{
...
...
src/views/modules/application/news.vue
View file @
5ec84605
...
@@ -297,16 +297,16 @@ export default {
...
@@ -297,16 +297,16 @@ export default {
},
},
// 预览
// 预览
previewHandle
(
info
)
{
previewHandle
(
info
)
{
console
.
log
(
info
,
'预览'
)
;
console
.
log
(
info
,
'预览'
)
let
url
;
let
url
if
(
!
info
.
directpath
||
info
.
directpath
===
null
)
{
if
(
!
info
.
directpath
||
info
.
directpath
===
null
)
{
url
=
`
${
this
.
$store
.
state
.
config
.
urls
}
/News/msg?id=
${
info
.
id
}
`
;
url
=
`
${
this
.
$store
.
state
.
config
.
urls
}
/News/msg?id=
${
info
.
id
}
`
}
else
if
(
/^
\/
/
.
test
(
info
.
directpath
))
{
}
else
if
(
/^
\/
/
.
test
(
info
.
directpath
))
{
url
=
`
${
this
.
$store
.
state
.
config
.
urls
}${
info
.
directpath
}
`
;
url
=
`
${
this
.
$store
.
state
.
config
.
urls
}${
info
.
directpath
}
`
}
else
{
}
else
{
url
=
info
.
directpath
;
url
=
info
.
directpath
}
}
window
.
open
(
url
,
'_blank'
)
;
window
.
open
(
url
,
'_blank'
)
},
},
// 新增 / 修改
// 新增 / 修改
addOrUpdateHandle
(
id
,
showInfo
)
{
addOrUpdateHandle
(
id
,
showInfo
)
{
...
@@ -337,8 +337,8 @@ export default {
...
@@ -337,8 +337,8 @@ export default {
type
:
'success'
,
type
:
'success'
,
duration
:
1500
,
duration
:
1500
,
onClose
:
()
=>
{
onClose
:
()
=>
{
this
.
getDataList
()
this
.
getDataList
()
}
}
})
})
}
else
{
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
$message
.
error
(
data
.
msg
)
...
@@ -373,8 +373,8 @@ export default {
...
@@ -373,8 +373,8 @@ export default {
type
:
'success'
,
type
:
'success'
,
duration
:
1500
,
duration
:
1500
,
onClose
:
()
=>
{
onClose
:
()
=>
{
this
.
getDataList
()
this
.
getDataList
()
}
}
})
})
}
else
{
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
$message
.
error
(
data
.
msg
)
...
...
src/views/modules/info/newtopic.vue
View file @
5ec84605
...
@@ -298,7 +298,7 @@ export default {
...
@@ -298,7 +298,7 @@ export default {
method
:
'post'
,
method
:
'post'
,
data
:
this
.
$http
.
adornData
({
data
:
this
.
$http
.
adornData
({
'id'
:
id
,
'id'
:
id
,
'
status
'
:
status
'
checkflag
'
:
status
})
})
}).
then
(({
data
})
=>
{
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
...
...
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