This commit is contained in:
parent
4760ff4415
commit
ef27246ec3
|
|
@ -133,6 +133,7 @@
|
|||
default-expand-all
|
||||
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
||||
@selection-change="handleSelectionChange"
|
||||
style="max-height: 650px; overflow: auto"
|
||||
>
|
||||
<!-- @select-all="handlerSelectAll" -->
|
||||
<el-table-column type="selection" width="55" align="center" :reserve-selection="true" />
|
||||
|
|
@ -176,7 +177,7 @@
|
|||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
:page-sizes="[1000]"
|
||||
:page-sizes="[9999]"
|
||||
/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
|
@ -271,7 +272,7 @@ export default {
|
|||
typeName: '',
|
||||
level: 0,
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 9999,
|
||||
displayBindRelationship: true
|
||||
},
|
||||
|
||||
|
|
@ -419,7 +420,7 @@ export default {
|
|||
this.resetForm('queryForm')
|
||||
this.queryParams.typeId = undefined
|
||||
this.queryParams.pageNum = 1
|
||||
this.queryParams.pageSize = 10
|
||||
this.queryParams.pageSize = 9999
|
||||
this.queryParams.level = 0
|
||||
this.$refs.tree.setCurrentKey(null)
|
||||
this.handleQuery()
|
||||
|
|
|
|||
|
|
@ -127,12 +127,13 @@
|
|||
v-loading="loading"
|
||||
:data="typeList"
|
||||
ref="multipleTable"
|
||||
row-key="typeId"
|
||||
row-key="rowKey"
|
||||
default-expand-all
|
||||
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
||||
@selection-change="handleSelectionChange"
|
||||
@select="handlerSelect"
|
||||
@select-all="handlerSelectAll"
|
||||
style="max-height: 650px; overflow: auto"
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" :reserve-selection="true" />
|
||||
<el-table-column width="60" align="center" label="序号" type="index">
|
||||
|
|
@ -182,7 +183,7 @@
|
|||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
:page-sizes="[100]"
|
||||
:page-sizes="[9999]"
|
||||
/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
|
@ -206,7 +207,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
loading: false,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
|
|
@ -276,7 +277,7 @@ export default {
|
|||
typeName: '',
|
||||
level: 0,
|
||||
pageNum: 1,
|
||||
pageSize: 1000,
|
||||
pageSize: 9999,
|
||||
displayBindRelationship: true,
|
||||
houseId: '',
|
||||
keyword: ''
|
||||
|
|
@ -392,8 +393,7 @@ export default {
|
|||
async getTreeData() {
|
||||
const itemName = 'ku_guan_role_ids'
|
||||
await getKeeperIds(itemName).then(response => {
|
||||
console.log(response)
|
||||
const roleIds = response.rows[response.rows.length - 1].itemValue.split(',').map(item => Number(item))
|
||||
const roleIds = response.rows[response.rows?.length - 1].itemValue.split(',').map(item => Number(item))
|
||||
this.roleIdsTemp = roleIds
|
||||
})
|
||||
await getUserList({ roleIds: this.roleIdsTemp }).then(response => {
|
||||
|
|
@ -405,7 +405,8 @@ export default {
|
|||
getMaTypeList().then(response => {
|
||||
// this.treeOptionsTwo = response.data
|
||||
this.treeOptionsTwo = response.data.map(item => this.filterTreeData(item))
|
||||
if (this.treeOptionsTwo.length > 0 && this.treeOptionsTwo[0].children.length > 0) {
|
||||
console.log('🚀 ~ getMaTypeList ~ this.treeOptionsTwo:', this.treeOptionsTwo)
|
||||
if (this.treeOptionsTwo?.length > 0 && this.treeOptionsTwo[0]?.children?.length > 0) {
|
||||
const firstNode = this.treeOptionsTwo[0].children[0]
|
||||
this.queryParams.typeId = firstNode.id
|
||||
this.queryParams.level = 1
|
||||
|
|
@ -434,6 +435,14 @@ export default {
|
|||
this.typeList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
if (this.typeList.length > 0) {
|
||||
this.typeList.forEach((item, index) => {
|
||||
item.rowKey = item.typeId + '_' + index
|
||||
})
|
||||
}
|
||||
}).catch(error => {
|
||||
console.log('🚀 ~ 列表 ~ error:', error)
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 筛选节点 - 左侧树
|
||||
|
|
@ -499,11 +508,11 @@ export default {
|
|||
this.queryParams.typeId = undefined
|
||||
this.queryParams.userId = undefined
|
||||
this.queryParams.pageNum = 1
|
||||
this.queryParams.pageSize = 1000
|
||||
this.queryParams.pageSize = 9999
|
||||
this.queryParams.level = 1
|
||||
this.$refs.tree.setCurrentKey(null)
|
||||
this.$refs.treeTwo.setCurrentKey(null)
|
||||
if (this.treeOptionsTwo.length > 0 && this.treeOptionsTwo[0].children.length > 0) {
|
||||
if (this.treeOptionsTwo.length > 0 && this.treeOptionsTwo[0]?.children?.length > 0) {
|
||||
const firstNode = this.treeOptionsTwo[0].children[0]
|
||||
this.queryParams.typeId = firstNode.id
|
||||
this.queryParams.level = 1
|
||||
|
|
|
|||
|
|
@ -146,6 +146,7 @@
|
|||
@selection-change="handleSelectionChange"
|
||||
@select="handlerSelect"
|
||||
@select-all="handlerSelectAll"
|
||||
style="max-height: 650px; overflow: auto"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
|
|
@ -224,7 +225,7 @@
|
|||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
:page-sizes="[1000]"
|
||||
:page-sizes="[9999]"
|
||||
/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
|
@ -327,7 +328,7 @@ export default {
|
|||
typeName: "",
|
||||
level: 0,
|
||||
pageNum: 1,
|
||||
pageSize: 1000,
|
||||
pageSize: 9999,
|
||||
displayBindRelationship: true,
|
||||
houseId: "",
|
||||
keyword: "",
|
||||
|
|
@ -546,7 +547,7 @@ export default {
|
|||
this.queryParams.typeId = undefined;
|
||||
this.queryParams.userId = undefined;
|
||||
this.queryParams.pageNum = 1;
|
||||
this.queryParams.pageSize = 1000;
|
||||
this.queryParams.pageSize = 9999;
|
||||
this.queryParams.level = 1;
|
||||
this.$refs.tree.setCurrentKey(null);
|
||||
this.$refs.treeTwo.setCurrentKey(null);
|
||||
|
|
|
|||
|
|
@ -146,6 +146,7 @@
|
|||
@selection-change="handleSelectionChange"
|
||||
@select="handlerSelect"
|
||||
@select-all="handlerSelectAll"
|
||||
style="max-height: 650px; overflow: auto"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
|
|
@ -223,6 +224,7 @@
|
|||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
:page-sizes="[9999]"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</el-col>
|
||||
|
|
@ -326,7 +328,7 @@ export default {
|
|||
typeName: "",
|
||||
level: 0,
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
pageSize: 9999,
|
||||
displayBindRelationship: true,
|
||||
houseId: "",
|
||||
},
|
||||
|
|
@ -496,7 +498,7 @@ export default {
|
|||
this.resetForm("queryForm");
|
||||
this.queryParams.typeId = undefined;
|
||||
this.queryParams.pageNum = 1;
|
||||
this.queryParams.pageSize = 10;
|
||||
this.queryParams.pageSize = 9999;
|
||||
this.queryParams.level = 0;
|
||||
this.$refs.tree.setCurrentKey(null);
|
||||
this.handleQuery();
|
||||
|
|
|
|||
Loading…
Reference in New Issue