|
@@ -11,7 +11,7 @@
|
|
|
:data="state.orgData"
|
|
|
highlight-current
|
|
|
:expand-on-click-node="false"
|
|
|
- :props="{ children: 'children', label: 'name' }"
|
|
|
+ :props="{ children: 'children', label: 'name',value: 'id' }"
|
|
|
@node-click="handleNodeClick"
|
|
|
ref="treRef"
|
|
|
:filter-method="filterNodeOrg"
|
|
@@ -125,7 +125,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup name="systemUser">
|
|
|
-import { computed, defineAsyncComponent, nextTick, onMounted, reactive, ref, watch } from 'vue';
|
|
|
+import {computed, defineAsyncComponent, nextTick, onActivated, onMounted, reactive, ref, watch} from 'vue';
|
|
|
import type { FormInstance } from 'element-plus';
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
|
import { formatDate } from '/@/utils/formatTime';
|
|
@@ -295,6 +295,9 @@ onMounted(async () => {
|
|
|
treeHeight.value = scrollBarRef.value.wrapRef.clientHeight;
|
|
|
});
|
|
|
});
|
|
|
+onActivated(()=>{
|
|
|
+ treRef.value.setData(state.orgData);
|
|
|
+})
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.system-user-container {
|