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