Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 70a645d6
authored
Jul 13, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第一轮bug修复
1 parent
fe4f0511
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
48 deletions
src/assets/material/file.png
src/assets/material/more.png
src/views/material/components/materialGroup.vue
src/views/material/index.vue
src/assets/material/file.png
View file @
70a645d
358 Bytes
|
W:
|
H:
554 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/material/more.png
0 → 100644
View file @
70a645d
132 Bytes
src/views/material/components/materialGroup.vue
View file @
70a645d
...
@@ -12,17 +12,26 @@
...
@@ -12,17 +12,26 @@
</div>
</div>
</div>
</div>
<ul
v-show=
"groupVisible"
:style=
"
{ height: groupHeight - 110 + 'px' }">
<ul
v-show=
"groupVisible"
:style=
"
{ height: groupHeight - 110 + 'px' }">
<li
v-for=
"(item, index) in groupCounter"
:class=
"index === currentIndex ? 'active' : ''"
:key=
"index"
@
click=
"handleGroup(item, index)"
>
<li
class=
"group-list"
v-for=
"(item, index) in groupCounter"
:class=
"index === currentIndex ? 'active' : ''"
:key=
"index"
@
click=
"handleGroup(item, index)"
>
<img
src=
"@/assets/material/file.png"
alt=
""
style=
"vertical-align: middle"
/>
<div>
<div
class=
"group-name"
>
{{
item
.
materialGroupName
}}
</div>
<img
src=
"@/assets/material/file.png"
alt=
""
style=
"vertical-align: middle;height:24px;width:24px"
/>
<el-popover
placement=
"right"
trigger=
"hover"
>
<div
class=
"group-name"
>
{{
item
.
materialGroupName
}}
</div>
<div>
</div>
<GLButton
class=
"group-btn"
:size=
"size"
type=
"text"
fn=
"置顶"
@
click=
"handleStick(item)"
>
{{
item
.
orderTime
?
'取消置顶'
:
'置顶'
}}
</GLButton>
<div>
<GLButton
class=
"group-btn"
:size=
"size"
type=
"text"
fn=
"修改"
@
click=
"handleAddGroup(2, item)"
>
修改
</GLButton>
<el-popover
placement=
"right"
trigger=
"click"
>
<GLButton
class=
"group-btn"
:size=
"size"
type=
"text"
fn=
"删除"
v-if=
"item.isDefault == -1"
@
click=
"handleDeleteGroup(item.id)"
>
删除
</GLButton>
<div>
</div>
<GLButton
class=
"group-btn"
:size=
"size"
type=
"text"
fn=
"置顶"
@
click=
"handleStick(item)"
>
{{
item
.
orderTime
?
'取消置顶'
:
'置顶'
}}
</GLButton>
<i
slot=
"reference"
class=
"el-icon-more"
></i>
<GLButton
class=
"group-btn"
:size=
"size"
type=
"text"
fn=
"修改"
@
click=
"handleAddGroup(2, item)"
>
修改
</GLButton>
</el-popover>
<GLButton
class=
"group-btn"
:size=
"size"
type=
"text"
fn=
"删除"
v-if=
"item.isDefault == -1"
@
click=
"handleDeleteGroup(item.id)"
>
删除
</GLButton>
<!--
<el-button
class=
"group-btn"
:size=
"size"
type=
"text"
fn=
"置顶"
@
click=
"handleStick(item)"
>
{{
item
.
orderTime
?
'取消置顶'
:
'置顶'
}}
</el-button>
<el-button
class=
"group-btn"
:size=
"size"
type=
"text"
fn=
"修改"
@
click=
"handleAddGroup(2, item)"
>
修改
</el-button>
<el-button
class=
"group-btn"
:size=
"size"
type=
"text"
fn=
"删除"
v-if=
"item.isDefault == -1"
@
click=
"handleDeleteGroup(item.id)"
>
删除
</el-button>
-->
</div>
<div
slot=
"reference"
>
<img
class=
"more-icon"
src=
"@/assets/material/more.png"
alt=
""
/>
</div>
</el-popover>
</div>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -169,6 +178,9 @@ export default {
...
@@ -169,6 +178,9 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.status-words
{
margin-left
:
5px
;
}
.el-popover
{
.el-popover
{
min-width
:
50px
;
min-width
:
50px
;
max-width
:
150px
;
max-width
:
150px
;
...
@@ -196,19 +208,18 @@ export default {
...
@@ -196,19 +208,18 @@ export default {
}
}
ul
{
ul
{
overflow
:
auto
;
overflow
:
auto
;
li
{
.group-list
{
cursor
:
pointer
;
cursor
:
pointer
;
text-align
:
left
;
text-align
:
left
;
padding
:
8px
16px
8px
18px
;
padding
:
8px
8px
8px
18px
;
display
:
flex
;
justify-content
:
space-between
;
&.active
{
&.active
{
background-color
:
#ebeaff
;
background-color
:
#ebeaff
;
}
}
i
{
.more-icon
{
font-size
:
16px
;
vertical-align
:
middle
;
padding-top
:
6px
;
padding-top
:
3px
;
position
:
absolute
;
right
:
0px
;
transform
:
rotate
(
90deg
);
}
}
}
}
}
}
...
...
src/views/material/index.vue
View file @
70a645d
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
</div>
</div>
<span
@
click=
"showIntroductionDialog"
class=
"introduc-word"
>
<span
@
click=
"showIntroductionDialog"
class=
"introduc-word"
>
功能介绍
功能介绍
<
i
class=
"el-icon-arrow-right"
></i
>
<
!--
<i
class=
"el-icon-arrow-right"
></i>
--
>
</span>
</span>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"search-form"
>
<div
class=
"search-form"
>
...
@@ -53,9 +53,9 @@
...
@@ -53,9 +53,9 @@
</div>
</div>
</el-popover>
</el-popover>
<!-- 视频 -->
<!-- 视频 -->
<el-popover
placement=
"right"
trigger=
"
hover
"
v-if=
"scope.scope.urlType == 'video'"
>
<el-popover
placement=
"right"
trigger=
"
click"
@
hide=
"videoHide(scope.scope)"
@
show=
"videoOpen(scope.scope)
"
v-if=
"scope.scope.urlType == 'video'"
>
<div>
<div>
<video
controls
width=
"300"
height=
"300"
>
<video
controls
:id=
"'video' + scope.scope.id"
width=
"300"
height=
"300"
>
<source
:src=
"scope.scope.materialContentRpcResponse.materialUrl"
type=
"video/mp4"
/>
<source
:src=
"scope.scope.materialContentRpcResponse.materialUrl"
type=
"video/mp4"
/>
</video>
</video>
</div>
</div>
...
@@ -75,10 +75,8 @@
...
@@ -75,10 +75,8 @@
</div>
</div>
<!-- 状态 -->
<!-- 状态 -->
<div
slot=
"status"
slot-scope=
"scope"
>
<div
slot=
"status"
slot-scope=
"scope"
>
<GLButton
style=
"display:inline-block"
mode=
"el-switch"
v-model=
"scope.scope.status"
:active-value=
"0"
:inactive-value=
"-1 || 1"
fn=
"禁用"
width=
"32"
size=
"mini"
@
change=
"e => handleForbid(e, scope.scope)"
></GLButton>
<el-switch
v-model=
"scope.scope.status"
:active-value=
"0"
:inactive-value=
"-1"
@
change=
"handleForbid(scope.scope)"
></el-switch>
<span
style=
"margin-left: 5px;"
v-if=
"scope.scope.status == 0"
>
启用
</span>
{{
scope
.
scope
.
status
==
0
?
'启用'
:
'停用'
}}
<span
style=
"margin-left: 5px;"
v-else
>
停用
</span>
<!--
<span
v-if=
"scope.scope.status == 1"
>
存草稿
</span>
-->
</div>
</div>
<!-- 类型 -->
<!-- 类型 -->
<div
slot=
"materialType"
slot-scope=
"scope"
>
<div
slot=
"materialType"
slot-scope=
"scope"
>
...
@@ -104,10 +102,11 @@
...
@@ -104,10 +102,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
const
iconUrl
=
//
const iconUrl =
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAFoTx1HAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADqADAAQAAAABAAAADgAAAAC98Dn6AAAB7klEQVQoFVVSQUhUURQ9981sVFyYRRHuFFq1CGlZC3etnBlMRhMXQwhtCqIQJBA3gSSi1EpkNqkjCjOjm1YWuGojBVO7Fi0K2qQLF6H453bO+/ODLvz37z333PvOu+8BtImCf0K56J8VYKLoC9HRMlnwRxaRgB0kOHDDz5gl/0hZBaaFwGl3H65j577n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9T8fuYFLsztiqTv4NjXUTh2rZteEhiP8OKiiIez3+CFoWubdXtpUDe1XAbmJEfQLxpRxFPRz7T1ccz6BFkl6okRzHFOJ5ccbnkr8l5LF8mrl5Pnv5gJksJjmlD/wclv9121ClxeqthH4TJQh5fLhIMaa7LOrRuIk2la89lfO29ghuU/69IHBatqIZfOhgWv2OXhUIOi/FCnDpoZuYqaCaYpYJ5gvf+m6pInUE9Y5NRhoPCdGl80fscyFK1aqfCZH8B0rPa9foo7e4AAAAASUVORK5CYII='
import
Vue
from
'vue'
import
Vue
from
'vue'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
iconUrl
from
'@/assets/icon-circle-question.png'
import
AddMaterialGroupDia
from
'@/views/material/components/addMaterialGroupDia'
import
AddMaterialGroupDia
from
'@/views/material/components/addMaterialGroupDia'
import
MaterialGroup
from
'@/views/material/components/materialGroup'
import
MaterialGroup
from
'@/views/material/components/materialGroup'
import
FunctionIntroduc
from
'@/views/material/components/functionIntroduc'
import
FunctionIntroduc
from
'@/views/material/components/functionIntroduc'
...
@@ -211,10 +210,6 @@ export default {
...
@@ -211,10 +210,6 @@ export default {
{
{
optionId
:
-
1
,
optionId
:
-
1
,
optionLabel
:
'禁用'
optionLabel
:
'禁用'
},
{
optionId
:
1
,
optionLabel
:
'草稿'
}
}
],
],
optionId
:
'optionId'
,
optionId
:
'optionId'
,
...
@@ -319,9 +314,8 @@ export default {
...
@@ -319,9 +314,8 @@ export default {
[
[
h
(
'img'
,
{
h
(
'img'
,
{
style
:
{
style
:
{
width
:
'14px'
,
width
:
'17px'
,
height
:
'14px'
,
height
:
'17px'
,
'margin-left'
:
'4px'
,
'vertical-align'
:
'middle'
'vertical-align'
:
'middle'
},
},
attrs
:
{
attrs
:
{
...
@@ -368,9 +362,8 @@ export default {
...
@@ -368,9 +362,8 @@ export default {
[
[
h
(
'img'
,
{
h
(
'img'
,
{
style
:
{
style
:
{
width
:
'14px'
,
width
:
'17px'
,
height
:
'14px'
,
height
:
'17px'
,
'margin-left'
:
'4px'
,
'vertical-align'
:
'middle'
'vertical-align'
:
'middle'
},
},
attrs
:
{
attrs
:
{
...
@@ -419,6 +412,25 @@ export default {
...
@@ -419,6 +412,25 @@ export default {
}
}
},
},
videoOpen
(
scope
)
{
var
vedioId
=
'video'
+
`
${
scope
.
id
}
`
console
.
log
(
vedioId
)
var
myVideo
=
document
.
getElementById
(
vedioId
)
// myVideo.play()
},
//
videoHide
(
scope
)
{
console
.
log
(
scope
)
var
vedioId
=
'video'
+
`
${
scope
.
id
}
`
console
.
log
(
vedioId
)
var
myVideo
=
document
.
getElementById
(
vedioId
)
console
.
log
(
myVideo
)
console
.
log
(
myVideo
.
paused
)
myVideo
.
pause
()
console
.
log
(
myVideo
.
paused
)
},
// 重置
// 重置
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
...
@@ -479,10 +491,11 @@ export default {
...
@@ -479,10 +491,11 @@ export default {
})
})
},
},
// 素材禁用&启用
// 素材禁用&启用
handleForbid
(
e
,
scope
)
{
handleForbid
(
scope
)
{
console
.
log
(
scope
)
var
params
=
{}
var
params
=
{}
params
.
id
=
scope
.
id
params
.
id
=
scope
.
id
params
.
status
=
e
==
0
?
0
:
1
params
.
status
=
scope
.
status
this
.
$apis
.
material
.
materialEdit
(
params
).
then
(
res
=>
{
this
.
$apis
.
material
.
materialEdit
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
res
.
code
==
0
?
this
.
getListApi
()
:
''
res
.
code
==
0
?
this
.
getListApi
()
:
''
...
@@ -491,17 +504,10 @@ export default {
...
@@ -491,17 +504,10 @@ export default {
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
})
})
// if (e == 0) {
// params.status = -1
// this.secondConfirm('提示', '禁用素材,所有已经发送给客户的素材链接均会失效,是否继续禁用?', 'material', 'materialEdit', params)
// } else {
// params.status = 0
// this.secondConfirm('提示', '启用素材,确定启用此素材?', 'material', 'materialEdit', params)
// }
},
},
// 素材删除
// 素材删除
handleDelete
(
scope
)
{
handleDelete
(
scope
)
{
this
.
secondConfirm
(
'提示'
,
'删除素材
,所有已经发送给客户的素材链接均会失效
,是否继续删除?'
,
'material'
,
'materialDelete'
,
{
id
:
scope
.
id
})
this
.
secondConfirm
(
'提示'
,
'删除素材
以后,该素材将不能再使用
,是否继续删除?'
,
'material'
,
'materialDelete'
,
{
id
:
scope
.
id
})
},
},
// 1-新增素材,2-编辑素材
// 1-新增素材,2-编辑素材
addMaterial
(
addOrEdit
,
scope
)
{
addMaterial
(
addOrEdit
,
scope
)
{
...
@@ -708,6 +714,7 @@ ul {
...
@@ -708,6 +714,7 @@ ul {
height
:
200px
;
height
:
200px
;
}
}
.introduc-word
{
.introduc-word
{
font-size
:
14px
;
margin-left
:
16px
;
margin-left
:
16px
;
color
:
#5850ff
;
color
:
#5850ff
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment