|
@@ -91,7 +91,7 @@
|
|
|
<span>{{ parseTime(scope.row.loginTime) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="210">
|
|
|
+ <el-table-column label="操作" width="230">
|
|
|
<template slot-scope="scope">
|
|
|
<!-- <el-button
|
|
|
size="mini"
|
|
@@ -134,6 +134,12 @@
|
|
|
@click="myFamily(scope.row)"
|
|
|
v-hasPermi="['system:appUser:query']"
|
|
|
>家族</el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="danger"
|
|
|
+ @click="handleUpdate(scope.row)"
|
|
|
+ v-hasPermi="['system:appUser:edit']"
|
|
|
+ >修改</el-button>
|
|
|
</el-row>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -148,7 +154,7 @@
|
|
|
/>
|
|
|
|
|
|
<!-- 添加或修改会员对话框 -->
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="750px" append-to-body :close-on-click-modal=false>
|
|
|
+ <el-dialog :title="title" v-if="open" :visible.sync="open" width="750px" append-to-body :close-on-click-modal=false>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
<el-row :gutter="0" type="flex" justify="start">
|
|
|
<el-col :span="8">
|
|
@@ -162,7 +168,6 @@
|
|
|
<el-image
|
|
|
style="width: 36px; height: 36px"
|
|
|
:src="codeImg"
|
|
|
- @load="getQrcodeImg"
|
|
|
:preview-src-list="[codeUrl]">
|
|
|
</el-image>
|
|
|
</el-form-item>
|
|
@@ -425,15 +430,16 @@ export default {
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
+ debugger
|
|
|
this.readonly = true;
|
|
|
this.reset();
|
|
|
const id = row.userId || this.ids;
|
|
|
getUser(id).then(response => {
|
|
|
this.form = response.data;
|
|
|
+ this.getQrcodeImg(id);
|
|
|
this.open = true;
|
|
|
this.title = "修改会员";
|
|
|
});
|
|
|
- this.getQrcodeImg(row);
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
@@ -488,8 +494,9 @@ export default {
|
|
|
}).catch(function() {});
|
|
|
}
|
|
|
,
|
|
|
- getQrcodeImg(row) {
|
|
|
- const uid = row.id;
|
|
|
+ getQrcodeImg(id) {
|
|
|
+ debugger
|
|
|
+ const uid = id;
|
|
|
const url = window.location.origin + this.templateRoute+'/' + uid + '?type=profile'
|
|
|
const param = {url:url}
|
|
|
getQrcode(param).then(res => {
|