|
@@ -36,7 +36,10 @@
|
|
{{ image.title }}
|
|
{{ image.title }}
|
|
</div>
|
|
</div>
|
|
<div class="image-action">
|
|
<div class="image-action">
|
|
- <div class="image-action-li" @click="toMark">
|
|
|
|
|
|
+ <div
|
|
|
|
+ :class="['image-action-li', { 'is-disabled': image.markDisabled }]"
|
|
|
|
+ @click="toMark"
|
|
|
|
+ >
|
|
<Icon :class="{ 'mark-act': image.mark }" type="md-bookmark" />
|
|
<Icon :class="{ 'mark-act': image.mark }" type="md-bookmark" />
|
|
</div>
|
|
</div>
|
|
<div class="image-action-li" @click="toRotate">
|
|
<div class="image-action-li" @click="toRotate">
|
|
@@ -97,6 +100,7 @@ export default {
|
|
score: "",
|
|
score: "",
|
|
deg: 0,
|
|
deg: 0,
|
|
mark: false,
|
|
mark: false,
|
|
|
|
+ markDisabled: false,
|
|
sample: false,
|
|
sample: false,
|
|
selected: false
|
|
selected: false
|
|
},
|
|
},
|
|
@@ -119,6 +123,7 @@ export default {
|
|
this.$refs.ImageViewContain.resizeImage(image.deg);
|
|
this.$refs.ImageViewContain.resizeImage(image.deg);
|
|
},
|
|
},
|
|
async toMark() {
|
|
async toMark() {
|
|
|
|
+ if (this.image.markDisabled) return;
|
|
if (this.loading) return;
|
|
if (this.loading) return;
|
|
this.loading = true;
|
|
this.loading = true;
|
|
let res = null;
|
|
let res = null;
|