|
@@ -1606,6 +1606,11 @@ export default {
|
|
resolve(res.data);
|
|
resolve(res.data);
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
|
+ if (err.toString().indexOf("timeout") != -1) {
|
|
|
|
+ err = {
|
|
|
|
+ msg: "拍照超时,请重新拍照",
|
|
|
|
+ };
|
|
|
|
+ }
|
|
this.loading = false;
|
|
this.loading = false;
|
|
this.$message({
|
|
this.$message({
|
|
type: "warning",
|
|
type: "warning",
|
|
@@ -1728,8 +1733,8 @@ export default {
|
|
})
|
|
})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.recordId = res.data;
|
|
this.recordId = res.data;
|
|
-
|
|
|
|
- if (self.needPhoto) {
|
|
|
|
|
|
+ // 节不需要拍照
|
|
|
|
+ if (self.needPhoto && this.type != 2) {
|
|
this.openPhoto();
|
|
this.openPhoto();
|
|
} else {
|
|
} else {
|
|
if (this.lastTime) {
|
|
if (this.lastTime) {
|