mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
讲师管理bug
This commit is contained in:
@@ -422,7 +422,7 @@ export default {
|
|||||||
state.moreid = 2
|
state.moreid = 2
|
||||||
state.searchParam = JSON.parse(search)
|
state.searchParam = JSON.parse(search)
|
||||||
}
|
}
|
||||||
searchSubmit()
|
getTableDate()
|
||||||
})
|
})
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
|
|||||||
@@ -200,7 +200,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="参训人数" name="studys">
|
<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 >
|
placeholder="请输入参训人数" allowClear showSearch >
|
||||||
</a-input>
|
</a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -506,7 +506,7 @@ export default {
|
|||||||
}
|
}
|
||||||
queryTrainOrgPor(obj).then((res) => {
|
queryTrainOrgPor(obj).then((res) => {
|
||||||
console.log(res,'rssssss')
|
console.log(res,'rssssss')
|
||||||
state.orgList = res.data.data?.records?.map(item=>{
|
state.orgList = res.data.data?.map(item=>{
|
||||||
return{
|
return{
|
||||||
label: item.affiliationName,
|
label: item.affiliationName,
|
||||||
value: item.id
|
value: item.id
|
||||||
|
|||||||
@@ -228,7 +228,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="jsx">
|
<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 { useRouter } from "vue-router";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
@@ -260,6 +260,13 @@
|
|||||||
watch(()=>props.key,(val)=>{
|
watch(()=>props.key,(val)=>{
|
||||||
console.log(val,'valllllll')
|
console.log(val,'valllllll')
|
||||||
})
|
})
|
||||||
|
onMounted(()=>{
|
||||||
|
const search = sessionStorage.getItem('searchApprlval')
|
||||||
|
if(search){
|
||||||
|
state.searchParam = JSON.parse(search)
|
||||||
|
}
|
||||||
|
getTableDate()
|
||||||
|
})
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
tableDataParams:{
|
tableDataParams:{
|
||||||
@@ -500,6 +507,7 @@
|
|||||||
])
|
])
|
||||||
// 搜索
|
// 搜索
|
||||||
const searchSubmit = () => {
|
const searchSubmit = () => {
|
||||||
|
state.searchParam.pageNo = 1;
|
||||||
getTableDate();
|
getTableDate();
|
||||||
};
|
};
|
||||||
//重置
|
//重置
|
||||||
@@ -549,7 +557,7 @@
|
|||||||
message.error(err.data.msg)
|
message.error(err.data.msg)
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
getTableDate()
|
// getTableDate()
|
||||||
// // 翻页
|
// // 翻页
|
||||||
const changePagination = (page,pageSize) => {
|
const changePagination = (page,pageSize) => {
|
||||||
state.searchParam.pageNo = page;
|
state.searchParam.pageNo = page;
|
||||||
@@ -611,6 +619,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const goDdit = (record) => {
|
const goDdit = (record) => {
|
||||||
|
sessionStorage.setItem('searchApprlval', JSON.stringify(state.searchParam))
|
||||||
router.push({
|
router.push({
|
||||||
path:'/LecturerAppEdit',
|
path:'/LecturerAppEdit',
|
||||||
query:{
|
query:{
|
||||||
|
|||||||
@@ -284,7 +284,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="参训人数" name="studys">
|
<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 >
|
placeholder="请输入参训人数" allowClear showSearch >
|
||||||
</a-input>
|
</a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
v-on:keydown.enter="enterPressHadlerSearch"/>
|
v-on:keydown.enter="enterPressHadlerSearch"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item class="select " >
|
<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"
|
:placeholder="[ '请选择汇总周期']" @change="searchTimeChange"
|
||||||
v-on:keydown.enter="enterPressHadlerSearch" />
|
v-on:keydown.enter="enterPressHadlerSearch" />
|
||||||
</a-form-item >
|
</a-form-item >
|
||||||
|
|||||||
Reference in New Issue
Block a user