Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
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
张伯涛
tea-resources-web
Commits
d4a13f83
Commit
d4a13f83
authored
May 15, 2024
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
parent
1ada3624
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
logo2.png
src/assets/image/logo2.png
+0
-0
Logo.vue
src/layout/components/Sidebar/Logo.vue
+5
-3
index.vue
src/views/contentManagement/newsInformation/info/index.vue
+11
-3
No files found.
src/assets/image/logo2.png
0 → 100644
View file @
d4a13f83
2.52 KB
src/layout/components/Sidebar/Logo.vue
View file @
d4a13f83
...
...
@@ -11,7 +11,7 @@
<router-link
key=
"expand"
class=
"sidebar-logo-link"
to=
"/"
>
<div
class=
"sidebar-logoTitle"
>
<div
class=
"sidebar-logoRow"
><img
:src=
"logo"
class=
"sidebar-logo"
></div>
<div
class=
"sidebar-title"
>
{{
title
}}
</div>
<div
class=
"sidebar-title
title-current
"
>
{{
title
}}
</div>
</div>
</router-link>
</transition>
...
...
@@ -41,7 +41,7 @@ export default {
// eslint-disable-next-line vue/return-in-computed-property
logo
()
{
if
(
!
localStorage
.
getItem
(
'theme'
)
||
localStorage
.
getItem
(
'theme'
)
===
'1'
)
{
return
require
(
'@/assets/image/
menuLogo
.png'
)
return
require
(
'@/assets/image/
logo2
.png'
)
}
else
if
(
localStorage
.
getItem
(
'theme'
)
===
'2'
)
{
return
require
(
'@/assets/themeBImage/menuLogo.png'
)
}
else
if
(
localStorage
.
getItem
(
'theme'
)
===
'3'
)
{
...
...
@@ -64,5 +64,7 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.sidebar-logo-container
.sidebar-logo-link
.sidebar-title.title-current
{
color
:
#fff
!
important
}
</
style
>
src/views/contentManagement/newsInformation/info/index.vue
View file @
d4a13f83
...
...
@@ -144,7 +144,7 @@
<div
class=
"btn-box"
>
<el-button
v-if=
"controls.isOperation !== '3'"
style=
"width: 80px; height: 40px;font-size: 16px; width: 138px;height: 38px "
@
click=
"submit"
>
保存
</el-button>
<el-button
v-if=
"controls.isOperation !== '3'"
style=
"width: 80px; height: 40px;font-size: 16px; width: 138px;height: 38px "
type=
"primary"
@
click=
"publish"
>
发布
<el-button
v-if=
"controls.isOperation !== '3'"
style=
"width: 80px; height: 40px;font-size: 16px; width: 138px;height: 38px "
type=
"primary"
:loading=
"pubLoading"
@
click=
"publish"
>
发布
</el-button>
<el-button
v-if=
"controls.isOperation === '3'"
style=
"width: 80px; height: 40px;font-size: 16px; width: 138px;height: 38px "
@
click=
"goBack"
>
返回
</el-button>
...
...
@@ -166,7 +166,7 @@ export default {
data
()
{
return
{
title
:
'新增新闻'
,
pubLoading
:
false
,
businessId
:
null
,
// 变更字段存储数组
formChanges
:
[],
...
...
@@ -387,7 +387,7 @@ export default {
// 拷贝form
const
form
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
// 转换时间格式
this
.
pubLoading
=
true
this
.
$refs
.
deviceFormRef
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
businessId
!==
undefined
)
{
...
...
@@ -399,10 +399,13 @@ export default {
message
:
'保存成功'
,
type
:
'success'
})
this
.
pubLoading
=
false
this
.
$router
.
push
({
path
:
'/contentManagement/newsInformation/index'
})
}
}).
catch
(()
=>
{
this
.
pubLoading
=
false
})
}
else
{
form
.
flag
=
'1'
...
...
@@ -412,12 +415,17 @@ export default {
message
:
'保存成功'
,
type
:
'success'
})
this
.
pubLoading
=
false
this
.
$router
.
push
({
path
:
'/contentManagement/newsInformation/index'
})
}
}).
catch
(()
=>
{
this
.
pubLoading
=
false
})
}
}
else
{
this
.
pubLoading
=
false
}
})
}
...
...
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