|
@@ -125,7 +125,7 @@
|
|
<!-- 添加或新增课程弹出框 -->
|
|
<!-- 添加或新增课程弹出框 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
title="课程"
|
|
title="课程"
|
|
- width="450px"
|
|
|
|
|
|
+ width="420px"
|
|
:visible.sync="courseDialog"
|
|
:visible.sync="courseDialog"
|
|
@close="dialogBeforeClose"
|
|
@close="dialogBeforeClose"
|
|
>
|
|
>
|
|
@@ -178,7 +178,7 @@
|
|
<el-form-item label="课程状态" prop="enable">
|
|
<el-form-item label="课程状态" prop="enable">
|
|
<el-radio-group class="pull_length" v-model="courseForm.enable">
|
|
<el-radio-group class="pull_length" v-model="courseForm.enable">
|
|
<el-radio label="true">开启</el-radio>
|
|
<el-radio label="true">开启</el-radio>
|
|
- <el-radio label="false">关闭</el-radio>
|
|
|
|
|
|
+ <el-radio label="false">禁用</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -190,7 +190,7 @@
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 导入弹窗 -->
|
|
<!-- 导入弹窗 -->
|
|
- <el-dialog title="导入窗口" :visible.sync="impDialog">
|
|
|
|
|
|
+ <el-dialog title="导入窗口" width="420px" :visible.sync="impDialog">
|
|
<el-form>
|
|
<el-form>
|
|
<el-row>
|
|
<el-row>
|
|
<el-form-item style="margin-left:20px">
|
|
<el-form-item style="margin-left:20px">
|
|
@@ -317,9 +317,14 @@
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 添加关联 -->
|
|
<!-- 添加关联 -->
|
|
- <el-dialog title="添加关联专业" v-model="addRelationDialog">
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="添加关联专业"
|
|
|
|
+ :visible.sync="addRelationDialog"
|
|
|
|
+ width="420px"
|
|
|
|
+ >
|
|
<el-form
|
|
<el-form
|
|
:inline="true"
|
|
:inline="true"
|
|
|
|
+ inline-message
|
|
:model="addRelationForm"
|
|
:model="addRelationForm"
|
|
ref="addRelationForm"
|
|
ref="addRelationForm"
|
|
label-width="100px"
|
|
label-width="100px"
|
|
@@ -346,7 +351,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-row class="pull_center">
|
|
|
|
|
|
+ <el-row class="d-flex justify-content-center">
|
|
<el-button type="primary" @click="submitAddRelationForm">
|
|
<el-button type="primary" @click="submitAddRelationForm">
|
|
保 存
|
|
保 存
|
|
</el-button>
|
|
</el-button>
|
|
@@ -512,8 +517,8 @@ export default {
|
|
specialtyDialogTitle: null,
|
|
specialtyDialogTitle: null,
|
|
specialtySearchForm: {
|
|
specialtySearchForm: {
|
|
courseId: null,
|
|
courseId: null,
|
|
- code: null,
|
|
|
|
- name: null
|
|
|
|
|
|
+ code: "",
|
|
|
|
+ name: ""
|
|
},
|
|
},
|
|
specialtyTableData: [],
|
|
specialtyTableData: [],
|
|
currentSpecialtyPage: 1,
|
|
currentSpecialtyPage: 1,
|
|
@@ -803,8 +808,8 @@ export default {
|
|
row.code +
|
|
row.code +
|
|
"】";
|
|
"】";
|
|
this.specialtySearchForm.courseId = row.id;
|
|
this.specialtySearchForm.courseId = row.id;
|
|
- this.specialtySearchForm.name = null;
|
|
|
|
- this.specialtySearchForm.code = null;
|
|
|
|
|
|
+ this.specialtySearchForm.name = "";
|
|
|
|
+ this.specialtySearchForm.code = "";
|
|
|
|
|
|
this.searchSpecialtyPage();
|
|
this.searchSpecialtyPage();
|
|
this.specialtyDialog = true;
|
|
this.specialtyDialog = true;
|
|
@@ -1108,11 +1113,10 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
uploadError(response) {
|
|
uploadError(response) {
|
|
- var jsonStr = response.message.substring(4);
|
|
|
|
- var resp = eval("(" + jsonStr + ")");
|
|
|
|
|
|
+ var json = JSON.parse(response.message);
|
|
if (response.status == 500) {
|
|
if (response.status == 500) {
|
|
this.$notify({
|
|
this.$notify({
|
|
- message: resp.desc,
|
|
|
|
|
|
+ message: json.desc,
|
|
type: "error"
|
|
type: "error"
|
|
});
|
|
});
|
|
}
|
|
}
|