|
|
|
|
@ -195,7 +195,7 @@ link type="primary" @click="openForm('update', scope.row.id)"
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<div class="flex flex-col w-full">
|
|
|
|
|
<div class="border border-gray-200 dark:border-gray-600 rounded-md px-16px py-12px">
|
|
|
|
|
<div class="border border-gray-200 dark:border-gray-600 rounded-md py-12px">
|
|
|
|
|
<el-form-item label="点位规则">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="ruleForm.fieldRule"
|
|
|
|
|
@ -232,13 +232,14 @@ link type="primary" @click="openForm('update', scope.row.id)"
|
|
|
|
|
class="!w-160px"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in ruleOperatorOptions"
|
|
|
|
|
:key="item.value"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
v-for="opt in ruleOperatorOptions"
|
|
|
|
|
:key="opt.value"
|
|
|
|
|
:label="opt.label"
|
|
|
|
|
:value="opt.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-input
|
|
|
|
|
v-if="ruleForm.ruleOperator !== 'TRUE' && ruleForm.ruleOperator !== 'FALSE'"
|
|
|
|
|
v-model="ruleForm.ruleValue"
|
|
|
|
|
placeholder="请输入符号值"
|
|
|
|
|
class="!w-200px"
|
|
|
|
|
@ -294,6 +295,7 @@ link type="primary" @click="openForm('update', scope.row.id)"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-input
|
|
|
|
|
v-if="item.operator !== 'TRUE' && item.operator !== 'FALSE'"
|
|
|
|
|
v-model="item.operatorRule"
|
|
|
|
|
placeholder="请输入符号值"
|
|
|
|
|
class="!w-200px"
|
|
|
|
|
@ -626,13 +628,7 @@ const isRuleDisabled = (value: string, selfRule?: string | number) => {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const ruleOperatorOptions = [
|
|
|
|
|
{ value: 'TRUE', label: '为真' },
|
|
|
|
|
{ value: 'FALSE', label: '为假' },
|
|
|
|
|
{ value: 'EQ', label: '等于' },
|
|
|
|
|
{ value: 'LE', label: '小于等于' },
|
|
|
|
|
{ value: 'GE', label: '大于等于' },
|
|
|
|
|
]
|
|
|
|
|
const ruleOperatorOptions = computed(() => getStrDictOptions('czsb_rules_conditions'))
|
|
|
|
|
|
|
|
|
|
const isRunningIdentifier = computed(() => {
|
|
|
|
|
return (ruleForm.identifier || '').toString().toUpperCase() === 'RUNNING'
|
|
|
|
|
|