xiangpei
2024-09-23 710a9bf11a76b7b2fb27ba99f772ecc46aeb99fa
src/views/education/subject/list.vue
@@ -1,5 +1,6 @@
<template>
  <div class="app-container">
    <div style="width: 100%;position: relative;display: flex">
    <el-form :model="queryParam" ref="queryForm" :inline="true">
      <el-form-item label="查询条件:">
        <el-input v-model="queryParam.name" size="small"></el-input>
@@ -14,6 +15,11 @@
        </router-link> -->
      </el-form-item>
    </el-form>
      <div style="position: absolute; right: 0">
        <el-button @click="jumpToSubject" type="primary">课目管理</el-button>
      </div>
    </div>
    <el-table
      v-loading="listLoading"
@@ -107,6 +113,9 @@
    this.getAllSubject()
  },
  methods: {
    jumpToSubject() {
      this.$router.push({path: '/education/subject/manager'})
    },
    getAllSubject() {
      subjectApi.list().then(res => {
        this.subjectList = res.response