dedsudiyu 1 year ago
parent
commit
ad18b9d016

+ 3 - 17
src/views/integratedManagement/laboratoryManagement/subject/addSubject.vue

@@ -64,13 +64,11 @@
           <div class="tableListPaginationSwitch">
             <el-switch
               class="switch captcha-img"
-              @click.native="switchClick(form.dynamicLeveling)"
               v-model="form.dynamicLeveling"
               :active-value="1"
               :inactive-value="0"
               active-text="开"
-              inactive-text="关"
-              disabled>
+              inactive-text="关">
             </el-switch>
             <i class="el-icon-warning tip-img"></i>
             <i class="tip-content">如需人工评定,请关闭动态评级</i>
@@ -485,19 +483,6 @@
             this.$set(this,'extinguishingKeyPoints',response.data);
           });
         },
-        //switch点击事件
-        switchClick(item){
-          let self = this;
-          console.log(item)
-          //switch开关
-          this.$confirm('是否确认'+item==1?'关闭':'开启'+'?', "", {
-            confirmButtonText: "确定",
-            cancelButtonText: "取消",
-            type: "warning"
-          }).then(function() {
-            self.form.dynamicLeveling=self.form.dynamicLeveling==1?0:1;
-          }).then(() => {}).catch(() => {});
-        },
         //查询学院下拉列表
         getDeptDropList(){
           getDeptDropList({deptName:'',level:2,deptType:''}).then(response => {
@@ -746,7 +731,8 @@
     .form-item{
       display: inline-block;
       overflow: hidden;
-      min-height:70px;
+      min-height:60px;
+      margin-bottom:0;
     }
     .bottom-form-box{
       display: flex;