mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 07:16:46 +08:00
-- 面授课教师
This commit is contained in:
@@ -92,7 +92,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<a-auto-complete
|
<a-auto-complete
|
||||||
v-model:value="memberValue"
|
v-model:value="memberValue.label"
|
||||||
show-search
|
show-search
|
||||||
:not-found-content="fetching ? undefined : null"
|
:not-found-content="fetching ? undefined : null"
|
||||||
placeholder="Select a teacher"
|
placeholder="Select a teacher"
|
||||||
@@ -458,7 +458,7 @@ export default {
|
|||||||
});
|
});
|
||||||
const clear = () => {
|
const clear = () => {
|
||||||
state.courseName = "";
|
state.courseName = "";
|
||||||
state.memberValue = null;
|
state.memberValue = {};
|
||||||
state.duration = null;
|
state.duration = null;
|
||||||
state.address = null;
|
state.address = null;
|
||||||
state.before=null;
|
state.before=null;
|
||||||
@@ -569,7 +569,7 @@ export default {
|
|||||||
if (
|
if (
|
||||||
state.courseName == "" ||
|
state.courseName == "" ||
|
||||||
state.chooseCourse == null ||
|
state.chooseCourse == null ||
|
||||||
state.memberValue == "" ||
|
state.memberValue == {} ||
|
||||||
state.chooseTime == [] ||
|
state.chooseTime == [] ||
|
||||||
state.duration == "" ||
|
state.duration == "" ||
|
||||||
state.address == ""
|
state.address == ""
|
||||||
@@ -718,9 +718,9 @@ export default {
|
|||||||
};
|
};
|
||||||
// 获取员工
|
// 获取员工
|
||||||
const queryMember = () => {
|
const queryMember = () => {
|
||||||
if (!state.memberValue) return;
|
if (!state.memberValue || !state.memberValue.label) return;
|
||||||
let obj = {
|
let obj = {
|
||||||
keyWord: state.memberValue,
|
keyWord: state.memberValue.label,
|
||||||
id: 0,
|
id: 0,
|
||||||
org: 0,
|
org: 0,
|
||||||
pageNo: state.currentPage,
|
pageNo: state.currentPage,
|
||||||
@@ -747,7 +747,7 @@ export default {
|
|||||||
options.value = [];
|
options.value = [];
|
||||||
state.fetching = true;
|
state.fetching = true;
|
||||||
state.currentPage = 1;
|
state.currentPage = 1;
|
||||||
state.memberValue = memberValue;
|
state.memberValue.label = memberValue;
|
||||||
queryMember();
|
queryMember();
|
||||||
state.fetching = false;
|
state.fetching = false;
|
||||||
}, 300);
|
}, 300);
|
||||||
|
|||||||
Reference in New Issue
Block a user