bri-components 1.4.92 → 1.4.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bri-components",
3
- "version": "1.4.92",
3
+ "version": "1.4.94",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -101,6 +101,8 @@ export default {
101
101
  this.successCb && this.successCb(response, response.data, file);
102
102
  callback && callback(response.data);
103
103
  }).catch(error => {
104
+ this.percent = 0;
105
+ this.uploadSuccess = false;
104
106
  this.handleError && this.handleError(error, {}, file);
105
107
  callback && callback(error);
106
108
  });
@@ -185,6 +187,8 @@ export default {
185
187
  this.successCb && this.successCb(response, response.data, file);
186
188
  callback && callback(response.data);
187
189
  }).catch((err, response) => {
190
+ this.percent = 0;
191
+ this.uploadSuccess = false;
188
192
  this.handleError && this.handleError(err, response, file);
189
193
  callback && callback(err);
190
194
  });
@@ -333,6 +337,8 @@ export default {
333
337
  this.successCb && this.successCb(response, response.data, file);
334
338
  callback && callback(response.data);
335
339
  }).catch((err, response) => {
340
+ this.percent = 0;
341
+ this.uploadSuccess = false;
336
342
  this.handleError && this.handleError(err, response, file);
337
343
  callback && callback(err);
338
344
  });
@@ -1064,10 +1064,9 @@ export default {
1064
1064
  jobId: id
1065
1065
  },
1066
1066
  callback: data => {
1067
- operationItem.disabled = false;
1068
- clearInterval(this.exportTimer);
1069
-
1070
1067
  if (data.status === "completed") {
1068
+ operationItem.disabled = false;
1069
+ clearInterval(this.exportTimer);
1071
1070
  window.location.href = data.url;
1072
1071
  } else if (data.status === "failed") {
1073
1072
  this.$Message.info({
@@ -73,7 +73,14 @@
73
73
  &-small {
74
74
  .ivu-modal-wrap {
75
75
  .ivu-modal {
76
- height: 400px !important;
76
+ margin: 0px auto;
77
+ position: absolute;
78
+ top: 160px;
79
+ bottom: 0px;
80
+ left: 0px;
81
+ right: 0px;
82
+
83
+ height: 450px !important;
77
84
  max-height: 100%;
78
85
  max-width: 100%;
79
86