|
@@ -2,7 +2,7 @@
|
|
<div class="co_box">
|
|
<div class="co_box">
|
|
<div v-for="(item1, index1) in this.checkJson" :key="index1" class="mc_ti_1" :draggable="isdrag == `${index1}`"
|
|
<div v-for="(item1, index1) in this.checkJson" :key="index1" class="mc_ti_1" :draggable="isdrag == `${index1}`"
|
|
:class="{
|
|
:class="{
|
|
- active: checkC === `x${index1}`,
|
|
|
|
|
|
+ active: checkC === `x${index1}`,
|
|
dragOverTop: newIndex === index1 && typeIndex == 'drag-' + index1 && (oldIndex > index1 && (!(newIndex2 || newIndex2 === 0) || !(newIndex3 || newIndex3 === 0))),
|
|
dragOverTop: newIndex === index1 && typeIndex == 'drag-' + index1 && (oldIndex > index1 && (!(newIndex2 || newIndex2 === 0) || !(newIndex3 || newIndex3 === 0))),
|
|
dragOverBottom: newIndex === index1 && typeIndex == 'drag-' + index1 && (oldIndex < index1 || !(!(newIndex2 || newIndex2 === 0) || !(newIndex3 || newIndex3 === 0))),
|
|
dragOverBottom: newIndex === index1 && typeIndex == 'drag-' + index1 && (oldIndex < index1 || !(!(newIndex2 || newIndex2 === 0) || !(newIndex3 || newIndex3 === 0))),
|
|
}" @click.stop="checkTitle(`${index1}`, 1, item1)" @dragstart="dragStart(item1, index1, `${index1}`)"
|
|
}" @click.stop="checkTitle(`${index1}`, 1, item1)" @dragstart="dragStart(item1, index1, `${index1}`)"
|
|
@@ -308,7 +308,7 @@ export default {
|
|
} else if (item.type == 8) {
|
|
} else if (item.type == 8) {
|
|
className += " test_icon_time"
|
|
className += " test_icon_time"
|
|
}
|
|
}
|
|
- return index + 1 + "、" + (item.json && this.etype != 'edit' ? `<span class='${className}'></span>` : `<span class='${className}'></span>` + this.options2[item.type]) + (item.json && this.etype != 'edit' ? `${item.json.title}` : "");
|
|
|
|
|
|
+ return `${this.etype=='edit'?'<span class="test_index">'+(index+1)+'</span>':index+1+'、'}` + "" + (item.json && this.etype != 'edit' ? `<span class='${className}'></span>` : `<span class='${className}'></span>` + this.options2[item.type]) + (item.json && this.etype != 'edit' ? `${item.json.title}` : "");
|
|
} else if (item.ttype == 2) {
|
|
} else if (item.ttype == 2) {
|
|
return `${item.name ? item.name : `第${index + 1}组`}(共${item.array.length}题)`;
|
|
return `${item.name ? item.name : `第${index + 1}组`}(共${item.array.length}题)`;
|
|
} else if (item.ttype == 3) {
|
|
} else if (item.ttype == 3) {
|
|
@@ -820,9 +820,41 @@ export default {
|
|
.mc_ti_2.active,
|
|
.mc_ti_2.active,
|
|
.mc_ti_3.active {
|
|
.mc_ti_3.active {
|
|
/* border: 1px solid #0062ff; */
|
|
/* border: 1px solid #0062ff; */
|
|
- background: rgb(239, 240, 241);
|
|
|
|
|
|
+ /* background: rgb(239, 240, 241); */
|
|
|
|
+ /* background-color: #fff;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+ border: 1px solid #E0EAFB;
|
|
|
|
+ box-shadow: 0 0 2px 0px #cdddf8; */
|
|
|
|
+ background-color: #fff;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+.mc_ti_1.active,
|
|
|
|
+.mc_ti_2.active,
|
|
|
|
+.mc_ti_3.active{
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ box-shadow: 1px 1px 20px 4px rgba(29, 57, 131, 0.05), 0px 4px 10px 0px rgba(29, 57, 131, 0.08);
|
|
|
|
+ border:solid 1px #3681FC !important;
|
|
|
|
+ border-radius: 6px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.mc_ti_1,
|
|
|
|
+.mc_ti_2,
|
|
|
|
+.mc_ti_3{
|
|
|
|
+ border: solid 1px #fff;
|
|
|
|
+ /* padding-bottom: 10px; */
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.mc_ti_1:hover,
|
|
|
|
+.mc_ti_2:hover,
|
|
|
|
+.mc_ti_3:hover {
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ box-shadow: 1px 1px 20px 4px rgba(29, 57, 131, 0.05), 0px 4px 10px 0px rgba(29, 57, 131, 0.08);
|
|
|
|
+ border: 1px solid #E0EAFB;
|
|
|
|
+ border-radius: 6px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
.mc_ti_1.active>.title>.drag,
|
|
.mc_ti_1.active>.title>.drag,
|
|
.mc_ti_2.active>.title>.drag,
|
|
.mc_ti_2.active>.title>.drag,
|
|
.mc_ti_3.active>.title>.drag {
|
|
.mc_ti_3.active>.title>.drag {
|
|
@@ -877,4 +909,16 @@ export default {
|
|
.dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
|
|
.dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
|
|
color: #fff;
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.content>>>.test_index{
|
|
|
|
+ margin-right: 20px;
|
|
|
|
+ font-size: 28px;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+
|
|
|
|
+ color: #AECCFE;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.active>>>.test_index{
|
|
|
|
+ color: #3681FC;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|