Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-renewal
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 44cc7398
authored
Aug 05, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客服积分管理接口联调
1 parent
4ee392cf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
15 deletions
src/api/integrate.js
src/views/integrate/integral/index.vue
src/api/integrate.js
View file @
44cc739
...
@@ -21,11 +21,19 @@ const integrateApi = {
...
@@ -21,11 +21,19 @@ const integrateApi = {
}
}
}
}
// 客户
积分兑换
列表
// 客户
兑换管理
列表
const
integralExchangeApi
=
{
const
integralExchangeApi
=
{
integralExchange
(
data
=
{})
{
integralExchange
(
data
=
{})
{
data
.
method
=
`
${
path
}
convert.record.list`
data
.
method
=
`
${
path
}
convert.record.list`
return
request
(
data
)
return
request
(
data
)
}
}
}
}
export
{
integrateApi
,
integralExchangeApi
}
// 客户积分管理列表
const
integralManageApi
=
{
integralManage
(
data
=
{})
{
data
.
method
=
`
${
path
}
record.list`
return
request
(
data
)
}
}
export
{
integrateApi
,
integralExchangeApi
,
integralManageApi
}
src/views/integrate/integral/index.vue
View file @
44cc739
...
@@ -32,12 +32,12 @@
...
@@ -32,12 +32,12 @@
:size=
"btn_size"
:size=
"btn_size"
placeholder=
"全部"
placeholder=
"全部"
>
>
<
!--
<
el-option
<el-option
v-for=
"item in
$Constants.DICT_STATUS_OPTIONS
"
v-for=
"item in
state
"
:key=
"item.value"
:key=
"item.value"
:label=
"item.label"
:label=
"item.label"
:value=
"item.value"
:value=
"item.value"
></el-option>
-->
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
...
@@ -54,9 +54,6 @@
...
@@ -54,9 +54,6 @@
:getListApi=
"getListApi"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:pageConf=
"pageConf"
>
>
<div
slot=
"changeValue"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
afterAmount
-
scope
.
scope
.
beforeAmount
}}
</span>
</div>
<div
slot=
"recordType"
slot-scope=
"scope"
>
<div
slot=
"recordType"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.recordType == 1"
>
系统赠送
</span>
<span
v-if=
"scope.scope.recordType == 1"
>
系统赠送
</span>
<span
v-if=
"scope.scope.recordType == 2"
>
积分兑换
</span>
<span
v-if=
"scope.scope.recordType == 2"
>
积分兑换
</span>
...
@@ -66,11 +63,22 @@
...
@@ -66,11 +63,22 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
integralManageApi
}
from
'../../../api/integrate'
const
state
=
[
{
value
:
1
,
label
:
'系统赠送'
},
{
value
:
2
,
label
:
'积分兑换'
}
]
export
default
{
export
default
{
name
:
'Conversion'
,
name
:
'Conversion'
,
data
()
{
data
()
{
return
{
return
{
state
,
btn_size
:
'small'
,
btn_size
:
'small'
,
searchForm
:
{
searchForm
:
{
name
:
''
,
name
:
''
,
...
@@ -81,12 +89,12 @@ export default {
...
@@ -81,12 +89,12 @@ export default {
pageConf
:
{
pageConf
:
{
pageSize
:
'pageSize'
,
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
pageNum
:
'pageNum'
,
totalCount
:
'data.
count
'
totalCount
:
'data.
total
'
},
},
// getListApi: dictApi.findDictTyp
e,
getListApi
:
integralManageApi
.
integralManag
e
,
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'data.
data
'
,
listName
:
'data.
list
'
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'客户姓名'
,
label
:
'客户姓名'
,
...
@@ -102,8 +110,7 @@ export default {
...
@@ -102,8 +110,7 @@ export default {
},
},
{
{
label
:
'积分变更值'
,
label
:
'积分变更值'
,
prop
:
''
,
prop
:
'amount'
addHtml
:
'changeValue'
},
},
{
{
label
:
'变更类型'
,
label
:
'变更类型'
,
...
@@ -116,7 +123,7 @@ export default {
...
@@ -116,7 +123,7 @@ export default {
},
},
{
{
label
:
'变更人'
,
label
:
'变更人'
,
prop
:
'
updateBy
'
prop
:
'
operator
'
},
},
{
{
label
:
'变更前积分值'
,
label
:
'变更前积分值'
,
...
...
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