Skip to content

Commit

Permalink
修复动态分组保存multilike值不为数组的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyy committed Jun 18, 2020
1 parent 2f88265 commit c5b6a25
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/ui/src/views/custom-query/define.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<label class="userapi-label">
{{$t("CustomQuery['查询名称']")}}<span class="color-danger"> * </span>
</label>
<input type="text" class="cmdb-form-input"
<input type="text" class="cmdb-form-input"
v-model.trim="name"
:name="$t('CustomQuery[\'查询名称\']')"
:disabled="!authority.includes('update')"
Expand Down Expand Up @@ -144,9 +144,9 @@
</bk-button>
</div>
</div>
<v-preview ref="preview"
v-if="isPreviewShow"
:apiParams="apiParams"
<v-preview ref="preview"
v-if="isPreviewShow"
:apiParams="apiParams"
:attribute="object"
:tableHeader="attribute.selected"
@close="isPreviewShow = false">
Expand Down Expand Up @@ -332,6 +332,12 @@
operator: property.operator,
value: property.value === 'true'
})
} else if (property.operator === '$multilike') {
param.condition.push({
field: property.propertyId,
operator: property.operator,
value: property.value.split('\n').filter(str => str.trim().length).map(str => str.trim())
})
} else {
let operator = property.operator
let value = property.value
Expand Down

0 comments on commit c5b6a25

Please sign in to comment.