fix:账户管理添加 人员二维码查看
This commit is contained in:
parent
b188b7b977
commit
af66fe7c26
|
@ -136,17 +136,22 @@
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
link
|
link
|
||||||
size="small"
|
|
||||||
v-if="!query.is_deleted"
|
v-if="!query.is_deleted"
|
||||||
@click="formSetting(scope.row)"
|
@click="formSetting(scope.row)"
|
||||||
v-auth="'user.update'"
|
v-auth="'user.update'"
|
||||||
>
|
>
|
||||||
设置
|
设置
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
link
|
||||||
|
@click="userERCode(scope.row)"
|
||||||
|
v-auth="'user.update'"
|
||||||
|
>
|
||||||
|
人员二维码
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
size="small"
|
|
||||||
type="warning"
|
type="warning"
|
||||||
@click="formEdit(scope.row, '2')"
|
@click="formEdit(scope.row, '2')"
|
||||||
v-auth="'user.update'"
|
v-auth="'user.update'"
|
||||||
|
@ -155,7 +160,6 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
size="small"
|
|
||||||
type="danger"
|
type="danger"
|
||||||
v-if="!query.is_deleted"
|
v-if="!query.is_deleted"
|
||||||
@click="formReset(scope.row)"
|
@click="formReset(scope.row)"
|
||||||
|
@ -172,7 +176,6 @@
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
type="danger"
|
type="danger"
|
||||||
size="small"
|
|
||||||
v-auth="'user.delete'"
|
v-auth="'user.delete'"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
|
@ -245,6 +248,27 @@
|
||||||
@success="handleSaveSuccess"
|
@success="handleSaveSuccess"
|
||||||
@closed="settingClose"
|
@closed="settingClose"
|
||||||
></save-dialog>
|
></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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -263,7 +287,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
dialog: {
|
dialog: {
|
||||||
save: false,
|
save: false,
|
||||||
// certSave:false,
|
qrCode:false,
|
||||||
},
|
},
|
||||||
isDeleted: true,
|
isDeleted: true,
|
||||||
deletedIs: false,
|
deletedIs: false,
|
||||||
|
@ -308,6 +332,8 @@ export default {
|
||||||
name: null,
|
name: null,
|
||||||
},
|
},
|
||||||
imageUrl: "",
|
imageUrl: "",
|
||||||
|
scQrCodeText: "",
|
||||||
|
userItem: {},
|
||||||
filterParams: {},
|
filterParams: {},
|
||||||
tableParams: {},
|
tableParams: {},
|
||||||
apiObj: this.$API.system.user.list,
|
apiObj: this.$API.system.user.list,
|
||||||
|
@ -352,6 +378,12 @@ export default {
|
||||||
getImgUrl(img) {
|
getImgUrl(img) {
|
||||||
return "http://49.232.14.174:2226" + 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() {
|
add() {
|
||||||
this.type = "add";
|
this.type = "add";
|
||||||
|
|
Loading…
Reference in New Issue