讲师管理bug

This commit is contained in:
zhangsir
2024-11-27 17:09:21 +08:00
parent b2ce8944cc
commit 4392e764c1
5 changed files with 16 additions and 7 deletions

View File

@@ -422,7 +422,7 @@ export default {
state.moreid = 2
state.searchParam = JSON.parse(search)
}
searchSubmit()
getTableDate()
})
const route = useRoute()
const formRef = ref();

View File

@@ -200,7 +200,7 @@
</a-col>
<a-col :span="12">
<a-form-item label="参训人数" name="studys">
<a-input v-model:value="formParam.studys" class="draitem" @blur="clearstudysNumber"
<a-input v-model:value="formParam.studys" class="draitem" @change="clearstudysNumber"
placeholder="请输入参训人数" allowClear showSearch >
</a-input>
</a-form-item>
@@ -506,7 +506,7 @@ export default {
}
queryTrainOrgPor(obj).then((res) => {
console.log(res,'rssssss')
state.orgList = res.data.data?.records?.map(item=>{
state.orgList = res.data.data?.map(item=>{
return{
label: item.affiliationName,
value: item.id

View File

@@ -228,7 +228,7 @@
</div>
</template>
<script lang="jsx">
import { reactive, toRefs, ref ,watch,computed} from "vue";
import { reactive, toRefs, ref ,watch,computed,onMounted} from "vue";
import { useRouter } from "vue-router";
import { message } from "ant-design-vue";
import dayjs from "dayjs";
@@ -260,6 +260,13 @@
watch(()=>props.key,(val)=>{
console.log(val,'valllllll')
})
onMounted(()=>{
const search = sessionStorage.getItem('searchApprlval')
if(search){
state.searchParam = JSON.parse(search)
}
getTableDate()
})
const router = useRouter()
const state = reactive({
tableDataParams:{
@@ -500,6 +507,7 @@
])
// 搜索
const searchSubmit = () => {
state.searchParam.pageNo = 1;
getTableDate();
};
//重置
@@ -549,7 +557,7 @@
message.error(err.data.msg)
})
};
getTableDate()
// getTableDate()
// // 翻页
const changePagination = (page,pageSize) => {
state.searchParam.pageNo = page;
@@ -611,6 +619,7 @@
}
}
const goDdit = (record) => {
sessionStorage.setItem('searchApprlval', JSON.stringify(state.searchParam))
router.push({
path:'/LecturerAppEdit',
query:{

View File

@@ -284,7 +284,7 @@
</a-col>
<a-col :span="12">
<a-form-item label="参训人数" name="studys">
<a-input v-model:value="formParam.studys" class="draitem" @blur="clearstudysNumber"
<a-input v-model:value="formParam.studys" class="draitem" @change="clearstudysNumber"
placeholder="请输入参训人数" allowClear showSearch >
</a-input>
</a-form-item>

View File

@@ -10,7 +10,7 @@
v-on:keydown.enter="enterPressHadlerSearch"/>
</a-form-item>
<a-form-item class="select " >
<a-date-picker style="width: 260px; height: 40px; border-radius: 8px" v-model:value="searchdate"
<a-date-picker picker="month" style="width: 260px; height: 40px; border-radius: 8px" v-model:value="searchdate"
:placeholder="[ '请选择汇总周期']" @change="searchTimeChange"
v-on:keydown.enter="enterPressHadlerSearch" />
</a-form-item >