Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
11cfb37a
Commit
11cfb37a
authored
Oct 21, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公众号的素材新增 页面修改
parent
7eec7506
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
225 additions
and
87 deletions
+225
-87
ueditor.all.js
public/static/UE/ueditor.all.js
+1
-1
ueditor.config.js
public/static/UE/ueditor.config.js
+1
-1
program-form.vue
src/components/system/program-form.vue
+2
-2
ChooseImg.vue
src/pages/teacher/components/ChooseImg.vue
+48
-35
addimageText.vue
src/pages/teacher/contribution/addimageText.vue
+168
-44
contributionUE.vue
src/pages/teacher/contribution/ue/contributionUE.vue
+5
-4
No files found.
public/static/UE/ueditor.all.js
View file @
11cfb37a
...
@@ -28765,7 +28765,7 @@ UE.ui = baidu.editor.ui = {};
...
@@ -28765,7 +28765,7 @@ UE.ui = baidu.editor.ui = {};
function setCount(editor,ui) {
function setCount(editor,ui) {
editor.setOpt({
editor.setOpt({
wordCount:true,
wordCount:true,
maximumWords:10000,
maximumWords:10000
0
,
wordCountMsg:editor.options.wordCountMsg || editor.getLang("wordCountMsg"),
wordCountMsg:editor.options.wordCountMsg || editor.getLang("wordCountMsg"),
wordOverFlowMsg:editor.options.wordOverFlowMsg || editor.getLang("wordOverFlowMsg")
wordOverFlowMsg:editor.options.wordOverFlowMsg || editor.getLang("wordOverFlowMsg")
});
});
public/static/UE/ueditor.config.js
View file @
11cfb37a
...
@@ -272,7 +272,7 @@
...
@@ -272,7 +272,7 @@
//wordCount
//wordCount
,
wordCount
:
false
//是否开启字数统计
,
wordCount
:
false
//是否开启字数统计
//,maximumWords:1
0000 //允许的最大字符数
,
maximumWords
:
10
0000
//允许的最大字符数
//字数统计提示,{#count}代表当前字数,{#leave}代表还可以输入多少字符数,留空支持多语言自动切换,否则按此配置显示
//字数统计提示,{#count}代表当前字数,{#leave}代表还可以输入多少字符数,留空支持多语言自动切换,否则按此配置显示
//,wordCountMsg:'' //当前已输入 {#count} 个字符,您还可以输入{#leave} 个字符
//,wordCountMsg:'' //当前已输入 {#count} 个字符,您还可以输入{#leave} 个字符
//超出字数限制提示 留空支持多语言自动切换,否则按此配置显示
//超出字数限制提示 留空支持多语言自动切换,否则按此配置显示
...
...
src/components/system/program-form.vue
View file @
11cfb37a
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
</q-dialog>
</q-dialog>
<!-- 选择文件 -->
<!-- 选择文件 -->
<q-dialog
title=
"选择文件"
v-model=
"getImgChoice"
width=
"1200px"
>
<q-dialog
title=
"选择文件"
v-model=
"getImgChoice"
width=
"1200px"
>
<ChooseImg
@
SelectId=
"SelectId"
:type=
"
1
"
@
closeDia=
"getImgChoice=false"
></ChooseImg>
<ChooseImg
@
SelectId=
"SelectId"
:type=
"
0
"
@
closeDia=
"getImgChoice=false"
></ChooseImg>
</q-dialog>
</q-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
},
},
methods
:
{
methods
:
{
SelectId
(
obj
)
{
SelectId
(
obj
)
{
this
.
objOption
.
Image
=
obj
.
u
rl
;
this
.
objOption
.
Image
=
obj
[
0
].
ImageU
rl
;
this
.
getImgChoice
=
false
;
this
.
getImgChoice
=
false
;
},
},
//关闭弹窗
//关闭弹窗
...
...
src/pages/teacher/components/ChooseImg.vue
View file @
11cfb37a
...
@@ -8,17 +8,22 @@
...
@@ -8,17 +8,22 @@
<el-button
@
click=
"GetPageList"
slot=
"append"
icon=
"el-icon-search"
></el-button>
<el-button
@
click=
"GetPageList"
slot=
"append"
icon=
"el-icon-search"
></el-button>
</el-input>
</el-input>
</div>
</div>
<!-- type=
1 图片
-->
<!-- type=
0 图片单选
-->
<template
v-if=
"type==
1
"
>
<template
v-if=
"type==
0
"
>
<div
class=
"basefix app-attachment-list"
>
<div
class=
"basefix app-attachment-list"
>
<!--
<div
class=
"app-attachment-item app-attachment-upload"
>
<el-tooltip
v-for=
"(item,index) in dataList"
:key=
"index"
class=
"item"
effect=
"dark"
<el-upload
class=
"avatar-uploader"
action=
""
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:content=
"item.MediaGroupName"
placement=
"top-start"
>
:show-file-list=
"false"
:http-request=
"UploadImage"
multiple
>
<div
@
click=
"PageSelect(item)"
:class=
"getChecked(item) ? 'selected' :''"
<div
class=
"app-upload"
flex=
"main:center cross:center"
style=
"width: 100px; height: 100px;"
>
class=
"el-tooltip item app-attachment-item"
>
<i
class=
"el-icon-upload"
></i>
<img
:src=
"getIconLink(item.ImageUrl)"
class=
"app-attachment-img"
style=
"width: 100px; height: 100px;"
>
<div
class=
"app-attachment-name"
>
{{
item
.
MediaGroupName
}}
</div>
</div>
</el-tooltip>
</div>
</div>
</el-upload>
</
template
>
</div>
-->
<!-- type=1 图片多选 -->
<
template
v-if=
"type==1"
>
<div
class=
"basefix app-attachment-list"
>
<el-tooltip
v-for=
"(item,index) in dataList"
:key=
"index"
class=
"item"
effect=
"dark"
<el-tooltip
v-for=
"(item,index) in dataList"
:key=
"index"
class=
"item"
effect=
"dark"
:content=
"item.MediaGroupName"
placement=
"top-start"
>
:content=
"item.MediaGroupName"
placement=
"top-start"
>
<div
@
click=
"PageSelect(item)"
:class=
"getChecked(item) ? 'selected' :''"
<div
@
click=
"PageSelect(item)"
:class=
"getChecked(item) ? 'selected' :''"
...
@@ -122,8 +127,13 @@
...
@@ -122,8 +127,13 @@
},
},
mounted
()
{
mounted
()
{
if
(
this
.
type
){
if
(
this
.
type
){
if
(
this
.
type
==
1
||
this
.
type
==
0
){
this
.
msg
.
Type
=
1
}
else
{
this
.
msg
.
Type
=
this
.
type
;
this
.
msg
.
Type
=
this
.
type
;
}
}
}
this
.
GetPageList
();
this
.
GetPageList
();
},
},
methods
:
{
methods
:
{
...
@@ -174,20 +184,41 @@
...
@@ -174,20 +184,41 @@
var
isChecked
=
false
;
var
isChecked
=
false
;
if
(
this
.
emitmsg
&&
this
.
emitmsg
.
length
>
0
)
{
if
(
this
.
emitmsg
&&
this
.
emitmsg
.
length
>
0
)
{
this
.
emitmsg
.
forEach
(
eItem
=>
{
this
.
emitmsg
.
forEach
(
eItem
=>
{
if
(
eItem
.
select
Id
==
item
.
Id
&&
!
isChecked
)
{
if
(
eItem
.
Id
==
item
.
Id
&&
!
isChecked
)
{
isChecked
=
true
;
isChecked
=
true
;
}
}
});
});
}
}
return
isChecked
;
return
isChecked
;
},
},
//选择图片
PageSelect
(
item
)
{
console
.
log
(
item
,
'item'
);
if
(
this
.
type
!=
1
){
//单选
this
.
emitmsg
=
[];
this
.
emitmsg
.
push
(
item
)
}
else
{
//图片多选的时候
if
(
this
.
emitmsg
&&
this
.
emitmsg
.
length
>
0
){
//一个没有选择的时候
let
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
emitmsg
))
let
isyes
=
false
data
.
forEach
((
eItem
,
eindex
)
=>
{
if
(
eItem
.
Id
==
item
.
Id
)
{
this
.
emitmsg
.
splice
(
eindex
,
1
)
isyes
=
true
}
});
if
(
isyes
==
false
){
this
.
emitmsg
.
push
(
item
)
}
}
else
{
//有一个选中的时候
this
.
emitmsg
.
push
(
item
)
}
}
this
.
selectId
=
item
.
Id
;
},
SelectImgId
()
{
SelectImgId
()
{
if
(
this
.
emitmsg
&&
this
.
emitmsg
.
length
>
0
)
{
if
(
this
.
emitmsg
&&
this
.
emitmsg
.
length
>
0
)
{
var
result
=
{
var
result
=
this
.
emitmsg
;
selectId
:
this
.
emitmsg
[
0
].
selectId
,
url
:
this
.
emitmsg
[
0
].
url
,
Name
:
this
.
emitmsg
[
0
].
Name
};
this
.
$emit
(
'SelectId'
,
result
)
this
.
$emit
(
'SelectId'
,
result
)
}
}
this
.
selectId
=
-
1
;
this
.
selectId
=
-
1
;
...
@@ -214,25 +245,7 @@
...
@@ -214,25 +245,7 @@
}
}
})
})
},
},
//选择图片 clickType 1单击 2双击
PageSelect
(
item
)
{
this
.
emitmsg
=
[];
console
.
log
(
item
,
'item'
);
let
url
=
''
if
(
this
.
type
==
1
){
url
=
item
.
ImageUrl
}
else
if
(
this
.
type
==
2
){
url
=
item
.
Media_Id
}
else
if
(
this
.
type
==
3
){
url
=
item
.
VideoWXPath
}
this
.
emitmsg
.
push
({
selectId
:
item
.
Id
,
url
:
url
,
Name
:
item
.
MediaName
});
this
.
selectId
=
item
.
Id
;
},
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
this
.
GetPageList
();
this
.
GetPageList
();
...
...
src/pages/teacher/contribution/addimageText.vue
View file @
11cfb37a
This diff is collapsed.
Click to expand it.
src/pages/teacher/contribution/ue/contributionUE.vue
View file @
11cfb37a
...
@@ -116,8 +116,9 @@
...
@@ -116,8 +116,9 @@
let
html
=
''
;
let
html
=
''
;
//s视频
//s视频
fileArray
.
forEach
(
item
=>
{
fileArray
.
forEach
(
item
=>
{
html
+=
'<p style="text-align:center"><iframe frameborder="0" src="'
+
item
.
fileUrl
+
html
+=
"<iframe frameborder='0' width='100%' height='200px' src='https://v.qq.com/iframe/player.html?vid=v326875u4ek' allowfullscreen='true'></iframe>"
'" allowFullScreen="true" align="center" height="280" width="420"></iframe></p>'
;
// html += '
<
p
style
=
"text-align:center"
><
iframe
frameborder
=
"0"
src
=
"' + item.fileUrl +
// '"
allowFullScreen
=
"true"
align
=
"center"
height
=
"280"
width
=
"420"
><
/iframe></
p
>
';
})
})
console.log(html)
console.log(html)
...
@@ -237,11 +238,11 @@
...
@@ -237,11 +238,11 @@
});
});
this.ue.addListener('
keyup
', editor => {
this.ue.addListener('
keyup
', editor => {
this.isInputChange = true;
this.isInputChange = true;
this.$emit('
input
', this.ue.getContent());
//
this.$emit('
input
', this.ue.getContent());
});
});
this.ue.addListener('
contentChange
', (editor, e) => {
this.ue.addListener('
contentChange
', (editor, e) => {
this.isInputChange = true;
this.isInputChange = true;
this.$emit('
input
', this.ue.getContent());
this.$emit('
input
', this.ue.getContent()
,this.ue.getContentTxt().length
);
});
});
this.ue.addListener('
blur
', editor => {
this.ue.addListener('
blur
', editor => {
this.isInputChange = true;
this.isInputChange = true;
...
...
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