|
|
|
@ -135,7 +135,7 @@ |
|
|
|
:fieldItemLabel="fieldItemLabel" :type="col.bodyType" class="body-clickable" |
|
|
|
sourceFrom="customTable" :item="getBodyItem(col, rowIndex)" |
|
|
|
:value="row[col.prop]" :error="hasError(rowIndex, colIndex, col.prop)" |
|
|
|
@onRegentSubmit="(data, inputValue) => onRegentSubmit(data, inputValue, col, rowIndex, colIndex, row)" |
|
|
|
@onRegentSubmit="(data, inputValue) => onRegentSubmit(data, inputValue, col, rowIndex, colIndex, row, col.prop)" |
|
|
|
@beforeReagentSubmit="(data, callback) => onBeforeReagentSubmit(data, callback, col, row)" |
|
|
|
@update:error="onErrorUpdate(rowIndex, colIndex, col.prop, $event)" |
|
|
|
:orange-bg="hasOrangeBg(rowIndex, colIndex, col.prop)" /> |
|
|
|
@ -204,6 +204,16 @@ |
|
|
|
:value="row[col.bodySubKey]" |
|
|
|
@clickButton="(e, data) => handleClickButton(e, data, col.bodySubKey, rowIndex, colIndex)" /> |
|
|
|
</template> |
|
|
|
<div class="flex flex1" v-else-if="isRegent(col, 'bodySubType')"> |
|
|
|
<HandleFormItem :fieldKey="prefixKey + '_' + col.bodySubKey + '_' + rowIndex" |
|
|
|
:fieldItemLabel="fieldItemLabel" :type="col.bodySubType" class="body-clickable" |
|
|
|
sourceFrom="customTable" :item="getBodySubItem(col, rowIndex)" |
|
|
|
:value="row[col.bodySubKey]" :error="hasError(rowIndex, colIndex, col.bodySubKey)" |
|
|
|
@onRegentSubmit="(data, inputValue) => onRegentSubmit(data, inputValue, col, rowIndex, colIndex, row, col.bodySubKey)" |
|
|
|
@beforeReagentSubmit="(data, callback) => onBeforeReagentSubmit(data, callback, col, row)" |
|
|
|
@update:error="onErrorUpdate(rowIndex, colIndex, col.bodySubKey, $event)" |
|
|
|
:orange-bg="hasOrangeBg(rowIndex, colIndex, col.bodySubKey)" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -493,12 +503,12 @@ export default { |
|
|
|
|
|
|
|
this.$emit("onHeaderRegentSubmit", { selectInfo: data, headerIndex, colIndex, headerFields: this.headerFields }) |
|
|
|
}, |
|
|
|
onRegentSubmit(data, inputValue, col, rowIndex, colIndex, row) { |
|
|
|
onRegentSubmit(data, inputValue, col, rowIndex, colIndex, row,key) { |
|
|
|
// if (this.templateFillType !== 'actFill') { |
|
|
|
// return |
|
|
|
// } |
|
|
|
this.updateDataSourceByRowIndex(rowIndex, { [col.prop]: inputValue }) |
|
|
|
this.$emit("onRegentSubmit", { selectInfo: data, key: col.prop, col, rowIndex, colIndex, rowData: row }) |
|
|
|
this.updateDataSourceByRowIndex(rowIndex, { [key]: inputValue }) |
|
|
|
this.$emit("onRegentSubmit", { selectInfo: data, key, col, rowIndex, colIndex, rowData: row }) |
|
|
|
}, |
|
|
|
isShowAddRos() { |
|
|
|
if (this.showAddRow !== undefined) { |
|
|
|
|