Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
cb68e0b3
Commit
cb68e0b3
authored
Jul 25, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:优化编辑输入详情内容
parent
0f8699bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
src/views/goods/edit.vue
src/views/goods/edit.vue
+10
-5
No files found.
src/views/goods/edit.vue
View file @
cb68e0b3
...
@@ -46,7 +46,12 @@
...
@@ -46,7 +46,12 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"商品详细介绍"
>
<el-form-item
label=
"商品详细介绍"
>
<editor
:init=
"editorInit"
:style=
"{'min-height':'800px' }"
v-model=
"goods.detail"
/>
<!-- <editor :init="editorInit" :style="{'min-height':'800px' }" v-model="goods.detail"/>-->
<el-input
v-model=
"goods.detail"
:rows=
"10"
type=
"textarea"
placeholder=
"请输入详情"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-card>
</el-card>
...
@@ -98,7 +103,7 @@
...
@@ -98,7 +103,7 @@
<
script
>
<
script
>
import
{
detailGoods
,
editGoods
,
listCategories
}
from
'
@/api/business/goods
'
import
{
detailGoods
,
editGoods
,
listCategories
}
from
'
@/api/business/goods
'
import
{
createStorage
,
uploadPath
}
from
'
@/api/business/storage
'
import
{
uploadPath
}
from
'
@/api/business/storage
'
import
Editor
from
'
@tinymce/tinymce-vue
'
import
Editor
from
'
@tinymce/tinymce-vue
'
import
{
MessageBox
}
from
'
element-ui
'
import
{
MessageBox
}
from
'
element-ui
'
import
{
getToken
}
from
'
@/utils/auth
'
import
{
getToken
}
from
'
@/utils/auth
'
...
@@ -119,8 +124,8 @@ export default {
...
@@ -119,8 +124,8 @@ export default {
goods
:
{
images
:
[]
},
goods
:
{
images
:
[]
},
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
'
商品名称不能为空
'
,
trigger
:
'
blur
'
}]
name
:
[{
required
:
true
,
message
:
'
商品名称不能为空
'
,
trigger
:
'
blur
'
}]
}
,
}
editorInit
:
{
/*
editorInit: {
language: 'zh_CN',
language: 'zh_CN',
convert_urls: false,
convert_urls: false,
plugins: [
plugins: [
...
@@ -141,7 +146,7 @@ export default {
...
@@ -141,7 +146,7 @@ export default {
failure('上传失败,请重新上传')
failure('上传失败,请重新上传')
})
})
}
}
}
}
*/
}
}
},
},
computed
:
{
computed
:
{
...
...
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