【添加】添加岗位字段到用户列表和编辑新增功能中

This commit is contained in:
zer0Black
2023-09-30 17:07:19 +08:00
parent 6a69ec7297
commit 91789cbdf0
4 changed files with 18 additions and 10 deletions
+1
View File
@@ -185,6 +185,7 @@ module.exports = {
heads: 'Heads', heads: 'Heads',
account: 'Account', account: 'Account',
userName: 'User Name', userName: 'User Name',
post: 'post',
selectedAccount: 'Selected account?', selectedAccount: 'Selected account?',
// 新增、编辑用户 // 新增、编辑用户
loginPassword: 'Login Password', loginPassword: 'Login Password',
+1
View File
@@ -185,6 +185,7 @@ module.exports = {
heads: '头像', heads: '头像',
account: '账号', account: '账号',
userName: '用户姓名', userName: '用户姓名',
post: '岗位',
selectedAccount: '选中账号?', selectedAccount: '选中账号?',
// 新增、编辑用户 // 新增、编辑用户
loginPassword: '登录密码', loginPassword: '登录密码',
+13 -7
View File
@@ -246,13 +246,13 @@ export default {
return parseInt(index) + 1 return parseInt(index) + 1
} }
}, },
{ // {
title: this.$t('user.heads'), // title: this.$t('user.heads'),
align: 'center', // align: 'center',
width: 120, // width: 120,
dataIndex: 'avatar', // dataIndex: 'avatar',
scopedSlots: { customRender: 'avatarslot' } // scopedSlots: { customRender: 'avatarslot' }
}, // },
{ {
title: this.$t('user.account'), title: this.$t('user.account'),
align: 'center', align: 'center',
@@ -266,6 +266,12 @@ export default {
width: 100, width: 100,
dataIndex: 'realname' dataIndex: 'realname'
}, },
{
title: this.$t('user.post'),
align: 'center',
width: 100,
dataIndex: 'post'
},
{ {
title: this.$t('user.gender'), title: this.$t('user.gender'),
align: 'center', align: 'center',
+3 -3
View File
@@ -48,9 +48,9 @@
<a-input :placeholder="$t('pleaseEnter') + $t('user.userName')" v-model="model.realname" :maxLength="50" :disabled="disableSubmit" /> <a-input :placeholder="$t('pleaseEnter') + $t('user.userName')" v-model="model.realname" :maxLength="50" :disabled="disableSubmit" />
</a-form-model-item> </a-form-model-item>
<!--<a-form-model-item label="职务" :labelCol="labelCol" :wrapperCol="wrapperCol">--> <a-form-model-item :label="$t('user.post')" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="post">
<!--<j-select-position placeholder="请选择职务" :multiple="false" v-decorator="['post', {}]"/>--> <a-input :placeholder="$t('pleaseEnter') + $t('user.post')" v-model="model.post" :maxLength="50" :disabled="disableSubmit" />
<!--</a-form-model-item>--> </a-form-model-item>
<a-form-model-item :label="$t('user.roleAssignment')" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!roleDisabled"> <a-form-model-item :label="$t('user.roleAssignment')" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!roleDisabled">
<j-multi-select-tag <j-multi-select-tag