Michael Wang 6 gadi atpakaļ
vecāks
revīzija
ed343bf39e
2 mainītis faili ar 18 papildinājumiem un 13 dzēšanām
  1. 16 12
      src/modules/basic/view/course.vue
  2. 2 1
      src/modules/basic/view/specially.vue

+ 16 - 12
src/modules/basic/view/course.vue

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

+ 2 - 1
src/modules/basic/view/specially.vue

@@ -298,7 +298,7 @@
       </div>
 
       <!-- 导入弹窗 -->
-      <el-dialog title="导入窗口" :visible.sync="impDialog">
+      <el-dialog title="导入窗口" width="420px" :visible.sync="impDialog">
         <el-form>
           <el-row>
             <el-form-item style="margin-left:20px">
@@ -320,6 +320,7 @@
                 <el-button size="small" slot="trigger" type="primary">
                   选择文件
                 </el-button>
+                &nbsp;
                 <el-button size="small" type="success" @click="submitUpload">
                   确认上传
                 </el-button>