|
|
@ -14,6 +14,7 @@ import { |
|
|
|
useProvideSmartsheetRowStore, |
|
|
|
useProvideSmartsheetRowStore, |
|
|
|
} from '#imports' |
|
|
|
} from '#imports' |
|
|
|
import type { Row } from '~/composables' |
|
|
|
import type { Row } from '~/composables' |
|
|
|
|
|
|
|
import { getHTMLEncodedText } from '~/utils' |
|
|
|
|
|
|
|
|
|
|
|
const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((meta: Ref<TableType>, row: Ref<Row>) => { |
|
|
|
const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((meta: Ref<TableType>, row: Ref<Row>) => { |
|
|
|
const { $e, $state, $api } = useNuxtApp() |
|
|
|
const { $e, $state, $api } = useNuxtApp() |
|
|
@ -156,8 +157,8 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m |
|
|
|
fk_model_id: meta.value.id, |
|
|
|
fk_model_id: meta.value.id, |
|
|
|
column_name: key, |
|
|
|
column_name: key, |
|
|
|
row_id: id, |
|
|
|
row_id: id, |
|
|
|
value: getPlainText(updateOrInsertObj[key]), |
|
|
|
value: getHTMLEncodedText(updateOrInsertObj[key]), |
|
|
|
prev_value: getPlainText(row.value.oldRow[key]), |
|
|
|
prev_value: getHTMLEncodedText(row.value.oldRow[key]), |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then(() => {}) |
|
|
|
.then(() => {}) |
|
|
|
} |
|
|
|
} |
|
|
|