|
@@ -32,10 +32,11 @@ const items = ref({
|
|
{
|
|
{
|
|
type: 'autocomplete',
|
|
type: 'autocomplete',
|
|
key: 'schoolId',
|
|
key: 'schoolId',
|
|
- value: null,
|
|
|
|
|
|
+ value: {},
|
|
default: null,
|
|
default: null,
|
|
label: '就读学校 *',
|
|
label: '就读学校 *',
|
|
outlined: true,
|
|
outlined: true,
|
|
|
|
+ returnObject: true,
|
|
itemText: 'schoolName',
|
|
itemText: 'schoolName',
|
|
itemValue: 'schoolId',
|
|
itemValue: 'schoolId',
|
|
rules: [v => !!v || '请选择就读学校'],
|
|
rules: [v => !!v || '请选择就读学校'],
|
|
@@ -50,7 +51,7 @@ const items = ref({
|
|
label: '所在院系 *',
|
|
label: '所在院系 *',
|
|
outlined: true,
|
|
outlined: true,
|
|
itemText: 'departmentTitle',
|
|
itemText: 'departmentTitle',
|
|
- itemValue: 'schoolDepartmentId',
|
|
|
|
|
|
+ itemValue: 'departmentTitle',
|
|
rules: [v => !!v || '请选择所在院系'],
|
|
rules: [v => !!v || '请选择所在院系'],
|
|
items: []
|
|
items: []
|
|
},
|
|
},
|
|
@@ -167,8 +168,14 @@ const handleSubmit = async () => {
|
|
overlay.value = true
|
|
overlay.value = true
|
|
const params = {}
|
|
const params = {}
|
|
items.value.options.forEach(item => {
|
|
items.value.options.forEach(item => {
|
|
- params[item.key] = item.value
|
|
|
|
|
|
+ params[item.key] = item.returnObject ? '' : item.value
|
|
|
|
+ if (item.key === 'schoolId') {
|
|
|
|
+ params.schoolName = item.value.schoolName
|
|
|
|
+ params.schoolId = item.value.schoolId
|
|
|
|
+ } else params[item.key] = item.value
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+
|
|
await saveStudentSimpleInfo(params)
|
|
await saveStudentSimpleInfo(params)
|
|
setTimeout(async () => {
|
|
setTimeout(async () => {
|
|
await userStore.getStudentInformation()
|
|
await userStore.getStudentInformation()
|