|
|
@ -14,7 +14,7 @@ |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
* limitations under the License. |
|
|
|
* limitations under the License. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
import { ref, onMounted } from 'vue' |
|
|
|
import { ref, onMounted, computed } from 'vue' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { |
|
|
|
import { |
|
|
|
queryRuleList, |
|
|
|
queryRuleList, |
|
|
@ -42,6 +42,8 @@ export function useRules( |
|
|
|
const targetTableColumnOptions = ref([] as { label: string; value: number }[]) |
|
|
|
const targetTableColumnOptions = ref([] as { label: string; value: number }[]) |
|
|
|
const writerDatasourceOptions = ref([] as { label: string; value: number }[]) |
|
|
|
const writerDatasourceOptions = ref([] as { label: string; value: number }[]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const fixValueSpan = computed(() => model.comparison_type === 1 ? 24 : 0) |
|
|
|
|
|
|
|
|
|
|
|
let preItemLen = 0 |
|
|
|
let preItemLen = 0 |
|
|
|
|
|
|
|
|
|
|
|
const getRuleList = async () => { |
|
|
|
const getRuleList = async () => { |
|
|
@ -223,6 +225,15 @@ export function useRules( |
|
|
|
onUpdateValue: getRuleById |
|
|
|
onUpdateValue: getRuleById |
|
|
|
}, |
|
|
|
}, |
|
|
|
options: rules |
|
|
|
options: rules |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
type: 'input', |
|
|
|
|
|
|
|
field: 'comparison_name', |
|
|
|
|
|
|
|
name: t('project.node.fix_value'), |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
placeholder: t('project.node.fix_value') |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
span: fixValueSpan |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|