|
|
@@ -38,10 +38,6 @@ export default {
|
|
|
options: { disabled: this.isEdit, placeholder: '请输入人员类别' },
|
|
|
rules: { required: true, message: '请输入人员类别', trigger: 'blur' }
|
|
|
},
|
|
|
- { label: '岗位名称', prop: 'postName', type: 'input', options: { placeholder: '请输入岗位名称' }, rules: { required: true, message: '请输入岗位名称', trigger: 'blur' } },
|
|
|
- { label: '岗位序列', prop: 'positionSequence', type: 'input', options: { placeholder: '请输入岗位序列' }, rules: [{ required: true, message: '请输入岗位序列', trigger: 'blur' }] },
|
|
|
- { label: '岗位类别', prop: 'positionCategory', type: 'input', options: { placeholder: '请输入岗位类别' }, rules: [{ required: true, message: '请输入岗位类别', trigger: 'blur' }] },
|
|
|
- { label: '职务层级', prop: 'jobLevel', type: 'input', options: { placeholder: '请输入职务层级' }, rules: [{ required: true, message: '请输入职务层级', trigger: 'blur' }] },
|
|
|
{
|
|
|
label: '通行证号',
|
|
|
prop: 'passes',
|
|
|
@@ -56,6 +52,10 @@ export default {
|
|
|
options: { disabled: this.isEdit, placeholder: '请选择工行时间' },
|
|
|
rules: [{ required: true, message: '请选择工行时间', trigger: 'blur' }]
|
|
|
},
|
|
|
+ { label: '岗位名称', prop: 'postName', type: 'input', options: { placeholder: '请输入岗位名称' }, rules: { required: true, message: '请输入岗位名称', trigger: 'blur' } },
|
|
|
+ { label: '岗位序列', prop: 'positionSequence', type: 'input', options: { placeholder: '请输入岗位序列' }, rules: [{ required: true, message: '请输入岗位序列', trigger: 'blur' }] },
|
|
|
+ { label: '岗位类别', prop: 'positionCategory', type: 'input', options: { placeholder: '请输入岗位类别' }, rules: [{ required: true, message: '请输入岗位类别', trigger: 'blur' }] },
|
|
|
+ { label: '职务层级', prop: 'jobLevel', type: 'input', options: { placeholder: '请输入职务层级' }, rules: [{ required: true, message: '请输入职务层级', trigger: 'blur' }] },
|
|
|
{
|
|
|
label: '薪酬档次',
|
|
|
prop: 'salaryCategory',
|
|
|
@@ -81,13 +81,13 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async open (item) {
|
|
|
+ this.$refs.editDialog.open()
|
|
|
+ this.loading = true
|
|
|
this.query = this.items.reduce((res, item) => {
|
|
|
res[item.prop] = null
|
|
|
return res
|
|
|
}, {})
|
|
|
- this.$refs.editDialog.open()
|
|
|
this.isEdit = Boolean(item)
|
|
|
- this.loading = true
|
|
|
await this.getDict()
|
|
|
this.loading = false
|
|
|
if (item) {
|