chore: update dependencies

This commit is contained in:
xiaoxian521
2022-11-11 03:36:18 +08:00
parent c4839aa5f4
commit df71c7f75c
50 changed files with 1229 additions and 945 deletions

View File

@@ -17,8 +17,8 @@ const form = reactive({
mobile: "",
status: ""
});
let dataList = ref([]);
let loading = ref(true);
const dataList = ref([]);
const loading = ref(true);
const { columns } = useColumns();
const formRef = ref<FormInstance>();
@@ -52,7 +52,7 @@ function handleSelectionChange(val) {
async function onSearch() {
loading.value = true;
let { data } = await getUserList();
const { data } = await getUserList();
dataList.value = data.list;
pagination.total = data.total;
setTimeout(() => {

View File

@@ -21,7 +21,7 @@ const searchValue = ref("");
const { proxy } = getCurrentInstance();
const treeRef = ref<InstanceType<typeof ElTree>>();
let highlightMap = ref({});
const highlightMap = ref({});
const filterNode = (value: string, data: Tree) => {
if (!value) return true;
@@ -45,8 +45,8 @@ function nodeClick(value) {
}
function toggleRowExpansionAll(status) {
let nodes = (proxy.$refs["treeRef"] as any).store._getAllNodes();
for (var i = 0; i < nodes.length; i++) {
const nodes = (proxy.$refs["treeRef"] as any).store._getAllNodes();
for (let i = 0; i < nodes.length; i++) {
nodes[i].expanded = status;
}
}
@@ -63,7 +63,7 @@ watch(searchValue, val => {
});
onMounted(async () => {
let { data } = await getDeptList();
const { data } = await getDeptList();
treeData.value = handleTree(data as any);
});
</script>