11wqe1 1 day ago
parent
commit
cf8605e2e6

+ 5 - 0
src/components/pages/studentManageNew/component/allClaAddStu.vue

@@ -116,6 +116,7 @@
           v-for="(item, index) in allClaColumns"
           :key="index"
           :label="item.label"
+          :min-width="item.width"
         >
           <template slot-scope="scope">
             <div v-if="item.label == '账号'">
@@ -222,14 +223,17 @@ export default {
         {
           label: "姓名",
           prop: "username",
+          width: "30%",
         },
         {
           label: "账号",
           prop: "acc",
+          width: "30%",
         },
         {
           label: "班级",
           prop: "classname",
+          width: "40%",
         },
       ],
     };
@@ -606,6 +610,7 @@ export default {
 }
 .cla_box {
   display: flex;
+  flex-wrap: wrap;
   align-items: center;
   gap: 5px;
 }

+ 7 - 0
src/components/pages/studentManageNew/component/table.vue

@@ -834,6 +834,13 @@ export default {
       // })
       //   .then(() => {
           // 先移出班级
+          if (this.moveClaCascaderDataPath[1] == this.activeId) {
+            this.$message({
+              message: "不能移动到同一班级",
+              type: "error",
+            });
+            return;
+          }
           const promises = this.selectedData.map((item) => {
             item.classid = item.classid
               .split(",")