load app and fields

This commit is contained in:
2025-01-21 17:41:15 +08:00
parent 8bd3c0a3a3
commit f37f15482e
12 changed files with 211 additions and 312 deletions

View File

@@ -3,12 +3,14 @@
</template>
<script setup lang="ts">
import type { KucDropdownItem } from '@/types/my-kintone';
import type { WhereCondition } from '@/types/model';
import { defineProps, defineEmits } from 'vue';
import { Dropdown } from 'kintone-ui-component/lib/dropdown';
const props = defineProps<{
modelValue: WhereCondition[];
disabled: boolean;
}>();
const renderDropdown = (cellData: string) => {
@@ -62,17 +64,17 @@ const columns = [
},
];
const leftFields = [] as kintone.fieldTypes.DropDown['Item'][];
const rightFields = [] as kintone.fieldTypes.DropDown['Item'][];
const leftFields = [] as KucDropdownItem[];
const rightFields = [] as KucDropdownItem[];
const emit = defineEmits<{
(e: 'update:modelValue', value: FieldsJoinMapping[]): void;
(e: 'update:modelValue', value: WhereCondition[]): void;
}>();
const changeRow = (item: FieldsJoinMapping, key: keyof FieldsJoinMapping, value: string) => {
const changeRow = (item: WhereCondition, key: keyof WhereCondition, value: string) => {
};
const changeField = (item: FieldsJoinMapping, key: keyof FieldsJoinMapping, value: string) => {
const changeField = (item: WhereCondition, key: keyof WhereCondition, value: string) => {
item[key] = value;
emit('update:modelValue', props.modelValue);
};