Commit 9c3c34e5 by chenyu

update: update

parent 7eca5848
......@@ -15,26 +15,24 @@
label-width="133px"
>
<el-form-item label="修改后等级:" prop="gradeId">
<template v-if="isClique">
<el-select v-model="form.gradeId" placeholder="请选择" style="width: 386px;">
<el-select v-model="form.gradeId" placeholder="请选择" style="width: 386px;">
<template v-if="isClique">
<el-option
v-for="item in cliqueGradeList"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</template>
<template v-else>
<el-select v-model="form.gradeId" placeholder="请选择" style="width: 386px;">
</template>
<template v-else>
<el-option
v-for="item in gradeList"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</template>
</template>
</el-select>
</el-form-item>
<el-form-item label="原因备注:" prop="remark">
<el-input
......@@ -102,7 +100,6 @@ export default {
gradeId: '',
remark: '',
},
gradeList: [], // 等级列表
rules: {
gradeId: [
{ required: true, message: '请选择修改后等级', trigger: 'change' },
......@@ -118,8 +115,8 @@ export default {
dialogVisible (n, o) {
this.visible = n;
if (n) {
const gradeId=this.isClique?this.cliqueGradeId:this.gradeId;
this.form=Object.assign({},...this.form,{gradeId, memberId: this.memberId })
const gradeId = this.isClique ? this.cliqueGradeId : this.gradeId;
this.form = Object.assign({}, ...this.form, { gradeId, memberId: this.memberId });
}
},
},
......@@ -132,10 +129,10 @@ export default {
this.$refs.form.validate(valid => {
if (valid) {
this.btnLoading = true;
let param={
const param = {
...this.form,
isClique:Number(this.isClique)
}
isClique: Number(this.isClique),
};
doFetch(url.memberGrade, Object.assign({}, param))
.then(res => {
if (res.data.errorCode === 0) {
......
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