mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
讲师管理bug
This commit is contained in:
@@ -422,7 +422,7 @@ export default {
|
||||
state.moreid = 2
|
||||
state.searchParam = JSON.parse(search)
|
||||
}
|
||||
searchSubmit()
|
||||
getTableDate()
|
||||
})
|
||||
const route = useRoute()
|
||||
const formRef = ref();
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:{
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 >
|
||||
|
||||
Reference in New Issue
Block a user