diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue index 906c4ba..d0faa43 100644 --- a/src/components/DeptSelect/index.vue +++ b/src/components/DeptSelect/index.vue @@ -97,6 +97,7 @@ // 如果该下拉框非必须显示,并且列表长度小于等于1 if (!props.deptShow && list.length <= 1) { showDeptSelect.value = false // 不显示下拉框 + deptTreeList.value = list } else { if (list) { diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue index 906c4ba..d0faa43 100644 --- a/src/components/DeptSelect/index.vue +++ b/src/components/DeptSelect/index.vue @@ -97,6 +97,7 @@ // 如果该下拉框非必须显示,并且列表长度小于等于1 if (!props.deptShow && list.length <= 1) { showDeptSelect.value = false // 不显示下拉框 + deptTreeList.value = list } else { if (list) { diff --git a/src/views/system/role/editRole.vue b/src/views/system/role/editRole.vue index d83a56f..8470912 100644 --- a/src/views/system/role/editRole.vue +++ b/src/views/system/role/editRole.vue @@ -140,6 +140,7 @@ }) // ----------初始化、关闭对话框相关----------------- function initDialog(dialogstatus: string, row: RoleInfo) { + fetchRoleTree() dialogStatus.value = dialogstatus dialogVisible.value = true btnLoading.value = false diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue index 906c4ba..d0faa43 100644 --- a/src/components/DeptSelect/index.vue +++ b/src/components/DeptSelect/index.vue @@ -97,6 +97,7 @@ // 如果该下拉框非必须显示,并且列表长度小于等于1 if (!props.deptShow && list.length <= 1) { showDeptSelect.value = false // 不显示下拉框 + deptTreeList.value = list } else { if (list) { diff --git a/src/views/system/role/editRole.vue b/src/views/system/role/editRole.vue index d83a56f..8470912 100644 --- a/src/views/system/role/editRole.vue +++ b/src/views/system/role/editRole.vue @@ -140,6 +140,7 @@ }) // ----------初始化、关闭对话框相关----------------- function initDialog(dialogstatus: string, row: RoleInfo) { + fetchRoleTree() dialogStatus.value = dialogstatus dialogVisible.value = true btnLoading.value = false diff --git a/src/views/system/user/userAdd.vue b/src/views/system/user/userAdd.vue index d9be3d1..e28ca73 100644 --- a/src/views/system/user/userAdd.vue +++ b/src/views/system/user/userAdd.vue @@ -265,7 +265,7 @@ - + diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue index 906c4ba..d0faa43 100644 --- a/src/components/DeptSelect/index.vue +++ b/src/components/DeptSelect/index.vue @@ -97,6 +97,7 @@ // 如果该下拉框非必须显示,并且列表长度小于等于1 if (!props.deptShow && list.length <= 1) { showDeptSelect.value = false // 不显示下拉框 + deptTreeList.value = list } else { if (list) { diff --git a/src/views/system/role/editRole.vue b/src/views/system/role/editRole.vue index d83a56f..8470912 100644 --- a/src/views/system/role/editRole.vue +++ b/src/views/system/role/editRole.vue @@ -140,6 +140,7 @@ }) // ----------初始化、关闭对话框相关----------------- function initDialog(dialogstatus: string, row: RoleInfo) { + fetchRoleTree() dialogStatus.value = dialogstatus dialogVisible.value = true btnLoading.value = false diff --git a/src/views/system/user/userAdd.vue b/src/views/system/user/userAdd.vue index d9be3d1..e28ca73 100644 --- a/src/views/system/user/userAdd.vue +++ b/src/views/system/user/userAdd.vue @@ -265,7 +265,7 @@ - + diff --git a/src/views/tested/MeasurementPlan/board/index.vue b/src/views/tested/MeasurementPlan/board/index.vue index 9b41858..84ed512 100644 --- a/src/views/tested/MeasurementPlan/board/index.vue +++ b/src/views/tested/MeasurementPlan/board/index.vue @@ -63,10 +63,10 @@ // 是否显示当前页,否则跳转第一页 listQuery.offset = 1 } - getListPage(listQuery).then((response) => { - list.value = response.data - listLoading.value = false - }) + // getListPage(listQuery).then((response) => { + // list.value = response.data + listLoading.value = false + // }) } fetchData() // 查询数据 diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue index 906c4ba..d0faa43 100644 --- a/src/components/DeptSelect/index.vue +++ b/src/components/DeptSelect/index.vue @@ -97,6 +97,7 @@ // 如果该下拉框非必须显示,并且列表长度小于等于1 if (!props.deptShow && list.length <= 1) { showDeptSelect.value = false // 不显示下拉框 + deptTreeList.value = list } else { if (list) { diff --git a/src/views/system/role/editRole.vue b/src/views/system/role/editRole.vue index d83a56f..8470912 100644 --- a/src/views/system/role/editRole.vue +++ b/src/views/system/role/editRole.vue @@ -140,6 +140,7 @@ }) // ----------初始化、关闭对话框相关----------------- function initDialog(dialogstatus: string, row: RoleInfo) { + fetchRoleTree() dialogStatus.value = dialogstatus dialogVisible.value = true btnLoading.value = false diff --git a/src/views/system/user/userAdd.vue b/src/views/system/user/userAdd.vue index d9be3d1..e28ca73 100644 --- a/src/views/system/user/userAdd.vue +++ b/src/views/system/user/userAdd.vue @@ -265,7 +265,7 @@ - + diff --git a/src/views/tested/MeasurementPlan/board/index.vue b/src/views/tested/MeasurementPlan/board/index.vue index 9b41858..84ed512 100644 --- a/src/views/tested/MeasurementPlan/board/index.vue +++ b/src/views/tested/MeasurementPlan/board/index.vue @@ -63,10 +63,10 @@ // 是否显示当前页,否则跳转第一页 listQuery.offset = 1 } - getListPage(listQuery).then((response) => { - list.value = response.data - listLoading.value = false - }) + // getListPage(listQuery).then((response) => { + // list.value = response.data + listLoading.value = false + // }) } fetchData() // 查询数据 diff --git a/src/views/tested/document/list/index.vue b/src/views/tested/document/list/index.vue index fea4112..7bf756e 100644 --- a/src/views/tested/document/list/index.vue +++ b/src/views/tested/document/list/index.vue @@ -55,11 +55,11 @@ // 是否显示当前页,否则跳转第一页 listQuery.offset = 1 } - getListPage(listQuery).then((response) => { - list.value = response.data.rows - total.value = parseInt(response.data.total) - listLoading.value = false - }) + // getListPage(listQuery).then((response) => { + // list.value = response.data.rows + // total.value = parseInt(response.data.total) + listLoading.value = false + // }) } fetchData() // 查询数据