|
@@ -82,7 +82,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12" v-if="formType === 'create-S'">
|
|
|
<el-form-item label="用户类型" prop="userType">
|
|
|
- <el-input v-model="userTypeSt" value="在校生" placeholder="在校生" :disabled="true"/>
|
|
|
+ <el-input v-model="userTypeSt" value="在校生" placeholder="在校生" :disabled="true"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" v-if="formType === 'create-T' || formType === 'update-T'">
|
|
@@ -97,7 +97,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- <el-form-item label="用户类型" prop="userType">
|
|
|
- <span style="margin-left: 10px;">导师</span>
|
|
|
+ <span style="margin-left: 10px;">导师</span>
|
|
|
<input type="hidden" v-model="formData.userType" value="3" />
|
|
|
</el-form-item> -->
|
|
|
</el-col>
|
|
@@ -130,7 +130,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
-
|
|
|
+
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="学号" prop="userNumber" v-if="formType === 'create-S' || formType === 'update-S'">
|
|
@@ -166,19 +166,19 @@
|
|
|
<!-- <el-row>
|
|
|
<el-col :span="24" v-if="formType === 'update-S'">
|
|
|
<el-form-item label="毕业条件" >
|
|
|
- <el-select
|
|
|
- v-model="formData.isGraduate"
|
|
|
- prop="isGraduate"
|
|
|
- placeholder="是否达成毕业条件"
|
|
|
+ <el-select
|
|
|
+ v-model="formData.isGraduate"
|
|
|
+ prop="isGraduate"
|
|
|
+ placeholder="是否达成毕业条件"
|
|
|
clearable
|
|
|
>
|
|
|
<el-option
|
|
|
label='已达成'
|
|
|
- :value="0"
|
|
|
+ :value="0"
|
|
|
/>
|
|
|
<el-option
|
|
|
- label='未达成'
|
|
|
- :value="1"
|
|
|
+ label='未达成'
|
|
|
+ :value="1"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -299,7 +299,7 @@ const users = ref()
|
|
|
const getSupervisor= async () => {
|
|
|
try {
|
|
|
const response = await UserApi.getSupervisor()
|
|
|
- users.value = response
|
|
|
+ users.value = response || []
|
|
|
} catch (error) {
|
|
|
console.error('Error fetching user data:', error)
|
|
|
}
|
|
@@ -349,7 +349,7 @@ const submitForm = async () => {
|
|
|
formData.value.userType = userTypeSt.value
|
|
|
}
|
|
|
console.log(formData.value,'提交的表单');
|
|
|
- if (!formRef) return
|
|
|
+ if (!formRef.value) return
|
|
|
const valid = await formRef.value.validate()
|
|
|
if (!valid) return
|
|
|
// 提交请求
|