Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-content
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 d959e23f
authored
Dec 14, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新代码3.2.0需求代码
1 parent
6ec5298b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
165 additions
and
136 deletions
package-lock.json
package.json
src/main.js
src/setup/qiankun.js
src/views/material/addMaterial.vue
src/views/material/components/textBox.vue
src/views/material/index.vue
package-lock.json
View file @
d959e23
...
...
@@ -15,6 +15,11 @@
"js-message"
:
"1.0.7"
}
},
"@amap/amap-jsapi-loader"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmmirror.com/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz"
,
"integrity"
:
"sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw=="
},
"@ampproject/remapping"
:
{
"version"
:
"2.2.0"
,
"resolved"
:
"https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz"
,
...
...
@@ -6437,36 +6442,36 @@
}
},
"glsx-components"
:
{
"version"
:
"1.5.
2
"
,
"resolved"
:
"https://registry.npm
js.org/glsx-components/-/glsx-components-1.5.2
.tgz"
,
"integrity"
:
"sha512-
5/LaPu0B1uT7Kzl6oyIqyFT/NXIz2w7HNstiRtHaUQN1waSrPPPtzRRwywJg6CSSL+p994NaqPRnX696NAYzKg
=="
,
"version"
:
"1.5.
3
"
,
"resolved"
:
"https://registry.npm
mirror.com/glsx-components/-/glsx-components-1.5.3
.tgz"
,
"integrity"
:
"sha512-
tj/2DSGKpbwrlP7ByBZQrgEgCcmrP2iR8p/BafY6BFr0/q4sJuxQx6of586rJuoVUasRveIIuFmUcLCkBSnQFA
=="
,
"requires"
:
{
"@amap/amap-jsapi-loader"
:
"^1.0.1"
,
"core-js"
:
"^3.6.5"
,
"element-ui"
:
"^2.15.6"
,
"glsx-common"
:
"^1.4.9"
,
"vue"
:
"^2.6.11"
,
"vue-amap"
:
"^0.5.10"
,
"vuedraggable"
:
"^2.24.3"
},
"dependencies"
:
{
"axios"
:
{
"version"
:
"0.21.4"
,
"resolved"
:
"https://registry.npmmirror.com/axios/-/axios-0.21.4.tgz"
,
"integrity"
:
"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg=="
,
"requires"
:
{
"follow-redirects"
:
"^1.14.0"
}
},
"glsx-common"
:
{
"version"
:
"1.4.9"
,
"resolved"
:
"https://registry.npm
js.org
/glsx-common/-/glsx-common-1.4.9.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/glsx-common/-/glsx-common-1.4.9.tgz"
,
"integrity"
:
"sha512-RQWGOGEXUPNmHkZn7n+eukkXp6L/mOfsgMo4gFtrt80ZDxGaznHMg7Isi4+IrEdvVdzp8Cju0eiCTddnZfdsJg=="
,
"requires"
:
{
"axios"
:
"^0.21.3"
,
"md5"
:
"^2.3.0"
,
"qs"
:
"^6.10.1"
,
"sha1"
:
"^1.1.1"
},
"dependencies"
:
{
"axios"
:
{
"version"
:
"0.21.4"
,
"resolved"
:
"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz"
,
"integrity"
:
"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg=="
,
"requires"
:
{
"follow-redirects"
:
"^1.14.0"
}
}
}
}
}
...
...
@@ -11932,7 +11937,7 @@
},
"sortablejs"
:
{
"version"
:
"1.10.2"
,
"resolved"
:
"https://registry.npm
js.org
/sortablejs/-/sortablejs-1.10.2.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/sortablejs/-/sortablejs-1.10.2.tgz"
,
"integrity"
:
"sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A=="
},
"source-list-map"
:
{
...
...
@@ -12983,6 +12988,21 @@
"integrity"
:
"sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA=="
,
"dev"
:
true
},
"uppercamelcase"
:
{
"version"
:
"1.1.0"
,
"resolved"
:
"https://registry.npmmirror.com/uppercamelcase/-/uppercamelcase-1.1.0.tgz"
,
"integrity"
:
"sha512-C7YEMvhgrvTEKEEVqA7LXNID/1TvvIwYZqNIKLquS6y/MGSkRQAav9LnTTILlC1RqUM8eTVBOe1U/fnB652PRA=="
,
"requires"
:
{
"camelcase"
:
"^1.2.1"
},
"dependencies"
:
{
"camelcase"
:
{
"version"
:
"1.2.1"
,
"resolved"
:
"https://registry.npmmirror.com/camelcase/-/camelcase-1.2.1.tgz"
,
"integrity"
:
"sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g=="
}
}
},
"uri-js"
:
{
"version"
:
"4.4.1"
,
"resolved"
:
"https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz"
,
...
...
@@ -13187,6 +13207,14 @@
"csstype"
:
"^3.1.0"
}
},
"vue-amap"
:
{
"version"
:
"0.5.10"
,
"resolved"
:
"https://registry.npmmirror.com/vue-amap/-/vue-amap-0.5.10.tgz"
,
"integrity"
:
"sha512-9ViNCev1vx32+zZ5RvF/TmUZNbwL9QrdA2/OnD2GlXMfQBkJy7D08Vb7379t6guqnopDPtWJ8K6gg72h9+4GUg=="
,
"requires"
:
{
"uppercamelcase"
:
"^1.1.0"
}
},
"vue-cli-plugin-element"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/vue-cli-plugin-element/-/vue-cli-plugin-element-1.0.1.tgz"
,
...
...
@@ -13397,7 +13425,7 @@
},
"vuedraggable"
:
{
"version"
:
"2.24.3"
,
"resolved"
:
"https://registry.npm
js.org
/vuedraggable/-/vuedraggable-2.24.3.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/vuedraggable/-/vuedraggable-2.24.3.tgz"
,
"integrity"
:
"sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g=="
,
"requires"
:
{
"sortablejs"
:
"1.10.2"
...
...
package.json
View file @
d959e23
...
...
@@ -15,7 +15,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^2.0.4"
,
"glsx-components"
:
"^1.
2.5
"
,
"glsx-components"
:
"^1.
5.3
"
,
"vod-js-sdk-v6"
:
"^1.5.0"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
...
...
src/main.js
View file @
d959e23
...
...
@@ -20,4 +20,5 @@ Vue.prototype.size = 'small'
start
()
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http2
=
params
=>
Vue
.
prototype
.
$http2
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
src/setup/qiankun.js
View file @
d959e23
...
...
@@ -20,7 +20,7 @@ let instance = null
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
})
{
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
}
=
await
fetchConfig
()
const
{
response
,
request
,
request2
,
sign
,
secret
,
sign_common
,
request_common
}
=
await
fetchConfig
()
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
...
...
@@ -28,6 +28,7 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
response
,
request
:
request2
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue
.
use
(
GLButton
,
{
permissions
:
globalState
.
permissions
||
[
'1-1-1-1'
,
'2-1-1-1'
,
'3-1-1-1'
]
})
...
...
src/views/material/addMaterial.vue
View file @
d959e23
This diff is collapsed.
Click to expand it.
src/views/material/components/textBox.vue
View file @
d959e23
...
...
@@ -18,7 +18,7 @@ export default {
props
:
{
excludeMenus
:
{
type
:
Array
,
default
:
()
=>
[
'code'
]
default
:
()
=>
[
'code'
,
'video'
]
},
boxHeight
:{
type
:
Number
,
...
...
src/views/material/index.vue
View file @
d959e23
...
...
@@ -232,18 +232,18 @@ export default {
],
// 表格按钮
tableButtonList
:
[
{
// type: 'GLButton',
type
:
'el-button'
,
name
:
'详情'
,
attrs
:
{
type
:
'text'
,
fn
:
'详情'
},
listeners
:
{
click
:
this
.
handleDetail
}
},
//
{
//
// type: 'GLButton',
//
type: 'el-button',
//
name: '详情',
//
attrs: {
//
type: 'text',
//
fn: '详情'
//
},
//
listeners: {
//
click: this.handleDetail
//
}
//
},
{
// type: 'GLButton',
type
:
'el-button'
,
...
...
@@ -297,114 +297,114 @@ export default {
label
:
'状态'
,
prop
:
'status'
,
addHtml
:
'status'
,
width
:
1
2
0
width
:
1
7
0
},
{
label
:
'类型'
,
prop
:
'materialType'
,
addHtml
:
'materialType'
,
width
:
100
},
{
label
:
'发送次数'
,
prop
:
'sendNum'
,
sortable
:
true
,
width
:
130
,
formatter
:
cellVal
=>
{
return
cellVal
.
sendNum
},
renderHeader
:
(
h
,
{
column
,
$index
})
=>
{
return
h
(
'div'
,
{
style
:
{
display
:
'inline-flex'
,
'align-items'
:
'center'
,
padding
:
0
}
},
[
'发送次数'
,
h
(
'el-popover'
,
{
attrs
:
{
placement
:
'top-start'
,
width
:
'240'
,
trigger
:
'hover'
,
content
:
'统计该素材的发送次数(不包含在系统外部的转发次数)'
}
},
[
h
(
'img'
,
{
style
:
{
width
:
'17px'
,
height
:
'17px'
,
'vertical-align'
:
'middle'
},
attrs
:
{
src
:
iconUrl
},
slot
:
'reference'
})
]
)
]
)
}
},
{
label
:
'阅读人数'
,
prop
:
'readNum'
,
width
:
130
,
sortable
:
true
,
formatter
:
cellVal
=>
{
return
cellVal
.
readNum
},
renderHeader
:
(
h
,
{
column
,
$index
})
=>
{
return
h
(
'div'
,
{
style
:
{
display
:
'inline-flex'
,
'align-items'
:
'center'
,
padding
:
0
}
},
[
'阅读人数'
,
h
(
'el-popover'
,
{
attrs
:
{
placement
:
'top-start'
,
width
:
'240'
,
trigger
:
'hover'
,
content
:
'阅读该素材的人数,内部员工除外。'
}
},
[
h
(
'img'
,
{
style
:
{
width
:
'17px'
,
height
:
'17px'
,
'vertical-align'
:
'middle'
},
attrs
:
{
src
:
iconUrl
},
slot
:
'reference'
})
]
)
]
)
}
width
:
170
},
// {
// label: '发送次数',
// prop: 'sendNum',
// sortable: true,
// width: 130,
// formatter: cellVal => {
// return cellVal.sendNum
// },
// renderHeader: (h, { column, $index }) => {
// return h(
// 'div',
// {
// style: {
// display: 'inline-flex',
// 'align-items': 'center',
// padding: 0
// }
// },
// [
// '发送次数',
// h(
// 'el-popover',
// {
// attrs: {
// placement: 'top-start',
// width: '240',
// trigger: 'hover',
// content: '统计该素材的发送次数(不包含在系统外部的转发次数)'
// }
// },
// [
// h('img', {
// style: {
// width: '17px',
// height: '17px',
// 'vertical-align': 'middle'
// },
// attrs: {
// src: iconUrl
// },
// slot: 'reference'
// })
// ]
// )
// ]
// )
// }
// },
// {
// label: '阅读人数',
// prop: 'readNum',
// width: 130,
// sortable: true,
// formatter: cellVal => {
// return cellVal.readNum
// },
// renderHeader: (h, { column, $index }) => {
// return h(
// 'div',
// {
// style: {
// display: 'inline-flex',
// 'align-items': 'center',
// padding: 0
// }
// },
// [
// '阅读人数',
// h(
// 'el-popover',
// {
// attrs: {
// placement: 'top-start',
// width: '240',
// trigger: 'hover',
// content: '阅读该素材的人数,内部员工除外。'
// }
// },
// [
// h('img', {
// style: {
// width: '17px',
// height: '17px',
// 'vertical-align': 'middle'
// },
// attrs: {
// src: iconUrl
// },
// slot: 'reference'
// })
// ]
// )
// ]
// )
// }
// },
{
label
:
'更新时间'
,
prop
:
'updatedTime'
,
width
:
15
0
,
width
:
21
0
,
sortable
:
true
,
formatter
:
cellVal
=>
{
return
cellVal
.
updatedTime
...
...
@@ -437,7 +437,6 @@ export default {
},
videoOpen
(
scope
)
{
console
.
log
(
scope
)
this
.
dialogVisibleImg
=
true
let
dialogSrc
=
scope
.
materialContentRpcResponse
.
materialUrl
this
.
$refs
.
VideoShowDia
.
init
(
dialogSrc
)
...
...
@@ -473,7 +472,7 @@ export default {
// })
// },
getListEntBusinessType
()
{
var
params
=
{}
let
params
=
{}
// flag 0-跟进专员调用 1-素材调用
params
.
flag
=
1
this
.
$apis
.
material
.
getListEntBusinessType
(
params
).
then
(
res
=>
{
...
...
@@ -504,7 +503,7 @@ export default {
},
// 素材禁用&启用
handleForbid
(
scope
)
{
var
params
=
{}
let
params
=
{}
params
.
id
=
scope
.
id
if
(
scope
.
status
==
0
)
{
params
.
status
=
-
1
...
...
@@ -520,7 +519,7 @@ export default {
},
// 1-新增素材,2-编辑素材
addMaterial
(
addOrEdit
,
scope
)
{
var
params
=
{
let
params
=
{
addOrEdit
:
addOrEdit
,
$title
:
encodeURI
(
addOrEdit
==
1
?
'创建营销素材'
:
'编辑营销素材'
)
}
...
...
@@ -532,7 +531,7 @@ export default {
})
},
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
return
params
},
// 获取素材列表
...
...
@@ -568,7 +567,7 @@ export default {
},
// 获取所有素材
getListApi
()
{
var
params
=
this
.
getParams
()
let
params
=
this
.
getParams
()
// params.pageSize = this.$refs.materialRef.page.pageSize
// params.pageNum = this.$refs.materialRef.page.pageNum
params
.
pageSize
=
1000000
...
...
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