Commit 7331c976 by YG8429

修改绑定页面显示

parent 136c06df
......@@ -128,27 +128,30 @@
<!-- 添加或修改分享活动绑定关系对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="上级用户头像" prop="avatar" v-show="false">
<el-input v-model="form.avatar" placeholder="请输入上级用户头像" />
</el-form-item>
<!-- <el-form-item label="下级用户头像" prop="newAvatar">-->
<!-- <el-input v-model="form.newAvatar" placeholder="请输入下级用户头像" />-->
<!-- </el-form-item>-->
<el-form-item label="上级用户id" prop="group">
<el-input @focus="openConsumer()" v-model="form.uid" placeholder="请输入上级用户id" />
<el-form-item label="上级用户id" prop="uid" v-show="false">
<el-input v-model="form.uid" placeholder="请输入上级用户id" />
</el-form-item>
<el-form-item label="下级用户id" prop="newUid" v-show="false">
<el-input v-model="form.newUid" placeholder="请输入上级用户id" />
</el-form-item>
<el-form-item label="上级用户昵称" prop="group">
<el-input v-model="form.nickName" placeholder="请输入上级用户昵称" />
<el-input @focus="openConsumer()" v-model="form.nickName" placeholder="请输入上级用户昵称" />
</el-form-item>
<el-form-item label="下级用户昵称" prop="newNickName">
<el-input v-model="form.newNickName" placeholder="请输入下级用户昵称" />
<el-input v-model="form.newNickName" :disabled="true" placeholder="请输入下级用户昵称" />
</el-form-item>
<el-form-item label="上级电话" prop="phone">
<el-input v-model="form.phone" placeholder="请输入上级电话" />
<el-input v-model="form.phone" :disabled="true" placeholder="请输入上级电话" />
</el-form-item>
<el-form-item label="下级电话" prop="newPhone">
<el-input v-model="form.newPhone" placeholder="请输入下级电话" />
<el-input v-model="form.newPhone" :disabled="true" placeholder="请输入下级电话" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -295,7 +298,7 @@ export default {
if (valid) {
if (this.form.id != null) {
updateActivities(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.$modal.msgSuccess(response.msg);
this.open = false;
this.getList();
});
......@@ -325,8 +328,10 @@ export default {
...this.queryParams
}, `activities_${new Date().getTime()}.xlsx`)
},
selectConsumerId(id) {
this.form.uid = id;
selectConsumerId(row) {
this.form.uid = row.id;
this.form.phone = row.phone;
this.form.nickName = row.nickName
},
}
};
......
......@@ -55,6 +55,7 @@
<script>
import { unallocatedUserList, authUserSelectAll } from "@/api/system/store";
import { listConsumer } from '@/api/system/consumer'
export default {
dicts: ['sys_user_sex', 'wechat_role_type'],
props: {
......@@ -90,18 +91,16 @@ export default {
methods: {
// 显示弹框
show() {
this.queryParams.storeId = this.storeId;
this.queryParams.position = this.position;
this.getList();
this.visible = true;
},
clickRow(row) {
this.$emit('selectConsumerList', row.id);
this.$emit('selectConsumerList', row);
this.visible = false;
},
// 查询表数据
getList() {
unallocatedUserList(this.queryParams).then(res => {
listConsumer(this.queryParams).then(res => {
this.consumerList = res.rows;
this.total = res.total;
});
......
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