|
@@ -125,7 +125,9 @@
|
|
|
</div>
|
|
|
<div
|
|
|
class="rightBox"
|
|
|
- v-if="this.steps == 1"
|
|
|
+ :key="updateKey"
|
|
|
+ ref='scrollContainer'
|
|
|
+ v-if="steps == 1"
|
|
|
@mousewheel="scrollChange"
|
|
|
style="padding: 0"
|
|
|
:style="{
|
|
@@ -210,7 +212,7 @@
|
|
|
:key="index"
|
|
|
>
|
|
|
<span
|
|
|
- v-if="
|
|
|
+ v-show="
|
|
|
CourseTypeJson[item.id].length > 0 &&
|
|
|
(oid == '69893dca-1d47-11ed-8c78-005056b86db5'
|
|
|
? pTypeCheck.indexOf(item.id) != -1
|
|
@@ -220,7 +222,7 @@
|
|
|
>
|
|
|
<el-checkbox-group
|
|
|
v-model="courseTypeId"
|
|
|
- v-if="
|
|
|
+ v-show="
|
|
|
CourseTypeJson[item.id].length > 0 &&
|
|
|
(oid == '69893dca-1d47-11ed-8c78-005056b86db5'
|
|
|
? pTypeCheck.indexOf(item.id) != -1
|
|
@@ -271,7 +273,7 @@
|
|
|
class="cover_p"
|
|
|
v-else
|
|
|
/>
|
|
|
- <div v-if="cover.length == 0">点击添加封面</div>
|
|
|
+ <div v-show="cover.length == 0">点击添加封面</div>
|
|
|
<div class="cover_mask">
|
|
|
<img
|
|
|
src="../../assets/icon/new/cover_update.png"
|
|
@@ -301,7 +303,7 @@
|
|
|
(gradeId = ''),
|
|
|
getClass()
|
|
|
">添加班级</button>
|
|
|
- <div v-if="checkboxList2.length" class="wb_j_box_p_box">
|
|
|
+ <div v-show="checkboxList2.length" class="wb_j_box_p_box">
|
|
|
<span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
|
|
|
getClassC(tc) }}</span>
|
|
|
</div> -->
|
|
@@ -334,12 +336,12 @@
|
|
|
</div>
|
|
|
<div class="wb_j_box_content">
|
|
|
<!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
|
|
|
- <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
|
|
|
+ <div v-show="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
|
|
|
<span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
|
|
|
checkBoolean
|
|
|
? checkboxList3
|
|
|
: checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
|
|
|
- v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
|
|
|
+ v-show="checkboxList3.length > 6 && !checkBoolean">更多...</span>
|
|
|
</div> -->
|
|
|
<div class="wb_j_box_btn" @click="openMember">
|
|
|
<div class="wb_j_box_title">协同人员</div>
|
|
@@ -399,7 +401,7 @@
|
|
|
<button
|
|
|
class="c_pub_button_delete pub_btn_delete_img"
|
|
|
@click="deleteEva()"
|
|
|
- v-if="evalua"
|
|
|
+ v-show="evalua"
|
|
|
>
|
|
|
清除
|
|
|
</button>
|
|
@@ -538,7 +540,7 @@
|
|
|
</div>
|
|
|
<div
|
|
|
class="rightBox"
|
|
|
- v-if="this.steps == 2"
|
|
|
+ v-if="steps == 2"
|
|
|
:style="{
|
|
|
height:
|
|
|
!isStepDisplay && !isBtnDisplay
|
|
@@ -735,7 +737,7 @@
|
|
|
</div>
|
|
|
<div
|
|
|
class="rightBox"
|
|
|
- v-if="this.steps == 3"
|
|
|
+ v-if="steps == 3"
|
|
|
ref="rightboxR"
|
|
|
:style="{
|
|
|
height:
|
|
@@ -4981,7 +4983,7 @@
|
|
|
background: rgb(255, 255, 255);
|
|
|
border-radius: 10px;
|
|
|
"
|
|
|
- v-if="this.steps == 4"
|
|
|
+ v-if="steps == 4"
|
|
|
>
|
|
|
<div class="basic_box_success">
|
|
|
<div class="right_img">
|
|
@@ -7616,6 +7618,7 @@ export default {
|
|
|
},
|
|
|
twoJson: [],
|
|
|
oneJson: [],
|
|
|
+ updateKey:1
|
|
|
};
|
|
|
},
|
|
|
directives: {
|
|
@@ -12568,6 +12571,15 @@ export default {
|
|
|
}, 1000);
|
|
|
});
|
|
|
}
|
|
|
+ // 在复制操作之前记录滚动位置
|
|
|
+ const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
|
|
|
+ // 执行复制操作
|
|
|
+ // 复制操作完成后恢复滚动位置
|
|
|
+ this.$nextTick(() => {
|
|
|
+ if(this.$refs.scrollContainer){
|
|
|
+ this.$refs.scrollContainer.scrollTop = savedScrollPosition;
|
|
|
+ }
|
|
|
+ });
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
@@ -12884,6 +12896,15 @@ export default {
|
|
|
.get(this.$store.state.api + "selectAllEvaluation", params)
|
|
|
.then((res) => {
|
|
|
this.evaJuri = res.data[0];
|
|
|
+ // 在复制操作之前记录滚动位置
|
|
|
+ const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
|
|
|
+ // 执行复制操作
|
|
|
+ // 复制操作完成后恢复滚动位置
|
|
|
+ this.$nextTick(() => {
|
|
|
+ if(this.$refs.scrollContainer){
|
|
|
+ this.$refs.scrollContainer.scrollTop = savedScrollPosition;
|
|
|
+ }
|
|
|
+ });
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|