Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
17c94196
Commit
17c94196
authored
Aug 06, 2024
by
chenwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/08/06/---管理系统暂存更改
parent
c526dc21
Changes
16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
4545 additions
and
454 deletions
+4545
-454
memberManagement.js
src/api/ecw/memberManagement.js
+159
-0
index.vue
src/components/FileUpload/index.vue
+45
-19
dict.js
src/utils/dict.js
+1
-0
chooseMember.vue
...w/giftManagement/bulkExchange/components/chooseMember.vue
+1
-1
index.vue
src/views/ecw/giftManagement/bulkExchange/index.vue
+4
-5
index.vue
src/views/ecw/giftManagement/index.vue
+1
-0
index.vue
...cw/memberManagement/addIntegrationRuleOperation/index.vue
+76
-0
index.vue
src/views/ecw/memberManagement/exchangeRecord/index.vue
+831
-1
chooseGift.vue
...agement/exchangeRecordOperation/components/chooseGift.vue
+493
-0
index.vue
...ws/ecw/memberManagement/exchangeRecordOperation/index.vue
+788
-0
index.vue
src/views/ecw/memberManagement/integralRecord/index.vue
+269
-1
index.vue
src/views/ecw/memberManagement/integrationRule/index.vue
+224
-1
index.vue
src/views/ecw/memberManagement/memberLevelSetting/index.vue
+247
-0
index.vue
src/views/ecw/memberManagement/memberPointsSummary/index.vue
+33
-16
index.vue
src/views/member/user/index.vue
+859
-410
memberDetails.vue
src/views/member/user/memberDetails.vue
+514
-0
No files found.
src/api/ecw/memberManagement.js
0 → 100644
View file @
17c94196
import
request
from
"
@/utils/request
"
;
//操作积分
export
function
operateMemberScore
(
data
)
{
return
request
({
url
:
"
/member/user-score/operate
"
,
method
:
"
post
"
,
data
:
data
,
});
}
//积分记录分页
export
function
queryMemberScoreRecord
(
data
)
{
return
request
({
url
:
"
/member/user-score-log/page
"
,
method
:
"
post
"
,
data
:
data
,
});
}
//兑换记录分页
export
function
queryMemberExchangeRecord
(
data
)
{
return
request
({
url
:
"
/reward/redeem/record/page
"
,
method
:
"
post
"
,
data
:
data
,
});
}
//批量核销按钮
export
function
batchVerifyAPI
(
data
)
{
return
request
({
url
:
"
/reward/redeem/record/batch/verify
"
,
method
:
"
post
"
,
data
:
data
,
});
}
//兑换记录导出
export
function
batchRecordExport
(
data
)
{
return
request
({
url
:
"
/reward/redeem/record/export
"
,
method
:
"
post
"
,
data
:
data
,
});
}
//兑换记录导入
export
function
batchRecordImport
(
data
)
{
return
request
({
url
:
"
/reward/redeem/record/import
"
,
method
:
"
post
"
,
data
:
data
,
});
}
//兑换记录导入模板下载
export
function
batchRecordImportTemplate
()
{
return
request
({
url
:
"
/reward/redeem/record/import/template
"
,
method
:
"
post
"
,
responseType
:
"
blob
"
,
});
}
//撤销 操作
export
function
rewardCancelQuery
(
data
)
{
return
request
({
url
:
"
/reward/redeem/record/cancel
"
,
method
:
"
post
"
,
data
:
data
,
});
}
//获取记录详情
export
function
getRewardDetailQuery
(
data
)
{
return
request
({
url
:
"
/reward/redeem/record/detail
"
,
method
:
"
post
"
,
data
:
data
,
});
}
//更新兑换记录
export
function
updatedRewardsDetails
(
data
)
{
return
request
({
url
:
"
/reward/redeem/record/update
"
,
method
:
"
post
"
,
data
:
data
,
});
}
//核销回退
export
function
verifyRollback
(
data
)
{
return
request
({
url
:
"
/reward/redeem/record/verify-back
"
,
method
:
"
post
"
,
data
:
data
,
});
}
//核销 操作
export
function
verifyRedeem
(
data
)
{
return
request
({
url
:
"
/reward/redeem/record/verify
"
,
method
:
"
post
"
,
data
:
data
,
});
}
//获取积分规则记录
export
function
getScoreRecordList
(
data
)
{
return
request
({
url
:
"
/member/score-rule/page
"
,
method
:
"
post
"
,
params
:
{
page
:
data
.
page
,
rows
:
data
.
rows
,
},
data
,
});
}
//会员积分等级列表
export
function
getMemberLevelList
(
data
)
{
return
request
({
url
:
"
/member/user-level/page
"
,
method
:
"
post
"
,
data
,
});
}
//新增会员等级设置
export
function
addNewMemberLevel
(
data
)
{
return
request
({
url
:
"
/member/user-level/add
"
,
method
:
"
post
"
,
data
,
});
}
//删除会员等级
export
function
delMemberLevel
(
data
)
{
return
request
({
url
:
"
/member/user-level/delete
"
,
method
:
"
post
"
,
data
,
});
}
//edit member level
export
function
editMemberLevel
(
data
)
{
return
request
({
url
:
"
/member/user-level/update
"
,
method
:
"
post
"
,
data
,
});
}
src/components/FileUpload/index.vue
View file @
17c94196
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
:before-upload=
"handleBeforeUpload"
:before-upload=
"handleBeforeUpload"
:file-list=
"fileList"
:file-list=
"fileList"
:limit=
"limit"
:limit=
"limit"
:disabled=
"disabled"
:on-error=
"handleUploadError"
:on-error=
"handleUploadError"
:on-exceed=
"handleExceed"
:on-exceed=
"handleExceed"
:on-success=
"handleUploadSuccess"
:on-success=
"handleUploadSuccess"
...
@@ -15,24 +16,40 @@
...
@@ -15,24 +16,40 @@
ref=
"upload"
ref=
"upload"
>
>
<!-- 上传按钮 -->
<!-- 上传按钮 -->
<el-button
size=
"mini"
type=
"primary"
>
{{
$t
(
'
选取文件
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"primary"
:disabled=
"disabled"
>
{{
$t
(
"
选取文件
"
)
}}
</el-button>
<!-- 上传提示 -->
<!-- 上传提示 -->
<div
class=
"el-upload__tip"
slot=
"tip"
v-if=
"showTip"
>
<div
class=
"el-upload__tip"
slot=
"tip"
v-if=
"showTip"
>
请上传
请上传
<template
v-if=
"fileSize"
>
大小不超过
<b
style=
"color: #f56c6c"
>
{{
fileSize
}}
MB
</b>
</
template
>
<template
v-if=
"fileSize"
>
<
template
v-if=
"fileType"
>
格式为
<b
style=
"color: #f56c6c"
>
{{
fileType
.
join
(
"
/
"
)
}}
</b>
</
template
>
大小不超过
<b
style=
"color: #f56c6c"
>
{{
fileSize
}}
MB
</b>
</
template
>
<
template
v-if=
"fileType"
>
格式为
<b
style=
"color: #f56c6c"
>
{{
fileType
.
join
(
"
/
"
)
}}
</b>
</
template
>
的文件
的文件
</div>
</div>
</el-upload>
</el-upload>
<!-- 文件列表 -->
<!-- 文件列表 -->
<transition-group
class=
"upload-file-list el-upload-list el-upload-list--text"
name=
"el-fade-in-linear"
tag=
"ul"
>
<transition-group
<li
:key=
"file.url"
class=
"el-upload-list__item ele-upload-list__item-content"
v-for=
"(file, index) in fileList"
>
class=
"upload-file-list el-upload-list el-upload-list--text"
name=
"el-fade-in-linear"
tag=
"ul"
>
<li
:key=
"file.url"
class=
"el-upload-list__item ele-upload-list__item-content"
v-for=
"(file, index) in fileList"
>
<el-link
:href=
"`${file.url}`"
:underline=
"false"
target=
"_blank"
>
<el-link
:href=
"`${file.url}`"
:underline=
"false"
target=
"_blank"
>
<span
class=
"el-icon-document"
>
{{ getFileName(file.name) }}
</span>
<span
class=
"el-icon-document"
>
{{ getFileName(file.name) }}
</span>
</el-link>
</el-link>
<div
class=
"ele-upload-list__item-content-action"
>
<div
class=
"ele-upload-list__item-content-action"
>
<el-link
:underline=
"false"
@
click=
"handleDelete(index)"
type=
"danger"
>
删除
</el-link>
<el-link
:underline=
"false"
@
click=
"handleDelete(index)"
type=
"danger"
>
删除
</el-link
>
</div>
</div>
</li>
</li>
</transition-group>
</transition-group>
...
@@ -62,18 +79,23 @@ export default {
...
@@ -62,18 +79,23 @@ export default {
type
:
Array
,
type
:
Array
,
default
:
()
=>
[
"
doc
"
,
"
xls
"
,
"
ppt
"
,
"
txt
"
,
"
pdf
"
],
default
:
()
=>
[
"
doc
"
,
"
xls
"
,
"
ppt
"
,
"
txt
"
,
"
pdf
"
],
},
},
disabled
:
{
type
:
Boolean
,
default
:
false
,
},
// 是否显示提示
// 是否显示提示
isShowTip
:
{
isShowTip
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
,
}
}
,
},
},
data
()
{
data
()
{
return
{
return
{
number
:
0
,
number
:
0
,
uploadList
:
[],
uploadList
:
[],
baseUrl
:
process
.
env
.
VUE_APP_BASE_API
,
baseUrl
:
process
.
env
.
VUE_APP_BASE_API
,
uploadFileUrl
:
process
.
env
.
VUE_APP_BASE_API
+
"
/admin-api/infra/file/org-name/up
"
,
// 上传的文件服务器地址
uploadFileUrl
:
process
.
env
.
VUE_APP_BASE_API
+
"
/admin-api/infra/file/org-name/up
"
,
// 上传的文件服务器地址
headers
:
{
headers
:
{
Authorization
:
"
Bearer
"
+
getToken
(),
Authorization
:
"
Bearer
"
+
getToken
(),
},
},
...
@@ -86,9 +108,9 @@ export default {
...
@@ -86,9 +108,9 @@ export default {
if
(
val
)
{
if
(
val
)
{
let
temp
=
1
;
let
temp
=
1
;
// 首先将值转为数组
// 首先将值转为数组
const
list
=
Array
.
isArray
(
val
)
?
val
:
this
.
value
.
split
(
'
,
'
);
const
list
=
Array
.
isArray
(
val
)
?
val
:
this
.
value
.
split
(
"
,
"
);
// 然后将数组转为对象数组
// 然后将数组转为对象数组
this
.
fileList
=
list
.
map
(
item
=>
{
this
.
fileList
=
list
.
map
(
(
item
)
=>
{
if
(
typeof
item
===
"
string
"
)
{
if
(
typeof
item
===
"
string
"
)
{
item
=
{
name
:
item
,
url
:
item
};
item
=
{
name
:
item
,
url
:
item
};
}
}
...
@@ -101,8 +123,8 @@ export default {
...
@@ -101,8 +123,8 @@ export default {
}
}
},
},
deep
:
true
,
deep
:
true
,
immediate
:
true
immediate
:
true
,
}
}
,
},
},
computed
:
{
computed
:
{
// 是否显示提示
// 是否显示提示
...
@@ -117,7 +139,9 @@ export default {
...
@@ -117,7 +139,9 @@ export default {
if
(
this
.
fileType
)
{
if
(
this
.
fileType
)
{
let
fileExtension
=
""
;
let
fileExtension
=
""
;
if
(
file
.
name
.
lastIndexOf
(
"
.
"
)
>
-
1
)
{
if
(
file
.
name
.
lastIndexOf
(
"
.
"
)
>
-
1
)
{
fileExtension
=
file
.
name
.
slice
(
file
.
name
.
lastIndexOf
(
"
.
"
)
+
1
).
toLowerCase
();
fileExtension
=
file
.
name
.
slice
(
file
.
name
.
lastIndexOf
(
"
.
"
)
+
1
)
.
toLowerCase
();
}
}
const
isTypeOk
=
this
.
fileType
.
some
((
type
)
=>
{
const
isTypeOk
=
this
.
fileType
.
some
((
type
)
=>
{
if
(
file
.
type
.
indexOf
(
type
)
>
-
1
)
return
true
;
if
(
file
.
type
.
indexOf
(
type
)
>
-
1
)
return
true
;
...
@@ -125,7 +149,9 @@ export default {
...
@@ -125,7 +149,9 @@ export default {
return
false
;
return
false
;
});
});
if
(
!
isTypeOk
)
{
if
(
!
isTypeOk
)
{
this
.
$modal
.
msgError
(
`文件格式不正确, 请上传
${
this
.
fileType
.
join
(
"
/
"
)}
格式文件!`
);
this
.
$modal
.
msgError
(
`文件格式不正确, 请上传
${
this
.
fileType
.
join
(
"
/
"
)}
格式文件!`
);
return
false
;
return
false
;
}
}
}
}
...
@@ -148,7 +174,7 @@ export default {
...
@@ -148,7 +174,7 @@ export default {
// 上传失败
// 上传失败
handleUploadError
(
err
)
{
handleUploadError
(
err
)
{
this
.
$modal
.
msgError
(
"
上传图片失败,请重试
"
);
this
.
$modal
.
msgError
(
"
上传图片失败,请重试
"
);
this
.
$modal
.
closeLoading
()
this
.
$modal
.
closeLoading
()
;
},
},
// 上传成功回调
// 上传成功回调
handleUploadSuccess
(
res
)
{
handleUploadSuccess
(
res
)
{
...
@@ -182,9 +208,9 @@ export default {
...
@@ -182,9 +208,9 @@ export default {
for
(
let
i
in
list
)
{
for
(
let
i
in
list
)
{
strs
+=
list
[
i
].
url
+
separator
;
strs
+=
list
[
i
].
url
+
separator
;
}
}
return
strs
!=
''
?
strs
.
substr
(
0
,
strs
.
length
-
1
)
:
''
;
return
strs
!=
""
?
strs
.
substr
(
0
,
strs
.
length
-
1
)
:
""
;
}
}
,
}
}
,
};
};
</
script
>
</
script
>
...
...
src/utils/dict.js
View file @
17c94196
...
@@ -250,6 +250,7 @@ export const DICT_TYPE = {
...
@@ -250,6 +250,7 @@ export const DICT_TYPE = {
PLATFORM_TYPE
:
"
platform_type
"
,
//平台入口
PLATFORM_TYPE
:
"
platform_type
"
,
//平台入口
REWARD_REDEEM_STATUS
:
"
reward_redeem_status
"
,
//礼品兑换状态
REWARD_REDEEM_STATUS
:
"
reward_redeem_status
"
,
//礼品兑换状态
MEMBER_SCORE_OPERATE_TYPE
:
"
member_user_score_log_operate_type
"
,
//会员积分日志操作类型
MEMBER_SCORE_OPERATE_TYPE
:
"
member_user_score_log_operate_type
"
,
//会员积分日志操作类型
SCORE_RULE_TYPE
:
"
score_rule_type
"
,
//积分规则指标类型
};
};
/**
/**
...
...
src/views/ecw/giftManagement/bulkExchange/components/choose
Gift
.vue
→
src/views/ecw/giftManagement/bulkExchange/components/choose
Member
.vue
View file @
17c94196
...
@@ -160,7 +160,7 @@ import {
...
@@ -160,7 +160,7 @@ import {
import
{
color
}
from
"
echarts/lib/export
"
;
import
{
color
}
from
"
echarts/lib/export
"
;
export
default
{
export
default
{
name
:
"
choose
Gift
"
,
name
:
"
choose
Member
"
,
props
:
{
props
:
{
dialogVisible
:
{
dialogVisible
:
{
type
:
Boolean
,
type
:
Boolean
,
...
...
src/views/ecw/giftManagement/bulkExchange/index.vue
View file @
17c94196
...
@@ -296,27 +296,26 @@
...
@@ -296,27 +296,26 @@
</el-row>
</el-row>
</div>
</div>
<choose-
Gift
<choose-
Member
:dialogVisible.sync=
"dialogVisible"
:dialogVisible.sync=
"dialogVisible"
@
transferSelectMemberInfo=
"onGetSelectMemberInfo"
@
transferSelectMemberInfo=
"onGetSelectMemberInfo"
:memberSelectList=
"memberList"
:memberSelectList=
"memberList"
>
>
</choose-
Gift
>
</choose-
Member
>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getRewardsDetails
,
bulkConversion
}
from
"
@/api/ecw/giftManagement
"
;
import
{
getRewardsDetails
,
bulkConversion
}
from
"
@/api/ecw/giftManagement
"
;
import
FileUpload
from
"
@/components/FileUpload
"
;
import
FileUpload
from
"
@/components/FileUpload
"
;
import
choose
Gift
from
"
./components/chooseGift
.vue
"
;
import
choose
Member
from
"
./components/chooseMember
.vue
"
;
import
{
getExpressPage
}
from
"
@/api/ecw/express
"
;
import
{
getExpressPage
}
from
"
@/api/ecw/express
"
;
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
;
import
{
getCurrencyList
}
from
"
@/api/ecw/currency
"
;
import
{
getNowDateTime
}
from
"
@/utils/ruoyi
"
;
import
{
getNowDateTime
}
from
"
@/utils/ruoyi
"
;
import
{
number
}
from
"
echarts/lib/export
"
;
export
default
{
export
default
{
name
:
"
giftManagementList
"
,
name
:
"
giftManagementList
"
,
components
:
{
components
:
{
choose
Gift
,
choose
Member
,
FileUpload
,
FileUpload
,
},
},
data
()
{
data
()
{
...
...
src/views/ecw/giftManagement/index.vue
View file @
17c94196
...
@@ -497,6 +497,7 @@ export default {
...
@@ -497,6 +497,7 @@ export default {
id
:
this
.
postponeRewardsID
,
id
:
this
.
postponeRewardsID
,
endTime
:
this
.
postponeDatetime
,
endTime
:
this
.
postponeDatetime
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
this
.
getList
();
this
.
$message
.
success
(
this
.
$t
(
"
延期成功
"
));
this
.
$message
.
success
(
this
.
$t
(
"
延期成功
"
));
});
});
},
},
...
...
src/views/ecw/memberManagement/addIntegrationRuleOperation/index.vue
0 → 100644
View file @
17c94196
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
label-width=
"120px"
>
<el-form-item
:label=
"$t('指标类型')"
>
<dict-selector
clearable
:type=
"DICT_TYPE.SCORE_RULE_TYPE"
v-model=
"queryParams.type"
@
change=
"handleQuery"
>
</dict-selector>
</el-form-item>
<el-row
:gutter=
"10"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('中文标题:')"
>
<el-input
style=
"width: 300px"
v-model.trim=
"queryParams.titleZh"
:placeholder=
"$t('请输入查找')"
clearable
@
keyup.enter.native=
"handleQuery"
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
/>
</el-form-item
></el-col>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('英文标题:')"
>
<el-input
style=
"width: 300px"
v-model.trim=
"queryParams.titleEn"
:placeholder=
"$t('请输入查找')"
clearable
@
keyup.enter.native=
"handleQuery"
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
/>
</el-form-item
></el-col>
</el-row>
</el-form>
</div>
</
template
>
<
script
>
import
{
getDictDatas
,
DICT_TYPE
}
from
"
@/utils/dict
"
;
import
{
queryMemberScoreRecord
}
from
"
@/api/ecw/memberManagement
"
;
export
default
{
name
:
"
addIntegrationRuleOperation
"
,
data
()
{
return
{
queryParams
:
{
type
:
""
,
titleZh
:
""
,
titleEn
:
""
,
},
};
},
computed
:
{
isChinese
()
{
return
this
.
$i18n
.
locale
===
"
zh_CN
"
;
},
},
created
()
{},
activated
()
{},
methods
:
{
//积分来源
handleSourceType
(
id
)
{
return
this
.
getDictDatas
(
DICT_TYPE
.
SCORE_RULE_TYPE
).
filter
(
(
item
)
=>
item
.
value
==
id
)[
0
];
},
},
};
</
script
>
src/views/ecw/memberManagement/exchangeRecord/index.vue
View file @
17c94196
This diff is collapsed.
Click to expand it.
src/views/ecw/memberManagement/exchangeRecordOperation/components/chooseGift.vue
0 → 100644
View file @
17c94196
This diff is collapsed.
Click to expand it.
src/views/ecw/memberManagement/exchangeRecordOperation/index.vue
0 → 100644
View file @
17c94196
This diff is collapsed.
Click to expand it.
src/views/ecw/memberManagement/integralRecord/index.vue
View file @
17c94196
<
template
>
<
template
>
<div
class=
"app-container"
>
积分记录
</div>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"120px"
>
<el-form-item
:label=
"$t('关键词')"
>
<el-input
style=
"width: 300px"
v-model.trim=
"queryParams.key"
:placeholder=
"$t('请输入会员名称/会员编号/手机号')"
clearable
@
keyup.enter.native=
"handleQuery"
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
/>
</el-form-item>
<el-form-item
:label=
"$t('积分规则')"
>
<dict-selector
clearable
:type=
"DICT_TYPE.SCORE_RULE_TYPE"
v-model=
"queryParams.sourceType"
@
change=
"handleQuery"
>
</dict-selector>
</el-form-item>
<el-form-item
:label=
"$t('标题')"
>
<el-input
style=
"width: 300px"
v-model.trim=
"queryParams.ruleTitle"
:placeholder=
"$t('请输入关键词查找')"
clearable
@
keyup.enter.native=
"handleQuery"
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
/>
</el-form-item>
<el-form-item
:label=
"$t('规则说明')"
>
<el-input
style=
"width: 300px"
v-model.trim=
"queryParams.ruleDesc"
:placeholder=
"$t('请输入关键词查找')"
clearable
@
keyup.enter.native=
"handleQuery"
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
/>
</el-form-item>
<el-form-item
:label=
"$t('当前积分')"
>
<el-row
:gutter=
"10"
style=
"width: 300px"
>
<el-col
:span=
"10"
>
<dict-selector
clearable
:type=
"DICT_TYPE.QUANTITATIVE_RELATION_SYMBOL"
v-model=
"queryParams.scoreCount"
@
change=
"handleQuery"
>
</dict-selector>
</el-col>
<el-col
:span=
"14"
>
<el-input
v-model.trim=
"queryParams.scoreCountOperate"
:placeholder=
"$t('请输入数字')"
clearable
@
keyup.enter.native=
"handleQuery"
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
/>
</el-col>
</el-row>
</el-form-item>
<el-form-item
:label=
"$t('时间')"
>
<el-date-picker
type=
"datetimerange"
clearable
placement=
"bottom-start"
v-model=
"dateRangeCreateTime"
style=
"width: 240px"
value-format=
"yyyy-MM-dd HH:mm:ss"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
{{
$t
(
"
搜索
"
)
}}
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
{{
$t
(
"
重置
"
)
}}
</el-button>
</el-form-item>
</el-form>
<el-table
ref=
"multipleTable"
v-loading=
"loading"
:data=
"memberList"
>
<el-table-column
width=
"140"
:label=
"$t('积分记录ID')"
align=
"center"
prop=
"id"
></el-table-column>
<el-table-column
:label=
"$t('会员名称')"
align=
"center"
:prop=
"isChinese ? 'memberNameZh' : 'memberNameEn'"
></el-table-column>
<el-table-column
width=
"140"
:label=
"$t('封面图片')"
align=
"center"
prop=
"mobile"
>
<template
slot-scope=
"scope"
>
<el-image
:src=
"isChinese ? scope.row.coverImageZh : scope.row.coverImageEn"
style=
"width: 50px; height: 50px"
>
{{
$t
(
"
无
"
)
}}
</el-image
>
</
template
>
</el-table-column>
<el-table-column
width=
"140"
align=
"center"
:label=
"$t('分值')"
prop=
"scoreCount"
></el-table-column>
<el-table-column
:label=
"$t('类别')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
isChinese
?
handleholdScoreStatus
(
scope
.
row
.
operateType
).
label
:
handleholdScoreStatus
(
scope
.
row
.
operateType
).
labelEn
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('积分来源')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
isChinese
?
handleSourceType
(
scope
.
row
.
sourceType
).
label
:
handleholdScore
(
scope
.
row
.
sourceType
).
labelEn
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('规则标题')"
align=
"center"
:prop=
"isChinese ? 'ruleTitleZh' : 'ruleTitleEn'"
>
</el-table-column>
<el-table-column
:label=
"$t('规则说明')"
align=
"center"
:prop=
"isChinese ? 'ruleDescZh' : 'ruleDescEn'"
>
</el-table-column>
<el-table-column
:label=
"$t('操作积分时间')"
align=
"center"
>
<
template
v-slot=
"{ row }"
>
{{
parseTime
(
row
.
createTime
)
||
"
/
"
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('详细信息')"
align=
"center"
>
<
template
v-slot=
"{ row }"
>
{{}}
</
template
>
</el-table-column>
</el-table>
<!-- //分页列表 -->
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"queryParams.pageNo"
:limit.sync=
"queryParams.pageSize"
@
pagination=
"handleQueryPagination"
/>
</div>
</template>
</template>
<
script
>
import
{
getDictDatas
,
DICT_TYPE
}
from
"
@/utils/dict
"
;
import
{
queryMemberScoreRecord
}
from
"
@/api/ecw/memberManagement
"
;
export
default
{
name
:
"
integralRecord
"
,
data
()
{
return
{
dateRangeCreateTime
:
[],
total
:
0
,
loading
:
true
,
memberList
:
[],
queryParams
:
{
ruleTitle
:
""
,
ruleDesc
:
""
,
key
:
""
,
sourceType
:
""
,
scoreCount
:
""
,
scoreCountOperate
:
""
,
endTime
:
""
,
pageNo
:
1
,
pageSize
:
10
,
startTime
:
""
,
},
};
},
computed
:
{
isChinese
()
{
return
this
.
$i18n
.
locale
===
"
zh_CN
"
;
},
},
created
()
{
this
.
handleQuery
();
},
activated
()
{
this
.
handleQuery
();
},
methods
:
{
//积分来源
handleSourceType
(
id
)
{
return
this
.
getDictDatas
(
DICT_TYPE
.
SCORE_RULE_TYPE
).
filter
(
(
item
)
=>
item
.
value
==
id
)[
0
];
},
handleholdScoreStatus
(
id
)
{
return
this
.
getDictDatas
(
DICT_TYPE
.
MEMBER_SCORE_OPERATE_TYPE
).
filter
(
(
item
)
=>
item
.
value
==
id
)[
0
];
},
handleQuery
()
{
this
.
queryParams
.
pageNo
=
1
;
let
params
=
{
...
this
.
queryParams
};
if
(
this
.
dateRangeCreateTime
.
length
>
0
)
{
params
.
startTime
=
this
.
dateRangeCreateTime
[
0
];
params
.
endTime
=
this
.
dateRangeCreateTime
[
1
];
}
queryMemberScoreRecord
(
params
).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
memberList
=
res
.
data
.
list
;
this
.
total
=
res
.
data
.
total
;
});
},
handleQueryPagination
()
{
let
params
=
{
...
this
.
queryParams
};
if
(
this
.
dateRangeCreateTime
.
length
>
0
)
{
params
.
startTime
=
this
.
dateRangeCreateTime
[
0
];
params
.
endTime
=
this
.
dateRangeCreateTime
[
1
];
}
queryMemberScoreRecord
(
params
).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
memberList
=
res
.
data
.
list
;
this
.
total
=
res
.
data
.
total
;
});
},
resetQuery
()
{
this
.
loading
=
true
;
this
.
queryParams
=
{
ruleTitle
:
""
,
ruleDesc
:
""
,
key
:
""
,
sourceType
:
""
,
scoreCount
:
""
,
scoreCountOperate
:
""
,
endTime
:
""
,
pageNo
:
1
,
pageSize
:
10
,
startTime
:
""
,
};
this
.
handleQuery
();
},
},
};
</
script
>
src/views/ecw/memberManagement/integrationRule/index.vue
View file @
17c94196
<
template
>
<
template
>
<div
class=
"app-container"
>
积分规则
</div>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"68px"
>
<el-form-item
:label=
"$t('指标类型')"
>
<dict-selector
clearable
:type=
"DICT_TYPE.SCORE_RULE_TYPE"
v-model=
"queryParams.type"
@
change=
"handleQuery"
>
</dict-selector>
</el-form-item>
<el-form-item
:label=
"$t('标题:')"
>
<el-input
style=
"width: 300px"
v-model.trim=
"queryParams.title"
:placeholder=
"$t('请输入查找')"
clearable
@
keyup.enter.native=
"handleQuery"
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
/>
</el-form-item>
<el-form-item
:label=
"$t('规则说明')"
>
<el-input
style=
"width: 300px"
v-model.trim=
"queryParams.desc"
:placeholder=
"$t('请输入关键词查找')"
clearable
@
keyup.enter.native=
"handleQuery"
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
/>
</el-form-item>
<el-form-item
:label=
"$t('状态')"
>
<dict-selector
clearable
:type=
"DICT_TYPE.REWARD_REDEEM_STATUS"
v-model=
"queryParams.status"
>
</dict-selector>
</el-form-item>
<el-form-item
:label=
"$t('单次积分')"
>
<el-row
:gutter=
"10"
style=
"width: 300px"
>
<el-col
:span=
"10"
>
<dict-selector
clearable
:type=
"DICT_TYPE.QUANTITATIVE_RELATION_SYMBOL"
v-model=
"queryParams.getScoreOnceSymbol"
@
change=
"handleQuery"
>
</dict-selector>
</el-col>
<el-col
:span=
"14"
>
<el-input
v-model.trim=
"queryParams.getScoreOnce"
:placeholder=
"$t('请输入数字')"
clearable
@
keyup.enter.native=
"handleQuery"
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
/>
</el-col>
</el-row>
</el-form-item>
<el-form-item
:label=
"$t('最高积分')"
>
<el-row
:gutter=
"10"
style=
"width: 300px"
>
<el-col
:span=
"10"
>
<dict-selector
clearable
:type=
"DICT_TYPE.QUANTITATIVE_RELATION_SYMBOL"
v-model=
"queryParams.maxScoreTotalSymbol"
@
change=
"handleQuery"
>
</dict-selector>
</el-col>
<el-col
:span=
"14"
>
<el-input
v-model.trim=
"queryParams.maxScoreTotal"
:placeholder=
"$t('请输入数字')"
clearable
@
keyup.enter.native=
"handleQuery"
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
/>
</el-col>
</el-row>
</el-form-item>
<el-form-item
:label=
"$t('创建时间')"
>
<el-date-picker
type=
"datetimerange"
clearable
placement=
"bottom-start"
v-model=
"dateRangeCreateTime"
style=
"width: 240px"
value-format=
"yyyy-MM-dd HH:mm:ss"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
{{
$t
(
"
搜索
"
)
}}
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
{{
$t
(
"
重置
"
)
}}
</el-button>
</el-form-item>
</el-form>
<el-row
class=
"mb8"
>
<el-button
type=
"success"
size=
"mini"
icon=
"el-icon-plus"
@
click=
"handleNewScoreRule"
>
{{
$t
(
"
添加规则
"
)
}}
</el-button
>
</el-row>
</div>
</
template
>
</
template
>
<
script
>
import
{
getDictDatas
,
DICT_TYPE
}
from
"
@/utils/dict
"
;
import
{
getScoreRecordList
}
from
"
@/api/ecw/memberManagement
"
;
export
default
{
name
:
"
integralRecord
"
,
data
()
{
return
{
dateRangeCreateTime
:
[],
total
:
0
,
loading
:
true
,
memberList
:
[],
queryParams
:
{
type
:
""
,
title
:
""
,
desc
:
""
,
status
:
""
,
getScoreOnceSymbol
:
""
,
getScoreOnce
:
""
,
maxScoreTotalSymbol
:
""
,
maxScoreTotal
:
""
,
page
:
1
,
rows
:
10
,
},
};
},
computed
:
{
isChinese
()
{
return
this
.
$i18n
.
locale
===
"
zh_CN
"
;
},
},
created
()
{
this
.
handleQuery
();
},
activated
()
{
this
.
handleQuery
();
},
methods
:
{
// new score rule func
handleNewScoreRule
()
{
this
.
$router
.
push
({
path
:
"
/memberManagement/addIntegrationRuleOperation
"
,
});
},
//积分来源
handleSourceType
(
id
)
{
return
this
.
getDictDatas
(
DICT_TYPE
.
SCORE_RULE_TYPE
).
filter
(
(
item
)
=>
item
.
value
==
id
)[
0
];
},
handleholdScoreStatus
(
id
)
{
return
this
.
getDictDatas
(
DICT_TYPE
.
MEMBER_SCORE_OPERATE_TYPE
).
filter
(
(
item
)
=>
item
.
value
==
id
)[
0
];
},
handleQuery
()
{
this
.
queryParams
.
page
=
1
;
let
params
=
{
...
this
.
queryParams
};
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
"
createTime
"
,
false
);
getScoreRecordList
(
params
).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
memberList
=
res
.
data
.
list
;
this
.
total
=
res
.
data
.
total
;
});
},
handleQueryPagination
()
{
let
params
=
{
...
this
.
queryParams
};
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
"
createTime
"
,
false
);
getScoreRecordList
(
params
).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
memberList
=
res
.
data
.
list
;
this
.
total
=
res
.
data
.
total
;
});
},
resetQuery
()
{
this
.
loading
=
true
;
this
.
queryParams
=
{
ruleTitle
:
""
,
ruleDesc
:
""
,
key
:
""
,
sourceType
:
""
,
scoreCount
:
""
,
scoreCountOperate
:
""
,
endTime
:
""
,
pageNo
:
1
,
pageSize
:
10
,
startTime
:
""
,
};
this
.
handleQuery
();
},
},
};
</
script
>
src/views/ecw/memberManagement/memberLevelSetting/index.vue
0 → 100644
View file @
17c94196
<
template
>
<div
class=
"app-container"
>
<el-row
class=
"mb8"
>
<el-button
type=
"success"
size=
"mini"
icon=
"el-icon-plus"
@
click=
"handleNewScoreRule"
>
{{
$t
(
"
添加规则
"
)
}}
</el-button
>
<el-button
type=
"success"
size=
"mini"
icon=
"el-icon-delete"
@
click=
"handleDelScoreRule"
>
{{
$t
(
"
删除规则
"
)
}}
</el-button
>
</el-row>
<el-table
ref=
"multipleTable"
v-loading=
"loading"
@
selection-change=
"handleSelectionChange"
:data=
"memberLevelList"
>
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
<el-table-column
width=
"140"
:label=
"$t('序号')"
align=
"center"
prop=
"id"
></el-table-column>
<el-table-column
:label=
"$t('等级名称')"
align=
"center"
prop=
"name"
></el-table-column>
<el-table-column
width=
"140"
:label=
"$t('图标')"
align=
"center"
prop=
"mobile"
>
<template
slot-scope=
"scope"
>
<el-image
:src=
"scope.row.icon"
style=
"width: 50px; height: 50px"
>
{{
$t
(
"
无
"
)
}}
</el-image>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('积分范围')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
lowerCount
}}
-
{{
scope
.
row
.
upperCount
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('操作')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
>
{{
$t
(
"
修改
"
)
}}
</el-button
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
{{
$t
(
"
删除
"
)
}}
</el-button
>
</
template
>
</el-table-column>
</el-table>
<!-- //分页列表 -->
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"queryParams.pageNo"
:limit.sync=
"queryParams.pageSize"
@
pagination=
"handleQueryPagination"
/>
<el-dialog
:title=
"$t('添加规则')"
:visible.sync=
"dialogVisible"
width=
"30%"
:before-close=
"handleClose"
>
<el-form
:model=
"ruleForm"
ref=
"ruleForm"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form-item
:label=
"$t('等级名称')"
>
<el-input
v-model=
"ruleForm.name"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('积分范围')"
>
<el-col
:span=
"11"
>
<el-form-item>
<el-input
v-model=
"ruleForm.lowerCount"
></el-input>
</el-form-item>
</el-col>
<el-col
class=
"line"
:span=
"2"
>
{{ $t("至") }}
</el-col>
<el-col
:span=
"11"
>
<el-form-item>
<el-input
v-model=
"ruleForm.upperCount"
></el-input>
</el-form-item>
</el-col>
</el-form-item>
<el-form-item
:label=
"$t('上传图标')"
>
<image-upload
v-model=
"ruleForm.icon"
/>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogVisible = false"
>
{{ $t("取 消") }}
</el-button>
<el-button
type=
"primary"
@
click=
"handelAddNewMemberLevel"
>
{{
$t("确定")
}}
</el-button>
</span>
</el-dialog>
</div>
</template>
<
script
>
import
{
getDictDatas
,
DICT_TYPE
}
from
"
@/utils/dict
"
;
import
{
getMemberLevelList
,
addNewMemberLevel
,
delMemberLevel
,
editMemberLevel
,
}
from
"
@/api/ecw/memberManagement
"
;
import
ImageUpload
from
"
@/components/ImageUpload
"
;
export
default
{
name
:
"
integralRecord
"
,
components
:
{
ImageUpload
,
},
data
()
{
return
{
dialogVisible
:
false
,
selectList
:
[],
ruleForm
:
{
icon
:
""
,
lowerCount
:
""
,
name
:
""
,
upperCount
:
""
,
},
total
:
0
,
loading
:
true
,
memberLevelList
:
[],
queryParams
:
{
pageNo
:
1
,
pageSize
:
10
,
},
};
},
computed
:
{
isChinese
()
{
return
this
.
$i18n
.
locale
===
"
zh_CN
"
;
},
},
created
()
{
this
.
handleQuery
();
},
activated
()
{
this
.
handleQuery
();
},
methods
:
{
handleUpdate
(
row
)
{
this
.
ruleForm
=
{
...
row
};
this
.
dialogVisible
=
true
;
},
handleDelete
(
row
)
{
let
ids
=
[
row
.
id
];
delMemberLevel
(
ids
).
then
((
res
)
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
删除成功
"
));
this
.
handleClose
();
this
.
handleQuery
();
});
},
handelAddNewMemberLevel
()
{
if
(
this
.
ruleForm
.
id
)
{
editMemberLevel
(
this
.
ruleForm
).
then
((
res
)
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
更新成功
"
));
this
.
handleClose
();
this
.
handleQuery
();
});
}
else
{
let
params
=
{
...
this
.
ruleForm
};
addNewMemberLevel
(
params
).
then
((
res
)
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
保存成功
"
));
this
.
handleClose
();
this
.
handleQuery
();
});
}
},
handleSelectionChange
(
ids
)
{
this
.
selectList
=
ids
;
},
handleClose
()
{
this
.
dialogVisible
=
false
;
this
.
selectList
=
[];
this
.
ruleForm
=
{
icon
:
""
,
lowerCount
:
""
,
name
:
""
,
upperCount
:
""
,
};
},
handleDelScoreRule
()
{
if
(
this
.
selectList
.
length
>
0
)
{
let
ids
=
this
.
selectList
.
map
((
item
)
=>
{
return
item
.
id
;
});
delMemberLevel
(
ids
).
then
((
res
)
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
删除成功
"
));
this
.
handleClose
();
this
.
handleQuery
();
});
}
else
{
this
.
$message
.
warning
(
this
.
$t
(
"
请先选择要删除的会员等级
"
));
}
},
handleNewScoreRule
()
{
this
.
dialogVisible
=
true
;
},
handleQuery
()
{
this
.
queryParams
.
pageNo
=
1
;
let
params
=
{
...
this
.
queryParams
};
getMemberLevelList
(
params
).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
memberLevelList
=
res
.
data
.
list
;
this
.
total
=
res
.
data
.
total
;
});
},
handleQueryPagination
()
{
let
params
=
{
...
this
.
queryParams
};
getMemberLevelList
(
params
).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
memberLevelList
=
res
.
data
.
list
;
this
.
total
=
res
.
data
.
total
;
});
},
},
};
</
script
>
src/views/ecw/memberManagement/memberPointsSummary/index.vue
View file @
17c94196
...
@@ -201,12 +201,14 @@
...
@@ -201,12 +201,14 @@
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('积分')"
>
<el-form-item
:label=
"$t('积分')"
>
<el-input
<el-input
v-model.number=
"
queryParams.title
"
v-model.number=
"
formQuery.scoreCount
"
:placeholder=
"$t('请输入积分')"
:placeholder=
"$t('请输入积分')"
clearable
clearable
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('备注')"
></el-form-item>
<el-form-item
:label=
"$t('备注')"
>
<el-input
type=
"textarea"
v-model=
"formQuery.comment"
></el-input>
</el-form-item>
</el-form>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
...
@@ -220,6 +222,7 @@
...
@@ -220,6 +222,7 @@
<
script
>
<
script
>
import
{
getDictDatas
,
DICT_TYPE
}
from
"
@/utils/dict
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
"
@/utils/dict
"
;
import
{
getTradeCountryList
,
getMemberList
}
from
"
@/api/ecw/giftManagement
"
;
import
{
getTradeCountryList
,
getMemberList
}
from
"
@/api/ecw/giftManagement
"
;
import
{
operateMemberScore
}
from
"
@/api/ecw/memberManagement
"
;
export
default
{
export
default
{
name
:
"
memberPointsSummary
"
,
name
:
"
memberPointsSummary
"
,
...
@@ -277,9 +280,26 @@ export default {
...
@@ -277,9 +280,26 @@ export default {
});
});
}
}
},
},
handleScoreSubmit
()
{},
handleScoreSubmit
()
{
this
.
$confirm
(
this
.
$t
(
"
确认提交?
"
))
.
then
((
_
)
=>
{
let
params
=
{
...
this
.
formQuery
};
operateMemberScore
(
params
).
then
((
res
)
=>
{
this
.
dialogVisible
=
true
;
this
.
formQuery
=
{
comment
:
""
,
memberIds
:
[],
operateType
:
null
,
scoreCount
:
null
,
};
this
.
selectedMember
=
[];
this
.
$message
.
success
(
this
.
$t
(
"
操作成功
"
));
});
})
.
catch
((
_
)
=>
{});
},
handleClose
(
done
)
{
handleClose
(
done
)
{
this
.
$confirm
(
"
确认关闭?
"
)
this
.
$confirm
(
this
.
$t
(
"
确认关闭?
"
)
)
.
then
((
_
)
=>
{
.
then
((
_
)
=>
{
done
();
done
();
})
})
...
@@ -312,12 +332,11 @@ export default {
...
@@ -312,12 +332,11 @@ export default {
handleQuery
()
{
handleQuery
()
{
this
.
queryParams
.
pageNo
=
1
;
this
.
queryParams
.
pageNo
=
1
;
let
params
=
{
...
this
.
queryParams
};
let
params
=
{
...
this
.
queryParams
};
this
.
addBeginAndEndTime
(
params
,
if
(
this
.
dateRangeCreateTime
.
length
>
0
)
{
this
.
dateRangeCreateTime
,
params
.
startTime
=
this
.
dateRangeCreateTime
[
0
];
"
createTime
"
,
params
.
endTime
=
this
.
dateRangeCreateTime
[
1
];
false
}
);
getMemberList
(
params
).
then
((
res
)
=>
{
getMemberList
(
params
).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
memberList
=
res
.
data
.
list
;
this
.
memberList
=
res
.
data
.
list
;
...
@@ -326,12 +345,10 @@ export default {
...
@@ -326,12 +345,10 @@ export default {
},
},
handleQueryPagination
()
{
handleQueryPagination
()
{
let
params
=
{
...
this
.
queryParams
};
let
params
=
{
...
this
.
queryParams
};
this
.
addBeginAndEndTime
(
if
(
this
.
dateRangeCreateTime
.
length
>
0
)
{
params
,
params
.
startTime
=
this
.
dateRangeCreateTime
[
0
];
this
.
dateRangeCreateTime
,
params
.
endTime
=
this
.
dateRangeCreateTime
[
1
];
"
createTime
"
,
}
false
);
getMemberList
(
params
).
then
((
res
)
=>
{
getMemberList
(
params
).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
memberList
=
res
.
data
.
list
;
this
.
memberList
=
res
.
data
.
list
;
...
...
src/views/member/user/index.vue
View file @
17c94196
This diff is collapsed.
Click to expand it.
src/views/member/user/memberDetails.vue
View file @
17c94196
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment