cloud-web-corejs-haier 1.0.45 → 1.0.47
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
|
@@ -28,9 +28,12 @@ tmixins = {
|
|
|
28
28
|
type: Number,
|
|
29
29
|
default: () => 100000,
|
|
30
30
|
},
|
|
31
|
+
/* 单个文件大小限制(MB),0 表示不限制 */
|
|
31
32
|
size: {
|
|
32
33
|
type: Number,
|
|
33
|
-
default:
|
|
34
|
+
default: () => {
|
|
35
|
+
return settingConfig.uploadFileSize ?? 200;
|
|
36
|
+
},
|
|
34
37
|
},
|
|
35
38
|
accept: {
|
|
36
39
|
type: String,
|
|
@@ -190,8 +193,9 @@ tmixins = {
|
|
|
190
193
|
// this.show = true
|
|
191
194
|
},
|
|
192
195
|
handleChange(file, fileList) {
|
|
196
|
+
/* size 为 0(或未配置限制)时不做大小校验 */
|
|
193
197
|
let maxSize = this.size * 1024 * 1024;
|
|
194
|
-
if (file.size > maxSize) {
|
|
198
|
+
if (maxSize > 0 && file.size > maxSize) {
|
|
195
199
|
fileList.map((item, index) => {
|
|
196
200
|
if (item === file) {
|
|
197
201
|
fileList.splice(index, 1);
|
|
@@ -1213,9 +1217,12 @@ tViewMixins = {
|
|
|
1213
1217
|
type: Number,
|
|
1214
1218
|
default: 100000,
|
|
1215
1219
|
},
|
|
1220
|
+
/* 单个文件大小限制(MB),0 表示不限制 */
|
|
1216
1221
|
size: {
|
|
1217
1222
|
type: Number,
|
|
1218
|
-
default:
|
|
1223
|
+
default: () => {
|
|
1224
|
+
return settingConfig.uploadFileSize ?? 200;
|
|
1225
|
+
},
|
|
1219
1226
|
},
|
|
1220
1227
|
accept: {
|
|
1221
1228
|
type: String,
|
|
@@ -28,9 +28,12 @@ tmixins = {
|
|
|
28
28
|
type: Number,
|
|
29
29
|
default: () => 100000,
|
|
30
30
|
},
|
|
31
|
+
/* 单个文件大小限制(MB),0 表示不限制 */
|
|
31
32
|
size: {
|
|
32
33
|
type: Number,
|
|
33
|
-
default:
|
|
34
|
+
default: () => {
|
|
35
|
+
return settingConfig.uploadFileSize ?? 200;
|
|
36
|
+
},
|
|
34
37
|
},
|
|
35
38
|
accept: {
|
|
36
39
|
type: String,
|
|
@@ -185,8 +188,9 @@ tmixins = {
|
|
|
185
188
|
// this.show = true
|
|
186
189
|
},
|
|
187
190
|
handleChange(file, fileList) {
|
|
191
|
+
/* size 为 0(或未配置限制)时不做大小校验 */
|
|
188
192
|
let maxSize = this.size * 1024 * 1024;
|
|
189
|
-
if (file.size > maxSize) {
|
|
193
|
+
if (maxSize > 0 && file.size > maxSize) {
|
|
190
194
|
fileList.map((item, index) => {
|
|
191
195
|
if (item === file) {
|
|
192
196
|
fileList.splice(index, 1);
|
|
@@ -176,7 +176,7 @@ moudule = {
|
|
|
176
176
|
userConfirm(rows) {
|
|
177
177
|
let $grid = this.$refs["table-m1"];
|
|
178
178
|
let item = $grid.getTableData().fullData[this.operateIndex];
|
|
179
|
-
let wfTaskCandidateDTOs = item.wfTaskCandidateDTOs;
|
|
179
|
+
let wfTaskCandidateDTOs = item.wfTaskCandidateDTOs || [];
|
|
180
180
|
let item1s = [];
|
|
181
181
|
let item2s = [];
|
|
182
182
|
rows.forEach((row) => {
|