|
@@ -133,6 +133,7 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="学号" prop="userNumber" v-if="formType === 'create-S' || formType === 'update-S'">
|
|
|
<el-input v-model="formData.userNumber" placeholder="请输入学号" />
|
|
|
+
|
|
|
</el-form-item>
|
|
|
<el-form-item label="工号" prop="userNumber" v-if="formType === 'create-T' || formType === 'update-T'">
|
|
|
<el-input v-model="formData.userNumber" placeholder="请输入工号" />
|
|
@@ -148,6 +149,16 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="12" v-if="formType === 'create-S' || formType === 'update-S'">
|
|
|
+ <el-form-item label="专业" prop="major" v-if="formType === 'create-S' || formType === 'update-S'">
|
|
|
+ <el-input v-model="formData.major" placeholder="请输入专业" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12" v-if="formType === 'create-S' || formType === 'update-S'">
|
|
|
+ <el-form-item label="学位类型" prop="masterType" v-if="formType === 'create-S' || formType === 'update-S'">
|
|
|
+ <el-input v-model="formData.masterType" placeholder="请输入学位类型" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
|
|
|
<!-- <el-row>
|
|
@@ -227,6 +238,8 @@ const formData = ref({
|
|
|
isGraduate: 0,
|
|
|
parentMobile: '',
|
|
|
userNumber: '',
|
|
|
+ masterType:'',
|
|
|
+ major:''
|
|
|
})
|
|
|
const formRules = reactive<FormRules>({
|
|
|
username: [{ required: true, message: '账号不能为空', trigger: 'blur' }],
|
|
@@ -256,7 +269,7 @@ const formRules = reactive<FormRules>({
|
|
|
message: '请输入正确的手机号码'
|
|
|
}
|
|
|
],
|
|
|
- supervisor: [{ required: true, message: '导师不能为空', trigger: 'blur' }],
|
|
|
+ // supervisor: [{ required: true, message: '导师不能为空', trigger: 'blur' }],
|
|
|
userNumber: [{ required: true, message: '学号不能为空', trigger: 'blur' }],
|
|
|
})
|
|
|
|
|
@@ -376,6 +389,8 @@ const resetForm = () => {
|
|
|
isGraduate: 0,
|
|
|
parentMobile: '',
|
|
|
userNumber: '',
|
|
|
+ masterType:'',
|
|
|
+ major:''
|
|
|
}
|
|
|
formRef.value?.resetFields()
|
|
|
}
|