Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
0f49b3f6
Commit
0f49b3f6
authored
May 13, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
91a210fc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
24 deletions
+25
-24
UE.vue
src/components/global/UE.vue
+18
-17
CustomPage.vue
src/components/sallCenter/CustomPage.vue
+6
-6
zh-cn.js
static/UE/lang/zh-cn/zh-cn.js
+1
-1
No files found.
src/components/global/UE.vue
View file @
0f49b3f6
...
...
@@ -18,7 +18,7 @@
return
{
id
:
'editor'
+
(
Math
.
floor
((
Math
.
random
()
*
10000
)
+
1
)),
editor
:
null
,
changeState
:
false
,
changeState
:
false
,
isInputChange
:
false
,
tempContent
:
this
.
defaultMsg
}
...
...
@@ -66,7 +66,23 @@
},
loadUe
()
{
const
_this
=
this
;
UE
.
registerUI
(
'appinsertimage'
,
(
editor
,
uiName
)
=>
{
return
new
UE
.
ui
.
Button
({
name
:
uiName
,
title
:
'插入图片'
,
//添加额外样式,指定icon图标,这里默认使用一个重复的icon
cssRules
:
'background-position: -381px 0px;'
,
onclick
()
{
self
.
editor
=
editor
;
_this
.
changeState
=
true
;
},
});
});
this
.
editor
=
UE
.
getEditor
(
this
.
id
,
this
.
config
);
// 初始化UE
let
self
=
this
;
this
.
editor
.
addListener
(
"ready"
,
function
()
{
_this
.
editor
.
setContent
(
_this
.
defaultMsg
);
// 确保UE加载完成后,放入内容。
});
...
...
@@ -78,29 +94,14 @@
});
this
.
editor
.
addListener
(
'keyup'
,
editor
=>
{
this
.
isInputChange
=
false
;
var
str
=
_this
.
editor
.
getContent
();
_this
.
$emit
(
'input'
,
_this
.
editor
.
getContent
());
});
this
.
editor
.
addListener
(
'contentChange'
,
editor
=>
{
this
.
isInputChange
=
false
;
var
str
=
_this
.
editor
.
getContent
();
_this
.
$emit
(
'input'
,
_this
.
editor
.
getContent
());
});
let
self
=
this
;
UE
.
registerUI
(
'appinsertimage'
,
(
editor
,
uiName
)
=>
{
return
new
UE
.
ui
.
Button
({
name
:
uiName
,
title
:
'插入图片'
,
//添加额外样式,指定icon图标,这里默认使用一个重复的icon
cssRules
:
'background-position: -381px 0px;'
,
onclick
()
{
self
.
ue
=
editor
_this
.
isInputChange
=
true
;
_this
.
changeState
=
true
;
},
});
});
}
},
destroyed
()
{
...
...
src/components/sallCenter/CustomPage.vue
View file @
0f49b3f6
...
...
@@ -168,12 +168,12 @@
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
jsonData
=
res
.
data
.
data
;
this
.
addMsg
.
Id
=
jsonData
.
Id
;
this
.
addMsg
.
PageName
=
jsonData
.
PageName
;
this
.
addMsg
.
IsUse
=
jsonData
.
IsUse
;
this
.
addMsg
.
IsShowNav
=
jsonData
.
IsShowNav
;
this
.
addMsg
.
IsHome
=
jsonData
.
IsHome
;
this
.
addMsg
.
DetailsList
=
jsonData
.
DetailsList
;
this
.
addMsg
.
Id
=
jsonData
.
Id
;
this
.
addMsg
.
PageName
=
jsonData
.
PageName
;
this
.
addMsg
.
IsUse
=
jsonData
.
IsUse
;
this
.
addMsg
.
IsShowNav
=
jsonData
.
IsShowNav
;
this
.
addMsg
.
IsHome
=
jsonData
.
IsHome
;
this
.
addMsg
.
DetailsList
=
jsonData
.
DetailsList
;
this
.
CustomIsShowAdd
=
false
;
}
else
{
this
.
Info
(
res
.
data
.
message
);
...
...
static/UE/lang/zh-cn/zh-cn.js
View file @
0f49b3f6
...
...
@@ -664,6 +664,6 @@ UE.I18N['zh-cn'] = {
},
'autosave'
:
{
'saving'
:
'保存中...'
,
'success'
:
'
本地保存成功
'
'success'
:
''
}
};
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