conditons (FROM_TODAY)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<kuc-table className='plugin-kuc-table condition-table' :columns="columns" :data="modelValue" @change="tableChanged"/>
|
||||
<kuc-table className='plugin-kuc-table condition-table' :columns="columns" :data="modelValue" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@@ -19,6 +19,8 @@ const cachedData = inject<CachedData>('cachedData') as CachedData;
|
||||
const selectedAppData = inject<CachedSelectedAppData>('selectedAppData') as CachedSelectedAppData;
|
||||
// const table = computed(() => selectedAppData.table.table);
|
||||
|
||||
const canSave = inject<(canSave: boolean) => void>('canSave') as (canSave: boolean) => void;
|
||||
|
||||
const columns = reactive([
|
||||
{
|
||||
title: '取得元アプリのフィールド',
|
||||
@@ -79,6 +81,7 @@ const columns = reactive([
|
||||
const vnode = h(TableConditionValue, {
|
||||
modelValue: computed(() => (search(props.modelValue, rowData.id) as WhereCondition)?.data || ''),
|
||||
selectedAppData,
|
||||
canSave,
|
||||
id: rowData.id,
|
||||
whereConditions: props.modelValue,
|
||||
'onUpdate:modelValue': ({obj, value}) => {
|
||||
@@ -91,7 +94,4 @@ const columns = reactive([
|
||||
},
|
||||
]);
|
||||
|
||||
function tableChanged(e) {
|
||||
console.log(e);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user