|
@@ -103,17 +103,16 @@
|
|
label="更新时间"
|
|
label="更新时间"
|
|
width="170"
|
|
width="170"
|
|
/>
|
|
/>
|
|
- <el-table-column label="操作" width="220">
|
|
|
|
|
|
+ <el-table-column label="操作" width="240">
|
|
<div slot-scope="scope">
|
|
<div slot-scope="scope">
|
|
- <!-- <el-button
|
|
|
|
- size="mini"
|
|
|
|
- type="primary"
|
|
|
|
- plain
|
|
|
|
- icon="el-icon-share"
|
|
|
|
- @click="relation(scope.row)"
|
|
|
|
- >
|
|
|
|
- 关联专业
|
|
|
|
- </el-button> -->
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ size="medium"
|
|
|
|
+ type="text"
|
|
|
|
+ class="normal"
|
|
|
|
+ @click="outlineCourse(scope.row)"
|
|
|
|
+ >
|
|
|
|
+ 教学大纲
|
|
|
|
+ </el-button>
|
|
<el-button
|
|
<el-button
|
|
size="medium"
|
|
size="medium"
|
|
type="text"
|
|
type="text"
|
|
@@ -230,6 +229,13 @@
|
|
<el-button @click="errDialog = false">确定</el-button>
|
|
<el-button @click="errDialog = false">确定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
|
|
+ <!-- 课程大纲 -->
|
|
|
|
+ <course-outline-dialog
|
|
|
|
+ ref="CourseOutlineDialog"
|
|
|
|
+ :course="curCourse"
|
|
|
|
+ @comfirm="searchForm"
|
|
|
|
+ ></course-outline-dialog>
|
|
</section>
|
|
</section>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -241,10 +247,11 @@ import { courseExportApi } from "../api";
|
|
import { downloadByApi } from "@/plugins/download";
|
|
import { downloadByApi } from "@/plugins/download";
|
|
import ImportFileDialog from "@/components/ImportFileDialog.vue";
|
|
import ImportFileDialog from "@/components/ImportFileDialog.vue";
|
|
import SvgBtn from "@/components/SvgBtn.vue";
|
|
import SvgBtn from "@/components/SvgBtn.vue";
|
|
|
|
+import CourseOutlineDialog from "../component/CourseOutlineDialog.vue";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "Course",
|
|
name: "Course",
|
|
- components: { ImportFileDialog, SvgBtn },
|
|
|
|
|
|
+ components: { ImportFileDialog, SvgBtn, CourseOutlineDialog },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
formSearch: {
|
|
formSearch: {
|
|
@@ -268,6 +275,10 @@ export default {
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
total: 10,
|
|
total: 10,
|
|
|
|
|
|
|
|
+ // course outline
|
|
|
|
+ outlineDialog: false,
|
|
|
|
+ curCourse: null,
|
|
|
|
+
|
|
uploadCourseUrl: `${QUESTION_API}/course/import`,
|
|
uploadCourseUrl: `${QUESTION_API}/course/import`,
|
|
courseTemplateUrl: `${QUESTION_API}/course/importTemplate`,
|
|
courseTemplateUrl: `${QUESTION_API}/course/importTemplate`,
|
|
uploadHeaders: {},
|
|
uploadHeaders: {},
|
|
@@ -459,6 +470,10 @@ export default {
|
|
|
|
|
|
this.courseDialog = true;
|
|
this.courseDialog = true;
|
|
},
|
|
},
|
|
|
|
+ outlineCourse(row) {
|
|
|
|
+ this.curCourse = row;
|
|
|
|
+ this.$refs.CourseOutlineDialog.open();
|
|
|
|
+ },
|
|
async exportCourse() {
|
|
async exportCourse() {
|
|
if (this.downloading) return;
|
|
if (this.downloading) return;
|
|
this.downloading = true;
|
|
this.downloading = true;
|