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
ebd5ba7e
Commit
ebd5ba7e
authored
Aug 23, 2023
by
陈明豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
4a4cbd92
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
article-edit.vue
src/views/article-management/article-edit.vue
+8
-6
article-insert.vue
src/views/article-management/article-insert.vue
+8
-6
article-management.vue
src/views/article-management/article-management.vue
+1
-1
No files found.
src/views/article-management/article-edit.vue
View file @
ebd5ba7e
...
...
@@ -48,15 +48,17 @@
</div>
</el-form-item>
<el-form-item
label=
"文章内容"
prop=
"articleContent"
>
<editor
v-model=
"form.articleContent"
style=
"height: 192px;"
/>
<editor
v-model=
"form.articleContent"
min-height=
"200"
/>
</el-form-item>
<el-form-item>
<div>
<el-button
class=
"queryBtn"
icon=
"el-icon-check"
@
click=
"submitForm"
>
提交
</el-button>
<el-button
class=
"resetBtn"
icon=
"el-icon-back"
@
click=
"goBack"
>
返回
</el-button>
</div>
</el-form-item>
</el-form>
</div>
</div>
<div
class=
"dialog-footer"
>
<el-button
class=
"queryBtn"
icon=
"el-icon-check"
@
click=
"submitForm"
>
提交
</el-button>
<el-button
class=
"resetBtn"
icon=
"el-icon-back"
@
click=
"goBack"
>
返回
</el-button>
</div>
</div>
</el-card>
...
...
@@ -89,7 +91,7 @@ export default {
const
contentNotNull
=
(
rule
,
value
,
callback
)
=>
{
const
contentValue
=
html2Text
(
value
)
if
(
contentValue
.
length
===
0
)
{
callback
(
new
Error
(
'请输入
内容详情
'
))
callback
(
new
Error
(
'请输入
文章内容
'
))
}
else
{
callback
()
}
...
...
src/views/article-management/article-insert.vue
View file @
ebd5ba7e
...
...
@@ -52,17 +52,19 @@
<el-form-item
label=
"文章内容"
prop=
"articleContent"
>
<editor
v-model
.
trim=
"form.articleContent"
style=
"height: 192px;
"
min-height=
"200
"
@
change=
"changeQuillEditor('articleContent')"
/>
</el-form-item>
<el-form-item>
<div>
<el-button
:loading=
"submitLoading"
class=
"queryBtn"
icon=
"el-icon-check"
@
click=
"submitForm"
>
提交
</el-button>
<el-button
class=
"resetBtn"
icon=
"el-icon-back"
@
click=
"goBack"
>
返回
</el-button>
</div>
</el-form-item>
</el-form>
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
:loading=
"submitLoading"
class=
"queryBtn"
icon=
"el-icon-check"
@
click=
"submitForm"
>
提交
</el-button>
<el-button
class=
"resetBtn"
icon=
"el-icon-back"
@
click=
"goBack"
>
返回
</el-button>
</div>
</div>
</el-card>
...
...
@@ -90,7 +92,7 @@ export default {
const
contentNotNull
=
(
rule
,
value
,
callback
)
=>
{
const
contentValue
=
html2Text
(
value
)
if
((
contentValue
.
length
===
0
||
contentValue
.
trim
().
length
===
0
)
&&
!
value
.
includes
(
'img'
))
{
callback
(
new
Error
(
'请输入
内容详情
'
))
callback
(
new
Error
(
'请输入
文章内容
'
))
}
else
{
callback
()
}
...
...
src/views/article-management/article-management.vue
View file @
ebd5ba7e
...
...
@@ -138,7 +138,7 @@
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
min
-
width
=
"1
0
0"
>
<
el
-
table
-
column
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
min
-
width
=
"1
2
0"
>
<
template
slot
-
scope
=
"scope"
>
<
div
style
=
"display: flex;"
>
<
div
style
=
"padding-right: 20px;"
>
...
...
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