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
dc39ffc7
Commit
dc39ffc7
authored
Jul 26, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:创建商品修改输入框
parent
29f9664c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
src/views/goods/create.vue
src/views/goods/create.vue
+10
-5
No files found.
src/views/goods/create.vue
View file @
dc39ffc7
...
@@ -50,7 +50,12 @@
...
@@ -50,7 +50,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>
...
@@ -109,7 +114,7 @@
...
@@ -109,7 +114,7 @@
<
script
>
<
script
>
import
{
publishGoods
,
listCategories
}
from
'
@/api/business/goods
'
import
{
publishGoods
,
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
'
...
@@ -130,8 +135,8 @@ export default {
...
@@ -130,8 +135,8 @@ export default {
attributes
:
[],
attributes
:
[],
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: ['advlist anchor autolink autosave code codesample colorpicker colorpicker contextmenu directionality emoticons fullscreen hr image imagetools importcss insertdatetime link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount'],
plugins: ['advlist anchor autolink autosave code codesample colorpicker colorpicker contextmenu directionality emoticons fullscreen hr image imagetools importcss insertdatetime link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount'],
...
@@ -145,7 +150,7 @@ export default {
...
@@ -145,7 +150,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