|
|
|
@ -92,7 +92,7 @@ |
|
|
|
{{ $t(col.label) }} |
|
|
|
</div> |
|
|
|
<template |
|
|
|
v-if="col.bodyType === 'input' || col.bodyType === 'inputNumber' || col.bodyType === 'select' || col.bodyType === 'dateTimeRange' || col.bodyType === 'radio'"> |
|
|
|
v-if="col.bodyType === 'input' || col.bodyType === 'inputNumber' || col.bodyType === 'select' || col.bodyType === 'dateTimeRange' || col.bodyType === 'dateTime' || col.bodyType === 'radio'"> |
|
|
|
<div class="flex flex1"> |
|
|
|
<HandleFormItem :fieldKey="prefixKey + '_' + col.prop + '_' + row.id" |
|
|
|
:fieldItemLabel="fieldItemLabel" :type="col.bodyType" |
|
|
|
@ -510,7 +510,7 @@ export default { |
|
|
|
getOperationColumns() { |
|
|
|
return { columnsData: this.columns, headerSelectFields: this.headerSelectFields, fieldItemLabel: this.fieldItemLabel } |
|
|
|
}, |
|
|
|
//获取其他下拉框的配制 |
|
|
|
//获取其他下拉框的配置 |
|
|
|
getOtherItem(sItem) { |
|
|
|
return { |
|
|
|
label: sItem.otherLabel ? this.$t(sItem.otherLabel) : this.$t("template.common.other"), |
|
|
|
@ -892,6 +892,9 @@ export default { |
|
|
|
if (type === "select") { |
|
|
|
this.$emit('bodySelectChange', { rowIndex, item: row, colIndex, value, key: col.prop, dataSource: this.localDataSource, headerSelectFields: this.headerSelectFields }); |
|
|
|
} |
|
|
|
if (type === "checkboxTree") { |
|
|
|
this.$emit('bodyTreeChange', { rowIndex, colIndex, value, row, type }); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 表体子值变化 |
|
|
|
onBodySubValueChange(rowIndex, colIndex, value, row, type) { |
|
|
|
@ -959,7 +962,7 @@ export default { |
|
|
|
// 优先从行数据中获取动态label(如jzbh1Label) |
|
|
|
item.checkboxLabel = currentItem[dynamicLabelKey]; |
|
|
|
} else if (col.checkboxLabel !== undefined && col.checkboxLabel !== '') { |
|
|
|
// 否则使用列配制的checkboxLabel |
|
|
|
// 否则使用列配置的checkboxLabel |
|
|
|
item.checkboxLabel = this.$t(col.checkboxLabel); |
|
|
|
} |
|
|
|
if (col.bodyType === "operableInput") { |
|
|
|
@ -1174,7 +1177,7 @@ export default { |
|
|
|
onBlur(rowIndex, colKey) { |
|
|
|
const value = this.localDataSource[rowIndex][colKey]; |
|
|
|
|
|
|
|
// 查找对应的列配制 |
|
|
|
// 查找对应的列配置 |
|
|
|
const col = this.columns.find(c => c.prop === colKey); |
|
|
|
if (col && col.bodyFillType === "actFill" && col.compareTo) { |
|
|
|
const compareToValue = this.localDataSource[rowIndex][col.compareTo]; |
|
|
|
@ -1191,7 +1194,7 @@ export default { |
|
|
|
this.$emit("blur", { rowIndex, colKey, value, dataSource: this.localDataSource, headerSelectFields: this.headerSelectFields, item: this.localDataSource[rowIndex] }); |
|
|
|
}, |
|
|
|
onSubBlur(rowIndex, colKey, value) { |
|
|
|
// 查找对应的列配制 |
|
|
|
// 查找对应的列配置 |
|
|
|
const col = this.columns.find(c => c.bodySubKey === colKey); |
|
|
|
if (col && col.bodySubFillType === "actFill" && col.bodySubCompareTo) { |
|
|
|
const compareToValue = this.localDataSource[rowIndex][col.bodySubCompareTo]; |
|
|
|
|