Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-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
刘怀志
pet-business-web
Commits
aecdc1c0
Commit
aecdc1c0
authored
Jun 28, 2023
by
小费同学阿
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码规范修复
parent
5bd237a7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
7 deletions
+23
-7
index.vue
src/components/Editor/index.vue
+1
-1
article-edit.vue
src/views/article-management/article-edit.vue
+1
-1
article-insert.vue
src/views/article-management/article-insert.vue
+1
-1
article-management.vue
src/views/article-management/article-management.vue
+20
-4
No files found.
src/components/Editor/index.vue
View file @
aecdc1c0
...
@@ -86,7 +86,7 @@ export default {
...
@@ -86,7 +86,7 @@ export default {
[
'image'
]
// 链接、图片、视频
[
'image'
]
// 链接、图片、视频
]
]
},
},
placeholder
:
'请输入内容'
,
placeholder
:
'请输入
文章
内容'
,
readOnly
:
this
.
readOnly
readOnly
:
this
.
readOnly
}
}
}
}
...
...
src/views/article-management/article-edit.vue
View file @
aecdc1c0
...
@@ -162,7 +162,7 @@ export default {
...
@@ -162,7 +162,7 @@ export default {
updateArticle
(
this
.
form
).
then
(
response
=>
{
updateArticle
(
this
.
form
).
then
(
response
=>
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'修改成功
!
'
message
:
'修改成功'
})
})
this
.
goBack
()
this
.
goBack
()
})
})
...
...
src/views/article-management/article-insert.vue
View file @
aecdc1c0
...
@@ -171,7 +171,7 @@ export default {
...
@@ -171,7 +171,7 @@ export default {
addArticle
(
this
.
form
).
then
(
response
=>
{
addArticle
(
this
.
form
).
then
(
response
=>
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'新增成功
!
'
message
:
'新增成功'
})
})
this
.
goBack
()
this
.
goBack
()
}).
finally
(
_
=>
{
}).
finally
(
_
=>
{
...
...
src/views/article-management/article-management.vue
View file @
aecdc1c0
...
@@ -15,11 +15,10 @@
...
@@ -15,11 +15,10 @@
</el-form-item>
</el-form-item>
<el-form-item
style=
"margin-left: 10px;"
prop=
"articleStatus"
>
<el-form-item
style=
"margin-left: 10px;"
prop=
"articleStatus"
>
<el-select
v-model
.
trim=
"queryParams.articleStatus"
clearable
placeholder=
"状态"
>
<el-select
v-model
.
trim=
"queryParams.articleStatus"
clearable
placeholder=
"状态"
>
<!--
<el-option
label=
"全部"
:value=
"null"
/>
-->
<el-option
<el-option
v-for=
"item in
dict.type.article_status
"
v-for=
"item in
articleStatusList
"
:key=
"item.value"
:key=
"item.value"
:label=
"item.label
.substring(1)
"
:label=
"item.label"
:value=
"item.value"
:value=
"item.value"
/>
/>
</el-select>
</el-select>
...
@@ -137,7 +136,9 @@
...
@@ -137,7 +136,9 @@
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"状态"
min
-
width
=
"60"
prop
=
"articleStatus"
show
-
overflow
-
tooltip
>
<
el
-
table
-
column
label
=
"状态"
min
-
width
=
"60"
prop
=
"articleStatus"
show
-
overflow
-
tooltip
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
span
:
style
=
"showStatus(scope.row.articleStatus) === '• 已上架' ? 'color: #67C23A' : 'color: #F56C6C'"
>
{{
showStatus
(
scope
.
row
.
articleStatus
)
||
'-'
}}
<
/span
>
<
span
:
style
=
"showStatus(scope.row.articleStatus) === '• 已上架' ? 'color: #67C23A' : 'color: #F56C6C'"
>
{{
showStatus
(
scope
.
row
.
articleStatus
)
||
'-'
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
min
-
width
=
"100"
>
<
el
-
table
-
column
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
min
-
width
=
"100"
>
...
@@ -262,6 +263,21 @@ export default {
...
@@ -262,6 +263,21 @@ export default {
dicts
:
[
'article_status'
],
dicts
:
[
'article_status'
],
data
()
{
data
()
{
return
{
return
{
// 文章状态列表
articleStatusList
:
[
{
label
:
'全部'
,
value
:
''
}
,
{
label
:
'已上架'
,
value
:
'0'
}
,
{
label
:
'已下架'
,
value
:
'1'
}
],
// tab激活
// tab激活
activeName
:
'article'
,
activeName
:
'article'
,
// 排序方式下拉框字典写死
// 排序方式下拉框字典写死
...
...
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