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
acd62fd6
Commit
acd62fd6
authored
Jul 16, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default Changelist
parent
4856df59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
21 deletions
+31
-21
oneCampsiteModal.vue
src/views/campsiteManage/modal/oneCampsiteModal.vue
+23
-15
Ueditor.vue
src/views/modal/Ueditor.vue
+8
-6
No files found.
src/views/campsiteManage/modal/oneCampsiteModal.vue
View file @
acd62fd6
...
@@ -79,14 +79,15 @@
...
@@ -79,14 +79,15 @@
<el-tabs
v-model=
"activeName2"
type=
"card"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName2"
type=
"card"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"营地详情"
name=
"first"
>
<el-tab-pane
label=
"营地详情"
name=
"first"
>
<!--
<Editor
v-if=
"activeName2=='first'"
@
input=
"handelContentIncrease"
:value=
"form.content"
:myQuillEditor=
"'myQuillEditorContent'"
:activeName2=
"activeName2"
></Editor>
-->
<!--
<Editor
v-if=
"activeName2=='first'"
@
input=
"handelContentIncrease"
:value=
"form.content"
:myQuillEditor=
"'myQuillEditorContent'"
:activeName2=
"activeName2"
></Editor>
-->
<div
class=
"editor-container"
>
<div
class=
"editor-container"
v-if=
"activeName2=='first'"
>
<UE
:defaultMsg=
defaultMsg
:config=
config
ref=
"ue
"
></UE>
<UE
:editorId=
"activeName2"
:defaultMsg=
"form.content"
:config=
config
ref=
"ue"
@
ready=
"editorReadyEvent
"
></UE>
</div>
</div>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"配套&收费"
name=
"second"
>
<el-tab-pane
label=
"配套&收费"
name=
"second"
>
<Editor
v-if=
"activeName2=='second'"
@
input=
"handelIntroduceIncrease"
:value=
"form.configure"
:myQuillEditor=
"'myQuillEditorIntroduce'"
:activeName2=
"activeName2"
></Editor>
<!--
<Editor
v-if=
"activeName2=='second'"
@
input=
"handelIntroduceIncrease"
:value=
"form.configure"
:myQuillEditor=
"'myQuillEditorIntroduce'"
:activeName2=
"activeName2"
></Editor>
-->
<div
class=
"editor-container"
v-if=
"activeName2=='second'"
>
<UE
:editorId=
"activeName2"
:defaultMsg=
"form.configure"
:config=
config
ref=
"ue"
@
ready=
"editorReadyEvent"
></UE>
</div>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<el-form-item></el-form-item>
<el-form-item></el-form-item>
...
@@ -103,6 +104,9 @@
...
@@ -103,6 +104,9 @@
</div>
</div>
</
template
>
</
template
>
<
style
>
<
style
>
textarea
{
display
:
none
;
}
.info
{
.info
{
border-radius
:
10px
;
border-radius
:
10px
;
line-height
:
20px
;
line-height
:
20px
;
...
@@ -157,8 +161,6 @@
...
@@ -157,8 +161,6 @@
initialFrameWidth
:
null
,
initialFrameWidth
:
null
,
initialFrameHeight
:
350
initialFrameHeight
:
350
},
},
isExist
:
false
,
//名称是否已存在
isExist
:
false
,
//名称是否已存在
campsiteObj
:
{},
//营地地址
campsiteObj
:
{},
//营地地址
departureList
:
[],
//出发地列表
departureList
:
[],
//出发地列表
...
@@ -180,10 +182,10 @@
...
@@ -180,10 +182,10 @@
address
:
undefined
,
//详细地址
address
:
undefined
,
//详细地址
latitude
:
undefined
,
latitude
:
undefined
,
longitude
:
undefined
,
longitude
:
undefined
,
content
:
undefined
,
//营地详情
content
:
''
,
//营地详情
concat
:
""
,
//联系人
concat
:
""
,
//联系人
logo
:
undefined
,
//封面图
logo
:
undefined
,
//封面图
configure
:
undefined
,
//配套&收费
configure
:
''
,
//配套&收费
campsiteTagListVos
:
[],
//营地类型
campsiteTagListVos
:
[],
//营地类型
carouse
:[],
//banner轮播
carouse
:[],
//banner轮播
},
},
...
@@ -312,9 +314,8 @@
...
@@ -312,9 +314,8 @@
latitude
:
this
.
campsiteObj
.
latitude
,
latitude
:
this
.
campsiteObj
.
latitude
,
longitude
:
this
.
campsiteObj
.
longitude
,
longitude
:
this
.
campsiteObj
.
longitude
,
};
};
console
.
log
(
content
)
console
.
log
(
params
);
console
.
log
(
params
);
//
this.isExistCampsiteShop("create", params);
this
.
isExistCampsiteShop
(
"create"
,
params
);
},
},
/**
/**
* 判断营地名称是否已存在
* 判断营地名称是否已存在
...
@@ -552,8 +553,15 @@
...
@@ -552,8 +553,15 @@
/**
/**
* 富文本 营地详情
* 富文本 营地详情
* */
* */
handelContentIncrease
(
step
){
editorReadyEvent
(
instance
){
this
.
form
.
content
=
step
;
let
t
=
this
;
instance
.
addListener
(
'contentChange'
,
()
=>
{
if
(
t
.
activeName2
==
"first"
){
t
.
form
.
content
=
instance
.
getContent
();
}
else
if
(
t
.
activeName2
==
"second"
){
t
.
form
.
configure
=
instance
.
getContent
();
}
});
},
},
/**
/**
* 删除banner
* 删除banner
...
@@ -607,10 +615,10 @@
...
@@ -607,10 +615,10 @@
address
:
undefined
,
//详细地址
address
:
undefined
,
//详细地址
latitude
:
undefined
,
latitude
:
undefined
,
longitude
:
undefined
,
longitude
:
undefined
,
content
:
undefined
,
//营地详情
content
:
''
,
//营地详情
concat
:
""
,
//联系人
concat
:
""
,
//联系人
logo
:
undefined
,
//封面图
logo
:
undefined
,
//封面图
configure
:
undefined
,
//配套&收费
configure
:
''
,
//配套&收费
campsiteTagListVos
:
[],
//营地类型
campsiteTagListVos
:
[],
//营地类型
carouse
:[],
//banner轮播
carouse
:[],
//banner轮播
};
};
...
...
src/views/modal/Ueditor.vue
View file @
acd62fd6
<
template
>
<
template
>
<div>
<div>
<script
id=
"editor
"
type=
"text/plain"
></script>
<script
:id=
"editorId
"
type=
"text/plain"
></script>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
name
:
'UE'
,
name
:
'UE'
,
data
()
{
data
()
{
return
{
return
{
editor
:
null
editor
:
null
,
}
}
},
},
props
:
{
props
:
{
...
@@ -17,13 +17,15 @@
...
@@ -17,13 +17,15 @@
},
},
config
:
{
config
:
{
type
:
Object
type
:
Object
}
},
editorId
:{}
},
},
mounted
()
{
mounted
()
{
debugger
const
_this
=
this
;
const
_this
=
this
;
this
.
editor
=
UE
.
getEditor
(
'editor'
,
this
.
config
);
// 初始化UE
this
.
editor
=
UE
.
getEditor
(
this
.
editorId
,
this
.
config
);
// 初始化UE
this
.
editor
.
addListener
(
"ready"
,
function
()
{
this
.
editor
.
addListener
(
"ready"
,
function
()
{
debugger
_this
.
editor
.
setContent
(
_this
.
defaultMsg
);
// 确保UE加载完成后,放入内容。
_this
.
editor
.
setContent
(
_this
.
defaultMsg
);
// 确保UE加载完成后,放入内容。
_this
.
$emit
(
'ready'
,
_this
.
editor
);
});
});
},
},
methods
:
{
methods
:
{
...
...
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