diff --git a/web/src/components/values-popover/values-popover.vue b/web/src/components/values-popover/values-popover.vue index b6bd436..e1dbfbc 100644 --- a/web/src/components/values-popover/values-popover.vue +++ b/web/src/components/values-popover/values-popover.vue @@ -18,10 +18,10 @@ {{ item[dict.label] }} - {{ value.length }} {{ elProps.unit }} + {{ value.length }} {{ elProps.unit }} - {{ + {{ value.length }} {{ elProps.unit }} @@ -46,10 +46,10 @@ @show="showEvents" @hide="show=false">
- 预览 + 预览 - 预览 + 预览 @@ -125,7 +125,9 @@ export default { if (this.value.constructor === Array) { const ids = [] this.value.map(res => { - ids.push(res[this.dict.value]) + if (res) { + ids.push(res[this.dict.value]) + } }) params[this.dict.value] = ids } else { @@ -135,12 +137,18 @@ export default { request({ url: this.dict.url, params: params }).then(ret => { this.data = ret.data.data || ret.data }) + }, + previewClick () { + this.$emit('previewClick') + }, + listClick () { + this.$emit('listClick') } } } -