|
@@ -224,6 +224,7 @@ export default {
|
|
|
},
|
|
|
validateRequiredField(field, value, row) {
|
|
|
const verification = createFieldVerification();
|
|
|
+
|
|
|
if (replaceTextWrapAndSpace(value) === "") {
|
|
|
verification.isValid = false;
|
|
|
verification.message = `第${row}行,${getTableLabel(field)}不能为空`;
|
|
@@ -253,6 +254,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
const tableItem = tableData[row];
|
|
|
+
|
|
|
const index = Number(row) + 1;
|
|
|
|
|
|
for (const field in tableItem) {
|
|
@@ -391,10 +393,12 @@ export default {
|
|
|
? tableItem[PROPERTYS.SEND_TIME]
|
|
|
: this.formatDate2(tableItem[PROPERTYS.SEND_TIME]);
|
|
|
} else {
|
|
|
- target = tableItem[field] ? String(tableItem[field]).trim() : "";
|
|
|
+ target = String(tableItem[field]) ? String(tableItem[field]).trim() : "";
|
|
|
}
|
|
|
tableItem[field] = target;
|
|
|
});
|
|
|
+
|
|
|
+
|
|
|
this.tableData.push(tableItem);
|
|
|
});
|
|
|
|