|
@@ -90,7 +90,7 @@
|
|
</div>
|
|
</div>
|
|
<div v-if="!c.valueType" class="form-item mt-8 form-item-valueType">
|
|
<div v-if="!c.valueType" class="form-item mt-8 form-item-valueType">
|
|
<label>值</label>
|
|
<label>值</label>
|
|
- <t-input v-model="c.value" class="shrink-0" style="width: 320px" />
|
|
|
|
|
|
+ <t-input v-model="c.value" @change="valueChange($event,c)" class="shrink-0" style="width: 320px" />
|
|
</div>
|
|
</div>
|
|
<template v-else>
|
|
<template v-else>
|
|
<div class="form-item mt-8">
|
|
<div class="form-item mt-8">
|
|
@@ -153,7 +153,7 @@
|
|
import { onBeforeMount, ref } from 'vue';
|
|
import { onBeforeMount, ref } from 'vue';
|
|
|
|
|
|
import CodeEditor from '@/views/components/common/CodeEditor.vue';
|
|
import CodeEditor from '@/views/components/common/CodeEditor.vue';
|
|
-import { getPenTree, typeOptions } from '@/services/common';
|
|
|
|
|
|
+import { getPenTree, typeOptions, changeType} from '@/services/common';
|
|
|
|
|
|
const penTree: any = ref([]);
|
|
const penTree: any = ref([]);
|
|
const { data } = defineProps<{
|
|
const { data } = defineProps<{
|
|
@@ -288,6 +288,10 @@ const operatorOptions = [
|
|
{ label: '包含', value: '[)' },
|
|
{ label: '包含', value: '[)' },
|
|
{ label: '不包含', value: '![)' },
|
|
{ label: '不包含', value: '![)' },
|
|
];
|
|
];
|
|
|
|
+
|
|
|
|
+const valueChange = (e,c:any)=>{
|
|
|
|
+ c.value= changeType(e);
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
<style lang="postcss" scoped>
|
|
<style lang="postcss" scoped>
|
|
.props {
|
|
.props {
|