diff --git a/src/common/lang/en-us.js b/src/common/lang/en-us.js index 337b6df4..d504cb5c 100644 --- a/src/common/lang/en-us.js +++ b/src/common/lang/en-us.js @@ -365,6 +365,7 @@ module.exports = { updateLog: 'Change Log', problemKnowledgeBase: 'Knowledge Sharing', collection: 'Invoice Collection', + subscribe: 'Subscribe', textInformation: 'Document Files', standardBreakdown: 'Standard Breakdown', standardOne: 'Standard', @@ -476,6 +477,23 @@ module.exports = { standardSelect: { standardSelection: 'Standard Selection' }, + // 用户/组织结构选择器 + userOrOrganSelect: { + select: 'Select', + selectUserOrOrgan: 'Select User/Organization', + organization: 'Organization', + name: 'name', + secondLevel: 'Second Level', + threeLevel: 'Three Level' + }, + // 用户选择器 + userSelect: { + select: 'Select', + selectUser: 'Select User', + userList: 'Users List', + name: 'name', + post: 'Post' + }, // 弹框上传附件 uploadFile: { clickUpload: 'Click To Upload', diff --git a/src/common/lang/enterpriseStandardLibrary/en.js b/src/common/lang/enterpriseStandardLibrary/en.js index 09a348ab..a994f599 100644 --- a/src/common/lang/enterpriseStandardLibrary/en.js +++ b/src/common/lang/enterpriseStandardLibrary/en.js @@ -5,6 +5,9 @@ module.exports = { allocationStandard: 'Allocation Standard', shiftOutStandard: 'Shift Out Standard', initChange: 'Initiate Changes', - temporaryPermissionSet: 'Temporary Permission Setting' + temporaryPermissionSet: 'Temporary Permission Setting', + collection: 'Collect', + cancelCollection: 'Cancel Collection', + templateExport: 'Enterprise Standard Template' } } diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js index 6607f43f..7c18ab72 100644 --- a/src/common/lang/zh-cn.js +++ b/src/common/lang/zh-cn.js @@ -486,6 +486,14 @@ module.exports = { secondLevel: '二级', threeLevel: '三级' }, + // 用户选择器 + userSelect: { + select: '选择', + selectUser: '选择用户', + userList: '用户列表', + name: '姓名', + post: '岗位' + }, // 弹框上传附件 uploadFile: { clickUpload: '点击上传', diff --git a/src/components/customField/AddForm.vue b/src/components/customField/AddForm.vue index d784bcba..819a7360 100644 --- a/src/components/customField/AddForm.vue +++ b/src/components/customField/AddForm.vue @@ -31,11 +31,18 @@ {{ item.dbFieldTxt }} - + + + + + + @@ -47,11 +54,14 @@ {{ item.dbFieldTxt }} - + > + + + + + @@ -108,11 +118,16 @@ {{ item.dbFieldTxt }} - + > + + + + + @@ -223,10 +238,11 @@ import StandardSelection from '../selection/StandardSelection' import UserOrOrganSelection from '../selection/UserOrOrganSelection' import { FieldType } from '../../enums/commonEnums' import JMultipleDatePicker from '../JMultipleDatePicker' +import UserSelection from '../selection/UserSelection' export default { name: 'AddForm', - components: { JMultipleDatePicker, StandardSelection, JDictSelectTag, JMultiSelectTag, UploadFile, UserOrOrganSelection }, + components: { UserSelection, JMultipleDatePicker, StandardSelection, JDictSelectTag, JMultiSelectTag, UploadFile, UserOrOrganSelection }, props: { url: { type: Object, @@ -476,6 +492,10 @@ export default { this.formInline[value + '_id'] = id this.formInline = { ...this.formInline } }, + // 选择用户得到用户名 + userSelectNameChange (value, fieldName) { + this.formInline[fieldName + '_name'] = value + }, submit () { this.$refs.ruleForm.validate(valid => { if (valid) { diff --git a/src/components/selection/UserSelectModal.vue b/src/components/selection/UserSelectModal.vue new file mode 100644 index 00000000..e3d58203 --- /dev/null +++ b/src/components/selection/UserSelectModal.vue @@ -0,0 +1,375 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{$t('reset')}} + {{$t('query')}} + + + + + + + + {{ $t('userSelect.select') }} + + {{ $t('userSelect.userList') }} + + + + + + {{ text || text === 0 ? text : global.emptyLine }} + {{ text || text === 0 ? text : global.emptyLine }} + + + + + + + 选择 + + + + + {{ text || text === 0 ? text : global.emptyLine }} + {{ text || text === 0 ? text : global.emptyLine }} + + + + {{ $t('delete') }} + + + + + + + + + + diff --git a/src/components/selection/UserSelection.vue b/src/components/selection/UserSelection.vue new file mode 100644 index 00000000..653296a8 --- /dev/null +++ b/src/components/selection/UserSelection.vue @@ -0,0 +1,97 @@ + + + + + + + {{$t('userSelect.select')}} + + + + + + + + +
{{ $t('userSelect.select') }}
选择