|
|
@@ -116,6 +116,12 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="用户备注" align="center" prop="remark" />
|
|
|
+ <!-- 会员等级 -->
|
|
|
+ <el-table-column label="会员等级" align="center" prop="level" width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="userLevelOptions" :value="scope.row.level"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="上级昵称" align="center" prop="tuiName" />
|
|
|
<el-table-column label="app来源" align="center" prop="source" />
|
|
|
<el-table-column label="登陆设备" align="center" prop="loginDevice" />
|
|
|
@@ -179,6 +185,17 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <!-- 会员等级 -->
|
|
|
+ <el-form-item label="会员等级" prop="level">
|
|
|
+ <el-select v-model="form.level" placeholder="请选择会员等级" clearable size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in userLevelOptions"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="用户备注" prop="remark" >
|
|
|
<el-input v-model="form.remark" placeholder="请输入用户备注" type="textarea"/>
|
|
|
</el-form-item>
|
|
|
@@ -235,6 +252,7 @@ export default {
|
|
|
open:false,
|
|
|
},
|
|
|
userOptions: [],
|
|
|
+ userLevelOptions:[], // 用户等级
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
// 导出遮罩层
|
|
|
@@ -330,6 +348,9 @@ export default {
|
|
|
this.getDicts("sys_company_or").then(response => {
|
|
|
this.orOptions = response.data;
|
|
|
});
|
|
|
+ this.getDicts("user_level").then(response => {
|
|
|
+ this.userLevelOptions = response.data;
|
|
|
+ });
|
|
|
},
|
|
|
methods: {
|
|
|
/** 销售选择变化 */
|
|
|
@@ -378,6 +399,7 @@ export default {
|
|
|
phone: null,
|
|
|
integral: null,
|
|
|
status: null,
|
|
|
+ level:null,
|
|
|
tuiUserId: null,
|
|
|
tuiTime: null,
|
|
|
tuiUserCount: null,
|
|
|
@@ -428,6 +450,7 @@ export default {
|
|
|
this.open = true;
|
|
|
this.title = "修改用户";
|
|
|
this.form.status = String(this.form.status)
|
|
|
+ this.form.level = String(this.form.level)
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|