|
@@ -24,10 +24,10 @@
|
|
|
<div class="title">账号组列表</div>
|
|
|
<el-button @click="handleAdd" class="serButton" size="small">新增</el-button>
|
|
|
</div>
|
|
|
- <!-- <div class="search">
|
|
|
+ <div class="search">
|
|
|
<el-input size="small" placeholder="请输入内容" clearable prefix-icon="el-icon-search" v-model="search">
|
|
|
</el-input>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="newService-content-left-bottom">
|
|
|
<template v-if="dataList.length">
|
|
@@ -209,7 +209,6 @@ export default {
|
|
|
search: '',
|
|
|
activeIndex: null,
|
|
|
loading: false,
|
|
|
- dataList: [],
|
|
|
treeCheckId: '',
|
|
|
formInline: {
|
|
|
user_group_name: '',
|
|
@@ -257,17 +256,24 @@ export default {
|
|
|
tableCols: [],
|
|
|
dialogFlag: false,
|
|
|
checkedKeysTemp: [],
|
|
|
- userId: ''
|
|
|
+ userId: '',
|
|
|
+ arrs: []
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
this.getTreeData()
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ dataList () {
|
|
|
+ return this.arrs.filter(data => !this.search || data.user_group_name.toLowerCase().includes(this.search.toLowerCase()))
|
|
|
+ },
|
|
|
+ },
|
|
|
methods: {
|
|
|
async getTreeData () {
|
|
|
const result = await this.getQueryList(this.queryId)
|
|
|
if (result && result.length) {
|
|
|
- this.dataList = result
|
|
|
+ // this.dataList = result
|
|
|
+ this.arrs.push(...result)
|
|
|
// this.options = result
|
|
|
// this.data[0].children = result
|
|
|
}
|