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 dbb6d220
authored
Dec 20, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新代码3.3.0需求代码
1 parent
5d96909c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
180 additions
and
16 deletions
src/api/modules/common.js
src/api/modules/material.js
src/views/material/addMaterial.vue
src/views/material/index.vue
src/api/modules/common.js
View file @
dbb6d22
/*
import
{
http
,
http_common
,
http2
,
http_merchant
}
from
'@/main'
* @Author: yangming yangming@didihu.com.cn
const
defaultPath
=
'scrm.api.carlife.'
* @Date: 2022-11-23 14:46:30
* @LastEditors: yangming yangming@didihu.com.cn
const
getMerchantGoodsListApi
=
params
=>
{
* @LastEditTime: 2022-11-23 17:39:26
params
.
method
=
'scrm.api.shopmall.goods.page.curMerchant'
* @FilePath: \live\src\api\modules\common.js
return
http
({
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
url
:
'rop-scrm-shopmall/router'
,
*/
method
:
'GET'
,
import
{
http_common
}
from
'@/main'
data
:
params
,
sign
:
true
})
}
const
getGoodsListApi
=
params
=>
{
// scrm.api.shopmall.goods.getGoodsList
params
.
method
=
'scrm.api.shopmall.goods.getGoodsList'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
uploadImgApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
common.uploadImg`
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
}
const
uploadMusicApi
=
params
=>
{
params
.
method
=
'scrm.api.carlife.common.uploadMusic'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
}
const
uploadVideoApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
common.uploadVideo`
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
}
const
uploadFundingVideoApi
=
params
=>
{
params
.
method
=
'scrm.api.carlife.crowd.funding.uploadVideo'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
}
const
getMerchantList
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
merchant.listWithPageByCurMerchant`
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getSimpleMerchantList
=
params
=>
{
params
.
method
=
'scrm.api.carlife.merchant.listWithPageSimpleByCurMerchant'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getZoneListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.zoneInfo.listCurMerchantId'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getClassifyListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.classify.list.curMerchant'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
pictureUpload
=
params
=>
{
const
pictureUpload
=
params
=>
{
params
.
method
=
'glsx.accounts.biz.common.pictureUpload'
params
.
method
=
'glsx.accounts.biz.common.pictureUpload'
return
http_common
({
return
http_common
({
...
@@ -17,6 +116,60 @@ const pictureUpload = params => {
...
@@ -17,6 +116,60 @@ const pictureUpload = params => {
noSignAttr
:
[
'file'
]
noSignAttr
:
[
'file'
]
})
})
}
}
export
default
{
pictureUpload
const
querylabeltree
=
params
=>
{
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
// params.sessionId = session
return
http2
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 人群列表
const
getCrowdTreeListApi
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
return
http2
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 跟进员工类型
const
getStaffFollowerListApi
=
params
=>
{
params
.
method
=
'entmicro.api.staff.listEntFollowerType'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 获取商户信息
const
getMerchantInfoApi
=
params
=>
{
params
.
method
=
'merchants.api.merchant.findMerchantBaseInfo'
return
http_merchant
({
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 根据商户号最上级工厂商户号
const
getSuperMerchantApi
=
params
=>
{
params
.
method
=
'merchants.api.open.findSuperlativeMerchant'
return
http_merchant
({
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadMusicApi
,
uploadVideoApi
,
uploadFundingVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaffFollowerListApi
,
getMerchantInfoApi
,
getSuperMerchantApi
}
src/api/modules/material.js
View file @
dbb6d22
...
@@ -169,7 +169,15 @@ const findAllDictData = params => {
...
@@ -169,7 +169,15 @@ const findAllDictData = params => {
sign
:
true
sign
:
true
})
})
}
}
const
getStoreList
=
params
=>
{
params
.
method
=
'entmicro.api.wechatcloudcontrol.batchmessaging.create.merchant'
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
export
default
{
getMaterialList
,
getMaterialList
,
deleteMaterialList
,
deleteMaterialList
,
...
@@ -185,5 +193,6 @@ export default {
...
@@ -185,5 +193,6 @@ export default {
dataOverview
,
dataOverview
,
sendDetailPage
,
sendDetailPage
,
findAllDictData
,
findAllDictData
,
getListEntBusinessType
getListEntBusinessType
,
getStoreList
}
}
src/views/material/addMaterial.vue
View file @
dbb6d22
This diff is collapsed.
Click to expand it.
src/views/material/index.vue
View file @
dbb6d22
...
@@ -247,13 +247,15 @@ export default {
...
@@ -247,13 +247,15 @@ export default {
{
{
// type: 'GLButton',
// type: 'GLButton',
type
:
'el-button'
,
type
:
'el-button'
,
name
:
'编辑'
,
name
:
row
=>
{
return
row
.
createdType
==
2
?
'查看'
:
'编辑'
},
attrs
:
{
attrs
:
{
type
:
'text'
,
type
:
'text'
,
fn
:
'编辑'
fn
:
'编辑'
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
this
.
addMaterial
(
2
,
row
)
click
:
row
=>
row
.
createdType
==
2
?
this
.
addMaterial
(
3
,
row
)
:
this
.
addMaterial
(
2
,
row
)
}
}
},
},
{
{
...
@@ -521,7 +523,7 @@ export default {
...
@@ -521,7 +523,7 @@ export default {
addMaterial
(
addOrEdit
,
scope
)
{
addMaterial
(
addOrEdit
,
scope
)
{
let
params
=
{
let
params
=
{
addOrEdit
:
addOrEdit
,
addOrEdit
:
addOrEdit
,
$title
:
encodeURI
(
addOrEdit
==
1
?
'创建营销素材'
:
'编辑
营销素材'
)
$title
:
encodeURI
(
addOrEdit
==
1
?
'创建营销素材'
:
addOrEdit
==
2
?
'编辑营销素材'
:
'查看
营销素材'
)
}
}
addOrEdit
!=
1
&&
(
params
.
id
=
scope
.
id
)
addOrEdit
!=
1
&&
(
params
.
id
=
scope
.
id
)
addOrEdit
!=
1
&&
(
params
.
status
=
scope
.
status
)
addOrEdit
!=
1
&&
(
params
.
status
=
scope
.
status
)
...
...
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