bri-components 1.2.97 → 1.2.98
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
|
@@ -159,10 +159,10 @@
|
|
|
159
159
|
></dsh-list-unit>
|
|
160
160
|
|
|
161
161
|
<span
|
|
162
|
-
v-if="!getRuleResult(col, row[col.nodeKey]).bool"
|
|
162
|
+
v-if="!getRuleResult(col, row[col.nodeKey], rowIndex).bool"
|
|
163
163
|
class="table-row-td-tip"
|
|
164
164
|
>
|
|
165
|
-
{{ getRuleResult(col, row[col.nodeKey]).message }}
|
|
165
|
+
{{ getRuleResult(col, row[col.nodeKey], rowIndex).message }}
|
|
166
166
|
</span>
|
|
167
167
|
</td>
|
|
168
168
|
</template>
|
|
@@ -411,8 +411,8 @@
|
|
|
411
411
|
validate () {
|
|
412
412
|
this.showRuleMessage = true;
|
|
413
413
|
|
|
414
|
-
return this.rows.every(
|
|
415
|
-
this.subColumns.every(col => this.getRuleResult(col,
|
|
414
|
+
return this.rows.every((row, rowIndex) =>
|
|
415
|
+
this.subColumns.every(col => this.getRuleResult(col, row, rowIndex, true).bool)
|
|
416
416
|
);
|
|
417
417
|
},
|
|
418
418
|
|
|
@@ -537,8 +537,19 @@
|
|
|
537
537
|
this.$set(this.ruleRecordMap, `${row._id}dsh${col._key}`, { showRuleMessage: true });
|
|
538
538
|
},
|
|
539
539
|
// 是否显示 单元格校验提示文字
|
|
540
|
-
getRuleResult (col, row, showRuleMessage = this.showRuleMessage) {
|
|
540
|
+
getRuleResult (col, row, rowIndex, showRuleMessage = this.showRuleMessage) {
|
|
541
541
|
if ((this.ruleRecordMap[`${row._id}dsh${col._key}`] || {}).showRuleMessage || showRuleMessage) {
|
|
542
|
+
if (col._regStr && [";", ";"].some(symbol => col._regStr.includes(symbol))) {
|
|
543
|
+
col._regStr = col._regStr
|
|
544
|
+
.replace(/\n/g, "")
|
|
545
|
+
.split(";")
|
|
546
|
+
.reduce((arr, item) => arr.concat(item.split(";")), [])[rowIndex];
|
|
547
|
+
col._regMessage = (col._regMessage || "")
|
|
548
|
+
.replace(/\n/g, "")
|
|
549
|
+
.split(";")
|
|
550
|
+
.reduce((arr, item) => arr.concat(item.split(";")), [])[rowIndex];
|
|
551
|
+
}
|
|
552
|
+
|
|
542
553
|
return this.$getFieldRuleResult(col, row);
|
|
543
554
|
} else {
|
|
544
555
|
return {
|