条件設定関連No511,512障害修正

This commit is contained in:
xiaozhe.ma
2024-07-18 17:40:17 +09:00
parent 64e72a66d5
commit 6fff3ec006
8 changed files with 179 additions and 110 deletions

View File

@@ -18,38 +18,13 @@
</div>
</template>
<script lang="ts">
import { ConditionNode, ConditionTree, Operator, OperatorListItem } from 'app/src/types/Conditions';
import { computed, defineComponent, provide, reactive, ref, watchEffect } from 'vue';
import ConditionEditor from '../ConditionEditor/ConditionEditor.vue';
import { IActionProperty } from 'src/types/ActionTypes';
import { } from 'src/types/';
type Props = {
props?: {
name: string;
modelValue?: {
app: {
id: string;
name: string;
},
fields: {
type: string;
label: string;
code: string;
}[]
}
}
};
type InputConfg = {
canInput: boolean;
buttonsConfig: {
label: string;
color: string;
type: string;
}[]
};
export default defineComponent({
@@ -60,7 +35,7 @@ export default defineComponent({
},
props: {
context: {
type: Array<Props>,
type: Array<IActionProperty>,
default: '',
},
displayName: {
@@ -115,7 +90,7 @@ export default defineComponent({
},
setup(props, { emit }) {
const source = props.context.find(element => element?.props?.name === 'sources')
const source = props.context.find(element => element.props.name === 'sources')
if (source) {
if (props.sourceType === 'field') {