Parcourir la source

fix: 考生编辑禁止编辑开课学院

zhangjie il y a 11 mois
Parent
commit
6a10e6a356

+ 19 - 0
src/assets/styles/base.scss

@@ -449,6 +449,25 @@ body {
     }
   }
 }
+.btn-link {
+  position: relative;
+
+  &::after {
+    content: "";
+    display: block;
+    position: absolute;
+    width: 100%;
+    bottom: 4px;
+    left: 0;
+    border-bottom: 1px solid $--color-text-dark-1;
+  }
+
+  &:hover {
+    &::after {
+      border-color: $--color-primary;
+    }
+  }
+}
 
 .btn-white {
   background-color: #fff !important;

+ 6 - 3
src/components/base/OrgSelect.vue

@@ -14,7 +14,7 @@
     <div
       :class="[
         'el-input el-input--small el-input--suffix',
-        { 'is-focus': isFocus },
+        { 'is-focus': isFocus, 'is-disabled': disabled },
       ]"
       @mouseenter="inputHovering = true"
       @mouseleave="inputHovering = false"
@@ -26,6 +26,7 @@
         :placeholder="placeholder"
         class="el-input__inner"
         :value="selectedOrg.name"
+        :disabled="disabled"
         readonly
       />
       <span class="el-input__suffix">
@@ -128,10 +129,11 @@ export default {
   },
   computed: {
     showClose() {
-      let hasValue = this.multiple
+      const hasValue = this.multiple
         ? Array.isArray(this.value) && this.value.length > 0
         : this.value !== undefined && this.value !== null && this.value !== "";
-      let criteria = this.clearable && this.inputHovering && hasValue;
+      const criteria =
+        this.clearable && this.inputHovering && hasValue && !this.disabled;
       return criteria;
     },
   },
@@ -159,6 +161,7 @@ export default {
       if (this.value) this.initSelected(this.value);
     },
     switchOpen() {
+      if (this.disabled) return;
       if (this.visible) {
         this.handleClose();
       } else {

+ 1 - 0
src/modules/base/components/ModifyExamStudent.vue

@@ -71,6 +71,7 @@
             withoutSecondOrg: true,
           }"
           style="width: 100%"
+          :disabled="isEdit"
           @change="teachingRoomChange"
         ></org-select>
       </el-form-item>

+ 4 - 1
src/modules/mark/views/ScoreManage.vue

@@ -140,7 +140,10 @@
       <div v-if="total === 0" class="tips-markedness">
         <p>
           如果成绩查询菜单下没有数据,请先在评卷管理模块—评卷管理菜单下,结束评卷
-          <el-button type="text" class="btn-primary ml-2" @click="toMarkManage"
+          <el-button
+            type="text"
+            class="btn-primary btn-link ml-2"
+            @click="toMarkManage"
             >点击跳转评卷管理</el-button
           >
         </p>