forked from github/dataease
Merge pull request #4203 from dataease/pr@dev_memory_component
Pr@dev memory component
This commit is contained in:
commit
9a33bc8510
@ -145,7 +145,10 @@ export default {
|
|||||||
return this.selectValue === id && 'selected'
|
return this.selectValue === id && 'selected'
|
||||||
},
|
},
|
||||||
selectAllChange(val) {
|
selectAllChange(val) {
|
||||||
const vals = val ? [...this.list.map(ele => ele.id)] : []
|
let vals = val ? [...this.list.map(ele => ele.id)] : []
|
||||||
|
if (this.keyWord.trim() && val) {
|
||||||
|
vals = this.list.filter(item => item.text.includes(this.keyWord.trim())).map(ele => ele.id)
|
||||||
|
}
|
||||||
this.visualChange(vals)
|
this.visualChange(vals)
|
||||||
this.selectValue = vals
|
this.selectValue = vals
|
||||||
this.$emit('change', vals)
|
this.$emit('change', vals)
|
||||||
|
@ -151,7 +151,6 @@
|
|||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
|
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
v-if="hasStar && panelInfo && showType !== 1&&panelInfo.status==='publish'"
|
|
||||||
icon="el-icon-refresh"
|
icon="el-icon-refresh"
|
||||||
@click.native="refreshPanel"
|
@click.native="refreshPanel"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user