Skip to content

Commit

Permalink
Merge pull request #4345 from yangyy/v3.2.x_fix
Browse files Browse the repository at this point in the history
修复动态分组保存multilike值不为数组的问题
  • Loading branch information
joe511230 authored Jun 23, 2020
2 parents acddb85 + c5b6a25 commit cc96241
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 cc96241

Please sign in to comment.