fix:账户管理添加 人员二维码查看

This commit is contained in:
shijing 2025-08-28 10:32:29 +08:00
parent b188b7b977
commit af66fe7c26
1 changed files with 38 additions and 6 deletions

View File

@ -136,17 +136,22 @@
<el-button
type="primary"
link
size="small"
v-if="!query.is_deleted"
@click="formSetting(scope.row)"
v-auth="'user.update'"
>
设置
</el-button>
<el-button
type="success"
link
@click="userERCode(scope.row)"
v-auth="'user.update'"
>
人员二维码
</el-button>
<el-button
link
size="small"
type="warning"
@click="formEdit(scope.row, '2')"
v-auth="'user.update'"
@ -155,7 +160,6 @@
</el-button>
<el-button
link
size="small"
type="danger"
v-if="!query.is_deleted"
@click="formReset(scope.row)"
@ -172,7 +176,6 @@
<el-button
link
type="danger"
size="small"
v-auth="'user.delete'"
>
删除
@ -245,6 +248,27 @@
@success="handleSaveSuccess"
@closed="settingClose"
></save-dialog>
<el-dialog title="人员二维码" v-model="dialog.qrCode" :width="600">
<el-container>
<el-main style="text-align: center;">
<el-descriptions :column="2">
<el-descriptions-item label="姓名:">
{{userItem.name}}
</el-descriptions-item>
<el-descriptions-item label="账号:">
{{userItem.username}}
</el-descriptions-item>
<el-descriptions-item label="部门:">
{{userItem.belong_dept_name}}
</el-descriptions-item>
<el-descriptions-item label="岗位:">
{{userItem.post_name}}
</el-descriptions-item>
</el-descriptions>
<scQrCode :text="scQrCodeText" style="margin: 50px 0;"></scQrCode>
</el-main>
</el-container>
</el-dialog>
</template>
<script>
@ -263,7 +287,7 @@ export default {
return {
dialog: {
save: false,
// certSave:false,
qrCode:false,
},
isDeleted: true,
deletedIs: false,
@ -308,6 +332,8 @@ export default {
name: null,
},
imageUrl: "",
scQrCodeText: "",
userItem: {},
filterParams: {},
tableParams: {},
apiObj: this.$API.system.user.list,
@ -352,6 +378,12 @@ export default {
getImgUrl(img) {
return "http://49.232.14.174:2226" + img;
},
userERCode(row){
let that = this;
that.userItem = row;
that.scQrCodeText = "user#"+row.id;
that.dialog.qrCode = true;
},
//
add() {
this.type = "add";