|
@@ -76,9 +76,8 @@
|
|
|
<div class="list custom-scrollbar" style="z-index: 2;" v-show="viewState === 1"
|
|
|
:class="{ dragging: dragState === 1 }">
|
|
|
<ul>
|
|
|
- <li v-for="(layer, index) in layersNoBg" :key="index" >
|
|
|
- <div class="layer" :class="{ active: editingLayer === layer}"
|
|
|
- @mousedown="moveLayer($event,layer)">
|
|
|
+ <li v-for="(layer, index) in layersNoBg" :key="index">
|
|
|
+ <div class="layer" :class="{ active: editingLayer === layer}" @mousedown="moveLayer($event,layer)">
|
|
|
<span class="thumb" :style="{ backgroundImage: 'url(' + layer.imgSrc + ')' }"></span>{{ layer.type }}
|
|
|
</div>
|
|
|
</li>
|
|
@@ -133,8 +132,7 @@ export default {
|
|
|
questionList: [],
|
|
|
isShowQuestion: false,
|
|
|
currentPage: 0,
|
|
|
- selectQuestions: this.questions,
|
|
|
- mousedDownFired :false,
|
|
|
+ selectQuestions: this.questions
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -183,9 +181,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- setTest(){
|
|
|
- console.log("点击测试");
|
|
|
- },
|
|
|
operationCommand(command, page, index) {
|
|
|
if (command == "del") {
|
|
|
console.log("删除", index);
|
|
@@ -306,7 +301,7 @@ export default {
|
|
|
isShow: function(index) {
|
|
|
var result = false;
|
|
|
if (index > 0) {
|
|
|
- console.log(this.pages.length, index, this.resultPageCount);
|
|
|
+ // console.log(this.pages.length, index, this.resultPageCount);
|
|
|
if (this.pages.length - index > this.resultPageCount) {
|
|
|
result = true;
|
|
|
}
|
|
@@ -315,7 +310,7 @@ export default {
|
|
|
},
|
|
|
isShowResult(index) {
|
|
|
var result = false;
|
|
|
- console.log(this.pages.length, index, this.resultPageCount);
|
|
|
+ // console.log(this.pages.length, index, this.resultPageCount);
|
|
|
if (
|
|
|
this.pages.length - index <= this.resultPageCount &&
|
|
|
this.resultPageCount > 0
|
|
@@ -324,8 +319,8 @@ export default {
|
|
|
}
|
|
|
return result;
|
|
|
},
|
|
|
- moveLayer(downEvent,element) {
|
|
|
- this.setEditingLayer(element);
|
|
|
+ moveLayer(downEvent, element) {
|
|
|
+ this.setEditingLayer(element);
|
|
|
let height = 34;
|
|
|
let timer = null;
|
|
|
let layer = downEvent.target;
|
|
@@ -472,7 +467,7 @@ export default {
|
|
|
this.$store.dispatch("setEditorPage", page);
|
|
|
},
|
|
|
setEditingLayer(layer) {
|
|
|
- console.log("点击了")
|
|
|
+ console.log("点击了");
|
|
|
this.$store.state.editor.complexEditorElement = [];
|
|
|
this.$store.dispatch("setEditorElement", null);
|
|
|
this.$store.dispatch("setEditorElement", layer);
|