lb #6

Merged
gtz217 merged 26 commits from lb into master 2022-11-10 15:52:33 +08:00
Showing only changes of commit 1e4bc79ed3 - Show all commits

View File

@ -6,12 +6,12 @@
* @Description: * @Description:
--> -->
<template> <template>
<div class="app-container"> <div class="app-container system-manage-landpage">
<el-container> <el-container>
<el-aside> <el-aside>
<side-tree v-if="menuList.length > 0" :menu-list="menuList" @getOrganization="getOrganization" /> <side-tree v-if="menuList.length > 0" :menu-list="menuList" @getOrganization="getOrganization" />
</el-aside> </el-aside>
<el-main style="border:2px solid #E4E4E4;border-radius:10px;margin-left:10px"> <el-main>
<el-form <el-form
ref="dataForm" ref="dataForm"
:model="dataForm" :model="dataForm"
@ -24,7 +24,12 @@
<span style="margin: 0 5px;color:#1890FF">{{ dataForm.orgName }}</span> <span style="margin: 0 5px;color:#1890FF">{{ dataForm.orgName }}</span>
</el-form-item> </el-form-item>
<el-form-item :label="$t('userManage.userName') + ''" prop="name"> <el-form-item :label="$t('userManage.userName') + ''" prop="name">
<el-input v-model="dataForm.name" :placeholder="['placeholder.input', $t('userManage.userName')] | i18nFilterForm" clearable :style="{width: '100%'}" /> <el-input
v-model="dataForm.name"
:placeholder="['placeholder.input', $t('userManage.userName')] | i18nFilterForm"
clearable
:style="{ width: '100%' }"
/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="getList()">{{ 'btn.search' | i18nFilter }}</el-button> <el-button type="primary" @click="getList()">{{ 'btn.search' | i18nFilter }}</el-button>
@ -47,7 +52,13 @@
@clickBtn="handleClick" @clickBtn="handleClick"
/> />
</base-table> </base-table>
<pagination v-show="total > 0" :total="total" :page.sync="dataForm.page" :limit.sync="dataForm.limit" @pagination="getList" /> <pagination
v-show="total > 0"
:total="total"
:page.sync="dataForm.page"
:limit.sync="dataForm.limit"
@pagination="getList"
/>
<add-user-form :visible.sync="showDialog" @refreshDataList="getList" /> <add-user-form :visible.sync="showDialog" @refreshDataList="getList" />
<edit-user-form :visible.sync="showEditDialog" :target-info="{ id: curEditId }" @refreshDataList="getList" /> <edit-user-form :visible.sync="showEditDialog" :target-info="{ id: curEditId }" @refreshDataList="getList" />
@ -55,7 +66,6 @@
</el-main> </el-main>
</el-container> </el-container>
</div> </div>
</template> </template>
<script> <script>
@ -80,30 +90,37 @@ const topBtnConfig = [
} }
] ]
// edit here // edit here
const tableBtn = [{ const tableBtn = [
{
type: 'edit', type: 'edit',
btnName: 'btn.edit' btnName: 'btn.edit'
}, { },
{
type: 'EmPower', type: 'EmPower',
btnName: i18n.t('userManage.AssignRole') btnName: i18n.t('userManage.AssignRole')
}, { },
{
type: 'delete', type: 'delete',
btnName: 'btn.delete' btnName: 'btn.delete'
}] }
]
// birthday // birthday
// orgId // orgId
// sex // sex
// code // code
// remark // remark
const tableProps = [{ const tableProps = [
{
prop: 'name', prop: 'name',
label: i18n.t('userManage.userName'), label: i18n.t('userManage.userName'),
align: 'center' align: 'center'
}, { },
{
prop: 'email', prop: 'email',
label: i18n.t('userManage.email'), label: i18n.t('userManage.email'),
align: 'center' align: 'center'
}, { },
{
prop: 'mobile', prop: 'mobile',
label: i18n.t('userManage.mobile'), label: i18n.t('userManage.mobile'),
align: 'center' align: 'center'
@ -133,16 +150,19 @@ const tableProps = [{
prop: 'code', prop: 'code',
label: i18n.t('userManage.code'), label: i18n.t('userManage.code'),
align: 'center' align: 'center'
}, { },
{
prop: 'enabled', prop: 'enabled',
label: i18n.t('userManage.status'), label: i18n.t('userManage.status'),
align: 'center', align: 'center',
filter: dataDict('enableState') filter: dataDict('enableState')
}, { },
{
prop: 'remark', prop: 'remark',
label: i18n.t('userManage.remark'), label: i18n.t('userManage.remark'),
align: 'center' align: 'center'
}] }
]
export default { export default {
components: { sideTree, Pagination, BaseTable, MethodBtn, AddUserForm, EditUserForm, AssignRole }, components: { sideTree, Pagination, BaseTable, MethodBtn, AddUserForm, EditUserForm, AssignRole },
data() { data() {
@ -174,16 +194,20 @@ export default {
current: 1, current: 1,
size: 20 size: 20
}, },
sexOptions: [{ sexOptions: [
'label': '全部', {
'value': '' label: '全部',
}, { value: ''
'label': '男', },
'value': 1 {
}, { label: '男',
'label': '女', value: 1
'value': 2 },
}] {
label: '女',
value: 2
}
]
} }
}, },
created() { created() {
@ -274,11 +298,62 @@ export default {
</script> </script>
<style scoped> <style scoped>
.el-container >>> .el-aside { .el-container >>> .el-aside {
border:2px solid #E4E4E4; border-radius: 8px;
border-radius:10px; background-color: #fff;
background-color: white; width: 256px !important;
min-height:550px; padding-top: 20px;
width:30%; margin: 0;
padding-top:20px padding-left: 0;
padding-right: 0;
}
.el-container >>> .el-main {
border-radius: 8px;
background-color: #fff;
border: unset;
}
.el-container >>> .el-tree-node__content {
padding-left: 16px !important;
padding-right: 16px !important;
}
.el-container >>> .el-tree-node__content:hover {
background-color: #e3efff;
}
.el-container >>> .el-tree-node:focus > .el-tree-node__content {
background-color: #e3efff;
}
/* .el-container >>> .el-icon-caret-right {
display: inline-block;
width: 4px;
height: 4px;
border-radius: 50%;
border: 1px solid #000;
background-color: transparent;
} */
.el-container >>> .el-icon-caret-right::before {
/* content: '';
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
border: 1px solid #000;
background-color: transparent; */
}
.system-manage-landpage {
background: unset;
padding: 0;
display: flex;
}
.el-container {
display: flex;
gap: 8px;
}
.el-container >>> .el-tree-node__label {
font-size: 14px;
line-height: 20px;
letter-spacing: 0.88px;
color: #161616;
} }
</style> </style>