47 4 mesiacov pred
rodič
commit
17b9281dc0

+ 3 - 3
src/views/system/studentSelection/studentSelectionProject/index.vue

@@ -205,9 +205,9 @@
           </el-button>
 
           <el-button type="text"
-                     v-if="userInfo?.userType === '4'"
-                     @click="openCampusSupervisorSetting(scope.row.id)"
-                     v-hasPermi="['system:supervisor-selection-setting:query']"
+             v-if="userInfo?.userType === '4'"
+             @click="openCampusSupervisorSetting(scope.row.id)"
+             v-hasPermi="['system:supervisor-selection-setting:query']"
           >
             <Icon icon="ep:bell" />
             校内导师分配

+ 15 - 14
src/views/system/supervisorSelectionSetting/index.vue

@@ -171,11 +171,11 @@
             选择
           </el-button>
           <el-button
-              type="primary"
-              link
-              @click="openRecord()"
-              v-hasPermi="['system:student-select-supervisor-record:create']"
-              v-else-if="userInfo?.userType === '1' && selectStatus !== 0"
+            type="primary"
+            link
+            @click="openRecord()"
+            v-hasPermi="['system:student-select-supervisor-record:create']"
+            v-else-if="userInfo?.userType === '1' && selectStatus !== 0 && scope.row.selectType"
           >
             <Icon icon="ep:bell" />
             详情
@@ -206,7 +206,7 @@
             撤回
           </el-button> -->
 
-<!--名额设置-->
+          <!--名额设置-->
           <el-button
             link
             type="primary"
@@ -216,14 +216,14 @@
           >
             编辑
           </el-button>
-<!--          <el-button-->
-<!--            link-->
-<!--            type="danger"-->
-<!--            @click="handleDelete(scope.row.id)"-->
-<!--            v-hasPermi="['system:supervisor-selection-setting:delete']"-->
-<!--          >-->
-<!--            删除-->
-<!--          </el-button>-->
+<!-- <el-button-->
+<!--   link-->
+<!--   type="danger"-->
+<!--   @click="handleDelete(scope.row.id)"-->
+<!--   v-hasPermi="['system:supervisor-selection-setting:delete']"-->
+<!-- >-->
+<!--   删除-->
+<!-- </el-button>-->
         </template>
       </el-table-column>
     </el-table>
@@ -465,6 +465,7 @@ const openStudentSelectSupervisorPop = async (type: string,id:number,studentId:n
     message.error("已存在申请")
   }else{
     studentSelectSupervisorPop.value.open(type,id,studentId,projectId ,supervisorId)
+    selectStatus.value = 1;
   } 
 }