|
@@ -15,14 +15,14 @@
|
|
<li class="cover">
|
|
<li class="cover">
|
|
<img class="page_preview_tag" src="../../assets/images/page_preview_tag.png" alt="">
|
|
<img class="page_preview_tag" src="../../assets/images/page_preview_tag.png" alt="">
|
|
<div class="page_preview_tag_title">封面</div>
|
|
<div class="page_preview_tag_title">封面</div>
|
|
- <div class="item-page">
|
|
|
|
|
|
+ <div class="item-page" v-for="(page,index) in pages" v-show="index==0">
|
|
<span>1</span>
|
|
<span>1</span>
|
|
- <div class="page" :class="{ active: pages[0] === editingPage }"
|
|
|
|
|
|
+ <div class="page" :class="{ active: page === editingPage }"
|
|
:style="{ width: 70 + 4 + 'px', height: (70 / canvasWidth) * canvasHeight + 4 + 'px' }"
|
|
:style="{ width: 70 + 4 + 'px', height: (70 / canvasWidth) * canvasHeight + 4 + 'px' }"
|
|
- @click="setEditingPage(pages[0],0)" @click.right="rightEvent()">
|
|
|
|
|
|
+ @click="setEditingPage(page,0)" @click.right="rightEvent()">
|
|
<Page :isOverView="true" class="content" :hideFoot="true"
|
|
<Page :isOverView="true" class="content" :hideFoot="true"
|
|
:style="{ width: canvasWidth + 'px', height: canvasHeight + 'px', transform: 'scale(' + 70 / canvasWidth +')',backgroundColor: bodyBackgroundColor }"
|
|
:style="{ width: canvasWidth + 'px', height: canvasHeight + 'px', transform: 'scale(' + 70 / canvasWidth +')',backgroundColor: bodyBackgroundColor }"
|
|
- :elements="pages[0].elements" type="see" />
|
|
|
|
|
|
+ :elements="page.elements" type="see" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</li>
|
|
@@ -115,7 +115,7 @@ export default {
|
|
props: {
|
|
props: {
|
|
testcaseId: "",
|
|
testcaseId: "",
|
|
resultCount: 0,
|
|
resultCount: 0,
|
|
- questions: []
|
|
|
|
|
|
+ questions: Array
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|