fix: 查看规则详情
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -163,7 +163,7 @@ const rulesListByType: any = computed(() => { | ... | @@ -163,7 +163,7 @@ const rulesListByType: any = computed(() => { |
| 163 | // json: checkRulesList.value.filter(r => r.value == ''), | 163 | // json: checkRulesList.value.filter(r => r.value == ''), |
| 164 | tinyint: checkRulesList.value.filter(r => r.value == 'length_rule' || r.value == 'num_value_rule' || r.value == 'custom_regular_rule'), | 164 | tinyint: checkRulesList.value.filter(r => r.value == 'length_rule' || r.value == 'num_value_rule' || r.value == 'custom_regular_rule'), |
| 165 | time: checkRulesList.value.filter(r => r.value == 'length_rule' || r.value == 'custom_regular_rule'), | 165 | time: checkRulesList.value.filter(r => r.value == 'length_rule' || r.value == 'custom_regular_rule'), |
| 166 | bit: checkRulesList.value.filter(r => r.value == 'length_rule' || r.value == 'ch_rule' || r.value == 'en_rule' || r.value == 'custom_regular_rule'), | 166 | bit: checkRulesList.value.filter(r => r.value == 'length_rule' || r.value == 'ch_rule' || r.value == 'en_rule' || r.value == 'custom_regular_rule') |
| 167 | } | 167 | } |
| 168 | }); | 168 | }); |
| 169 | 169 | ||
| ... | @@ -188,7 +188,7 @@ onBeforeMount(() => { | ... | @@ -188,7 +188,7 @@ onBeforeMount(() => { |
| 188 | } | 188 | } |
| 189 | if (props.smallCategoryList?.length) { | 189 | if (props.smallCategoryList?.length) { |
| 190 | let p = panelList.value[1]; | 190 | let p = panelList.value[1]; |
| 191 | if (p.default) { | 191 | if (p.default && !props.readonly) { |
| 192 | if (p.default == '1') {//规范性 | 192 | if (p.default == '1') {//规范性 |
| 193 | panelList.value[2].options = props.smallCategoryList.slice(0, 6); | 193 | panelList.value[2].options = props.smallCategoryList.slice(0, 6); |
| 194 | } else if (p.default == '2') { | 194 | } else if (p.default == '2') { |
| ... | @@ -2395,7 +2395,7 @@ defineExpose({ | ... | @@ -2395,7 +2395,7 @@ defineExpose({ |
| 2395 | </el-table-column> | 2395 | </el-table-column> |
| 2396 | <el-table-column prop="checkRule" label="选择检验规则" width="150px" align="left" show-overflow-tooltip> | 2396 | <el-table-column prop="checkRule" label="选择检验规则" width="150px" align="left" show-overflow-tooltip> |
| 2397 | <template #default="scope"> | 2397 | <template #default="scope"> |
| 2398 | <el-select v-if="!props.readonly || (scope.row.dataType == 'text' || scope.row.dataType == 'json')" | 2398 | <el-select v-if="!props.readonly" |
| 2399 | v-model="scope.row['checkRule']" placeholder="请选择" filterable clearable> | 2399 | v-model="scope.row['checkRule']" placeholder="请选择" filterable clearable> |
| 2400 | <el-option v-for="opt in (rulesListByType[scope.row.dataType] || checkRulesList)" :key="opt['value']" | 2400 | <el-option v-for="opt in (rulesListByType[scope.row.dataType] || checkRulesList)" :key="opt['value']" |
| 2401 | :label="opt['label']" :value="opt['value']" /> | 2401 | :label="opt['label']" :value="opt['value']" /> | ... | ... |
-
Please register or sign in to post a comment