Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
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
youjj
cloud-platform-ui
Commits
92073324
Commit
92073324
authored
Jul 17, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通用设置:富文本编辑
parent
1d154180
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
13 deletions
+33
-13
generalSetting.vue
src/views/baseInfo/generalSetting.vue
+31
-11
ueditor.all.min.js
static/utf8-jsp/ueditor.all.min.js
+2
-2
No files found.
src/views/baseInfo/generalSetting.vue
View file @
92073324
...
...
@@ -57,9 +57,17 @@
<el-form-item
label=
"标识"
prop=
"type"
>
<el-input
type=
"number"
v-model
.
number=
"dialogFrom.type"
placeholder=
"1,2,3……"
></el-input>
</el-form-item>
<el-form-item
label=
"详情"
>
<Editor
@
input=
"handelIncrease"
:value=
"dialogFrom.value"
:myQuillEditor=
"'myQuillEditorContent'"
></Editor>
</el-form-item>
<el-tabs
v-model=
"activeName2"
type=
"card"
>
<el-tab-pane
label=
"详情"
name=
"first"
>
<!--<Editor v-if="activeName2=='first'" @input="handelContentIncrease" :value="form.content" :myQuillEditor="'myQuillEditorContent'" :activeName2="activeName2"></Editor>-->
<div
class=
"editor-container"
v-if=
"activeName2=='first'"
>
<UE
:editorId=
"activeName2"
:defaultMsg=
"dialogFrom.value"
:config=
config
ref=
"ue"
@
ready=
"editorReadyEvent"
></UE>
</div>
</el-tab-pane>
</el-tabs>
<!--<el-form-item label="详情">-->
<!--<Editor @input="handelIncrease" :value="dialogFrom.value" :myQuillEditor="'myQuillEditorContent'"></Editor>-->
<!--</el-form-item>-->
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancelHandel"
>
取 消
</el-button>
...
...
@@ -76,7 +84,8 @@
</
style
>
<
script
>
import
'static/css/uploadImg.css'
;
// 引入图片上传组件对话框
import
Editor
from
"../modal/editorTool"
;
//富文本
// import Editor from "../modal/editorTool";//富文本
import
UE
from
'../modal/Ueditor'
;
//百度ue富文本
import
{
formatDate
}
from
'utils/dateFormattor'
;
...
...
@@ -112,7 +121,8 @@
ElCol
,
ElRow
,
Element1
,
Editor
UE
// Editor
},
data
()
{
return
{
...
...
@@ -120,7 +130,12 @@
page
:
1
,
limit
:
20
},
config
:
{
initialFrameWidth
:
null
,
initialFrameHeight
:
350
},
tableKey
:
0
,
activeName2
:
""
,
modalTitle
:
"创建"
,
BASE_API
:
process
.
env
.
BASE_API
,
dialogVisible
:
false
,
//添加、编辑弹框
...
...
@@ -196,6 +211,7 @@
handleUpdate
(
row
)
{
this
.
modalTitle
=
'编辑'
;
this
.
dialogVisible
=
true
;
this
.
activeName2
=
"first"
;
this
.
cleanDialogFrom
();
this
.
dialogFrom
=
row
;
},
...
...
@@ -319,12 +335,16 @@
});
},
/**
* 富文本内容
* @param step
*/
handelIncrease
(
step
)
{
this
.
dialogFrom
.
value
=
step
;
}
* 富文本 营地详情
* */
editorReadyEvent
(
instance
){
let
t
=
this
;
instance
.
addListener
(
'contentChange'
,
()
=>
{
if
(
t
.
activeName2
==
"first"
){
t
.
dialogFrom
.
value
=
instance
.
getContent
();
}
});
},
}
}
</
script
>
static/utf8-jsp/ueditor.all.min.js
View file @
92073324
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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