Commit 3305a1b2 authored by Smile's avatar Smile Committed by wux

会员等级手动配置显示修改

parent 32c5f5bd
...@@ -469,8 +469,8 @@ ...@@ -469,8 +469,8 @@
<el-form-item :label="$t('等级:')" prop="level"> <el-form-item :label="$t('等级:')" prop="level">
<dict-selector v-model="levelDetails.level" :disabled="levelDetailsCanEdit" clearable :type="DICT_TYPE.MEMBERSHIP_LEVELS" /> <dict-selector v-model="levelDetails.level" :disabled="levelDetailsCanEdit" clearable :type="DICT_TYPE.MEMBERSHIP_LEVELS" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('等级有效期:')" prop="validityPeriod"> <el-form-item :label="$t('等级有效期:')">
<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-date-picker type="datetime" :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>
<el-form-item :label="$t('等级特殊设置')"> <el-form-item :label="$t('等级特殊设置')">
<el-switch <el-switch
...@@ -653,29 +653,6 @@ export default { ...@@ -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, getDictDatas,
DICT_TYPE, DICT_TYPE,
details: { details: {
...@@ -1014,22 +991,11 @@ export default { ...@@ -1014,22 +991,11 @@ 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;
this.getDetails()
}
})
}
}) })
}, },
......
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