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
3305a1b2
Commit
3305a1b2
authored
Jan 03, 2025
by
Smile
Committed by
wux
Jan 09, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员等级手动配置显示修改
parent
32c5f5bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
41 deletions
+7
-41
memberDetails.vue
src/views/member/user/memberDetails.vue
+7
-41
No files found.
src/views/member/user/memberDetails.vue
View file @
3305a1b2
...
...
@@ -469,8 +469,8 @@
<el-form-item
:label=
"$t('等级:')"
prop=
"level"
>
<dict-selector
v-model=
"levelDetails.level"
:disabled=
"levelDetailsCanEdit"
clearable
:type=
"DICT_TYPE.MEMBERSHIP_LEVELS"
/>
</el-form-item>
<el-form-item
:label=
"$t('等级有效期:')"
prop=
"validityPeriod"
>
<el-date-picker
type=
"date"
:placeholder=
"$t('请选择日期')"
:disabled=
"levelDetailsCanEdit"
v-model=
"levelDetails.validityPeriod"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
<el-form-item
:label=
"$t('等级有效期:')"
>
<el-date-picker
type=
"date
time
"
:placeholder=
"$t('请选择日期')"
:disabled=
"levelDetailsCanEdit"
v-model=
"levelDetails.validityPeriod"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
<el-form-item
:label=
"$t('等级特殊设置')"
>
<el-switch
...
...
@@ -653,29 +653,6 @@ export default {
}
]
},
rulesDetails
:
{
level
:
[
{
required
:
true
,
message
:
this
.
$t
(
"
等级不能为空
"
),
trigger
:
"
blur
"
}
],
validityPeriod
:
[
{
required
:
true
,
message
:
this
.
$t
(
"
等级有效期不能为空
"
),
trigger
:
"
blur
"
}
],
remarks
:
[
{
required
:
true
,
message
:
this
.
$t
(
"
更新原因不能为空
"
),
trigger
:
"
blur
"
}
],
},
getDictDatas
,
DICT_TYPE
,
details
:
{
...
...
@@ -1014,22 +991,11 @@ export default {
},
submitDetails
(){
let
params
=
{
...
this
.
levelDetails
}
if
(
params
.
memberId
==
''
){
params
.
memberId
=
this
.
$route
.
params
.
id
}
this
.
$refs
[
"
formDetails
"
].
validate
((
valid
)
=>
{
if
(
valid
){
updateMemberLevelDetails
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
this
.
loading
=
false
;
this
.
handleQueryOperateLevelLog
();
this
.
handleQueryDetailsLog
();
this
.
$message
.
success
(
this
.
$t
(
"
更新成功
"
));
this
.
levelDetailsShow
=
false
;
this
.
getDetails
()
}
})
}
updateMemberLevelDetails
(
params
).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
handleQueryOperateLevelLog
();
this
.
handleQueryDetailsLog
();
this
.
$message
.
success
(
this
.
$t
(
"
更新成功
"
));
})
},
...
...
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