zhouwx
2024-07-18 026b72ee0218e9cf93c2ba2d4f944e7a7d3b56ae
src/views/onlineEducation/people/index.vue
@@ -25,7 +25,7 @@
      <el-table-column label="职务" prop="duty" align="center"/>
      <el-table-column label="一人一档" prop="duty" align="center" width="120">
        <template #default="scope">
          <el-button link type="primary">培训考试记录</el-button>
          <el-button link type="primary" @click="openRecord(scope.row)">培训考试记录</el-button>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width"  width="180">
@@ -46,6 +46,7 @@
    />
    <stu-dialog ref="dialogRef" @getList=getList></stu-dialog>
    <record ref="recordRef" @getList=getList></record>
  </div>
</template>
@@ -54,6 +55,7 @@
import {ElMessage, ElMessageBox} from "element-plus";
import {delCompany, getCompany} from "@/api/onlineEducation/company";
import stuDialog from "./components/stuDialog.vue"
import record from './components/trainRecord.vue'
import {delUser, getUser} from "@/api/onlineEducation/user";
import Cookies from "js-cookie";
import {delStudent, getStudent} from "@/api/onlineEducation/student";
@@ -62,6 +64,7 @@
const { proxy } = getCurrentInstance();
const loading = ref(false);
const dialogRef = ref();
const recordRef  =ref();
const data = reactive({
  queryParams: {
    pageNum: 1,
@@ -134,5 +137,8 @@
        }
      })
}
const openRecord = (val) => {
  recordRef.value.openDialog(val)
}
</script>