|
|
|
@ -17,6 +17,12 @@
|
|
|
|
|
<el-input v-model="form.integral" style="width: 370px;" |
|
|
|
|
type="number" oninput="if(value>999999)value=999999"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="会员等级" > |
|
|
|
|
<el-select v-model="form.level" filterable clearable> |
|
|
|
|
<el-option v-for="item in levelList" |
|
|
|
|
:value="item.grade" :key="item.id" :label="item.name" ></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="商户管理"> |
|
|
|
|
<el-radio v-model="form.adminid" :label="1">开启</el-radio> |
|
|
|
|
<el-radio v-model="form.adminid" :label="0">关闭</el-radio> |
|
|
|
@ -31,6 +37,7 @@
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { add, edit } from '@/api/bxg/yxUser' |
|
|
|
|
import {initData} from "@/api/bxg/data"; |
|
|
|
|
export default { |
|
|
|
|
props: { |
|
|
|
|
isAdd: { |
|
|
|
@ -40,6 +47,7 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
levelList:[], |
|
|
|
|
loading: false, dialog: false, |
|
|
|
|
form: { |
|
|
|
|
uid: '', |
|
|
|
@ -82,7 +90,20 @@ export default {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
this.getLevelList() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getLevelList() { |
|
|
|
|
initData('bxg/api/yxSystemUserLevel', { |
|
|
|
|
page: 0, |
|
|
|
|
size: 999, |
|
|
|
|
sort: 'id,desc', |
|
|
|
|
}).then(data => { |
|
|
|
|
this.levelList=data.content |
|
|
|
|
// console.log('this.levelList',this.levelList) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
cancel() { |
|
|
|
|
this.resetForm() |
|
|
|
|
}, |
|
|
|
|