|
|
|
@ -507,7 +507,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"), |
|
|
|
@ -869,6 +869,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) { |
|
|
|
@ -936,7 +939,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" ) { |
|
|
|
@ -1151,7 +1154,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]; |
|
|
|
@ -1168,7 +1171,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]; |
|
|
|
|