学校登录可按条件查询,修复brand删除后更新错误

This commit is contained in:
X1627315083
2025-09-22 16:51:31 +08:00
parent 82f6fd11a0
commit 721143c7f9
10 changed files with 52 additions and 26 deletions

View File

@@ -251,27 +251,31 @@ export default defineComponent({
schoolList: [] as any,
});
const schoolListChange = (e: any) => {};
const filterOption = (e: any) => {
let params = {
name: e,
type: "School",
};
Https.axiosPost(
Https.httpUrls.organizationNameSearch,
{},
{ params: params }
).then((rv: any) => {
data.schoolList = rv.map((item: any) => {
return {
label: item,
value: item,
};
});
});
const filterOption = (e: any,option: any) => {
return option.value.toLowerCase().indexOf(e.toLowerCase()) >= 0;
};
const getSchoolList = ()=>{
let params = {
name: '',
type: "School",
};
Https.axiosPost(
Https.httpUrls.organizationNameSearch,
{},
{ params: params }
).then((rv: any) => {
data.schoolList = rv.map((item: any) => {
return {
label: item,
value: item,
};
});
});
}
const handleFocus = () => {
if (data.schoolList.length == 0) {
filterOption("");
getSchoolList();
}
};
return {