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 46e8da7f
authored
Dec 16, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新3.3.0代码
1 parent
696659c4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
605 additions
and
122 deletions
package-lock.json
package.json
src/components/big-view/index.vue
src/config/index.js
src/mixins/upload.js
src/views/material/addMaterial.vue
src/views/material/index.vue
package-lock.json
View file @
46e8da7
...
@@ -2083,17 +2083,6 @@
...
@@ -2083,17 +2083,6 @@
"color-convert"
:
"^2.0.1"
"color-convert"
:
"^2.0.1"
}
}
},
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"cliui"
:
{
"cliui"
:
{
"version"
:
"6.0.0"
,
"version"
:
"6.0.0"
,
"resolved"
:
"https://registry.npmmirror.com/cliui/-/cliui-6.0.0.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/cliui/-/cliui-6.0.0.tgz"
,
...
@@ -2135,13 +2124,6 @@
...
@@ -2135,13 +2124,6 @@
"integrity"
:
"sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
,
"integrity"
:
"sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
,
"dev"
:
true
"dev"
:
true
},
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"is-fullwidth-code-point"
:
{
"is-fullwidth-code-point"
:
{
"version"
:
"3.0.0"
,
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz"
,
...
@@ -2183,28 +2165,6 @@
...
@@ -2183,28 +2165,6 @@
"ansi-regex"
:
"^5.0.1"
"ansi-regex"
:
"^5.0.1"
}
}
},
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
}
},
"wrap-ansi"
:
{
"wrap-ansi"
:
{
"version"
:
"6.2.0"
,
"version"
:
"6.2.0"
,
"resolved"
:
"https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz"
,
...
@@ -2556,6 +2516,11 @@
...
@@ -2556,6 +2516,11 @@
"@xtuc/long"
:
"4.2.2"
"@xtuc/long"
:
"4.2.2"
}
}
},
},
"@xmldom/xmldom"
:
{
"version"
:
"0.8.6"
,
"resolved"
:
"https://registry.npmmirror.com/@xmldom/xmldom/-/xmldom-0.8.6.tgz"
,
"integrity"
:
"sha512-uRjjusqpoqfmRkTaNuLJ2VohVr67Q5YwDATW3VU7PfzTj6IRaihGrYI7zckGZjxQPBIp63nfvJbM+Yu5ICh0Bg=="
},
"@xtuc/ieee754"
:
{
"@xtuc/ieee754"
:
{
"version"
:
"1.2.0"
,
"version"
:
"1.2.0"
,
"resolved"
:
"https://registry.npmmirror.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz"
,
...
@@ -4417,6 +4382,14 @@
...
@@ -4417,6 +4382,14 @@
"resolved"
:
"https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.3.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.3.tgz"
,
"integrity"
:
"sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="
"integrity"
:
"sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="
},
},
"cos-js-sdk-v5"
:
{
"version"
:
"1.4.14"
,
"resolved"
:
"https://registry.npmmirror.com/cos-js-sdk-v5/-/cos-js-sdk-v5-1.4.14.tgz"
,
"integrity"
:
"sha512-nw4kQijqyXSzRElL9HAKGWA96SQk6Sfx/SvJrGra2cXo2L4ipL3Y0wNnH+Wga1f7iigun85+nIk9BrL5+iBJOg=="
,
"requires"
:
{
"@xmldom/xmldom"
:
"^0.8.6"
}
},
"cosmiconfig"
:
{
"cosmiconfig"
:
{
"version"
:
"5.2.1"
,
"version"
:
"5.2.1"
,
"resolved"
:
"https://registry.npmmirror.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz"
,
...
@@ -5897,8 +5870,7 @@
...
@@ -5897,8 +5870,7 @@
"eventemitter3"
:
{
"eventemitter3"
:
{
"version"
:
"4.0.7"
,
"version"
:
"4.0.7"
,
"resolved"
:
"https://registry.npmmirror.com/eventemitter3/-/eventemitter3-4.0.7.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/eventemitter3/-/eventemitter3-4.0.7.tgz"
,
"integrity"
:
"sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="
,
"integrity"
:
"sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="
"dev"
:
true
},
},
"events"
:
{
"events"
:
{
"version"
:
"3.3.0"
,
"version"
:
"3.3.0"
,
...
@@ -7935,6 +7907,11 @@
...
@@ -7935,6 +7907,11 @@
"integrity"
:
"sha512-efJLHhLjIyKRewNS9EGZ4UpI8NguuL6fKkhRxVuMmrGV2xN/0APGdQYwLFky5w9naebSZ0OwAGp0G6/2Cg90rA=="
,
"integrity"
:
"sha512-efJLHhLjIyKRewNS9EGZ4UpI8NguuL6fKkhRxVuMmrGV2xN/0APGdQYwLFky5w9naebSZ0OwAGp0G6/2Cg90rA=="
,
"dev"
:
true
"dev"
:
true
},
},
"js-sha1"
:
{
"version"
:
"0.6.0"
,
"resolved"
:
"https://registry.npmmirror.com/js-sha1/-/js-sha1-0.6.0.tgz"
,
"integrity"
:
"sha512-01gwBFreYydzmU9BmZxpVk6svJJHrVxEN3IOiGl6VO93bVKYETJ0sIth6DASI6mIFdt7NmfX9UiByRzsYHGU9w=="
},
"js-tokens"
:
{
"js-tokens"
:
{
"version"
:
"4.0.0"
,
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz"
,
...
@@ -12701,6 +12678,18 @@
...
@@ -12701,6 +12678,18 @@
"integrity"
:
"sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ=="
,
"integrity"
:
"sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ=="
,
"dev"
:
true
"dev"
:
true
},
},
"vod-js-sdk-v6"
:
{
"version"
:
"1.5.0"
,
"resolved"
:
"https://registry.npmmirror.com/vod-js-sdk-v6/-/vod-js-sdk-v6-1.5.0.tgz"
,
"integrity"
:
"sha512-WkMtV9MDxO//6SDQgw+QsbO3dskJwE8nmch2Wn3e4Oub5/eav6DMedFAHRjar+tt9WDLveO0YLxa3yVBQ2DHbQ=="
,
"requires"
:
{
"axios"
:
"^0.21.1"
,
"cos-js-sdk-v5"
:
"^1.3.7"
,
"eventemitter3"
:
"^4.0.7"
,
"js-sha1"
:
"^0.6.0"
,
"uuid"
:
"^3.3.2"
}
},
"vue"
:
{
"vue"
:
{
"version"
:
"2.6.14"
,
"version"
:
"2.6.14"
,
"resolved"
:
"https://registry.npmmirror.com/vue/-/vue-2.6.14.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/vue/-/vue-2.6.14.tgz"
,
...
@@ -12809,6 +12798,75 @@
...
@@ -12809,6 +12798,75 @@
}
}
}
}
},
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
},
"dependencies"
:
{
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
}
}
},
"vue-router"
:
{
"vue-router"
:
{
"version"
:
"3.5.4"
,
"version"
:
"3.5.4"
,
"resolved"
:
"https://registry.npmmirror.com/vue-router/-/vue-router-3.5.4.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/vue-router/-/vue-router-3.5.4.tgz"
,
...
...
package.json
View file @
46e8da7
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
"glsx-components"
:
"^1.5.3"
,
"glsx-components"
:
"^1.5.3"
,
"lodash"
:
"^4.17.21"
,
"lodash"
:
"^4.17.21"
,
"node-sass"
:
"^4.0.0"
,
"node-sass"
:
"^4.0.0"
,
"vod-js-sdk-v6"
:
"^1.5.0"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vue-router"
:
"^3.1.3"
,
"vuedraggable"
:
"^2.24.3"
,
"vuedraggable"
:
"^2.24.3"
,
...
...
src/components/big-view/index.vue
0 → 100644
View file @
46e8da7
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-28 10:12:36
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-28 10:25:09
* @FilePath: \live\src\components\big-view\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<div
class=
"view-panel"
>
<img
:src=
"dialogSrc"
width=
"100%"
v-if=
"dialogType == 'img'"
/>
<video
width=
"100%"
autoplay
controls
:src=
"dialogSrc"
v-else
></video>
</div>
</
template
>
<
script
>
export
default
{
name
:
'view'
,
data
()
{
return
{
dialogVisibleImg
:
true
}
},
props
:
{
dialogType
:
String
,
dialogSrc
:
String
},
methods
:
{
test
()
{
console
.
log
(
'点击了按钮'
)
this
.
$messenger
.
send
({
message
:
{
from
:
11
,
message
:
'11111'
}
})
}
}
}
</
script
>
src/config/index.js
View file @
46e8da7
...
@@ -11,9 +11,9 @@ export const fetchConfig = function(isEnv = true) {
...
@@ -11,9 +11,9 @@ export const fetchConfig = function(isEnv = true) {
// }
// }
//return window.fetch('https://', {}).then(res => res.json())
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config'
)
//
return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=marketing').then(res => res.data)
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=marketing').then(res => res.data)
//
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
return
new
Http
().
get
(
'https://oss-config.dev.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config'
)
}
}
export
const
config
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
install
(
vue
,
cfg
)
{
...
...
src/mixins/upload.js
0 → 100644
View file @
46e8da7
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-24 14:42:00
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-24 17:18:31
* @FilePath: \live\src\mixins\upload.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
export
default
{
data
()
{
return
{}
},
methods
:
{
getImgUrl
(
url
,
multiple
=
3
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
canvas
=
document
.
createElement
(
'canvas'
)
// 获取 canvas 对象
const
ctx
=
canvas
.
getContext
(
'2d'
)
// 绘制2d
let
video
=
document
.
getElementById
(
'video'
)
video
.
src
=
url
video
.
crossOrigin
=
'anonymous'
// 解决跨域问题,也就是提示污染资源无法转换视频
video
.
currentTime
=
1
// 第一帧
video
.
oncanplay
=
async
()
=>
{
canvas
.
width
=
video
.
clientWidth
*
multiple
// 获取视频宽度
canvas
.
height
=
video
.
clientHeight
*
multiple
// 获取视频高度
// 利用canvas对象方法绘图
ctx
.
drawImage
(
video
,
0
,
0
,
video
.
clientWidth
*
multiple
,
video
.
clientHeight
*
multiple
)
console
.
log
(
canvas
,
'canvas'
)
// 转换成base64形式
var
oGrayImg
=
canvas
.
toDataURL
(
'image/png'
)
// 截取后的视频封面
const
file
=
this
.
dataURLtoFile
(
oGrayImg
)
const
imgUrl
=
await
this
.
uploadImg
(
file
)
resolve
(
imgUrl
)
}
})
},
//将base64转换为文件
dataURLtoFile
(
dataurl
,
filename
=
'file.png'
)
{
var
arr
=
dataurl
.
split
(
','
),
mime
=
arr
[
0
].
match
(
/:
(
.*
?)
;/
)[
1
],
bstr
=
atob
(
arr
[
1
]),
n
=
bstr
.
length
,
u8arr
=
new
Uint8Array
(
n
)
while
(
n
--
)
{
u8arr
[
n
]
=
bstr
.
charCodeAt
(
n
)
}
return
new
File
([
u8arr
],
filename
,
{
type
:
mime
})
},
// // 图片上传
uploadImg
(
fileInfo
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
fileInfo
)
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
base64
=
fileInfo
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
resolve
(
res
)
})
}
})
}
}
}
src/views/material/addMaterial.vue
View file @
46e8da7
<
template
>
<
template
>
<div
class=
"container marketing"
>
<div
class=
"container marketing"
v-loading=
"loading"
>
<el-form
ref=
"materialAddForm"
:model=
"materialAddForm"
:label-width=
"defaultLabelWidth"
:rules=
"materialAddFormRules"
>
<el-form
ref=
"materialAddForm"
:model=
"materialAddForm"
:label-width=
"defaultLabelWidth"
:rules=
"materialAddFormRules"
>
<div
class=
"creat-material"
>
<div
class=
"creat-material"
>
<h4>
{{
title
}}
</h4>
<h4>
{{
title
}}
</h4>
<el-divider></el-divider>
<el-divider></el-divider>
<div
class=
"m-l-20"
>
<div
class=
"m-l-20"
>
<el-form-item
v-if=
"routeInfo.addOrEdit == 1"
label=
"选择素材组:"
prop=
"groupId"
>
<el-form-item
v-if=
"routeInfo.addOrEdit == 1"
label=
"选择素材组:"
prop=
"groupId"
>
<el-select
v-model=
"materialAddForm.groupId"
placeholder=
"全部"
:size=
"size"
>
<el-select
v-model=
"materialAddForm.groupId"
placeholder=
"全部"
:size=
"size"
>
<el-option
v-for=
"item in groupCounter"
:key=
"item.id"
:label=
"item.materialGroupName"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in groupCounter"
:key=
"item.id"
:label=
"item.materialGroupName"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
v-else
label=
"选择素材组:"
prop=
"selectMaterialGroupName"
>
<el-form-item
v-else
label=
"选择素材组:"
prop=
"selectMaterialGroupName"
>
<el-select
v-model=
"materialAddForm.groupName"
placeholder=
"全部"
:size=
"size"
disabled
>
<el-select
v-model=
"materialAddForm.groupName"
placeholder=
"全部"
:size=
"size"
disabled
>
<el-option
v-for=
"item in groupCounter"
:key=
"item.id"
:label=
"item.materialGroupName"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in groupCounter"
:key=
"item.id"
:label=
"item.materialGroupName"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"素材名称:"
prop=
"materialName"
>
<el-form-item
label=
"素材名称:"
prop=
"materialName"
>
<el-input
v-model=
"materialAddForm.materialName"
:size=
"size"
placeholder=
"请输入素材名称"
maxlength=
"30"
></el-input>
<el-input
v-model=
"materialAddForm.materialName"
:size=
"size"
placeholder=
"请输入素材名称"
maxlength=
"30"
:disabled=
"routeInfo.addOrEdit == 2 && routeInfo.status != 1"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"素材类型:"
prop=
"materialType"
>
<el-form-item
label=
"素材类型:"
prop=
"materialType"
>
<el-radio-group
v-model=
"materialAddForm.materialType"
@
change=
"radioChange"
:disabled=
"routeInfo.addOrEdit == 2 && routeInfo.status != 1"
>
<el-radio-group
v-model=
"materialAddForm.materialType"
@
change=
"radioChange"
:disabled=
"routeInfo.addOrEdit == 2 && routeInfo.status != 1"
>
<el-radio
:label=
"1"
>
PDF文件
</el-radio>
<el-radio
:label=
"1"
>
PDF文件
</el-radio>
<!--
<el-radio
:label=
"2"
>
自定义链接
</el-radio>
-->
<!--
<el-radio
:label=
"2"
>
自定义链接
</el-radio>
-->
<el-radio
:label=
"3"
>
图文
</el-radio>
<el-radio
:label=
"3"
>
图文
</el-radio>
...
@@ -27,8 +32,11 @@
...
@@ -27,8 +32,11 @@
<!-- 选择PDF -->
<!-- 选择PDF -->
<div
v-show=
"materialAddForm.materialType == 1"
>
<div
v-show=
"materialAddForm.materialType == 1"
>
<div
class=
"pdf-show"
>
<div
class=
"pdf-show"
>
<input
type=
"file"
style=
"opacity: 0"
accept=
".pdf"
:disabled=
"routeInfo.addOrEdit == 2 && routeInfo.status != 1"
@
change=
"e => handlePdfChange(e)"
/>
<input
type=
"file"
style=
"opacity: 0"
accept=
".pdf"
<el-button
icon=
"el-icon-plus"
:size=
"size"
:disabled=
"routeInfo.addOrEdit == 2 && routeInfo.status != 1"
>
选择文件
</el-button>
:disabled=
"routeInfo.addOrEdit == 2 && routeInfo.status != 1"
@
change=
"e => handlePdfChange(e)"
/>
<el-button
icon=
"el-icon-plus"
:size=
"size"
:disabled=
"routeInfo.addOrEdit == 2 && routeInfo.status != 1"
>
选择文件
</el-button>
</div>
</div>
<!--
<div
v-if=
"pdfUrl"
>
{{
pdfUrl
}}
</div>
-->
<!--
<div
v-if=
"pdfUrl"
>
{{
pdfUrl
}}
</div>
-->
<ul
v-if=
"pdfName || materialAddForm.materialUrl"
>
<ul
v-if=
"pdfName || materialAddForm.materialUrl"
>
...
@@ -49,6 +57,59 @@
...
@@ -49,6 +57,59 @@
<!-- 选择图文 -->
<!-- 选择图文 -->
<div
v-show=
"materialAddForm.materialType == 3"
>
<div
v-show=
"materialAddForm.materialType == 3"
>
<textBox
@
change=
"writeChange"
ref=
"textBox"
@
forbid=
"forbidEdit"
></textBox>
<textBox
@
change=
"writeChange"
ref=
"textBox"
@
forbid=
"forbidEdit"
></textBox>
<el-form-item
label=
"图片:"
class=
"photoWrap"
>
<div
class=
"img-div"
>
<div
class=
"put-img"
v-for=
"(item,index) in materialAddForm.imageUrlList"
:key=
"item"
v-show=
"materialAddForm.imageUrlList[index]"
>
<img
:src=
"item"
alt=
""
/>
<div
class=
"mask"
v-if=
"item"
>
<h3>
<el-popover
placement=
"top"
trigger=
"click"
>
<div>
<img
class=
"img-plus"
:src=
"item"
alt=
""
/>
</div>
<img
slot=
"reference"
src=
"@/assets/material/view.png"
alt=
""
/>
</el-popover>
<img
v-if=
"!notDisplayProperties"
class=
"del-img"
src=
"@/assets/material/dele.png"
alt=
""
@
click=
"deleteImg('imageUrlList',item)"
/>
</h3>
</div>
</div>
<div
class=
"avatar-uploader-desc"
>
<i
class=
"el-icon-plus avatar-uploader-desc-icon"
></i>
<div
class=
"avatar-uploader-desc-word"
>
上传照片
</div>
<input
:class=
"
{disableUpload:notDisplayProperties}"
:disabled="routeInfo.addOrEdit == 2
&&
routeInfo.status != 1" type="file" style="opacity: 0" accept=".jpg, .jpeg, .png"
@change="e => handleImgChange(e,'imageUrlList')"/>
</div>
<!--
<div
@
click=
"phoneVisible = !phoneVisible"
class=
"view-phone"
>
查看效果>
</div>
-->
</div>
</el-form-item>
<el-form-item
label=
"视频:"
class=
"photoWrap"
>
<div
class=
"img-div"
>
<div
class=
"put-img"
v-if=
"materialAddForm.videoUrl"
>
<video
id=
"video"
width=
"100%"
height=
"100%"
preload
loop
muted
>
<source
:src=
"materialAddForm.videoUrl"
type=
"video/mp4"
/>
</video>
<div
class=
"mask"
>
<h3>
<img
slot=
"reference"
src=
"@/assets/material/view.png"
alt=
""
@
click=
"viewVideo"
/>
<img
v-if=
"!notDisplayProperties"
class=
"del-img"
src=
"@/assets/material/dele.png"
alt=
""
@
click=
"deleteImg('videoUrl')"
/>
</h3>
</div>
</div>
<div
class=
"avatar-uploader-desc"
>
<i
class=
"el-icon-plus avatar-uploader-desc-icon"
></i>
<div
class=
"avatar-uploader-desc-word"
>
上传视频
</div>
<input
:class=
"
{disableUpload:notDisplayProperties}"
:disabled="routeInfo.addOrEdit == 2
&&
routeInfo.status != 1" type="file" style="opacity: 0"
accept="video/*"
@change="e =>handleVideoChange(e,'mediaUrl')"/>
</div>
<!--
<div
@
click=
"phoneVisible = !phoneVisible"
class=
"view-phone"
>
查看效果>
</div>
-->
</div>
</el-form-item>
</div>
</div>
<div
class=
"space"
></div>
<div
class=
"space"
></div>
</el-form-item>
</el-form-item>
...
@@ -62,35 +123,43 @@
...
@@ -62,35 +123,43 @@
<span
slot=
"label"
>
<span
slot=
"label"
>
<span
class=
"label-word"
>
<span
class=
"label-word"
>
业务类型
业务类型
<el-popover
placement=
"top-start"
width=
"200"
trigger=
"hover"
content=
"给素材添加业务类型,客户可根据业务类型筛选,也可在客户浏览了该素材时能及时提醒跟进员工,以提高客户成单率。"
>
<el-popover
placement=
"top-start"
width=
"200"
trigger=
"hover"
<img
slot=
"reference"
src=
"@/assets/question.png"
alt=
""
/>
content=
"给素材添加业务类型,客户可根据业务类型筛选,也可在客户浏览了该素材时能及时提醒跟进员工,以提高客户成单率。"
>
<img
slot=
"reference"
src=
"@/assets/question.png"
alt=
""
/>
</el-popover>
</el-popover>
:
:
</span>
</span>
</span>
</span>
<el-checkbox-group
v-model=
"materialAddForm.businessType"
>
<el-checkbox-group
v-model=
"materialAddForm.businessType"
<el-checkbox
v-for=
"value in businessTypes"
:key=
"value.businessName"
:label=
"value.id"
>
{{
value
.
businessName
}}
</el-checkbox>
:disabled=
"notDisplayProperties"
>
<el-checkbox
v-for=
"value in businessTypes"
:key=
"value.businessName"
:label=
"value.id"
>
{{
value
.
businessName
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"isNotifySender"
>
<el-form-item
prop=
"isNotifySender"
>
<span
slot=
"label"
>
<span
slot=
"label"
>
<span
class=
"label-word"
>
<span
class=
"label-word"
>
动态通知
动态通知
<el-popover
placement=
"top-start"
width=
"200"
trigger=
"hover"
content=
"有效浏览:指客户在页面的停留时间超过15秒并且有交互行为,非完全静止"
>
<el-popover
placement=
"top-start"
width=
"200"
trigger=
"hover"
<img
slot=
"reference"
src=
"@/assets/question.png"
alt=
""
/>
content=
"有效浏览:指客户在页面的停留时间超过15秒并且有交互行为,非完全静止"
>
<img
slot=
"reference"
src=
"@/assets/question.png"
alt=
""
/>
</el-popover>
</el-popover>
:
:
</span>
</span>
</span>
</span>
<el-checkbox
:value=
"materialAddForm.isNotifySender"
:checked=
"checked"
@
change=
"notifyChange"
>
客户打开素材链接时通知发送人
</el-checkbox>
<el-checkbox
:disabled=
"notDisplayProperties"
:value=
"materialAddForm.isNotifySender"
:checked=
"checked"
@
change=
"notifyChange"
>
客户打开素材链接时通知发送人
</el-checkbox>
<span
class=
"track-tips track-info"
>
(客户不包括本商户的员工)
</span>
<span
class=
"track-tips track-info"
>
(客户不包括本商户的员工)
</span>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"tagJson"
>
<el-form-item
prop=
"tagJson"
>
<span
slot=
"label"
>
<span
slot=
"label"
>
<span
class=
"label-word"
>
<span
class=
"label-word"
>
行为标签
行为标签
<el-popover
placement=
"top-start"
width=
"200"
trigger=
"hover"
content=
"标签失效后在客户信息中看不到此标签,但是在素材效果统计的记录仍然存在"
>
<el-popover
placement=
"top-start"
width=
"200"
trigger=
"hover"
<img
slot=
"reference"
src=
"@/assets/question.png"
alt=
""
/>
content=
"标签失效后在客户信息中看不到此标签,但是在素材效果统计的记录仍然存在"
>
<img
slot=
"reference"
src=
"@/assets/question.png"
alt=
""
/>
</el-popover>
</el-popover>
:
:
</span>
</span>
...
@@ -101,10 +170,11 @@
...
@@ -101,10 +170,11 @@
<div
class=
"tag-show"
>
<div
class=
"tag-show"
>
<div
v-show=
"tagging.length != 0"
:key=
"key"
class=
"input-tag-wrapper"
>
<div
v-show=
"tagging.length != 0"
:key=
"key"
class=
"input-tag-wrapper"
>
<span
v-for=
"(tag, idx) in tagging"
:key=
"idx"
>
<span
v-for=
"(tag, idx) in tagging"
:key=
"idx"
>
<el-tag
v-for=
"(tagItem, idx1) in tag.labelList"
:key=
"idx1"
:size=
"size"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"removeTag(tag, idx1, idx)"
>
{{
tagItem
.
name
}}
</el-tag>
<el-tag
v-for=
"(tagItem, idx1) in tag.labelList"
:key=
"idx1"
:size=
"size"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"removeTag(tag, idx1, idx)"
>
{{
tagItem
.
name
}}
</el-tag>
</span>
</span>
</div>
</div>
<el-button
:size=
"size"
@
click=
"openLabel"
>
<el-button
:size=
"size"
@
click=
"openLabel"
:disabled=
"notDisplayProperties"
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
选择标签
选择标签
</el-button>
</el-button>
...
@@ -134,31 +204,39 @@
...
@@ -134,31 +204,39 @@
<div
class=
"share-desc"
v-show=
"descVisible"
>
<div
class=
"share-desc"
v-show=
"descVisible"
>
<div
class=
"share-desc-left m-l-20"
>
<div
class=
"share-desc-left m-l-20"
>
<el-form-item
label=
"分享标题:"
>
<el-form-item
label=
"分享标题:"
>
<el-input
v-model=
"materialAddForm.materialTitle"
:size=
"size"
maxlength=
"30"
show-word-limit
placeholder=
"请输入自定义标题"
></el-input>
<el-input
v-model=
"materialAddForm.materialTitle"
:size=
"size"
maxlength=
"30"
show-word-limit
placeholder=
"请输入自定义标题"
:disabled=
"notDisplayProperties"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"描述:"
>
<el-form-item
label=
"描述:"
>
<el-input
type=
"textarea"
v-model=
"materialAddForm.description"
:size=
"size"
maxlength=
"30"
show-word-limit
placeholder=
"请输入自定义描述"
></el-input>
<el-input
type=
"textarea"
v-model=
"materialAddForm.description"
:size=
"size"
maxlength=
"30"
show-word-limit
placeholder=
"请输入自定义描述"
:disabled=
"notDisplayProperties"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"封面:"
>
<el-form-item
label=
"封面:"
>
<div
class=
"img-div"
>
<div
class=
"img-div"
>
<div
class=
"put-img"
v-show=
"materialAddForm.titleUrl"
>
<div
class=
"put-img"
v-show=
"materialAddForm.titleUrl"
>
<img
:src=
"materialAddForm.titleUrl"
alt=
""
/>
<img
:src=
"materialAddForm.titleUrl"
alt=
""
/>
<div
class=
"mask"
v-if=
"materialAddForm.titleUrl"
>
<div
class=
"mask"
v-if=
"materialAddForm.titleUrl"
>
<h3>
<h3>
<el-popover
placement=
"top"
trigger=
"click"
>
<el-popover
placement=
"top"
trigger=
"click"
>
<div>
<div>
<img
class=
"img-plus"
:src=
"materialAddForm.titleUrl"
alt=
""
/>
<img
class=
"img-plus"
:src=
"materialAddForm.titleUrl"
alt=
""
/>
</div>
</div>
<img
slot=
"reference"
src=
"@/assets/material/view.png"
alt=
""
/>
<img
slot=
"reference"
src=
"@/assets/material/view.png"
alt=
""
/>
</el-popover>
</el-popover>
<img
class=
"del-img"
src=
"@/assets/material/dele.png"
alt=
""
@
click=
"deleteImg"
/>
<img
v-if=
"!notDisplayProperties"
class=
"del-img"
src=
"@/assets/material/dele.png"
alt=
""
@
click=
"deleteImg('titleUrl')"
/>
</h3>
</h3>
</div>
</div>
</div>
</div>
<div
class=
"avatar-uploader-desc"
>
<div
class=
"avatar-uploader-desc"
>
<i
class=
"el-icon-plus avatar-uploader-desc-icon"
></i>
<i
class=
"el-icon-plus avatar-uploader-desc-icon"
></i>
<div
class=
"avatar-uploader-desc-word"
>
上传照片
</div>
<div
class=
"avatar-uploader-desc-word"
>
上传照片
</div>
<input
type=
"file"
style=
"opacity: 0"
accept=
".jpg, .jpeg, .png"
@
change=
"e => handleImgChange(e)"
/>
<input
type=
"file"
style=
"opacity: 0"
accept=
".jpg, .jpeg, .png"
:class=
"
{disableUpload:notDisplayProperties}"
:disabled="routeInfo.addOrEdit == 2
&&
routeInfo.status != 1"
@change="e => handleImgChange(e,'titleUrl')"/>
</div>
</div>
<!--
<div
@
click=
"phoneVisible = !phoneVisible"
class=
"view-phone"
>
查看效果>
</div>
-->
<!--
<div
@
click=
"phoneVisible = !phoneVisible"
class=
"view-phone"
>
查看效果>
</div>
-->
</div>
</div>
...
@@ -166,14 +244,14 @@
...
@@ -166,14 +244,14 @@
</div>
</div>
<div
class=
"share-desc-right"
>
<div
class=
"share-desc-right"
>
<div
class=
"share-desc-right-box"
>
<div
class=
"share-desc-right-box"
>
<img
class=
"share-desc-right-box-phone"
src=
"@/assets/material/phone.png"
alt=
""
/>
<img
class=
"share-desc-right-box-phone"
src=
"@/assets/material/phone.png"
alt=
""
/>
<div
class=
"content-show"
>
<div
class=
"content-show"
>
<div>
<div>
<div
class=
"content-title"
>
{{
materialAddForm
.
materialTitle
}}
</div>
<div
class=
"content-title"
>
{{
materialAddForm
.
materialTitle
}}
</div>
<div
class=
"content-word"
>
{{
materialAddForm
.
description
}}
</div>
<div
class=
"content-word"
>
{{
materialAddForm
.
description
}}
</div>
</div>
</div>
<div
class=
"content-show-img"
v-show=
"materialAddForm.titleUrl"
>
<div
class=
"content-show-img"
v-show=
"materialAddForm.titleUrl"
>
<img
:src=
"materialAddForm.titleUrl"
alt=
""
/>
<img
:src=
"materialAddForm.titleUrl"
alt=
""
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -188,18 +266,26 @@
...
@@ -188,18 +266,26 @@
<el-button
@
click=
"handleCancel"
class=
"btn-cancle"
>
取消
</el-button>
<el-button
@
click=
"handleCancel"
class=
"btn-cancle"
>
取消
</el-button>
<el-button
@
click=
"handleSubmit"
type=
"primary"
>
确定
</el-button>
<el-button
@
click=
"handleSubmit"
type=
"primary"
>
确定
</el-button>
</GLFooter>
</GLFooter>
<el-dialog
class=
"image-dialog"
:visible
.
sync=
"dialogVisibleImg"
width=
"30%"
>
<big-view
ref=
"viewForm"
v-if=
"dialogVisibleImg"
:dialogSrc=
"dialogSrc"
:dialogType=
"dialogType"
></big-view>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
textBox
from
'@/views/material/components/textBox'
import
textBox
from
'@/views/material/components/textBox'
import
SelectLabel
from
'@/views/material/components/selectLable'
import
SelectLabel
from
'@/views/material/components/selectLable'
import
bigView
from
'@/components/big-view'
// import upload from '@/api/uploadApi'
import
uploadMixin
from
'@/mixins/upload'
// import pdfReviewDia from './components/pdfReviewDia.vue'
// import pdfReviewDia from './components/pdfReviewDia.vue'
export
default
{
export
default
{
name
:
'addMaterialForm'
,
name
:
'addMaterialForm'
,
mixins
:
[
uploadMixin
],
components
:
{
components
:
{
textBox
,
textBox
,
SelectLabel
SelectLabel
,
bigView
// pdfReviewDia
// pdfReviewDia
},
},
data
()
{
data
()
{
...
@@ -209,6 +295,11 @@ export default {
...
@@ -209,6 +295,11 @@ export default {
1
:
'创建营销素材'
,
1
:
'创建营销素材'
,
2
:
'编辑营销素材'
2
:
'编辑营销素材'
},
},
notDisplayProperties
:
''
,
loading
:
false
,
dialogVisibleImg
:
false
,
dialogSrc
:
''
,
dialogType
:
''
,
routeInfo
:
{},
routeInfo
:
{},
dialogVisible
:
false
,
dialogVisible
:
false
,
tagging
:
[],
tagging
:
[],
...
@@ -228,7 +319,9 @@ export default {
...
@@ -228,7 +319,9 @@ export default {
tagJson
:
[],
// 行为标签
tagJson
:
[],
// 行为标签
materialTitle
:
''
,
// 分享标题
materialTitle
:
''
,
// 分享标题
description
:
''
,
// 描述
description
:
''
,
// 描述
titleUrl
:
''
// 封面
titleUrl
:
''
,
// 封面
imageUrlList
:
[],
videoUrl
:
''
},
},
groupCounter
:
[],
groupCounter
:
[],
// 分享设置显示
// 分享设置显示
...
@@ -237,18 +330,18 @@ export default {
...
@@ -237,18 +330,18 @@ export default {
// phoneVisible: false,
// phoneVisible: false,
businessTypes
:
[],
businessTypes
:
[],
materialAddFormRules
:
{
materialAddFormRules
:
{
groupId
:
[{
required
:
true
,
message
:
'请选择素材组'
,
trigger
:
'change'
}],
groupId
:
[{
required
:
true
,
message
:
'请选择素材组'
,
trigger
:
'change'
}],
materialName
:
[
materialName
:
[
{
required
:
true
,
message
:
'请输入素材名称'
,
trigger
:
'change'
},
{
required
:
true
,
message
:
'请输入素材名称'
,
trigger
:
'change'
},
{
max
:
30
,
message
:
'素材名称长度不能超过30'
,
trigger
:
'blur'
}
{
max
:
30
,
message
:
'素材名称长度不能超过30'
,
trigger
:
'blur'
}
],
],
materialType
:
[{
required
:
true
,
message
:
'请选择素材类型'
,
trigger
:
'change'
}],
materialType
:
[{
required
:
true
,
message
:
'请选择素材类型'
,
trigger
:
'change'
}],
businessType
:
[{
required
:
true
,
message
:
'请选择业务类型'
,
trigger
:
'change'
}]
businessType
:
[{
required
:
true
,
message
:
'请选择业务类型'
,
trigger
:
'change'
}]
},
},
linkRules
:
{
linkRules
:
{
link
:
[
link
:
[
{
required
:
true
,
message
:
'请输入链接地址'
,
trigger
:
'change'
},
{
required
:
true
,
message
:
'请输入链接地址'
,
trigger
:
'change'
},
{
max
:
150
,
message
:
'链接地址长度不能超过30'
,
trigger
:
'blur'
}
{
max
:
150
,
message
:
'链接地址长度不能超过30'
,
trigger
:
'blur'
}
]
]
}
}
}
}
...
@@ -258,12 +351,38 @@ export default {
...
@@ -258,12 +351,38 @@ export default {
this
.
routeInfo
.
addOrEdit
!=
1
?
this
.
getMaterialInfo
()
:
''
this
.
routeInfo
.
addOrEdit
!=
1
?
this
.
getMaterialInfo
()
:
''
this
.
routeInfo
.
addOrEdit
!=
1
?
(
this
.
routeInfo
.
status
!=
1
?
this
.
forbidEdit
()
:
''
)
:
''
this
.
routeInfo
.
addOrEdit
!=
1
?
(
this
.
routeInfo
.
status
!=
1
?
this
.
forbidEdit
()
:
''
)
:
''
this
.
title
=
this
.
titleObj
[
this
.
routeInfo
.
addOrEdit
]
this
.
title
=
this
.
titleObj
[
this
.
routeInfo
.
addOrEdit
]
this
.
notDisplayProperties
=
this
.
routeInfo
.
addOrEdit
==
2
&&
this
.
routeInfo
.
status
!=
1
this
.
materialInsert
()
this
.
materialInsert
()
this
.
getMaterialList
()
this
.
getMaterialList
()
// this.findAllDictData('business_type')
// this.findAllDictData('business_type')
this
.
getListEntBusinessType
()
this
.
getListEntBusinessType
()
},
},
methods
:
{
methods
:
{
viewVideo
()
{
this
.
dialogVisibleImg
=
true
this
.
dialogSrc
=
this
.
materialAddForm
.
mediaUrl
},
handleVideoChange
(
e
)
{
let
file
=
e
.
srcElement
.
files
[
0
]
let
reader
=
new
FileReader
()
// // 默认1MB
const
limitSize
=
20
const
isLt
=
file
.
size
/
1024
/
1024
<
limitSize
if
(
!
isLt
)
{
this
.
$message
.
error
(
'上传图片大小不能超过'
+
limitSize
+
'MB!'
)
return
true
}
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadVideoApi
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
this
.
materialAddForm
.
mediaUrl
=
res
}
})
}
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
materialAddForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
materialAddForm
))
let
tagging
=
this
.
tagging
.
map
(
item
=>
{
let
tagging
=
this
.
tagging
.
map
(
item
=>
{
...
@@ -422,7 +541,7 @@ export default {
...
@@ -422,7 +541,7 @@ export default {
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
// const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1]
// const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1]
const
base64
=
file
.
name
.
slice
(
-
3
)
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
slice
(
-
3
)
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
pdfUrl
=
res
this
.
pdfUrl
=
res
this
.
pdfName
=
file
.
name
this
.
pdfName
=
file
.
name
...
@@ -436,7 +555,7 @@ export default {
...
@@ -436,7 +555,7 @@ export default {
}
}
},
},
// 上传图片
// 上传图片
handleImgChange
(
e
)
{
handleImgChange
(
e
,
params
)
{
var
file
=
e
.
srcElement
.
files
[
0
]
var
file
=
e
.
srcElement
.
files
[
0
]
var
reader
=
new
FileReader
()
var
reader
=
new
FileReader
()
// 默认1MB
// 默认1MB
...
@@ -450,10 +569,18 @@ export default {
...
@@ -450,10 +569,18 @@ export default {
reader
.
onload
=
e
=>
{
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
// console.log(res)
if
(
Array
.
isArray
(
this
.
materialAddForm
[
params
]))
{
this
.
materialAddForm
.
titleUrl
=
res
if
(
this
.
materialAddForm
[
params
].
length
>
8
)
{
this
.
$message
.
error
(
'图片最多可上传9张'
)
return
}
else
{
this
.
materialAddForm
[
params
].
push
(
res
)
}
}
else
{
this
.
materialAddForm
[
params
]
=
res
}
}
}
})
})
}
}
...
@@ -590,8 +717,12 @@ export default {
...
@@ -590,8 +717,12 @@ export default {
this
.
isUpdate
=
true
this
.
isUpdate
=
true
},
},
// 删除上传图片
// 删除上传图片
deleteImg
()
{
deleteImg
(
params
,
content
)
{
this
.
materialAddForm
.
titleUrl
=
''
if
(
Array
.
isArray
(
this
.
materialAddForm
[
params
]))
{
this
.
materialAddForm
[
params
]
=
this
.
materialAddForm
[
params
].
filter
((
item
)
=>
item
!==
content
);
}
else
{
this
.
materialAddForm
[
params
]
=
''
}
},
},
// 删除pdf
// 删除pdf
delPdf
()
{
delPdf
()
{
...
@@ -607,6 +738,11 @@ export default {
...
@@ -607,6 +738,11 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.disableUpload
{
cursor
:
not-allowed
;
cursor
:
no-drop
;
}
.input-tag-wrapper
{
.input-tag-wrapper
{
max-height
:
75px
;
max-height
:
75px
;
overflow
:
auto
;
overflow
:
auto
;
...
@@ -621,18 +757,21 @@ export default {
...
@@ -621,18 +757,21 @@ export default {
align-items
:
center
;
align-items
:
center
;
margin-top
:
6px
;
margin-top
:
6px
;
font-size
:
14px
;
font-size
:
14px
;
i
{
i
{
color
:
#75acff
;
color
:
#75acff
;
margin-right
:
3px
;
margin-right
:
3px
;
font-size
:
14px
;
font-size
:
14px
;
}
}
}
}
.el-tag
{
.el-tag
{
margin-right
:
4px
;
margin-right
:
4px
;
height
:
26px
;
height
:
26px
;
line-height
:
24px
;
line-height
:
24px
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
.tag-input
{
.tag-input
{
background
:
transparent
;
background
:
transparent
;
border
:
none
!important
;
border
:
none
!important
;
...
@@ -642,6 +781,7 @@ export default {
...
@@ -642,6 +781,7 @@ export default {
padding-left
:
0
;
padding-left
:
0
;
width
:
100px
;
width
:
100px
;
}
}
.creat-material
,
.creat-material
,
.track
,
.track
,
.share
,
.share
,
...
@@ -652,6 +792,81 @@ export default {
...
@@ -652,6 +792,81 @@ export default {
.creat-material
,
.creat-material
,
.track
{
.track
{
margin-bottom
:
-10px
;
margin-bottom
:
-10px
;
.dis-in-block
{
margin-left
:
-154px
;
.activity-img
{
width
:
104px
;
height
:
104px
;
background
:
rgba
(
0
,
0
,
0
,
0.04
);
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.15
);
border-radius
:
4px
;
cursor
:
pointer
;
position
:
relative
;
input
{
cursor
:
pointer
;
font-size
:
0
;
position
:
absolute
;
top
:
0px
;
left
:
0px
;
width
:
100%
;
height
:
100%
;
}
.add-border
{
text-align
:
center
;
color
:
rgba
(
0
,
0
,
0
,
0.45
);
.add-icon
{
margin-top
:
20px
;
height
:
20px
;
font-size
:
17px
;
}
.add-text
{
height
:
30px
;
font-size
:
12px
;
}
}
}
.img-btns
,
img
{
width
:
100%
;
height
:
100%
;
}
.video-panel
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
position
:
relative
;
video
{
position
:
absolute
;
object-fit
:
fill
;
}
.el-icon-video-play
{
z-index
:
10
;
font-size
:
20px
;
color
:
#fff
;
cursor
:
pointer
;
}
.el-icon-close
{
position
:
absolute
;
top
:
0px
;
right
:
0px
;
background
:
#000000
;
color
:
#fff
;
}
}
}
}
}
.container
{
.container
{
...
@@ -661,12 +876,19 @@ export default {
...
@@ -661,12 +876,19 @@ export default {
font-weight
:
600
;
font-weight
:
600
;
color
:
rgba
(
0
,
0
,
0
,
0.85
);
color
:
rgba
(
0
,
0
,
0
,
0.85
);
margin
:
17px
0
17px
20px
;
margin
:
17px
0
17px
20px
;
&:first-child
{
&:first-child
{
padding-top
:
17px
;
padding-top
:
17px
;
margin-top
:
0
;
margin-top
:
0
;
}
}
}
}
}
}
.photoWrap
{
margin-top
:
20px
;
margin-left
:
-154px
;
}
.space
{
.space
{
margin-bottom
:
32px
;
margin-bottom
:
32px
;
}
}
...
@@ -676,9 +898,11 @@ export default {
...
@@ -676,9 +898,11 @@ export default {
font-size
:
14px
;
font-size
:
14px
;
color
:
#999999
;
color
:
#999999
;
}
}
&
-info
{
&
-info
{
margin-left
:
8px
;
margin-left
:
8px
;
}
}
&
-behavior
{
&
-behavior
{
color
:
#606266
;
color
:
#606266
;
}
}
...
@@ -686,9 +910,11 @@ export default {
...
@@ -686,9 +910,11 @@ export default {
.share
{
.share
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
&-container
{
&-container
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.share-unfold
{
.share-unfold
{
span
{
span
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -697,6 +923,7 @@ export default {
...
@@ -697,6 +923,7 @@ export default {
}
}
}
}
}
}
&
-tips
{
&
-tips
{
color
:
#999999
;
color
:
#999999
;
font-size
:
14px
;
font-size
:
14px
;
...
@@ -707,10 +934,12 @@ export default {
...
@@ -707,10 +934,12 @@ export default {
.material-bottom
{
.material-bottom
{
height
:
78px
;
height
:
78px
;
position
:
relative
;
position
:
relative
;
.el-form-item
{
.el-form-item
{
position
:
absolute
;
position
:
absolute
;
top
:
25%
;
top
:
25%
;
left
:
40%
;
left
:
40%
;
.el-form-item__content
{
.el-form-item__content
{
margin-left
:
0
;
margin-left
:
0
;
}
}
...
@@ -722,31 +951,37 @@ export default {
...
@@ -722,31 +951,37 @@ export default {
.el-select--small
{
.el-select--small
{
width
:
432px
;
width
:
432px
;
}
}
.btn-cancle
{
.btn-cancle
{
border-color
:
#5850ff
;
border-color
:
#5850ff
;
color
:
#5850ff
;
color
:
#5850ff
;
}
}
.put-img
,
.put-img
,
.avatar-uploader-desc
,
.avatar-uploader-desc
,
.view-phone
{
.view-phone
{
float
:
left
;
float
:
left
;
margin-right
:
8px
;
margin-right
:
8px
;
.task
{
.task
{
width
:
104px
;
width
:
104px
;
height
:
104px
;
height
:
104px
;
border-radius
:
10px
;
border-radius
:
10px
;
}
}
}
}
.put-img
{
.put-img
{
width
:
104px
;
width
:
104px
;
height
:
104px
;
height
:
104px
;
border-radius
:
10px
;
border-radius
:
10px
;
display
:
inline-block
;
display
:
inline-block
;
position
:
relative
;
position
:
relative
;
img
{
img
{
width
:
104px
;
width
:
104px
;
height
:
104px
;
height
:
104px
;
}
}
.mask
{
.mask
{
position
:
absolute
;
position
:
absolute
;
background
:
rgba
(
101
,
101
,
101
,
0.6
);
background
:
rgba
(
101
,
101
,
101
,
0.6
);
...
@@ -757,34 +992,42 @@ export default {
...
@@ -757,34 +992,42 @@ export default {
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
border-radius
:
10px
;
border-radius
:
10px
;
h3
{
h3
{
text-align
:
center
;
text-align
:
center
;
margin-top
:
40%
;
margin-top
:
40%
;
img
{
img
{
width
:
16px
;
width
:
16px
;
height
:
16px
;
height
:
16px
;
}
}
.del-img
{
.del-img
{
padding-left
:
12px
;
padding-left
:
12px
;
}
}
}
}
}
}
}
}
.tag-show
{
.tag-show
{
margin-right
:
8px
;
margin-right
:
8px
;
margin-top
:
20px
;
margin-top
:
20px
;
.el-button
{
.el-button
{
display
:
inline-flex
;
display
:
inline-flex
;
color
:
#5850ff
;
color
:
#5850ff
;
}
}
}
}
.put-img
:hover
.mask
{
.put-img
:hover
.mask
{
opacity
:
1
;
opacity
:
1
;
}
}
.pdf-show
{
.pdf-show
{
display
:
inline-flex
;
display
:
inline-flex
;
position
:
relative
;
position
:
relative
;
height
:
32px
;
height
:
32px
;
input
{
input
{
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
...
@@ -793,12 +1036,14 @@ export default {
...
@@ -793,12 +1036,14 @@ export default {
height
:
100%
;
height
:
100%
;
}
}
}
}
.avatar-uploader-desc
{
.avatar-uploader-desc
{
width
:
104px
;
width
:
104px
;
height
:
104px
;
height
:
104px
;
border-radius
:
4px
;
border-radius
:
4px
;
border
:
1px
dashed
rgba
(
0
,
0
,
0
,
0.15
);
border
:
1px
dashed
rgba
(
0
,
0
,
0
,
0.15
);
position
:
relative
;
position
:
relative
;
&-icon
{
&-icon
{
width
:
16px
;
width
:
16px
;
height
:
16px
;
height
:
16px
;
...
@@ -806,12 +1051,14 @@ export default {
...
@@ -806,12 +1051,14 @@ export default {
top
:
28px
;
top
:
28px
;
left
:
44px
;
left
:
44px
;
}
}
&
-word
{
&
-word
{
position
:
absolute
;
position
:
absolute
;
top
:
58px
;
top
:
58px
;
left
:
24px
;
left
:
24px
;
color
:
#666666
;
color
:
#666666
;
}
}
input
{
input
{
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
...
@@ -820,28 +1067,34 @@ export default {
...
@@ -820,28 +1067,34 @@ export default {
height
:
100%
;
height
:
100%
;
}
}
}
}
.view-phone
{
.view-phone
{
margin-top
:
85px
;
margin-top
:
85px
;
color
:
#5850ff
;
color
:
#5850ff
;
}
}
.avatar
{
.avatar
{
width
:
178px
;
width
:
178px
;
height
:
178px
;
height
:
178px
;
display
:
block
;
display
:
block
;
}
}
.share-desc
{
.share-desc
{
padding-bottom
:
30px
;
padding-bottom
:
30px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
&-right-box
{
&-right-box
{
margin-right
:
50px
;
margin-right
:
50px
;
width
:
290px
;
width
:
290px
;
height
:
566px
;
height
:
566px
;
position
:
relative
;
position
:
relative
;
&-phone
{
&-phone
{
width
:
290px
;
width
:
290px
;
height
:
566px
;
height
:
566px
;
}
}
.content-show
{
.content-show
{
background-color
:
#fff
;
background-color
:
#fff
;
width
:
160px
;
width
:
160px
;
...
@@ -853,14 +1106,17 @@ export default {
...
@@ -853,14 +1106,17 @@ export default {
left
:
71px
;
left
:
71px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
&-img
{
&-img
{
width
:
30px
;
width
:
30px
;
height
:
30px
;
height
:
30px
;
img
{
img
{
width
:
30px
;
width
:
30px
;
height
:
30px
;
height
:
30px
;
}
}
}
}
.content-title
{
.content-title
{
color
:
#333333
;
color
:
#333333
;
max-width
:
100px
;
max-width
:
100px
;
...
@@ -870,6 +1126,7 @@ export default {
...
@@ -870,6 +1126,7 @@ export default {
font-size
:
13px
;
font-size
:
13px
;
margin-bottom
:
4px
;
margin-bottom
:
4px
;
}
}
.content-word
{
.content-word
{
color
:
#999999
;
color
:
#999999
;
line-height
:
14px
;
line-height
:
14px
;
...
@@ -885,49 +1142,63 @@ export default {
...
@@ -885,49 +1142,63 @@ export default {
}
}
}
}
}
}
.img-plus
{
.img-plus
{
width
:
200px
;
width
:
200px
;
height
:
200px
;
height
:
200px
;
}
}
.gl-footer
{
.gl-footer
{
z-index
:
999
;
z-index
:
999
;
}
}
.form-item-container
{
.form-item-container
{
margin-top
:
32px
!important
;
margin-top
:
32px
!important
;
}
}
.el-form-item
{
.el-form-item
{
margin-bottom
:
20px
!important
;
margin-bottom
:
20px
!important
;
}
}
/
deep
/
.el-form-item__label
{
/
deep
/
.el-form-item__label
{
line-height
:
25px
;
line-height
:
25px
;
}
}
/
deep
/
.el-form-item__content
{
/
deep
/
.el-form-item__content
{
line-height
:
25px
;
line-height
:
25px
;
}
}
.label-word
{
.label-word
{
display
:
inline-block
;
display
:
inline-block
;
img
{
img
{
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
}
}
ul
{
ul
{
margin-top
:
5px
;
margin-top
:
5px
;
.pdf-show
{
.pdf-show
{
//
width
:
200px
;
//
width
:
200px
;
list-style
:
none
;
list-style
:
none
;
align-items
:
center
;
align-items
:
center
;
position
:
relative
;
position
:
relative
;
padding
:
0
8px
;
padding
:
0
8px
;
.pdf-name
{
.pdf-name
{
margin-right
:
20px
;
margin-right
:
20px
;
&:hover
{
&:hover
{
color
:
#5850ff
;
color
:
#5850ff
;
}
}
}
}
&
:hover
{
&
:hover
{
cursor
:
pointer
;
cursor
:
pointer
;
background-color
:
rgba
(
88
,
80
,
255
,
0.2
)
!important
;
background-color
:
rgba
(
88
,
80
,
255
,
0.2
)
!important
;
}
}
i
{
i
{
position
:
absolute
;
position
:
absolute
;
right
:
5px
;
right
:
5px
;
...
@@ -935,4 +1206,40 @@ ul {
...
@@ -935,4 +1206,40 @@ ul {
}
}
}
}
}
}
.video-dsialog
{
z-index
:
2001
;
position
:
fixed
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
overflow
:
auto
;
background
:
rgba
(
$
color
:
#000000
,
$
alpha
:
0.5
);
&-panel
{
background
:
#000000
;
position
:
absolute
;
top
:
100px
;
left
:
50%
;
transform
:
translateX
(
-50%
);
height
:
calc
(
100%
-
200px
);
width
:
auto
;
box-sizing
:
border-box
;
padding
:
10px
20px
20px
;
overflow
:
hidden
;
.video-close
{
display
:
flex
;
justify-content
:
flex-end
;
height
:
40px
;
i
{
cursor
:
pointer
;
font-size
:
25px
;
color
:
#5850ff
;
}
}
}
}
</
style
>
</
style
>
src/views/material/index.vue
View file @
46e8da7
...
@@ -27,44 +27,45 @@
...
@@ -27,44 +27,45 @@
<div
class=
"groupTitle"
>
{{
materialGroupName
}}
(共
{{
tableTotal
}}
条数据)
</div>
<div
class=
"groupTitle"
>
{{
materialGroupName
}}
(共
{{
tableTotal
}}
条数据)
</div>
<GLTable
ref=
"materialRef"
:hasPage=
"false"
:noDataImg=
"url"
@
refreshTable=
"getListApi"
:layout=
"layout"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:tableData=
"materialTableData"
:pageConf=
"pageConf"
:tableTotal=
"tableTotal"
@
sortChange=
"sortChange"
:isCustomHead=
"true"
:customHeadShowList=
"customHeadShowList"
>
<GLTable
ref=
"materialRef"
:hasPage=
"false"
:noDataImg=
"url"
@
refreshTable=
"getListApi"
:layout=
"layout"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:tableData=
"materialTableData"
:pageConf=
"pageConf"
:tableTotal=
"tableTotal"
@
sortChange=
"sortChange"
:isCustomHead=
"true"
:customHeadShowList=
"customHeadShowList"
>
<!-- 素材内容 -->
<!-- 素材内容 -->
<div
slot=
"materialContentRpcResponse"
slot-scope=
"scope"
style=
"text-align: center"
>
<div
slot=
"materialContentRpcResponse"
slot-scope=
"scope"
>
<span
class=
"hide-content"
>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span>
<!-- 素材为PDF -->
<!-- 素材为PDF -->
<span
v-if=
"scope.scope.materialType == 1"
class=
"material-content"
>
<!--
<span
v-if=
"scope.scope.materialType == 1"
class=
"material-content"
>
--
>
<img
src=
"@/assets/material/pdf.png"
style=
"margin-right:8px"
alt=
""
/
>
<!--
<img
src=
"@/assets/material/pdf.png"
style=
"margin-right:8px"
alt=
""
/>
--
>
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"scope.scope.materialContentRpcResponse.materialName"
:disabled=
"scope.scope.materialContentRpcResponse.materialName.length
< 12
"
>
<!--
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"scope.scope.materialContentRpcResponse.materialName"
:disabled=
"scope.scope.materialContentRpcResponse.materialName.length
< 12
"
>
--
>
<span
class=
"hide-content"
>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span
>
<!--
<span
class=
"hide-content"
>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span>
--
>
</el-tooltip
>
<!--
</el-tooltip>
--
>
</span
>
<!--
</span>
--
>
<!-- 素材为自定义链接 -->
<!-- 素材为自定义链接 -->
<span
v-if=
"scope.scope.materialType == 2"
></span
>
<!--
<span
v-if=
"scope.scope.materialType == 2"
></span>
--
>
<!-- 素材为图文 -->
<!-- 素材为图文 -->
<span
v-if=
"scope.scope.materialType == 3 || scope.scope.materialType == 4 || scope.scope.materialType == 5 || scope.scope.materialType == 6"
class=
"material-content"
>
<!--
<span
v-if=
"scope.scope.materialType == 3 || scope.scope.materialType == 4 || scope.scope.materialType == 5 || scope.scope.materialType == 6"
class=
"material-content"
>
--
>
<!-- 图片 -->
<!-- 图片 -->
<el-popover
placement=
"top"
trigger=
"hover"
v-if=
"scope.scope.urlType == 'img'"
>
<!--
<el-popover
placement=
"top"
trigger=
"hover"
v-if=
"scope.scope.urlType == 'img'"
>
--
>
<div
>
<!--
<div>
--
>
<img
class=
"img-plus"
:src=
"scope.scope.materialContentRpcResponse.materialUrl"
alt=
""
/
>
<!--
<img
class=
"img-plus"
:src=
"scope.scope.materialContentRpcResponse.materialUrl"
alt=
""
/>
--
>
</div
>
<!--
</div>
--
>
<div
slot=
"reference"
class=
"urlContent"
>
<!--
<div
slot=
"reference"
class=
"urlContent"
>
--
>
<img
style=
"margin-right:8px"
:src=
"scope.scope.materialContentRpcResponse.materialUrl"
alt=
""
/
>
<!--
<img
style=
"margin-right:8px"
:src=
"scope.scope.materialContentRpcResponse.materialUrl"
alt=
""
/>
--
>
<div
class=
"videoMask"
v-if=
"scope.scope.imgCount > 1"
>
<!--
<div
class=
"videoMask"
v-if=
"scope.scope.imgCount > 1"
>
--
>
<img
src=
"@/assets/material/multi.png"
alt=
""
/
>
<!--
<img
src=
"@/assets/material/multi.png"
alt=
""
/>
--
>
<span>
{{
scope
.
scope
.
imgCount
}}
</span
>
<!--
<span>
{{
scope
.
scope
.
imgCount
}}
</span>
--
>
</div
>
<!--
</div>
--
>
</div
>
<!--
</div>
--
>
</el-popover
>
<!--
</el-popover>
--
>
<!-- 视频 -->
<!-- 视频 -->
<div
class=
"urlContent"
v-if=
"scope.scope.urlType == 'video'"
@
click=
"videoOpen(scope.scope)"
>
<!--
<div
class=
"urlContent"
v-if=
"scope.scope.urlType == 'video'"
@
click=
"videoOpen(scope.scope)"
>
--
>
<video
preload
loop
muted
width=
"36"
height=
"36"
>
<!--
<video
preload
loop
muted
width=
"36"
height=
"36"
>
--
>
<source
:src=
"scope.scope.materialContentRpcResponse.materialUrl"
type=
"video/mp4"
/
>
<!--
<source
:src=
"scope.scope.materialContentRpcResponse.materialUrl"
type=
"video/mp4"
/>
--
>
</video
>
<!--
</video>
--
>
<div
class=
"videoMask"
>
<!--
<div
class=
"videoMask"
>
--
>
<img
src=
"@/assets/material/videoIcon.png"
style=
"width: 22px;height: 22px;"
alt=
""
/
>
<!--
<img
src=
"@/assets/material/videoIcon.png"
style=
"width: 22px;height: 22px;"
alt=
""
/>
--
>
</div
>
<!--
</div>
--
>
</div
>
<!--
</div>
--
>
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"scope.scope.materialContentRpcResponse.materialName"
:disabled=
"scope.scope.materialContentRpcResponse.materialName.length
< 14
"
>
<!--
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"scope.scope.materialContentRpcResponse.materialName"
:disabled=
"scope.scope.materialContentRpcResponse.materialName.length
< 14
"
>
--
>
<span
class=
"hide-content"
>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span
>
<!--
<span
class=
"hide-content"
>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span>
--
>
</el-tooltip
>
<!--
</el-tooltip>
--
>
</span
>
<!--
</span>
--
>
</div>
</div>
<!-- 状态 -->
<!-- 状态 -->
<div
slot=
"status"
class=
"dot"
slot-scope=
"scope"
>
<div
slot=
"status"
class=
"dot"
slot-scope=
"scope"
>
...
@@ -146,6 +147,7 @@ export default {
...
@@ -146,6 +147,7 @@ export default {
businessTypes
:
[],
businessTypes
:
[],
// 素材组名称
// 素材组名称
materialGroupName
:
''
,
materialGroupName
:
''
,
changeName
:
'编辑'
,
materialFormData
:
[
materialFormData
:
[
{
{
label
:
'业务类型'
,
label
:
'业务类型'
,
...
@@ -250,6 +252,23 @@ export default {
...
@@ -250,6 +252,23 @@ export default {
type
:
'text'
,
type
:
'text'
,
fn
:
'编辑'
fn
:
'编辑'
},
},
condition
:
row
=>
{
return
row
.
createdType
!==
1
;
},
listeners
:
{
click
:
row
=>
this
.
addMaterial
(
2
,
row
)
}
},
{
type
:
'el-button'
,
name
:
'查看'
,
attrs
:
{
type
:
'text'
,
fn
:
'查看'
},
condition
:
row
=>
{
return
row
.
createdType
==
1
;
},
listeners
:
{
listeners
:
{
click
:
row
=>
this
.
addMaterial
(
2
,
row
)
click
:
row
=>
this
.
addMaterial
(
2
,
row
)
}
}
...
@@ -284,7 +303,7 @@ export default {
...
@@ -284,7 +303,7 @@ export default {
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'素材
内容
'
,
label
:
'素材
名称
'
,
prop
:
'materialContentRpcResponse'
,
prop
:
'materialContentRpcResponse'
,
addHtml
:
'materialContentRpcResponse'
,
addHtml
:
'materialContentRpcResponse'
,
width
:
270
width
:
270
...
...
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