|
@@ -93,6 +93,9 @@ export default {
|
|
|
IS_LEVEL() {
|
|
|
return this.stage === "LEVEL";
|
|
|
},
|
|
|
+ IS_SCORE() {
|
|
|
+ return this.stage === "SCORE";
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
this.initData();
|
|
@@ -160,7 +163,7 @@ export default {
|
|
|
this.image.mark = !this.image.mark;
|
|
|
},
|
|
|
toSelect() {
|
|
|
- if (this.image.sample) return;
|
|
|
+ if (this.image.sample && !this.IS_SCORE) return;
|
|
|
this.image.selected = !this.image.selected;
|
|
|
this.$emit("to-select", this.image);
|
|
|
},
|
|
@@ -176,7 +179,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
changeSelect(selected) {
|
|
|
- if (this.image.sample) return;
|
|
|
+ if (this.image.sample && !this.IS_SCORE) return;
|
|
|
this.image.selected = selected;
|
|
|
this.$emit("to-select", this.image);
|
|
|
},
|