2023年7月28日 修改新导出身份配置表

This commit is contained in:
bai 2023-07-28 00:57:45 +08:00
parent d3479915bd
commit fe08956f97
4 changed files with 61 additions and 8 deletions

View File

@ -5,20 +5,40 @@ import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '单位名称',
title: '学院',
align: "center",
dataIndex: 'dwmc'
},
{
title: '教师',
title: '教师工号',
align: "center",
dataIndex: 'gh_dictText'
dataIndex: 'gh'
},
{
title: '教师姓名',
align: "center",
dataIndex: 'xm'
},
{
title: '听课类型',
align: "center",
dataIndex: 'tklx_dictText'
},
{
title: '身份',
align: "center",
dataIndex: 'sf'
},
{
title: '状态',
align: "center",
dataIndex: 'zt'
},
{
title: '每学期应听课次数',
align: "center",
dataIndex: 'ytkcs'
},
];
//查询数据

View File

@ -3,8 +3,18 @@
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-row>
<a-col :span="24">
<a-form-item label="教师" v-bind="validateInfos.gh">
<j-dict-select-tag v-model:value="formData.gh" dictCode="xxhbuser,xm,gh" placeholder="请选择教师" :disabled="disabled"/>
<a-form-item label="学院" v-bind="validateInfos.gh">
<a-input v-model:value="formData.dwmc" placeholder="请输学院" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="教师工号" v-bind="validateInfos.gh">
<a-input v-model:value="formData.gh" placeholder="请输教师工号" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="教师姓名" v-bind="validateInfos.gh">
<a-input v-model:value="formData.xm" placeholder="请输教师姓名" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
@ -12,6 +22,21 @@
<j-dict-select-tag v-model:value="formData.tklx" dictCode="tpkwcqkjzglx" placeholder="请选择听课类型" :disabled="disabled"/>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="身份" v-bind="validateInfos.gh">
<a-input v-model:value="formData.sf" placeholder="请输身份" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="状态" v-bind="validateInfos.gh">
<a-input v-model:value="formData.zt" placeholder="请输状态" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="每学期应听课次数" v-bind="validateInfos.gh">
<a-input v-model:value="formData.ytkcs" placeholder="请输每学期应听课次数" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
</a-row>
</a-form>
</a-spin>

View File

@ -40,6 +40,11 @@ enum Api {
// ans = '/qa/kcEvaluationans/list',
}
const props = defineProps({
param: { type: Object, default: () => ({}) },
});
const viewModal = ref<any>({});
const queryParam:Ref<any> = ref({});
const loading = ref<boolean>(false);
@ -75,7 +80,7 @@ function view(record){
// list.value = res?.records || [];
// });
queryParam.value.kechengbiaoid = record.id
queryParam.value.kechengbiaoid = record.id;
loadData(1);
}
@ -95,7 +100,10 @@ function loadData(pageNo?){
if(pageNo === 1){
params.pageNo = 1;
}
defHttp.get({ url: Api.list, params: { ...params, ...queryParam.value, jgh: getUserId(), searchByNowXqxn: true }}).then(res => {
console.log('参数',props, props.param, props.param.value,{ ...params, ...queryParam.value, jgh: getUserId(), searchByNowXqxn: true, ...props.param.value });
defHttp.get({ url: Api.list, params: { ...params, ...queryParam.value, jgh: getUserId(), searchByNowXqxn: true, ...props.param } }).then(res => {
dataSource.value = (res?.records) ?? [];
ipagination.value.total = res.total;
}).finally(() => {

View File

@ -76,7 +76,7 @@ function onSearch(){
function changeParam(pageNo){
queryParam.value.pageNo = pageNo;
onSearch();
//onSearch();
}
</script>