Merge pull request #4203 from dataease/pr@dev_memory_component

Pr@dev memory component
This commit is contained in:
王嘉豪 2022-12-26 19:50:58 +08:00 committed by GitHub
commit 9a33bc8510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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"
> >