update 用户管理

This commit is contained in:
danshihao
2023-11-21 15:44:50 +08:00
parent 18bcc43d1e
commit dcd810a089
2 changed files with 20 additions and 20 deletions
+7 -7
View File
@@ -8,7 +8,7 @@
<a-col :md="6" :sm="12"> <a-col :md="6" :sm="12">
<a-form-item :label="$t('user.userAccount')"> <a-form-item :label="$t('user.userAccount')">
<j-input :placeholder="$t('user.enterAccountFuzzyQuery')" v-model="queryParam.username"></j-input> <j-input :placeholder="$t('pleaseEnter') + $t('user.userAccount')" v-model="queryParam.username"></j-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -23,20 +23,20 @@
</a-col> </a-col>
<a-col :md="6" :sm="12"> <a-col :md="6" :sm="12">
<a-form-item :label="$t('user.realName')"> <a-form-item :label="$t('user.userName')">
<j-input :placeholder="$t('pleaseEnter') + $t('user.realName')" v-model="queryParam.realname"></j-input> <j-input :placeholder="$t('pleaseEnter') + $t('user.userName')" v-model="queryParam.realname"></j-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<template v-if="toggleSearchStatus"> <template v-if="toggleSearchStatus">
<a-col :md="6" :sm="12"> <a-col :md="6" :sm="12">
<a-form-item :label="$t('phoneNumber')"> <a-form-item :label="$t('phoneNumber')">
<a-input :placeholder="$t('user.pleaseEnterFullPhone')" v-model="queryParam.phone"></a-input> <a-input :placeholder="$t('pleaseEnter') + $t('phoneNumber')" v-model="queryParam.phone"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="12"> <a-col :md="6" :sm="12">
<a-form-item :label="$t('user.userStatues')"> <a-form-item :label="$t('status')">
<a-select v-model="queryParam.status" :placeholder="$t('pleaseSelect')"> <a-select v-model="queryParam.status" :placeholder="$t('pleaseSelect') + $t('status')">
<a-select-option value="">{{ $t('pleaseSelect') }}</a-select-option> <a-select-option value="">{{ $t('pleaseSelect') }}</a-select-option>
<a-select-option value="1">{{ $t('normal') }}</a-select-option> <a-select-option value="1">{{ $t('normal') }}</a-select-option>
<a-select-option value="2">{{ $t('user.frozen') }}</a-select-option> <a-select-option value="2">{{ $t('user.frozen') }}</a-select-option>
@@ -246,7 +246,7 @@ export default {
// scopedSlots: { customRender: 'avatarslot' } // scopedSlots: { customRender: 'avatarslot' }
// }, // },
{ {
title: this.$t('user.account'), title: this.$t('user.userAccount'),
align: 'center', align: 'center',
dataIndex: 'username', dataIndex: 'username',
width: 150, width: 150,
+13 -13
View File
@@ -21,7 +21,7 @@
<div class="table-operator" style="margin-top: -15px"> <div class="table-operator" style="margin-top: -15px">
<!--<a-button @click="handleEdit" type="primary" icon="edit" style="margin-top: 16px">用户编辑</a-button>--> <!--<a-button @click="handleEdit" type="primary" icon="edit" style="margin-top: 16px">用户编辑</a-button>-->
<a-button @click="handleAddUserDepart" type="primary" icon="plus">添加已有用户</a-button> <a-button @click="handleAddUserDepart" type="primary" icon="plus">添加已有用户</a-button>
<a-button @click="handleAdd" type="primary" icon="plus" style="margin-top: 16px">新建用户</a-button> <!--<a-button @click="handleAdd" type="primary" icon="plus" style="margin-top: 16px">新建用户</a-button>-->
<a-dropdown v-if="selectedRowKeys.length > 0"> <a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay"> <a-menu slot="overlay">
@@ -111,7 +111,7 @@ export default {
dataIndex: 'username' dataIndex: 'username'
}, },
{ {
title: '用户名', title: '用户名',
align: 'center', align: 'center',
dataIndex: 'realname' dataIndex: 'realname'
}, },
@@ -265,17 +265,17 @@ export default {
this.$refs.modalForm.disableSubmit = false this.$refs.modalForm.disableSubmit = false
this.$refs.modalForm.edit(record) this.$refs.modalForm.edit(record)
}, },
handleAdd: function () { // handleAdd: function () {
if (!this.currentDeptId) { // if (!this.currentDeptId) {
this.$message.warning('请选择一个部门!') // this.$message.warning('请选择一个部门!')
} else { // } else {
this.$refs.modalForm.departDisabled = true // this.$refs.modalForm.departDisabled = true
// 初始化负责部门 // // 初始化负责部门
this.$refs.modalForm.nextDepartOptions = [{ value: this.currentDept.key, label: this.currentDept.title }] // this.$refs.modalForm.nextDepartOptions = [{ value: this.currentDept.key, label: this.currentDept.title }]
this.$refs.modalForm.title = '新增' // this.$refs.modalForm.title = '新增'
this.$refs.modalForm.edit({ activitiSync: '1', userIdentity: 1, selecteddeparts: this.currentDeptId }) // this.$refs.modalForm.edit({ activitiSync: '1', userIdentity: 1, selecteddeparts: this.currentDeptId })
} // }
}, // },
selectOK (data) { selectOK (data) {
const params = {} const params = {}
params.depId = this.currentDeptId params.depId = this.currentDeptId