mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 14:56:46 +08:00
fix bug 用户中心接口调整
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
</template>
|
||||
<script setup>
|
||||
import { defineEmits, defineProps, ref, watch } from "vue";
|
||||
import {boeRequest, useRequest} from "@/api/request";
|
||||
import {request, useArrayRequest, useRequest} from "@/api/request";
|
||||
import {ORG_CHILD_LIST, ORG_LIST} from "@/api/apis";
|
||||
|
||||
const props = defineProps({
|
||||
@@ -50,7 +50,7 @@ const props = defineProps({
|
||||
const emit = defineEmits({});
|
||||
const stuTreeExpandedKeys = ref([]);
|
||||
const labelValue = ref({ value: props.value, label: props.name });
|
||||
const { data: options, loading: orgLoading } = useRequest(
|
||||
const { data: options, loading: orgLoading } = useArrayRequest(
|
||||
ORG_LIST,
|
||||
{ keyword: "" },
|
||||
);
|
||||
@@ -66,9 +66,9 @@ watch(props, () => {
|
||||
});
|
||||
|
||||
function onLoadData(treeNode) {
|
||||
return boeRequest(ORG_CHILD_LIST, { keyword: "", orgId: treeNode.id }).then(
|
||||
return useArrayRequest(ORG_CHILD_LIST, { keyword: "", orgId: treeNode.id }).then(
|
||||
(r) => {
|
||||
treeNode.dataRef.treeChildList = r.result.directChildList;
|
||||
treeNode.dataRef.treeChildList = r.data;
|
||||
options.value = [...options.value];
|
||||
}
|
||||
);
|
||||
@@ -83,7 +83,6 @@ function change(
|
||||
},
|
||||
}
|
||||
) {
|
||||
console.log("label2222", label, namePath, value);
|
||||
emit("update:name", label);
|
||||
emit("update:fullName", namePath);
|
||||
emit("update:value", value);
|
||||
|
||||
Reference in New Issue
Block a user