|
|
|
@ -1,36 +1,28 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<el-card>
|
|
|
|
|
<el-form :model="query" label-width="100px">
|
|
|
|
|
<el-form :model="query" label-width="100px" :inline="true" class="query-form" size="mini">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="用户账号:">
|
|
|
|
|
<el-input v-model="query.userName" style="width: 90%" placeholder="请输入用户账号"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="状态:">
|
|
|
|
|
<el-select v-model="query.userFlag" style="width: 90%" placeholder="请选择状态">
|
|
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
|
|
<el-option label="禁用" value="0"></el-option>
|
|
|
|
|
<el-option label="正常" value="1"></el-option>
|
|
|
|
|
<el-option label="未验证" value="2"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-form-item label="用户账号:">
|
|
|
|
|
<el-input v-model="query.userName" placeholder="请输入用户账号"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="状态:">
|
|
|
|
|
<el-select v-model="query.userFlag" placeholder="请选择状态">
|
|
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
|
|
<el-option label="禁用" value="0"></el-option>
|
|
|
|
|
<el-option label="正常" value="1"></el-option>
|
|
|
|
|
<el-option label="未验证" value="2"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button-group>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="onSubmit">查询</el-button>
|
|
|
|
|
<el-button type="primary" @click.native="handleForm(null, null)">新增</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click.native="handleForm(null, null)">新增</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" border style="width: 100%">
|
|
|
|
|
<el-table-column label="序号" type="index" width="50" fixed></el-table-column>
|
|
|
|
|
<el-table-column label="用户账号" prop="userName" fixed></el-table-column>
|
|
|
|
@ -135,7 +127,7 @@ import {
|
|
|
|
|
authAdminDelete
|
|
|
|
|
} from '../../api/auth/authAdmin'
|
|
|
|
|
|
|
|
|
|
import { userInfo } from '../../api/auth/login'
|
|
|
|
|
import {userInfo} from '../../api/auth/login'
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
|
id: '',
|
|
|
|
@ -198,10 +190,10 @@ export default {
|
|
|
|
|
formData: formJson,
|
|
|
|
|
formRules: {},
|
|
|
|
|
addRules: {
|
|
|
|
|
userName: [{ required: true, message: '请输入姓名', trigger: 'blur' }],
|
|
|
|
|
userName: [{required: true, message: '请输入姓名', trigger: 'blur'}],
|
|
|
|
|
passWord: [
|
|
|
|
|
{ required: true, message: '请输入密码', trigger: 'blur' },
|
|
|
|
|
{ validator: validatePass, trigger: 'blur' }
|
|
|
|
|
{required: true, message: '请输入密码', trigger: 'blur'},
|
|
|
|
|
{validator: validatePass, trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
checkPassword: [
|
|
|
|
|
{
|
|
|
|
@ -209,14 +201,14 @@ export default {
|
|
|
|
|
message: '请再次输入密码',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
},
|
|
|
|
|
{ validator: validatePass2, trigger: 'blur' }
|
|
|
|
|
{validator: validatePass2, trigger: 'blur'}
|
|
|
|
|
]
|
|
|
|
|
// userFlag: [
|
|
|
|
|
// { required: true, message: "请选择状态", trigger: "change" },
|
|
|
|
|
// ],
|
|
|
|
|
},
|
|
|
|
|
editRules: {
|
|
|
|
|
userName: [{ required: true, message: '请输入姓名', trigger: 'blur' }]
|
|
|
|
|
userName: [{required: true, message: '请输入姓名', trigger: 'blur'}]
|
|
|
|
|
// userFlag: [
|
|
|
|
|
// { required: true, message: "请选择状态", trigger: "change" },
|
|
|
|
|
// ],
|
|
|
|
@ -381,7 +373,7 @@ export default {
|
|
|
|
|
type: 'warning'
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
let para = { id: row.id }
|
|
|
|
|
let para = {id: row.id}
|
|
|
|
|
this.deleteLoading = true
|
|
|
|
|
authAdminDelete(para)
|
|
|
|
|
.then((response) => {
|
|
|
|
@ -426,8 +418,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList()
|
|
|
|
|
debugger
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|