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()
|
||||
// 搜索
|
||||
const searchSubmit = () => {
|
||||
state.searchParam.pageNo = 1
|
||||
getTableDate();
|
||||
};
|
||||
//重置
|
||||
|
||||
@@ -1020,6 +1020,7 @@ export default {
|
||||
}
|
||||
// 搜索
|
||||
const searchSubmit = () => {
|
||||
state.searchParam.pageNo = 1
|
||||
getTableDate();
|
||||
};
|
||||
//修改时间
|
||||
|
||||
@@ -9,6 +9,19 @@
|
||||
v-on:keydown.enter="enterPressHadlerSearch" />
|
||||
</div>
|
||||
</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">
|
||||
<a-button @click="searchSubmit()" type="primary" class="resetbtn">查询 </a-button>
|
||||
<!-- <div class="btn btn1" @click="searchReset" style="background:rgba(64, 158, 255, 0);" > -->
|
||||
@@ -336,6 +349,8 @@ export default{
|
||||
delId:null,
|
||||
searchParam: {
|
||||
name:null,
|
||||
isParent: null,
|
||||
leaderName: null,
|
||||
pageNo: "1",
|
||||
pageSize: "10"
|
||||
},
|
||||
@@ -540,6 +555,8 @@ const getTableDate = (obj) => {
|
||||
const searchReset = () => {
|
||||
state.searchParam = {
|
||||
name:null,
|
||||
isParent: null,
|
||||
leaderName: null,
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
};
|
||||
@@ -650,7 +667,7 @@ const getTableDate = (obj) => {
|
||||
})
|
||||
}
|
||||
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 = () => {
|
||||
state.showContent = true
|
||||
@@ -869,16 +886,21 @@ const getTableDate = (obj) => {
|
||||
orglistName: [{ required: true, message: '',log:'请选择管理组织' }],
|
||||
|
||||
}
|
||||
//回车
|
||||
const enterPressHadlerSearch = e => {
|
||||
if (e.keyCode === 13) {
|
||||
searchSubmit()
|
||||
|
||||
}
|
||||
};
|
||||
const TrainOrglist = ref([
|
||||
{label: '全部', value: ''},
|
||||
{label: '根节点', value: '0'},
|
||||
{label: '子节点', value: '1'},
|
||||
])
|
||||
//回车
|
||||
const enterPressHadlerSearch = e => {
|
||||
if (e.keyCode === 13) {
|
||||
searchSubmit()
|
||||
}
|
||||
};
|
||||
return{
|
||||
...toRefs(state),
|
||||
enterPressHadlerSearch,
|
||||
TrainOrglist,
|
||||
rules,
|
||||
formRef,
|
||||
columns,
|
||||
|
||||
Reference in New Issue
Block a user