2023年7月28日 修改新导出身份配置表
This commit is contained in:
parent
d3479915bd
commit
fe08956f97
|
@ -5,20 +5,40 @@ import { render } from '/@/utils/common/renderUtils';
|
||||||
//列表数据
|
//列表数据
|
||||||
export const columns: BasicColumn[] = [
|
export const columns: BasicColumn[] = [
|
||||||
{
|
{
|
||||||
title: '单位名称',
|
title: '学院',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'dwmc'
|
dataIndex: 'dwmc'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '教师',
|
title: '教师工号',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'gh_dictText'
|
dataIndex: 'gh'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '教师姓名',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'xm'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '听课类型',
|
title: '听课类型',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'tklx_dictText'
|
dataIndex: 'tklx_dictText'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '身份',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'sf'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '状态',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'zt'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '每学期应听课次数',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'ytkcs'
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
//查询数据
|
//查询数据
|
||||||
|
|
|
@ -3,8 +3,18 @@
|
||||||
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item label="教师" v-bind="validateInfos.gh">
|
<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-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-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
|
@ -12,6 +22,21 @@
|
||||||
<j-dict-select-tag v-model:value="formData.tklx" dictCode="tpkwcqkjzglx" placeholder="请选择听课类型" :disabled="disabled"/>
|
<j-dict-select-tag v-model:value="formData.tklx" dictCode="tpkwcqkjzglx" placeholder="请选择听课类型" :disabled="disabled"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</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-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
|
|
|
@ -40,6 +40,11 @@ enum Api {
|
||||||
// ans = '/qa/kcEvaluationans/list',
|
// ans = '/qa/kcEvaluationans/list',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
param: { type: Object, default: () => ({}) },
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
const viewModal = ref<any>({});
|
const viewModal = ref<any>({});
|
||||||
const queryParam:Ref<any> = ref({});
|
const queryParam:Ref<any> = ref({});
|
||||||
const loading = ref<boolean>(false);
|
const loading = ref<boolean>(false);
|
||||||
|
@ -75,7 +80,7 @@ function view(record){
|
||||||
// list.value = res?.records || [];
|
// list.value = res?.records || [];
|
||||||
|
|
||||||
// });
|
// });
|
||||||
queryParam.value.kechengbiaoid = record.id
|
queryParam.value.kechengbiaoid = record.id;
|
||||||
loadData(1);
|
loadData(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,7 +100,10 @@ function loadData(pageNo?){
|
||||||
if(pageNo === 1){
|
if(pageNo === 1){
|
||||||
params.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) ?? [];
|
dataSource.value = (res?.records) ?? [];
|
||||||
ipagination.value.total = res.total;
|
ipagination.value.total = res.total;
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
|
|
|
@ -76,7 +76,7 @@ function onSearch(){
|
||||||
|
|
||||||
function changeParam(pageNo){
|
function changeParam(pageNo){
|
||||||
queryParam.value.pageNo = pageNo;
|
queryParam.value.pageNo = pageNo;
|
||||||
onSearch();
|
//onSearch();
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue