|
@@ -27,8 +27,8 @@
|
|
|
}}
|
|
}}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="userName" label="账号"> </el-table-column>
|
|
|
|
|
- <el-table-column prop="phone" label="联系电话"> </el-table-column>
|
|
|
|
|
|
|
+ <el-table-column prop="userName" label="账号"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="phone" label="联系电话"></el-table-column>
|
|
|
<el-table-column prop="createTime" label="新建时间">
|
|
<el-table-column prop="createTime" label="新建时间">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
@@ -49,21 +49,25 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="操作">
|
|
<el-table-column label="操作">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
- <el-button type="text" @click="editUser(row)">{{
|
|
|
|
|
- row.isAdmin === 1 ? "编辑" : "编辑 / 授权"
|
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
|
+ <el-button type="text" @click="editUser(row)">
|
|
|
|
|
+ {{
|
|
|
|
|
+ row.isAdmin === 1 ? "编辑" : "编辑 / 授权"
|
|
|
|
|
+ }}
|
|
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
v-if="row.isAdmin !== 1"
|
|
v-if="row.isAdmin !== 1"
|
|
|
type="text"
|
|
type="text"
|
|
|
@click="resetPass(row.id)"
|
|
@click="resetPass(row.id)"
|
|
|
- >重置密码</el-button
|
|
|
|
|
|
|
+ >重置密码
|
|
|
|
|
+ </el-button
|
|
|
>
|
|
>
|
|
|
<el-button
|
|
<el-button
|
|
|
v-if="row.isAdmin !== 1"
|
|
v-if="row.isAdmin !== 1"
|
|
|
type="text"
|
|
type="text"
|
|
|
style="color: #f56c6c"
|
|
style="color: #f56c6c"
|
|
|
@click="userDel(row.id)"
|
|
@click="userDel(row.id)"
|
|
|
- >删除</el-button
|
|
|
|
|
|
|
+ >删除
|
|
|
|
|
+ </el-button
|
|
|
>
|
|
>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -94,6 +98,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import Dialog from './Dialog'
|
|
import Dialog from './Dialog'
|
|
|
import { userList, userDel, editStatus, userResetPass } from '@/apis/system'
|
|
import { userList, userDel, editStatus, userResetPass } from '@/apis/system'
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
name: 'tab2',
|
|
name: 'tab2',
|
|
|
components: { Dialog },
|
|
components: { Dialog },
|
|
@@ -202,35 +207,47 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- beforeCreate () {}, // 生命周期 - 创建之前
|
|
|
|
|
- beforeMount () {}, // 生命周期 - 挂载之前
|
|
|
|
|
- beforeUpdate () {}, // 生命周期 - 更新之前
|
|
|
|
|
- updated () {}, // 生命周期 - 更新之后
|
|
|
|
|
- beforeDestroy () {}, // 生命周期 - 销毁之前
|
|
|
|
|
- destroyed () {}, // 生命周期 - 销毁完成
|
|
|
|
|
- activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
|
|
|
|
+ beforeCreate () {
|
|
|
|
|
+ }, // 生命周期 - 创建之前
|
|
|
|
|
+ beforeMount () {
|
|
|
|
|
+ }, // 生命周期 - 挂载之前
|
|
|
|
|
+ beforeUpdate () {
|
|
|
|
|
+ }, // 生命周期 - 更新之前
|
|
|
|
|
+ updated () {
|
|
|
|
|
+ }, // 生命周期 - 更新之后
|
|
|
|
|
+ beforeDestroy () {
|
|
|
|
|
+ }, // 生命周期 - 销毁之前
|
|
|
|
|
+ destroyed () {
|
|
|
|
|
+ }, // 生命周期 - 销毁完成
|
|
|
|
|
+ activated () {
|
|
|
|
|
+ } // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
<style lang='less' scoped>
|
|
<style lang='less' scoped>
|
|
|
.tab2 {
|
|
.tab2 {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
|
|
+
|
|
|
.insideTop {
|
|
.insideTop {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
|
|
+
|
|
|
.addBtn {
|
|
.addBtn {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
top: -10px;
|
|
top: -10px;
|
|
|
right: 20px;
|
|
right: 20px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.conten {
|
|
.conten {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: calc(100% - 52px);
|
|
height: calc(100% - 52px);
|
|
|
position: relative;
|
|
position: relative;
|
|
|
padding: 20px;
|
|
padding: 20px;
|
|
|
|
|
+
|
|
|
.table {
|
|
.table {
|
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.paging {
|
|
.paging {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|