Commit 7331c976 by YG8429

修改绑定页面显示

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