Commit 3c736808 authored by honghy's avatar honghy Committed by wux

会员等级那里不要显示“图片加载失败”

parent c763d340
...@@ -653,6 +653,22 @@ export default { ...@@ -653,6 +653,22 @@ export default {
} }
] ]
}, },
rulesDetails: {
level: [
{
required: true,
message: this.$t("等级不能为空"),
trigger: "blur"
}
],
remarks: [
{
required: true,
message: this.$t("更新原因不能为空"),
trigger: "blur"
}
],
},
getDictDatas, getDictDatas,
DICT_TYPE, DICT_TYPE,
details: { details: {
...@@ -991,11 +1007,21 @@ export default { ...@@ -991,11 +1007,21 @@ export default {
}, },
submitDetails(){ submitDetails(){
let params = { ...this.levelDetails } let params = { ...this.levelDetails }
if (params.memberId==''){
params.memberId = this.$route.params.id
}
this.$refs["formDetails"].validate((valid) => {
if (valid){
updateMemberLevelDetails(params).then((res) => { updateMemberLevelDetails(params).then((res) => {
if (res.code == 0){
this.loading = false; this.loading = false;
this.handleQueryOperateLevelLog(); this.handleQueryOperateLevelLog();
this.handleQueryDetailsLog(); this.handleQueryDetailsLog();
this.$message.success(this.$t("更新成功")); this.$message.success(this.$t("更新成功"));
this.levelDetailsShow=false;
}
})
}
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment