Crazy hai 3 días
pai
achega
8f1f83d76e

+ 1 - 1
src/views/system/studentSelectSupervisorRecord/record.vue

@@ -301,7 +301,7 @@ const formRef = ref()
 const openForm = (type: string, projectId?: number,supervisorId? :number,id?:number,studentId?:number) => {
   formRef.value.open(type, projectId,supervisorId,id,studentId)
 }
-const handelWithdraw = async (id) => {
+const handelWithdraw = async (id:number) => {
   try {
     await message.confirm('是否确定撤回申请?')
     recordData.value.id = id

+ 4 - 3
src/views/system/supervisorSelectionSetting/index.vue

@@ -170,7 +170,7 @@
             招生详情
           </el-button>
           <!--志愿填报修改-->
-          <!-- <el-button
+          <el-button
             link
             type="primary"
             @click="handelWithdraw( scope.row.supervisorId)"
@@ -178,7 +178,7 @@
             v-if="userInfo?.userType === '1' && scope.row.selectType ==1"
           >
             撤回
-          </el-button> -->
+          </el-button>
 
 <!--名额设置-->
           <el-button
@@ -434,10 +434,11 @@ const recordData = ref({
   studentSignDate:[],
   supervisorSignDate:[],
 })
-const handelWithdraw = async (supervisorId:number) => {
+const handelWithdraw = async (projectId:number,supervisorId:number) => {
   try {
     await message.confirm('是否确定撤回申请?')
     recordData.value.supervisorId=supervisorId
+    recordData.value.projectId=projectId
     const data =recordData.value as unknown as studentSelectSupervisorRecordVO
     await studentSelectSupervisorRecordApi.withdrawStudentSelectSupervisorRecord(data)
     message.success("撤回了申请")