mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 01:06:45 +08:00
讲师管理修改
This commit is contained in:
@@ -751,6 +751,7 @@ export default {
|
|||||||
// getSysTypeMap()
|
// getSysTypeMap()
|
||||||
// 搜索
|
// 搜索
|
||||||
const searchSubmit = () => {
|
const searchSubmit = () => {
|
||||||
|
state.searchParam.pageNo = 1
|
||||||
getTableDate();
|
getTableDate();
|
||||||
};
|
};
|
||||||
//重置
|
//重置
|
||||||
|
|||||||
@@ -1020,6 +1020,7 @@ export default {
|
|||||||
}
|
}
|
||||||
// 搜索
|
// 搜索
|
||||||
const searchSubmit = () => {
|
const searchSubmit = () => {
|
||||||
|
state.searchParam.pageNo = 1
|
||||||
getTableDate();
|
getTableDate();
|
||||||
};
|
};
|
||||||
//修改时间
|
//修改时间
|
||||||
|
|||||||
@@ -9,6 +9,19 @@
|
|||||||
v-on:keydown.enter="enterPressHadlerSearch" />
|
v-on:keydown.enter="enterPressHadlerSearch" />
|
||||||
</div>
|
</div>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
<a-form-item class="select">
|
||||||
|
<div>
|
||||||
|
<a-select style="width: 235px" v-model:value="searchParam.isParent" placeholder="请选择节点类型" allowClear
|
||||||
|
:options="TrainOrglist"
|
||||||
|
v-on:keydown.enter="enterPressHadlerSearch"/>
|
||||||
|
</div>
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item class="select">
|
||||||
|
<div>
|
||||||
|
<a-input style="width: 235px; height: 40px; border-radius: 8px" v-model:value="searchParam.leaderName" placeholder="请输入担当姓名/工号"
|
||||||
|
v-on:keydown.enter="enterPressHadlerSearch" />
|
||||||
|
</div>
|
||||||
|
</a-form-item>
|
||||||
<div style="display: flex; margin-bottom: 20px">
|
<div style="display: flex; margin-bottom: 20px">
|
||||||
<a-button @click="searchSubmit()" type="primary" class="resetbtn">查询 </a-button>
|
<a-button @click="searchSubmit()" type="primary" class="resetbtn">查询 </a-button>
|
||||||
<!-- <div class="btn btn1" @click="searchReset" style="background:rgba(64, 158, 255, 0);" > -->
|
<!-- <div class="btn btn1" @click="searchReset" style="background:rgba(64, 158, 255, 0);" > -->
|
||||||
@@ -336,6 +349,8 @@ export default{
|
|||||||
delId:null,
|
delId:null,
|
||||||
searchParam: {
|
searchParam: {
|
||||||
name:null,
|
name:null,
|
||||||
|
isParent: null,
|
||||||
|
leaderName: null,
|
||||||
pageNo: "1",
|
pageNo: "1",
|
||||||
pageSize: "10"
|
pageSize: "10"
|
||||||
},
|
},
|
||||||
@@ -540,6 +555,8 @@ const getTableDate = (obj) => {
|
|||||||
const searchReset = () => {
|
const searchReset = () => {
|
||||||
state.searchParam = {
|
state.searchParam = {
|
||||||
name:null,
|
name:null,
|
||||||
|
isParent: null,
|
||||||
|
leaderName: null,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
};
|
};
|
||||||
@@ -650,7 +667,7 @@ const getTableDate = (obj) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
const downOpen = () => {
|
const downOpen = () => {
|
||||||
window.open(`/manageApi/admin/export/exportTeacherAffiliation?name=${state.searchParam.name || ''}`)
|
window.open(`/manageApi/admin/export/exportTeacherAffiliation?name=${state.searchParam.name || ''}&isParent=${state.searchParam.isParent||''}&leaderName=${state.searchParam.leaderName||''}`)
|
||||||
}
|
}
|
||||||
const addContentData = () => {
|
const addContentData = () => {
|
||||||
state.showContent = true
|
state.showContent = true
|
||||||
@@ -869,16 +886,21 @@ const getTableDate = (obj) => {
|
|||||||
orglistName: [{ required: true, message: '',log:'请选择管理组织' }],
|
orglistName: [{ required: true, message: '',log:'请选择管理组织' }],
|
||||||
|
|
||||||
}
|
}
|
||||||
//回车
|
const TrainOrglist = ref([
|
||||||
const enterPressHadlerSearch = e => {
|
{label: '全部', value: ''},
|
||||||
if (e.keyCode === 13) {
|
{label: '根节点', value: '0'},
|
||||||
searchSubmit()
|
{label: '子节点', value: '1'},
|
||||||
|
])
|
||||||
}
|
//回车
|
||||||
};
|
const enterPressHadlerSearch = e => {
|
||||||
|
if (e.keyCode === 13) {
|
||||||
|
searchSubmit()
|
||||||
|
}
|
||||||
|
};
|
||||||
return{
|
return{
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
enterPressHadlerSearch,
|
enterPressHadlerSearch,
|
||||||
|
TrainOrglist,
|
||||||
rules,
|
rules,
|
||||||
formRef,
|
formRef,
|
||||||
columns,
|
columns,
|
||||||
|
|||||||
Reference in New Issue
Block a user