diff --git a/src/views/lecturer/LecturerApproval.vue b/src/views/lecturer/LecturerApproval.vue
index 6725b720..75850639 100644
--- a/src/views/lecturer/LecturerApproval.vue
+++ b/src/views/lecturer/LecturerApproval.vue
@@ -5,8 +5,20 @@
-
+
+ >
+
+ {{ item.label }}
+
@@ -342,6 +354,8 @@ export default {
beginTime: null,
endTime: null,
},
+ filterOrgListSearch: [],
+ orgListSearch: [],
})
//费用类型
const courseTypeList = ref([
@@ -380,25 +394,45 @@ export default {
}
queryTrainOrgPor(obj).then((res) => {
if (res.data.code === 200) {
- let arr = res.data.data;
- let array = [];
- arr.map((value) => {
- let obj = {
- value: value.id,
- label: value.affiliationName,
- };
- array.push(obj);
- });
- trainOrglist.value = array;
- trainOrglist.value.unshift({
- value: '',
- label: "全部"
+ state.orgList = res.data.data?.map(item => {
+ return {
+ label: item.affiliationName,
+ value: item.id
+ }
})
+ state.orgListSearch = res.data.data?.map(item => {
+ state.orgInput = item.affiliationName;
+ return {
+ label: item.affiliationName,
+ value: item.id
+ }
+ })
+ state.orgListSearch.unshift({
+ label: '全部', value: ''
+ })
+
+ state.filterOrgListSearch = state.orgListSearch
}
})
}
trainOrglista()
+ const handleOrgSearch = (value) => {
+ console.log("handleOrgSearch value: ",value)
+ console.log("handleOrgSearch state.orgListSearch: ",JSON.parse(JSON.stringify(state.orgListSearch)))
+ //克隆数据
+ let temp = JSON.parse(JSON.stringify(state.orgListSearch));
+ //选择数据
+ state.filterOrgListSearch = temp.filter(item => item.label.includes(value))
+
+ }
+
+ const handleOrgChange = (value) => {
+ if(value == undefined || value == null){
+ state.filterOrgListSearch = state.orgListSearch;
+ }
+ }
+
//课程类型
const OnTheJobStatusList = ref([
{ value: 1, label: "项目开课" },
@@ -1119,6 +1153,8 @@ export default {
managerChange,
trainOrglist,
trainOrglista,
+ handleOrgSearch,
+ handleOrgChange,
handlemoreid,
handleExport,
lecturerSystemList,
diff --git a/src/views/lecturer/LecturerFee.vue b/src/views/lecturer/LecturerFee.vue
index 27ac73e1..e02c5ad9 100644
--- a/src/views/lecturer/LecturerFee.vue
+++ b/src/views/lecturer/LecturerFee.vue
@@ -32,6 +32,7 @@
@change="handleOrgChange"
@search="handleOrgSearch"
placeholder="请选择培训发生组织"
+ v-on:keydown.enter="enterPressHadlerSearch">
>
{{ item.label }}
@@ -138,7 +139,7 @@
删除
@@ -327,11 +328,11 @@
- {{ formParam.courseType == 2 ? '课程' : '授课' }}日期 :
+ {{ formParam.courseType == 2 ? '课程' : '授课/开发' }}日期 :
@@ -343,10 +344,10 @@
- {{ formParam.courseType == 2 ? '课程时长' : '授课时长' }}
+ {{ formParam.courseType == 2 ? '课程时长' : '授课/开发时长' }}
-
+