zhouwx
2025-10-16 2207aed8606055c00c49d8e889401d5c78545241
修改
已修改2个文件
45 ■■■■■ 文件已修改
src/views/work/onlineEducation/offlineEducation/components/recordDialog.vue 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/work/onlineEducation/offlineEducation/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/work/onlineEducation/offlineEducation/components/recordDialog.vue
@@ -20,7 +20,21 @@
          </el-select>
        </el-form-item>
        <el-form-item label="计划名称:"  prop="planName" >
          <el-input v-model.trim="state.form.planName" placeholder="请输入计划名称"></el-input>
<!--          <el-input v-model.trim="state.form.planName" placeholder="请输入计划名称"></el-input>-->
          <el-select
              clearable
              v-model="state.form.planName"
              :disabled="state.title =='查看'"
              filterable
              style="width: 100%"
          >
            <el-option
                v-for="item in state.planList"
                :key="item.id"
                :label="item.name"
                :value="item.trainName"
            />
          </el-select>
        </el-form-item>
        <el-form-item label="学员:"  prop="studentId" >
          <el-select
@@ -122,6 +136,7 @@
import {delPic} from "@/api/onlineEducation/banner";
import {getToken} from "@/utils/auth";
import {getUser} from "@/api/onlineEducation/user";
import {getTrainPlanPage} from "@/api/onlineEducation/trainPlan";
const emit = defineEmits(["getList"]);
const dialogVisible = ref(false)
@@ -184,7 +199,8 @@
  header: {
    Authorization: getToken()
  },
  students: []
  students: [],
  planList: []
})
onMounted(() => {
@@ -228,6 +244,7 @@
    state.form.id = value.id
  }
  await   getPeopleList()
  await getPlanList()
  dialogVisible.value = true
}
const onSubmit = async () => {
@@ -346,6 +363,23 @@
    ElMessage.warning(res.message)
  }
};
const getPlanList = async ()=> {
  if(state.isAdmin && !state.form.companyId && (state.form.companyId == 0 || state.form.companyId == null)){
    return
  }
  const queryParams = {
    pageNum: 1,
    pageSize: 9999,
    companyId: state.form.companyId
  }
  const res = await getTrainPlanPage(queryParams);
  if(res.code === 200){
    state.planList = res.data.list
  }else{
    ElMessage.warning(res.message)
  }
};
const handleScrollStu = () => {
  console.log(' student',state.hasMoreStu);
  if(state.stuPageNum >= state.hasMoreStu) return
@@ -452,7 +486,10 @@
const selectValueCom = (val) => {
  state.students = []
  state.form.studentId = null
  state.planList = []
  state.form.planName = ''
  getPeopleList()
  getPlanList()
}
src/views/work/onlineEducation/offlineEducation/index.vue
@@ -42,7 +42,7 @@
    <!-- 表格数据 -->
    <el-table v-loading="loading" :data="dataList" :border="true">
      <el-table-column label="序号" type="index" align="center" width="80" />
      <el-table-column label="企业名称" prop="companyName" align="center"  />
      <el-table-column label="日期" prop="createTime" align="center"  />
      <el-table-column label="计划名称" prop="planName" align="center"  />
      <el-table-column label="学员姓名" prop="studentName" align="center">
        <template #default="scope">
@@ -76,7 +76,7 @@
<!--          <span>{{scope.row.passed == 0 ? '不合格':'合格'}}</span>-->
<!--        </template>-->
<!--      </el-table-column>-->
      <el-table-column label="培训记录" prop="passed" align="center" width="180">
      <el-table-column label="培洲记录及有效评价" prop="passed" align="center" width="180">
        <template #default="scope">
          <div v-for="item in scope.row.files" style="display: flex;flex-direction: column">
            <div style="display: flex;flex-direction: column;align-items: center">