绘制技术监督页面 联调承载能力评估

This commit is contained in:
GGJ
2024-03-12 11:16:54 +08:00
parent 3ba3016135
commit fd8742555f
24 changed files with 1898 additions and 242186 deletions

View File

@@ -9,11 +9,11 @@
<!-- switch -->
<el-switch
v-if="field.render == 'switch'"
@change="onChangeField"
@change="onChangeField(field, $event)"
:model-value="fieldValue.toString()"
:loading="row.loading"
active-value="1"
inactive-value="0"
:active-value="field.activeValue"
:inactive-value="field.inactiveValue"
/>
<!-- image -->
@@ -172,8 +172,10 @@ if (props.field.renderFormatter && typeof props.field.renderFormatter == 'functi
fieldValue.value = props.field.renderFormatter(props.row, props.field, fieldValue.value, props.column, props.index)
}
const onChangeField = (value: any) => {
TableStore.onTableAction('field-change', { value: value, ...props })
const onChangeField = (row: any, value: any) => {
row.onChangeField && row.onChangeField(props.row, value)
// TableStore.onTableAction('field-change', { value: value, ...props })
}
const onButtonClick = (btn: OptButton) => {