Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 95de960f
authored
Sep 13, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
配置
1 parent
b851339c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
34 deletions
src/api/contentManager.js
src/api/request.js
src/views/contentManager/packageConfig/components/addDialog.vue
src/views/contentManager/packageConfig/edit.vue
src/views/contentManager/packageConfig/index.vue
src/api/contentManager.js
View file @
95de960
...
...
@@ -105,16 +105,16 @@ export function contentManagerTaskById(data) {
// 查询接待素材商户配置
export
function
materialPage
(
data
)
{
data
.
method
=
`dj.api.smartcarlife.recepiton.material.page`
return
request
(
data
,
"
POST
"
,
[],
""
,
"/rop-dj-car-boutique/router"
)
return
request
(
data
,
"
post
"
,
[],
""
,
"/rop-dj-car-boutique/router"
)
}
// 查询门店接待素材详情
export
function
materialDetail
(
data
)
{
data
.
method
=
`dj.api.smartcarlife.recepiton.material.merchant.detail`
return
request
(
data
,
"
POST
"
,
[],
""
,
"/rop-dj-car-boutique/router"
)
return
request
(
data
,
"
post
"
,
[],
""
,
"/rop-dj-car-boutique/router"
)
}
// 保存更新门店接待素材
export
function
recepitonUpdate
(
data
)
{
data
.
method
=
`dj.api.smartcarlife.recepiton.material.merchant.saveOrUpdate`
return
request
(
data
,
"
POST
"
,
[],
""
,
"/rop-dj-car-boutique/router"
)
return
request
(
data
,
"
post
"
,
[],
""
,
"/rop-dj-car-boutique/router"
)
}
src/api/request.js
View file @
95de960
...
...
@@ -16,8 +16,7 @@ const request = (
params
=
{},
method
=
RequestMethods
.
GET
,
noSignAttr
=
[],
options
,
rop
options
)
=>
{
// 兼容线上dj和scrm appkey和secret不一样的情况
let
apiName
=
""
...
...
@@ -61,11 +60,7 @@ const request = (
* mock - url = params.method
* 调后端接口 - url = ''
*/
let
url
=
baseConfig
[
baseApiName
].
baseURL
console
.
log
(
url
,
"url"
,
rop
)
if
(
rop
)
{
url
=
url
.
replace
(
/
\/[^\/]
+
\/[^\/]
+$/
,
rop
)
}
const
url
=
baseConfig
[
baseApiName
].
baseURL
// const url = "/api"
/**
* 调后端接口,请使用以下代码。
...
...
src/views/contentManager/packageConfig/components/addDialog.vue
View file @
95de960
...
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-09-06 09:49:46
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-09-12
13:51:32
* @LastEditTime: 2024-09-12
21:50:30
* @FilePath: \dj-car-life-system\src\views\contentManager\packageConfig\components\addDialog.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -20,6 +20,7 @@
请选择新增门店,新增门店的素材会复用默认门店的素材,可自定义修改
</div>
<el-select
filterable
class=
"form-select"
v-model=
"formData.merchantId"
placeholder=
"请选择"
...
...
@@ -46,17 +47,24 @@ export default {
props
:
{
dialogVisible
:
Boolean
,
merchantList
:
{
type
:
Object
,
type
:
Array
,
default
:
()
=>
[]
}
},
methods
:
{
handleConfirm
()
{
const
{
merchantId
}
=
this
.
formData
recepitonUpdate
({
merchantId
}).
then
((
res
)
=>
{
console
.
log
(
res
)
})
this
.
handleClose
()
if
(
!
merchantId
)
{
return
this
.
$message
.
error
(
"请选择门店"
)
}
const
merchantName
=
this
.
merchantList
.
find
(
(
i
)
=>
i
.
merchantId
===
merchantId
).
merchantName
recepitonUpdate
({
merchantId
,
configType
:
0
,
merchantName
}).
then
(
(
res
)
=>
{
if
(
res
)
this
.
handleClose
()
}
)
},
handleClose
()
{
this
.
$emit
(
"dialogClose"
)
...
...
src/views/contentManager/packageConfig/edit.vue
View file @
95de960
This diff is collapsed.
Click to expand it.
src/views/contentManager/packageConfig/index.vue
View file @
95de960
...
...
@@ -51,7 +51,8 @@
<
script
>
import
{
deepClone
}
from
"@/common/util"
import
{
materialPage
,
getMerchantList
}
from
"@api/contentManager"
import
{
materialPage
}
from
"@api/contentManager"
import
{
getList
}
from
"@api/merchant"
import
addDialog
from
"./components/addDialog"
export
default
{
name
:
"StaffMassSendingIndex"
,
...
...
@@ -63,22 +64,21 @@ export default {
dialogVisible
:
false
,
labelWidth
:
"100px"
,
searchForm
:
{
title
:
""
,
contentType
:
""
,
sendStatus
:
""
merchantId
:
""
,
merchantName
:
""
},
searchFormSearch
:
{},
showFormData
:
[
{
label
:
"门店名称"
,
name
:
"
titl
e"
,
name
:
"
merchantNam
e"
,
type
:
"input"
,
maxlength
:
"20"
,
isClear
:
true
},
{
label
:
"商户号"
,
name
:
"
title
"
,
name
:
"
merchantId
"
,
type
:
"input"
,
maxlength
:
"20"
,
isClear
:
true
...
...
@@ -93,25 +93,31 @@ export default {
tableColumns
:
[
{
label
:
"门店名称"
,
prop
:
"
titl
e"
prop
:
"
merchantNam
e"
// width: '200px'
},
{
label
:
"商户号"
,
prop
:
"
title
"
prop
:
"
merchantId
"
},
{
label
:
"业务场景"
,
prop
:
"
titl
e"
prop
:
"
businessScen
e"
},
{
label
:
"状态"
,
prop
:
"title"
label
:
"配置类型"
,
prop
:
"configType"
,
formatter
:
(
cell
)
=>
{
return
cell
.
configType
==
0
?
"默认"
:
"自定义"
}
},
{
label
:
"配置类型"
,
prop
:
"contentType"
,
width
:
"100px"
label
:
"状态"
,
prop
:
"status"
,
formatter
:
(
cell
)
=>
{
return
cell
.
status
==
1
?
"启用 "
:
"禁用"
}
}
]
}
...
...
@@ -122,9 +128,10 @@ export default {
},
methods
:
{
getMerchantList
()
{
var
params
=
{
currentPage
:
1
,
pageSize
:
2000
}
getMerchantList
(
params
).
then
((
res
)
=>
{
this
.
merchantList
=
res
||
[]
const
params
=
{
currentPage
:
1
,
pageSize
:
2000
,
scene
:
1
}
getList
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
merchantList
=
res
.
list
||
[]
})
},
beforeSearchFn
()
{
...
...
@@ -140,10 +147,11 @@ export default {
this
.
$refs
.
recordTable
.
refreshTable
(
false
,
true
)
},
handleEdit
(
row
)
{
const
{
id
}
=
row
this
.
$router
.
push
({
name
:
"packageEdit"
,
query
:
{
id
:
row
.
id
id
}
})
},
...
...
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