+
-
+
@@ -30,7 +30,7 @@
+ }
+};
+
+
+export default defineComponent({
+ name: 'FieldInput',
+ inheritAttrs: false,
+ components: {
+ ConditionEditor
+ },
+ props: {
+ context: {
+ type: Array
,
+ default: '',
+ },
+ displayName: {
+ type: String,
+ default: '',
+ },
+ name: {
+ type: String,
+ default: '',
+ },
+ placeholder: {
+ type: String,
+ default: '',
+ },
+ hint: {
+ type: String,
+ default: '',
+ },
+ modelValue: {
+ type: String,
+ default: null
+ },
+ sourceType: {
+ type: String,
+ default: 'field'
+ }
+ },
+
+ setup(props, { emit }) {
+ const source = props.context.find(element => element?.props?.name === 'sources')
+
+ if (source) {
+ if(props.sourceType === 'field'){
+ provide('sourceFields', computed( () => source.props?.modelValue?.fields ?? []));
+ } else if(props.sourceType === 'app'){
+ console.log('sourceApp', source.props?.modelValue);
+ provide('sourceApp', computed( () => source.props?.modelValue?.app?.id));
+ }
+ }
+
+ const appDg = ref();
+ const show = ref(false);
+ const tree = reactive(new ConditionTree());
+ if (props.modelValue && props.modelValue !== '') {
+ tree.fromJson(props.modelValue);
+ } else {
+ const newNode = new ConditionNode({}, Operator.Equal, '', tree.root);
+ tree.addNode(tree.root, newNode);
+ }
+
+ const isSetted = ref(props.modelValue && props.modelValue !== '');
+
+ const conditionString = computed(() => {
+ return tree.buildConditionString(tree.root);
+ });
+
+ const showDg = () => {
+ show.value = true;
+ };
+
+ const onClosed = (val: string) => {
+ if (val == 'OK') {
+ const conditionJson = tree.toJson();
+ isSetted.value = true;
+ emit('update:modelValue', conditionJson);
+ }
+ };
+
+ watchEffect(() => {
+ const conditionJson = tree.toJson();
+ emit('update:modelValue', conditionJson);
+ });
+
+ return {
+ appDg,
+ isSetted,
+ show,
+ showDg,
+ onClosed,
+ tree,
+ conditionString
+ };
+ }
+});
+
diff --git a/frontend/src/components/right/DataProcessing.vue b/frontend/src/components/right/DataProcessing.vue
new file mode 100644
index 0000000..9aa554b
--- /dev/null
+++ b/frontend/src/components/right/DataProcessing.vue
@@ -0,0 +1,229 @@
+
+
+
+
+
+
+ { dgIsShow = true }">クリックで設定
+
+
+
+ {{ placeholder }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ deleteProcessingObject(index)" />
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/right/InputText.vue b/frontend/src/components/right/InputText.vue
index 76b3c2f..cb6ee83 100644
--- a/frontend/src/components/right/InputText.vue
+++ b/frontend/src/components/right/InputText.vue
@@ -1,10 +1,7 @@
-
+
@@ -18,7 +15,7 @@