finish UI
This commit is contained in:
16
vue-project/my-kintone-plugin/src/js/helper.ts
Normal file
16
vue-project/my-kintone-plugin/src/js/helper.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { JoinTable } from '@/types/model';
|
||||
|
||||
export const condition = {
|
||||
unset: '',
|
||||
eq: '=',
|
||||
};
|
||||
export function createEmptyJoinTable(id = Number(new Date())) {
|
||||
return {
|
||||
id,
|
||||
app: '',
|
||||
table: '',
|
||||
onConditions: [{ leftField: '', rightField: '' }],
|
||||
fieldsMapping: [{ leftField: '', rightField: '' }],
|
||||
whereConditions: [{ field: '', condition: condition.unset, data: '' }],
|
||||
} as JoinTable;
|
||||
}
|
||||
Reference in New Issue
Block a user