|
@@ -128,14 +128,13 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 关联课程弹出框 -->
|
|
|
- <el-dialog :title="courseDialogTitle" :visible.sync="courseDialog">
|
|
|
+ <el-dialog
|
|
|
+ :title="courseDialogTitle"
|
|
|
+ width="720px"
|
|
|
+ :visible.sync="courseDialog"
|
|
|
+ >
|
|
|
<!-- 表单 -->
|
|
|
- <el-form
|
|
|
- :inline="true"
|
|
|
- :model="courseSearchForm"
|
|
|
- label-position="right"
|
|
|
- label-width="100px"
|
|
|
- >
|
|
|
+ <el-form :inline="true" :model="courseSearchForm">
|
|
|
<el-row>
|
|
|
<el-form-item label="课程名称" class="pull-left">
|
|
|
<el-input
|
|
@@ -174,11 +173,11 @@
|
|
|
|
|
|
<!-- 课程列表 -->
|
|
|
<el-table :data="courseTableData" border resizable stripe>
|
|
|
- <el-table-column prop="id" label="ID" width="150" />
|
|
|
- <el-table-column prop="name" label="课程名称" width="250" />
|
|
|
+ <el-table-column prop="id" label="ID" width="60" />
|
|
|
+ <el-table-column prop="name" label="课程名称" width="220" />
|
|
|
<el-table-column prop="code" label="课程代码" />
|
|
|
<el-table-column prop="updateTime" label="更新时间" width="170" />
|
|
|
- <el-table-column label="操作">
|
|
|
+ <el-table-column label="操作" width="120">
|
|
|
<span slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -202,13 +201,15 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 添加关联 -->
|
|
|
- <el-dialog title="添加关联课程" :visible.sync="addRelationDialog">
|
|
|
+ <el-dialog
|
|
|
+ title="添加关联课程"
|
|
|
+ width="500px"
|
|
|
+ :visible.sync="addRelationDialog"
|
|
|
+ >
|
|
|
<el-form
|
|
|
:inline="true"
|
|
|
:model="addRelationForm"
|
|
|
ref="addRelationForm"
|
|
|
- label-position="right"
|
|
|
- label-width="100px"
|
|
|
:rules="addRelationRules"
|
|
|
>
|
|
|
<el-row>
|
|
@@ -231,13 +232,12 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- </el-row>
|
|
|
- <el-row class="pull_center">
|
|
|
<el-button type="primary" @click="submitAddRelationForm">
|
|
|
保 存
|
|
|
</el-button>
|
|
|
<el-button @click="addRelationDialog = false">取 消</el-button>
|
|
|
</el-row>
|
|
|
+ <el-row class="pull_center"> </el-row>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
|
|
|
@@ -402,8 +402,8 @@ export default {
|
|
|
courseDialogTitle: null,
|
|
|
courseSearchForm: {
|
|
|
specialtyId: null,
|
|
|
- code: null,
|
|
|
- name: null
|
|
|
+ code: "",
|
|
|
+ name: ""
|
|
|
},
|
|
|
courseTableData: [],
|
|
|
currentCoursePage: 1,
|
|
@@ -543,7 +543,7 @@ export default {
|
|
|
this.addRelationForm.courseId = null;
|
|
|
this.addRelationForm.specialtyId = this.courseSearchForm.specialtyId;
|
|
|
this.addRelationDialog = true;
|
|
|
- this.$refs.addRelationForm.resetFields();
|
|
|
+ // this.$refs.addRelationForm.resetFields();
|
|
|
},
|
|
|
searchCoursePage() {
|
|
|
var param = new URLSearchParams(this.courseSearchForm);
|
|
@@ -797,12 +797,12 @@ export default {
|
|
|
this.courseDialogTitle =
|
|
|
"关联课程列表 【专业名称:" +
|
|
|
row.name +
|
|
|
- "】【 专业代码:" +
|
|
|
+ "】【专业代码:" +
|
|
|
row.code +
|
|
|
"】";
|
|
|
this.courseSearchForm.specialtyId = row.id;
|
|
|
- this.courseSearchForm.name = null;
|
|
|
- this.courseSearchForm.code = null;
|
|
|
+ this.courseSearchForm.code = "";
|
|
|
+ this.courseSearchForm.name = "";
|
|
|
|
|
|
this.searchCoursePage();
|
|
|
this.courseDialog = true;
|