|
@@ -36,7 +36,6 @@
|
|
|
<van-uploader
|
|
<van-uploader
|
|
|
multiple
|
|
multiple
|
|
|
:after-read="afterRead"
|
|
:after-read="afterRead"
|
|
|
- :file-list="fileList"
|
|
|
|
|
:before-read="beforeRead"
|
|
:before-read="beforeRead"
|
|
|
:before-delete="beforeDelete"
|
|
:before-delete="beforeDelete"
|
|
|
v-model="submitList[score.value].imgs"
|
|
v-model="submitList[score.value].imgs"
|
|
@@ -105,6 +104,7 @@
|
|
|
> -->
|
|
> -->
|
|
|
<van-button
|
|
<van-button
|
|
|
class="submit"
|
|
class="submit"
|
|
|
|
|
+ :disabled="!canSubmit"
|
|
|
@click="$refs.preview.init()"
|
|
@click="$refs.preview.init()"
|
|
|
:color="$colors.prim"
|
|
:color="$colors.prim"
|
|
|
block
|
|
block
|
|
@@ -119,7 +119,6 @@
|
|
|
:info="subJson"
|
|
:info="subJson"
|
|
|
:rate="form"
|
|
:rate="form"
|
|
|
:loading="saving"
|
|
:loading="saving"
|
|
|
- :disabled="!canSubmit"
|
|
|
|
|
></preview-rate>
|
|
></preview-rate>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -144,7 +143,6 @@ export default {
|
|
|
img: [],
|
|
img: [],
|
|
|
imgs: []
|
|
imgs: []
|
|
|
},
|
|
},
|
|
|
- fileList: [],
|
|
|
|
|
img: [],
|
|
img: [],
|
|
|
submitList: {},
|
|
submitList: {},
|
|
|
saving: false
|
|
saving: false
|
|
@@ -212,7 +210,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
uploadImg(file, detail) {
|
|
uploadImg(file, detail) {
|
|
|
- console.log(file);
|
|
|
|
|
this.$http
|
|
this.$http
|
|
|
.post("/upload/base64", {
|
|
.post("/upload/base64", {
|
|
|
base64: file.content
|
|
base64: file.content
|
|
@@ -232,7 +229,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- afterRead(file, fileList, detail) {
|
|
|
|
|
|
|
+ afterRead(file, detail) {
|
|
|
this.$toast.loading({
|
|
this.$toast.loading({
|
|
|
message: "加载中...",
|
|
message: "加载中...",
|
|
|
forbidClick: true
|
|
forbidClick: true
|
|
@@ -240,10 +237,10 @@ export default {
|
|
|
if (file instanceof Array) {
|
|
if (file instanceof Array) {
|
|
|
file.map(v => {
|
|
file.map(v => {
|
|
|
// console.log(v);
|
|
// console.log(v);
|
|
|
- this.uploadImg(v);
|
|
|
|
|
|
|
+ this.uploadImg(v, detail);
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
- this.uploadImg(file);
|
|
|
|
|
|
|
+ this.uploadImg(file, detail);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
beforeDelete(file, detail) {
|
|
beforeDelete(file, detail) {
|