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

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

parent c763d340
......@@ -653,6 +653,22 @@ export default {
}
]
},
rulesDetails: {
level: [
{
required: true,
message: this.$t("等级不能为空"),
trigger: "blur"
}
],
remarks: [
{
required: true,
message: this.$t("更新原因不能为空"),
trigger: "blur"
}
],
},
getDictDatas,
DICT_TYPE,
details: {
......@@ -991,11 +1007,21 @@ export default {
},
submitDetails(){
let params = { ...this.levelDetails }
updateMemberLevelDetails(params).then((res) => {
this.loading = false;
this.handleQueryOperateLevelLog();
this.handleQueryDetailsLog();
this.$message.success(this.$t("更新成功"));
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;
}
})
}
})
},
......
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