|
@@ -49,11 +49,12 @@ watch(
|
|
|
(value) => {
|
|
|
uploaded = true;
|
|
|
if (value?.order === order) {
|
|
|
- if (value?.cover) {
|
|
|
- totalList = [...new Set(value.fileUrl.split(","))];
|
|
|
- } else {
|
|
|
- totalList.push(...[...new Set(value.fileUrl.split(","))]);
|
|
|
- }
|
|
|
+ // if (value?.cover) {
|
|
|
+ // totalList = [...new Set(value.fileUrl.split(","))];
|
|
|
+ // } else {
|
|
|
+ // totalList.push(...[...new Set(value.fileUrl.split(","))]);
|
|
|
+ // }
|
|
|
+ totalList.push(...[...new Set(value.fileUrl.split(","))]);
|
|
|
}
|
|
|
}
|
|
|
);
|
|
@@ -231,13 +232,6 @@ function prepareUpload() {
|
|
|
{{ uploaded ? "已上传" : "已扫描" }}
|
|
|
<n-icon :component="Checkmark" />
|
|
|
</div>
|
|
|
- <n-button
|
|
|
- type="primary"
|
|
|
- style="margin-top: 15px"
|
|
|
- :loading="handLoading"
|
|
|
- @click="handGetAnswer"
|
|
|
- >手动同步小程序作答结果</n-button
|
|
|
- >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-else>正在获取二维码...</div>
|
|
@@ -270,7 +264,25 @@ function prepareUpload() {
|
|
|
</draggable>
|
|
|
|
|
|
<div v-if="totalList.length > 6">* 图片上传最多只支持6张</div>
|
|
|
- <div style="display: flex; justify-content: center">
|
|
|
+ <div style="text-align: center; position: relative">
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <n-button
|
|
|
+ type="primary"
|
|
|
+ size="large"
|
|
|
+ :loading="handLoading"
|
|
|
+ @click="handGetAnswer"
|
|
|
+ >刷新</n-button
|
|
|
+ >
|
|
|
+ <span style="margin-left: 10px">同步拍照作答</span>
|
|
|
+ </div>
|
|
|
<n-button type="success" size="large" @click="modalCloseClicked">
|
|
|
确认
|
|
|
</n-button>
|