feat: 登录和用户接口typescript类型声明
This commit is contained in:
@@ -1,13 +1,15 @@
|
|||||||
|
import { LoginRequestParam, LoginResponseData } from "@/types";
|
||||||
import request from "@/utils/request";
|
import request from "@/utils/request";
|
||||||
|
import { AxiosPromise } from "axios";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 登录
|
* 登录
|
||||||
* @param data
|
* @param data
|
||||||
*/
|
*/
|
||||||
export function login(data: object) {
|
export function login(data: LoginRequestParam): AxiosPromise<LoginResponseData> {
|
||||||
return request({
|
return request({
|
||||||
url: '/youlai-auth/oauth/token',
|
url: '/youlai-auth/oauth/token',
|
||||||
method:'post',
|
method: 'post',
|
||||||
params: data,
|
params: data,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': 'Basic bWFsbC1hZG1pbi13ZWI6MTIzNDU2' // 客户端信息Base64明文:mall-admin-web:123456
|
'Authorization': 'Basic bWFsbC1hZG1pbi13ZWI6MTIzNDU2' // 客户端信息Base64明文:mall-admin-web:123456
|
||||||
@@ -15,16 +17,6 @@ export function login(data: object) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 登录成功后获取用户信息(包括用户头像、权限列表等)
|
|
||||||
*/
|
|
||||||
export function getUserInfo() {
|
|
||||||
return request({
|
|
||||||
url: '/youlai-admin/api/v1/users/me',
|
|
||||||
method: 'get'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 注销
|
* 注销
|
||||||
*/
|
*/
|
||||||
@@ -38,9 +30,9 @@ export function logout() {
|
|||||||
/**
|
/**
|
||||||
* 获取图片验证码
|
* 获取图片验证码
|
||||||
*/
|
*/
|
||||||
export function getCaptcha() {
|
export function getCaptcha(): AxiosPromise<string> {
|
||||||
return request({
|
return request({
|
||||||
url: '/captcha?t='+(new Date()).getTime().toString(),
|
url: '/captcha?t=' + (new Date()).getTime().toString(),
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,24 @@
|
|||||||
import request from "@/utils/request";
|
import request from "@/utils/request";
|
||||||
|
import { AxiosPromise } from "axios";
|
||||||
|
import { UserInfo, UserQueryParam } from "@/types";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 登录成功后获取用户信息(包括用户头像、权限列表等)
|
||||||
|
*/
|
||||||
|
export function getUserInfo(): AxiosPromise<UserInfo> {
|
||||||
|
return request({
|
||||||
|
url: '/youlai-admin/api/v1/users/me',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取用户分页列表
|
* 获取用户分页列表
|
||||||
*
|
*
|
||||||
* @param queryParams
|
* @param queryParams
|
||||||
*/
|
*/
|
||||||
export function listUsersWithPage(queryParams: any) {
|
export function listUserPages(queryParams: UserQueryParam) {
|
||||||
return request({
|
return request({
|
||||||
url: '/youlai-admin/api/v1/users/page',
|
url: '/youlai-admin/api/v1/users/page',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import {UserState} from "@/store/interface";
|
import { UserState } from "@/store/interface";
|
||||||
import {localStorage} from "@/utils/storage";
|
import { localStorage } from "@/utils/storage";
|
||||||
import {getUserInfo, login, logout} from "@/api/login";
|
import { login, logout } from "@/api/login";
|
||||||
import {resetRouter} from "@/router";
|
import { resetRouter } from "@/router";
|
||||||
|
import { getUserInfo } from "@/api/system/user";
|
||||||
|
|
||||||
const useUserStore = defineStore({
|
const useUserStore = defineStore({
|
||||||
id:"user",
|
id: "user",
|
||||||
state: ():UserState=>({
|
state: (): UserState => ({
|
||||||
token: localStorage.get('token') || '',
|
token: localStorage.get('token') || '',
|
||||||
nickname: '',
|
nickname: '',
|
||||||
avatar: '',
|
avatar: '',
|
||||||
@@ -14,7 +15,7 @@ import {resetRouter} from "@/router";
|
|||||||
perms: []
|
perms: []
|
||||||
}),
|
}),
|
||||||
actions: {
|
actions: {
|
||||||
async RESET_STATE () {
|
async RESET_STATE() {
|
||||||
this.$reset()
|
this.$reset()
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@@ -26,7 +27,7 @@ import {resetRouter} from "@/router";
|
|||||||
* uuid: 匹配正确验证码的 key
|
* uuid: 匹配正确验证码的 key
|
||||||
*/
|
*/
|
||||||
login(userInfo: { username: string, password: string, code: string, uuid: string }) {
|
login(userInfo: { username: string, password: string, code: string, uuid: string }) {
|
||||||
const {username, password, code, uuid} = userInfo
|
const { username, password, code, uuid } = userInfo
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
login(
|
login(
|
||||||
{
|
{
|
||||||
@@ -37,7 +38,7 @@ import {resetRouter} from "@/router";
|
|||||||
uuid: uuid
|
uuid: uuid
|
||||||
}
|
}
|
||||||
).then(response => {
|
).then(response => {
|
||||||
const {access_token, token_type} = response.data
|
const { access_token, token_type } = response.data
|
||||||
const accessToken = token_type + " " + access_token
|
const accessToken = token_type + " " + access_token
|
||||||
localStorage.set("token", accessToken)
|
localStorage.set("token", accessToken)
|
||||||
this.token = accessToken
|
this.token = accessToken
|
||||||
@@ -52,24 +53,24 @@ import {resetRouter} from "@/router";
|
|||||||
*/
|
*/
|
||||||
getUserInfo() {
|
getUserInfo() {
|
||||||
return new Promise(((resolve, reject) => {
|
return new Promise(((resolve, reject) => {
|
||||||
getUserInfo().then(response => {
|
getUserInfo().then(response => {
|
||||||
const {data} = response
|
const { data } = response
|
||||||
if (!data) {
|
if (!data) {
|
||||||
return reject('Verification failed, please Login again.')
|
return reject('Verification failed, please Login again.')
|
||||||
}
|
}
|
||||||
const {nickname, avatar, roles, perms} = data
|
const { nickname, avatar, roles, perms } = data
|
||||||
if (!roles || roles.length <= 0) {
|
if (!roles || roles.length <= 0) {
|
||||||
reject('getUserInfo: roles must be a non-null array!')
|
reject('getUserInfo: roles must be a non-null array!')
|
||||||
}
|
}
|
||||||
this.nickname = nickname
|
this.nickname = nickname
|
||||||
this.avatar = avatar
|
this.avatar = avatar
|
||||||
this.roles = roles
|
this.roles = roles
|
||||||
this.perms = perms
|
this.perms = perms
|
||||||
resolve(data)
|
resolve(data)
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
reject(error)
|
reject(error)
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
})
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -92,8 +93,8 @@ import {resetRouter} from "@/router";
|
|||||||
/**
|
/**
|
||||||
* 清除 Token
|
* 清除 Token
|
||||||
*/
|
*/
|
||||||
resetToken(){
|
resetToken() {
|
||||||
return new Promise(resolve=>{
|
return new Promise(resolve => {
|
||||||
localStorage.remove('token')
|
localStorage.remove('token')
|
||||||
this.RESET_STATE()
|
this.RESET_STATE()
|
||||||
resolve(null)
|
resolve(null)
|
||||||
|
|||||||
11
src/types/api/base.d.ts
vendored
Normal file
11
src/types/api/base.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
export interface Page {
|
||||||
|
pageNum: number,
|
||||||
|
pageSize: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PageResult<T> {
|
||||||
|
data: T,
|
||||||
|
total: number
|
||||||
|
}
|
||||||
|
|
||||||
18
src/types/api/login.d.ts
vendored
Normal file
18
src/types/api/login.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
/**
|
||||||
|
* 登录请求参数
|
||||||
|
*/
|
||||||
|
export interface LoginRequestParam {
|
||||||
|
username: string,
|
||||||
|
password: string,
|
||||||
|
grant_type: string,
|
||||||
|
code: string,
|
||||||
|
uuid: string,
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 登录响应参数
|
||||||
|
*/
|
||||||
|
export interface LoginResponseData {
|
||||||
|
access_token: string,
|
||||||
|
token_type: string
|
||||||
|
}
|
||||||
20
src/types/api/user.d.ts
vendored
Normal file
20
src/types/api/user.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import { Page, PageResult } from "./base"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户信息
|
||||||
|
*/
|
||||||
|
export interface UserInfo {
|
||||||
|
nickname: string,
|
||||||
|
avatar: string,
|
||||||
|
roles: string[],
|
||||||
|
perms: string[]
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户查询参数
|
||||||
|
*/
|
||||||
|
export interface UserQueryParam extends Page {
|
||||||
|
keywords: String | undefined,
|
||||||
|
status: number | undefined ,
|
||||||
|
deptId: number | undefined
|
||||||
|
}
|
||||||
2
src/types/index.d.ts
vendored
Normal file
2
src/types/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export * from './api/login'
|
||||||
|
export * from './api/user'
|
||||||
@@ -1,58 +1,48 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<!-- 部门数据 -->
|
<!-- 部门树 -->
|
||||||
<el-col
|
<el-col :span="4" :xs="24">
|
||||||
:span="4"
|
|
||||||
:xs="24"
|
|
||||||
>
|
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="deptName"
|
v-model="deptName"
|
||||||
placeholder="部门名称"
|
placeholder="部门名称"
|
||||||
clearable
|
clearable
|
||||||
:prefix-icon="Search"
|
:prefix-icon="Search"
|
||||||
style="margin-bottom: 20px"
|
style="margin-bottom: 20px"
|
||||||
/>
|
/>
|
||||||
<el-tree
|
<el-tree
|
||||||
ref="deptTreeRef"
|
ref="deptTreeRef"
|
||||||
:data="deptOptions"
|
:data="deptOptions"
|
||||||
:props="{ children: 'children',label: 'label',disabled:''}"
|
:props="{ children: 'children', label: 'label', disabled: '' }"
|
||||||
:expand-on-click-node="false"
|
:expand-on-click-node="false"
|
||||||
:filter-node-method="filterDeptNode"
|
:filter-node-method="filterDeptNode"
|
||||||
default-expand-all
|
default-expand-all
|
||||||
@node-click="handleDeptNodeClick"
|
@node-click="handleDeptNodeClick"
|
||||||
>
|
>
|
||||||
</el-tree>
|
</el-tree>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<!-- 用户数据 -->
|
<!-- 用户数据 -->
|
||||||
<el-col
|
<el-col :span="20" :xs="24">
|
||||||
:span="20"
|
|
||||||
:xs="24"
|
|
||||||
>
|
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<el-form
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||||
ref="queryFormRef"
|
|
||||||
:model="queryParams"
|
|
||||||
:inline="true"
|
|
||||||
>
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="success"
|
||||||
:icon="Plus"
|
:icon="Plus"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPerm="['sys:user:add']"
|
v-hasPerm="['sys:user:add']"
|
||||||
>
|
>
|
||||||
新增
|
新增
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
:icon="Delete"
|
:icon="Delete"
|
||||||
:disabled="multiple"
|
:disabled="multiple"
|
||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
v-hasPerm="['sys:user:delete']"
|
v-hasPerm="['sys:user:delete']"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -60,136 +50,115 @@
|
|||||||
|
|
||||||
<el-form-item prop="keywords">
|
<el-form-item prop="keywords">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.keywords"
|
v-model="queryParams.keywords"
|
||||||
placeholder="用户名/昵称/手机号"
|
placeholder="用户名/昵称/手机号"
|
||||||
clearable
|
clearable
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
@keyup.enter="handleQuery"
|
@keyup.enter="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item prop="status">
|
<el-form-item prop="status">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.status"
|
v-model="queryParams.status"
|
||||||
placeholder="用户状态"
|
placeholder="用户状态"
|
||||||
clearable
|
clearable
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
>
|
>
|
||||||
<el-option label="正常" value="1"/>
|
<el-option label="正常" value="1" />
|
||||||
<el-option label="停用" value="0"/>
|
<el-option label="停用" value="0" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button type="primary" :icon="Search" @click="handleQuery">
|
||||||
type="primary"
|
|
||||||
:icon="Search"
|
|
||||||
@click="handleQuery"
|
|
||||||
>
|
|
||||||
搜索
|
搜索
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button :icon="Refresh" @click="resetQuery"> 重置 </el-button>
|
||||||
:icon="Refresh"
|
|
||||||
@click="resetQuery"
|
|
||||||
>
|
|
||||||
重置
|
|
||||||
</el-button>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="pageList"
|
:data="pageList"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
|
<el-table-column type="selection" width="50" align="center" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="selection"
|
key="id"
|
||||||
width="50"
|
label="用户编号"
|
||||||
align="center"
|
align="center"
|
||||||
|
prop="id"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
key="id"
|
key="username"
|
||||||
label="用户编号"
|
label="用户名称"
|
||||||
align="center"
|
align="center"
|
||||||
prop="id"
|
prop="username"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
key="username"
|
label="用户昵称"
|
||||||
label="用户名称"
|
align="center"
|
||||||
align="center"
|
prop="nickname"
|
||||||
prop="username"
|
:show-overflow-tooltip="true"
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="用户昵称"
|
label="部门"
|
||||||
align="center"
|
align="center"
|
||||||
prop="nickname"
|
prop="deptName"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="部门"
|
label="手机号码"
|
||||||
align="center"
|
align="center"
|
||||||
prop="deptName"
|
prop="mobile"
|
||||||
:show-overflow-tooltip="true"
|
width="120"
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="手机号码"
|
|
||||||
align="center"
|
|
||||||
prop="mobile"
|
|
||||||
width="120"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column label="状态" align="center" prop="status">
|
||||||
label="状态"
|
|
||||||
align="center"
|
|
||||||
prop="status"
|
|
||||||
>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.status"
|
v-model="scope.row.status"
|
||||||
:inactive-value=0
|
:inactive-value="0"
|
||||||
:active-value=1
|
:active-value="1"
|
||||||
@change="handleStatusChange(scope.row)"
|
@change="handleStatusChange(scope.row)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="创建时间"
|
label="创建时间"
|
||||||
align="center"
|
align="center"
|
||||||
prop="gmtCreate"
|
prop="gmtCreate"
|
||||||
width="180"
|
width="180"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="操作" align="center" width="150">
|
||||||
label="操作"
|
|
||||||
align="center"
|
|
||||||
width="150"
|
|
||||||
>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
:icon="Edit"
|
:icon="Edit"
|
||||||
circle
|
circle
|
||||||
plain
|
plain
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPerm="['sys:user:edit']"
|
v-hasPerm="['sys:user:edit']"
|
||||||
>
|
>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
:icon="Delete"
|
:icon="Delete"
|
||||||
circle
|
circle
|
||||||
plain
|
plain
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPerm="['sys:user:delete']"
|
v-hasPerm="['sys:user:delete']"
|
||||||
>
|
>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="warning"
|
type="warning"
|
||||||
:icon="Lock"
|
:icon="Lock"
|
||||||
circle
|
circle
|
||||||
plain
|
plain
|
||||||
@click="resetPassword(scope.row)"
|
@click="resetPassword(scope.row)"
|
||||||
>
|
>
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -197,11 +166,11 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
v-show="total>0"
|
v-show="total > 0"
|
||||||
:total="total"
|
:total="total"
|
||||||
v-model:page="queryParams.pageNum"
|
v-model:page="queryParams.pageNum"
|
||||||
v-model:limit="queryParams.pageSize"
|
v-model:limit="queryParams.pageSize"
|
||||||
@pagination="handleQuery"
|
@pagination="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -209,70 +178,51 @@
|
|||||||
|
|
||||||
<!-- 添加或修改参数配置对话框 -->
|
<!-- 添加或修改参数配置对话框 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="dialog.title"
|
:title="dialog.title"
|
||||||
v-model="dialog.visible"
|
v-model="dialog.visible"
|
||||||
width="600px"
|
width="600px"
|
||||||
append-to-body
|
append-to-body
|
||||||
@close="cancel"
|
@close="cancel"
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form
|
||||||
ref="dataFormRef"
|
ref="dataFormRef"
|
||||||
:model="formData"
|
:model="formData"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
label-width="80px"
|
label-width="80px"
|
||||||
>
|
>
|
||||||
|
<el-form-item label="用户名" prop="username">
|
||||||
<el-form-item
|
|
||||||
label="用户名"
|
|
||||||
prop="username"
|
|
||||||
>
|
|
||||||
<el-input
|
<el-input
|
||||||
:readonly="!!formData.id"
|
:readonly="!!formData.id"
|
||||||
v-model="formData.username"
|
v-model="formData.username"
|
||||||
placeholder="请输入用户名"
|
placeholder="请输入用户名"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item
|
<el-form-item label="用户昵称" prop="nickname">
|
||||||
label="用户昵称"
|
<el-input v-model="formData.nickname" placeholder="请输入用户昵称" />
|
||||||
prop="nickname"
|
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
v-model="formData.nickname"
|
|
||||||
placeholder="请输入用户昵称"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item
|
<el-form-item label="归属部门" prop="deptId">
|
||||||
label="归属部门"
|
|
||||||
prop="deptId"
|
|
||||||
>
|
|
||||||
<tree-select
|
<tree-select
|
||||||
v-model="formData.deptId"
|
v-model="formData.deptId"
|
||||||
:options="deptOptions"
|
:options="deptOptions"
|
||||||
placeholder="请选择归属部门"
|
placeholder="请选择归属部门"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item
|
<el-form-item label="手机号码" prop="mobile">
|
||||||
label="手机号码"
|
|
||||||
prop="mobile"
|
|
||||||
>
|
|
||||||
<el-input
|
<el-input
|
||||||
v-model="formData.mobile"
|
v-model="formData.mobile"
|
||||||
placeholder="请输入手机号码"
|
placeholder="请输入手机号码"
|
||||||
maxlength="11"
|
maxlength="11"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item
|
<el-form-item label="邮箱" prop="email">
|
||||||
label="邮箱"
|
|
||||||
prop="email"
|
|
||||||
>
|
|
||||||
<el-input
|
<el-input
|
||||||
v-model="formData.email"
|
v-model="formData.email"
|
||||||
placeholder="请输入邮箱"
|
placeholder="请输入邮箱"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
@@ -284,42 +234,28 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="用户性别" prop="gender">
|
<el-form-item label="用户性别" prop="gender">
|
||||||
<el-select
|
<el-select v-model="formData.gender" placeholder="请选择">
|
||||||
v-model="formData.gender"
|
<el-option label="未知" :value="0" />
|
||||||
placeholder="请选择"
|
<el-option label="男" :value="1" />
|
||||||
>
|
<el-option label="女" :value="2" />
|
||||||
<el-option label="未知" :value="0"/>
|
|
||||||
<el-option label="男" :value="1"/>
|
|
||||||
<el-option label="女" :value="2"/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="角色" prop="roleIds">
|
<el-form-item label="角色" prop="roleIds">
|
||||||
<el-select
|
<el-select v-model="formData.roleIds" multiple placeholder="请选择">
|
||||||
v-model="formData.roleIds"
|
|
||||||
multiple
|
|
||||||
placeholder="请选择"
|
|
||||||
>
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in roleOptions"
|
v-for="item in roleOptions"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="dialog-footer">
|
<div class="dialog-footer">
|
||||||
<el-button
|
<el-button type="primary" @click="submitForm"> 确 定 </el-button>
|
||||||
type="primary"
|
<el-button @click="cancel"> 取 消 </el-button>
|
||||||
@click="submitForm"
|
|
||||||
>
|
|
||||||
确 定
|
|
||||||
</el-button>
|
|
||||||
<el-button @click="cancel">
|
|
||||||
取 消
|
|
||||||
</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@@ -328,24 +264,46 @@
|
|||||||
|
|
||||||
<script setup lang='ts'>
|
<script setup lang='ts'>
|
||||||
// Vue依赖
|
// Vue依赖
|
||||||
import {reactive, ref, unref, watchEffect, onMounted, getCurrentInstance, toRefs} from 'vue'
|
import {
|
||||||
|
reactive,
|
||||||
|
ref,
|
||||||
|
unref,
|
||||||
|
watchEffect,
|
||||||
|
onMounted,
|
||||||
|
getCurrentInstance,
|
||||||
|
toRefs,
|
||||||
|
} from "vue";
|
||||||
|
|
||||||
// API依赖
|
// API依赖
|
||||||
import {listUsersWithPage, getUserFormDetail, deleteUsers, addUser, updateUser, updateUserPart} from '@/api/system/user'
|
import {
|
||||||
import {listDeptSelect} from '@/api/system/dept'
|
listUserPages,
|
||||||
import {listRoles} from '@/api/system/role'
|
getUserFormDetail,
|
||||||
|
deleteUsers,
|
||||||
|
addUser,
|
||||||
|
updateUser,
|
||||||
|
updateUserPart,
|
||||||
|
} from "@/api/system/user";
|
||||||
|
import { listDeptSelect } from "@/api/system/dept";
|
||||||
|
import { listRoles } from "@/api/system/role";
|
||||||
|
|
||||||
// 组件依赖
|
// 组件依赖
|
||||||
import {ElMessage, ElMessageBox, ElTree, ElForm} from 'element-plus'
|
import { ElMessage, ElMessageBox, ElTree, ElForm } from "element-plus";
|
||||||
import {Search, Plus, Edit, Refresh, Delete, Lock} from '@element-plus/icons-vue'
|
import {
|
||||||
import TreeSelect from '@/components/TreeSelect/index.vue'
|
Search,
|
||||||
|
Plus,
|
||||||
|
Edit,
|
||||||
|
Refresh,
|
||||||
|
Delete,
|
||||||
|
Lock,
|
||||||
|
} from "@element-plus/icons-vue";
|
||||||
|
import TreeSelect from "@/components/TreeSelect/index.vue";
|
||||||
|
|
||||||
// DOM元素的引用声明定义
|
// DOM元素的引用声明定义
|
||||||
const deptTreeRef = ref(ElTree) // 变量名和DOM的ref属性值一致
|
const deptTreeRef = ref(ElTree); // 变量名和DOM的ref属性值一致
|
||||||
const queryFormRef = ref(ElForm)
|
const queryFormRef = ref(ElForm);
|
||||||
const dataFormRef = ref(ElForm)
|
const dataFormRef = ref(ElForm);
|
||||||
|
|
||||||
const {proxy}: any = getCurrentInstance();
|
const { proxy }: any = getCurrentInstance();
|
||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
@@ -362,10 +320,10 @@ const state = reactive({
|
|||||||
pageList: [],
|
pageList: [],
|
||||||
// 弹窗属性
|
// 弹窗属性
|
||||||
dialog: {
|
dialog: {
|
||||||
title: '',
|
title: "",
|
||||||
visible: false
|
visible: false,
|
||||||
},
|
},
|
||||||
deptName:undefined,
|
deptName: undefined,
|
||||||
// 部门树选项
|
// 部门树选项
|
||||||
deptOptions: [],
|
deptOptions: [],
|
||||||
// 部门名称
|
// 部门名称
|
||||||
@@ -379,52 +337,46 @@ const state = reactive({
|
|||||||
deptId: undefined,
|
deptId: undefined,
|
||||||
username: undefined,
|
username: undefined,
|
||||||
nickname: undefined,
|
nickname: undefined,
|
||||||
password: '',
|
password: "",
|
||||||
mobile: undefined,
|
mobile: undefined,
|
||||||
email: undefined,
|
email: undefined,
|
||||||
gender: undefined,
|
gender: undefined,
|
||||||
status: 1,
|
status: 1,
|
||||||
remark: undefined,
|
remark: undefined,
|
||||||
roleIds: []
|
roleIds: [],
|
||||||
},
|
},
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams:{
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
keywords: undefined,
|
keywords: undefined,
|
||||||
status: undefined,
|
status: undefined,
|
||||||
deptId: undefined
|
deptId: undefined,
|
||||||
},
|
},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
username: [
|
username: [{ required: true, message: "用户名不能为空", trigger: "blur" }],
|
||||||
{required: true, message: '用户名不能为空', trigger: 'blur'}
|
|
||||||
],
|
|
||||||
nickname: [
|
nickname: [
|
||||||
{required: true, message: '用户昵称不能为空', trigger: 'blur'}
|
{ required: true, message: "用户昵称不能为空", trigger: "blur" },
|
||||||
],
|
|
||||||
deptId: [
|
|
||||||
{required: true, message: '归属部门不能为空', trigger: 'blur'}
|
|
||||||
],
|
|
||||||
roleId: [
|
|
||||||
{required: true, message: '用户角色不能为空', trigger: 'blur'}
|
|
||||||
],
|
],
|
||||||
|
deptId: [{ required: true, message: "归属部门不能为空", trigger: "blur" }],
|
||||||
|
roleId: [{ required: true, message: "用户角色不能为空", trigger: "blur" }],
|
||||||
email: [
|
email: [
|
||||||
{
|
{
|
||||||
pattern: /\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/,
|
pattern: /\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/,
|
||||||
message: '请输入正确的邮箱地址',
|
message: "请输入正确的邮箱地址",
|
||||||
trigger: 'blur'
|
trigger: "blur",
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
mobile: [
|
mobile: [
|
||||||
{
|
{
|
||||||
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
||||||
message: '请输入正确的手机号码',
|
message: "请输入正确的手机号码",
|
||||||
trigger: 'blur'
|
trigger: "blur",
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
})
|
});
|
||||||
|
|
||||||
const {
|
const {
|
||||||
loading,
|
loading,
|
||||||
@@ -438,238 +390,251 @@ const {
|
|||||||
rules,
|
rules,
|
||||||
deptName,
|
deptName,
|
||||||
deptOptions,
|
deptOptions,
|
||||||
roleOptions
|
roleOptions,
|
||||||
} = toRefs(state)
|
} = toRefs(state);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 部门筛选
|
* 部门筛选
|
||||||
**/
|
*/
|
||||||
watchEffect(() => {
|
watchEffect(
|
||||||
const deptTree = unref(deptTreeRef)
|
() => {
|
||||||
deptTree.filter(state.deptName)
|
const deptTree = unref(deptTreeRef);
|
||||||
}, {
|
deptTree.filter(state.deptName);
|
||||||
flush: 'post' // watchEffect会在DOM挂载或者更新之前就会触发,此属性控制在DOM元素更新后运行
|
},
|
||||||
})
|
{
|
||||||
|
flush: "post", // watchEffect会在DOM挂载或者更新之前就会触发,此属性控制在DOM元素更新后运行
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
function filterDeptNode(value: string, data: any) {
|
function filterDeptNode(value: string, data: any) {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return true
|
return true;
|
||||||
}
|
}
|
||||||
return data.label.indexOf(value) !== -1
|
return data.label.indexOf(value) !== -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 部门树节点点击事件
|
* 部门树节点点击事件
|
||||||
*/
|
*/
|
||||||
function handleDeptNodeClick(data: { [key: string]: any }) {
|
function handleDeptNodeClick(data: { [key: string]: any }) {
|
||||||
state.queryParams.deptId = data.id
|
state.queryParams.deptId = data.id;
|
||||||
handleQuery()
|
handleQuery();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 加载角色数据
|
* 加载角色数据
|
||||||
*/
|
*/
|
||||||
async function loadRoleOptions() {
|
async function loadRoleOptions() {
|
||||||
listRoles().then(response => {
|
listRoles().then((response) => {
|
||||||
state.roleOptions = response.data
|
state.roleOptions = response.data;
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户状态修改
|
* 用户状态修改
|
||||||
*/
|
*/
|
||||||
function handleStatusChange(row: { [key: string]: any }) {
|
function handleStatusChange(row: { [key: string]: any }) {
|
||||||
const text = row.status === 1 ? '启用' : '停用'
|
const text = row.status === 1 ? "启用" : "停用";
|
||||||
ElMessageBox.confirm('确认要' + text + '' + row.username + '用户吗?', '警告', {
|
ElMessageBox.confirm(
|
||||||
confirmButtonText: '确定',
|
"确认要" + text + "" + row.username + "用户吗?",
|
||||||
cancelButtonText: '取消',
|
"警告",
|
||||||
type: 'warning'
|
{
|
||||||
}).then(() => {
|
confirmButtonText: "确定",
|
||||||
return updateUserPart(row.id, {status: row.status})
|
cancelButtonText: "取消",
|
||||||
}).then(() => {
|
type: "warning",
|
||||||
ElMessage.success(text + '成功')
|
}
|
||||||
}).catch(() => {
|
)
|
||||||
row.status = row.status === 1 ? 0 : 1
|
.then(() => {
|
||||||
})
|
return updateUserPart(row.id, { status: row.status });
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
ElMessage.success(text + "成功");
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
row.status = row.status === 1 ? 0 : 1;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户查询
|
* 用户查询
|
||||||
**/
|
**/
|
||||||
function handleQuery() {
|
function handleQuery() {
|
||||||
state.loading = true
|
state.loading = true;
|
||||||
listUsersWithPage(state.queryParams).then(response => {
|
listUserPages(state.queryParams).then((response) => {
|
||||||
const {data, total} = response as any
|
const { data, total } = response as any;
|
||||||
state.pageList = data
|
state.pageList = data;
|
||||||
state.total = total
|
state.total = total;
|
||||||
state.loading = false
|
state.loading = false;
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重置查询
|
* 重置查询
|
||||||
*/
|
*/
|
||||||
function resetQuery() {
|
function resetQuery() {
|
||||||
const queryForm = unref(queryFormRef)
|
const queryForm = unref(queryFormRef);
|
||||||
queryForm.resetFields()
|
queryForm.resetFields();
|
||||||
handleQuery()
|
handleQuery();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表格行选中事件
|
* 表格行选中事件
|
||||||
**/
|
*/
|
||||||
function handleSelectionChange(selection: any) {
|
function handleSelectionChange(selection: any) {
|
||||||
state.ids = selection.map((item: any) => item.id)
|
state.ids = selection.map((item: any) => item.id);
|
||||||
state.single = selection.length !== 1
|
state.single = selection.length !== 1;
|
||||||
state.multiple = !selection.length
|
state.multiple = !selection.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 密码重置
|
* 密码重置
|
||||||
**/
|
*/
|
||||||
function resetPassword(row: { [key: string]: any }) {
|
function resetPassword(row: { [key: string]: any }) {
|
||||||
ElMessageBox.prompt('请输入用户「' + row.username + '」的新密码', '重置密码', {
|
ElMessageBox.prompt(
|
||||||
confirmButtonText: '确定',
|
"请输入用户「" + row.username + "」的新密码",
|
||||||
cancelButtonText: '取消'
|
"重置密码",
|
||||||
}).then(({value}) => {
|
{
|
||||||
if (!value) {
|
confirmButtonText: "确定",
|
||||||
ElMessage.warning("请输入新密码")
|
cancelButtonText: "取消",
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
updateUserPart(row.id, {
|
)
|
||||||
password: value
|
.then(({ value }) => {
|
||||||
}).then(() => {
|
if (!value) {
|
||||||
ElMessage.success('修改成功,新密码是:' + value)
|
ElMessage.warning("请输入新密码");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
updateUserPart(row.id, {
|
||||||
|
password: value,
|
||||||
|
}).then(() => {
|
||||||
|
ElMessage.success("修改成功,新密码是:" + value);
|
||||||
|
});
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
.catch(() => {});
|
||||||
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 添加用户
|
* 添加用户
|
||||||
**/
|
**/
|
||||||
async function handleAdd() {
|
async function handleAdd() {
|
||||||
await loadDeptOptions()
|
await loadDeptOptions();
|
||||||
await loadRoleOptions()
|
await loadRoleOptions();
|
||||||
state.dialog = {
|
state.dialog = {
|
||||||
title: '添加用户',
|
title: "添加用户",
|
||||||
visible: true
|
visible: true,
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改用户
|
* 修改用户
|
||||||
**/
|
**/
|
||||||
async function handleUpdate(row: { [key: string]: any }) {
|
async function handleUpdate(row: { [key: string]: any }) {
|
||||||
const userId = row.id || state.ids
|
const userId = row.id || state.ids;
|
||||||
await loadDeptOptions()
|
await loadDeptOptions();
|
||||||
await loadRoleOptions()
|
await loadRoleOptions();
|
||||||
state.dialog = {
|
state.dialog = {
|
||||||
title: '修改用户',
|
title: "修改用户",
|
||||||
visible: true
|
visible: true,
|
||||||
}
|
};
|
||||||
getUserFormDetail(userId).then((response: any) => {
|
getUserFormDetail(userId).then((response: any) => {
|
||||||
state.formData = response.data
|
state.formData = response.data;
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表单提交
|
* 表单提交
|
||||||
**/
|
*/
|
||||||
function submitForm() {
|
function submitForm() {
|
||||||
const dataForm = unref(dataFormRef)
|
const dataForm = unref(dataFormRef);
|
||||||
dataForm.validate((valid: any) => {
|
dataForm.validate((valid: any) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
const userId = state.formData.id
|
const userId = state.formData.id;
|
||||||
if (userId) {
|
if (userId) {
|
||||||
updateUser(userId, state.formData).then(() => {
|
updateUser(userId, state.formData).then(() => {
|
||||||
ElMessage.success('修改用户成功')
|
ElMessage.success("修改用户成功");
|
||||||
state.dialog.visible = false
|
state.dialog.visible = false;
|
||||||
resetForm()
|
resetForm();
|
||||||
handleQuery()
|
handleQuery();
|
||||||
})
|
});
|
||||||
} else {
|
} else {
|
||||||
addUser(state.formData).then((response: any) => {
|
addUser(state.formData).then((response: any) => {
|
||||||
ElMessage.success('新增用户成功')
|
ElMessage.success("新增用户成功");
|
||||||
state.dialog.visible = false
|
state.dialog.visible = false;
|
||||||
resetForm()
|
resetForm();
|
||||||
handleQuery()
|
handleQuery();
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重置表单
|
* 重置表单
|
||||||
*/
|
*/
|
||||||
function resetForm() {
|
function resetForm() {
|
||||||
dataFormRef.value.resetFields()
|
dataFormRef.value.resetFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除用户
|
* 删除用户
|
||||||
**/
|
**/
|
||||||
function handleDelete(row: { [key: string]: any }) {
|
function handleDelete(row: { [key: string]: any }) {
|
||||||
const userIds = row.id || state.ids.join(',')
|
const userIds = row.id || state.ids.join(",");
|
||||||
ElMessageBox.confirm('是否确认删除用户编号为「' + userIds + '」的数据项?', '警告', {
|
ElMessageBox.confirm(
|
||||||
confirmButtonText: '确定',
|
"是否确认删除用户编号为「" + userIds + "」的数据项?",
|
||||||
cancelButtonText: '取消',
|
"警告",
|
||||||
type: 'warning'
|
{
|
||||||
}).then(function () {
|
confirmButtonText: "确定",
|
||||||
deleteUsers(userIds).then(() => {
|
cancelButtonText: "取消",
|
||||||
ElMessage.success('删除成功')
|
type: "warning",
|
||||||
handleQuery()
|
}
|
||||||
})
|
|
||||||
}).catch(() =>
|
|
||||||
ElMessage.info('已取消删除')
|
|
||||||
)
|
)
|
||||||
|
.then(function () {
|
||||||
|
deleteUsers(userIds).then(() => {
|
||||||
|
ElMessage.success("删除成功");
|
||||||
|
handleQuery();
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch(() => ElMessage.info("已取消删除"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 取消关闭
|
* 取消关闭
|
||||||
*/
|
*/
|
||||||
function cancel() {
|
function cancel() {
|
||||||
state.dialog.visible = false
|
state.dialog.visible = false;
|
||||||
resetForm()
|
resetForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 加载部门数据
|
* 加载部门数据
|
||||||
**/
|
**/
|
||||||
async function loadDeptOptions() {
|
async function loadDeptOptions() {
|
||||||
listDeptSelect().then(response => {
|
listDeptSelect().then((response) => {
|
||||||
state.deptOptions = response.data
|
state.deptOptions = response.data;
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 加载性别字典数据
|
* 加载性别字典数据
|
||||||
*/
|
*/
|
||||||
function loadGenderOptions() {
|
function loadGenderOptions() {
|
||||||
proxy.$listDictsByCode('gender').then((response: any) => {
|
proxy.$listDictsByCode("gender").then((response: any) => {
|
||||||
state.genderOptions = response?.data
|
state.genderOptions = response?.data;
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 初始化数据
|
* 初始化数据
|
||||||
*/
|
*/
|
||||||
function loadData() {
|
function loadData() {
|
||||||
loadGenderOptions()
|
loadGenderOptions();
|
||||||
loadDeptOptions()
|
loadDeptOptions();
|
||||||
handleQuery()
|
handleQuery();
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
loadData();
|
||||||
loadData()
|
});
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user