Explorar el Código

教师中心-填写表单按钮添加定位

11wqe1 hace 8 meses
padre
commit
4ad8275273

+ 1 - 8
src/components/pages/test/aggregate/index.vue

@@ -318,12 +318,5 @@ export default {
   text-overflow: ellipsis;
   height: 50px !important;
 }
-.aggregate >>> .el-table th > .cell {
-  /* -webkit-line-clamp: 2;
-  display: -webkit-box;
-  -webkit-box-orient: vertical;
-  overflow: hidden;
-  text-overflow: ellipsis;
-  height: 50px !important; */
-}
+
 </style>

+ 20 - 1
src/components/pages/testPerson/test/test.vue

@@ -46,6 +46,10 @@
                             <span>创建者:{{ item.username }}</span>
                         </el-tooltip>
                     </div>
+                    <div class="editBtn2" :style="`${item.open?'display:flex':''}`" v-if="!item.carray.length > 0">
+                        <span v-if="item.array.length === 0">去填写</span>
+                        <span v-else>再填一份</span>
+                    </div>
                     <div @click="doTest2(item.courseid)" class="editBtn" :style="`${item.open?'display:flex':''}`" v-if="!item.carray.length > 0">
                         <span v-if="item.array.length === 0">去填写</span>
                         <span v-else>再填一份</span>
@@ -776,6 +780,9 @@ export default {
 .test_panel_title:hover>.editBtn{
 	display: flex;
 }
+.test_panel_title:hover>.editBtn2{
+	display: flex;
+}
 
 
 .test_panel+.test_panel {
@@ -787,6 +794,7 @@ export default {
     display: flex;
     align-items: center;
     width: 100%;
+    position: relative;
     /* justify-content: space-between; */
     /* padding: 0 20px; */
     box-sizing: border-box;
@@ -876,7 +884,18 @@ export default {
     align-items: center;
     padding: 0 15px;
     cursor: pointer;
-
+    position: absolute;
+    right: 0;
+}
+.test_panel_title>.editBtn2 {
+    font-size: 16px;
+    color: #fff;
+    background: #3681fc;
+    height: 100%;
+    display: none;
+    align-items: center;
+    padding: 0 15px;
+    cursor: pointer;
 }
 
 .test_panel_title>.time>span+span {