|
@@ -26,7 +26,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { addPhoto, addVisitsPosition, addPhotoToDB } from '@/api/index';
|
|
|
|
|
|
|
+import { addstorePhoto, addVisitsPosition, addPhotoToDB } from '@/api/index';
|
|
|
import imageAIVerifyErr from './imageAIVerifyErr';
|
|
import imageAIVerifyErr from './imageAIVerifyErr';
|
|
|
import axios from 'axios';
|
|
import axios from 'axios';
|
|
|
|
|
|
|
@@ -308,7 +308,7 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
this.toastLoading(0, '上传中...', true);
|
|
this.toastLoading(0, '上传中...', true);
|
|
|
}
|
|
}
|
|
|
- chainsGroupAddPhoto(form, this.controller ? this.controller.signal : null)
|
|
|
|
|
|
|
+ addstorePhoto(form, this.controller ? this.controller.signal : null)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
this.requestThen(res);
|
|
this.requestThen(res);
|
|
|
})
|
|
})
|
|
@@ -417,7 +417,7 @@ export default {
|
|
|
form.isUpdate = 'true';
|
|
form.isUpdate = 'true';
|
|
|
form.feedbackMessage = res.feedbackMessage;
|
|
form.feedbackMessage = res.feedbackMessage;
|
|
|
}
|
|
}
|
|
|
- chainsGroupAddPhotoToDB(form).then((resData) => {
|
|
|
|
|
|
|
+ addPhotoToDB(form).then((resData) => {
|
|
|
if (resData.code == 200) {
|
|
if (resData.code == 200) {
|
|
|
console.log(resData);
|
|
console.log(resData);
|
|
|
res.data.fileId = resData.data[0].fileId;
|
|
res.data.fileId = resData.data[0].fileId;
|