init
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="id" prop="id">
|
||||
<el-input
|
||||
v-model="queryParams.id"
|
||||
placeholder="请输入用户编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="用户编号" prop="usercode">
|
||||
<el-input
|
||||
v-model="queryParams.usercode"
|
||||
@@ -50,17 +42,6 @@
|
||||
v-hasPermi="['xq:user:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['xq:user:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
@@ -141,7 +122,8 @@
|
||||
|
||||
<bind-invite-dialog v-if="bindInviteDialogVisible" ref="bindInviteDialog" @refreshDataList="getList" />
|
||||
<user-info-dialog v-if="userInfoDialogVisible" ref="userInfoDialog" />
|
||||
<add-user-dialog v-if="addUserDialogVisible" ref="addUserDialog" />
|
||||
<add-user-dialog v-if="addUserDialogVisible" ref="addUserDialog" @refreshDataList="getList" />
|
||||
<update-user-dialog v-if="updateUserDialogVisible" ref="updateUserDialog" @refreshDataList="getList" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -161,16 +143,18 @@ import { appUserTypeList, genderList, userStatusList } from '@/constant/statusMa
|
||||
import BindInviteDialog from '@/views/xq/user/bind-invite-dialog.vue'
|
||||
import UserInfoDialog from '@/views/xq/user/user-info-dialog.vue'
|
||||
import AddUserDialog from '@/views/xq/user/add-user-dialog.vue'
|
||||
import UpdateUserDialog from '@/views/xq/user/update-user-dialog.vue'
|
||||
|
||||
export default {
|
||||
name: "User",
|
||||
components: { BindInviteDialog,UserInfoDialog,AddUserDialog},
|
||||
components: { BindInviteDialog,UserInfoDialog,AddUserDialog,UpdateUserDialog},
|
||||
data() {
|
||||
return {
|
||||
userStatusList,genderList,appUserTypeList,
|
||||
bindInviteDialogVisible: false,
|
||||
userInfoDialogVisible: false,
|
||||
addUserDialogVisible: false,
|
||||
updateUserDialogVisible: false,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
@@ -234,7 +218,10 @@ export default {
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
|
||||
this.updateUserDialogVisible = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.updateUserDialog.init(row)
|
||||
})
|
||||
},
|
||||
handleInfo(row) {
|
||||
this.userInfoDialogVisible = true
|
||||
|
||||
Reference in New Issue
Block a user