82 lines
2.4 KiB
TypeScript
82 lines
2.4 KiB
TypeScript
import {BasicColumn} from '/@/components/Table';
|
||
import {FormSchema} from '/@/components/Table';
|
||
import { rules} from '/@/utils/helper/validator';
|
||
import { render } from '/@/utils/common/renderUtils';
|
||
import { getWeekMonthQuarterYear } from '/@/utils';
|
||
//列表数据
|
||
export const columns: BasicColumn[] = [
|
||
{
|
||
title: '教工号',
|
||
align: "center",
|
||
dataIndex: 'zjNo'
|
||
},
|
||
{
|
||
title: '专家姓名',
|
||
align: "center",
|
||
dataIndex: 'zjName'
|
||
},
|
||
{
|
||
title: '授权范围',
|
||
align: "center",
|
||
dataIndex: 'sqfw_dictText'
|
||
},
|
||
{
|
||
title: '授权开始时间',
|
||
align: "center",
|
||
dataIndex: 'sqStartTime',
|
||
customRender:({text}) =>{
|
||
text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
|
||
return text;
|
||
},
|
||
},
|
||
{
|
||
title: '授权结束时间',
|
||
align: "center",
|
||
dataIndex: 'sqEndTime',
|
||
customRender:({text}) =>{
|
||
text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
|
||
return text;
|
||
},
|
||
},
|
||
{
|
||
title: '开课单位',
|
||
align: "center",
|
||
dataIndex: 'kkdw'
|
||
},
|
||
{
|
||
title: '学年学期/毕业年份',
|
||
align: "center",
|
||
dataIndex: 'xnxq'
|
||
},
|
||
{
|
||
title: '所属专业',
|
||
align: "center",
|
||
dataIndex: 'zydl'
|
||
},
|
||
{
|
||
title: '课程名称',
|
||
align: "center",
|
||
dataIndex: 'kcmc'
|
||
},
|
||
{
|
||
title: '授权状态',
|
||
align: "center",
|
||
dataIndex: 'sqzt_dictText'
|
||
},
|
||
];
|
||
|
||
// 高级查询数据
|
||
export const superQuerySchema = {
|
||
userId: {title: '用户id',order: 0,view: 'text', type: 'string',},
|
||
zjNo: {title: '教工号',order: 1,view: 'text', type: 'string',},
|
||
zjName: {title: '专家姓名',order: 2,view: 'text', type: 'string',},
|
||
sqfw: {title: '授权范围(0过程考核 1智慧教师 2毕业论文 3实习实践)',order: 3,view: 'list', type: 'string',dictCode: 'zj_sqfw',},
|
||
sqStartTime: {title: '授权开始时间',order: 4,view: 'date', type: 'string',},
|
||
sqEndTime: {title: '授权结束时间',order: 5,view: 'date', type: 'string',},
|
||
xnxq: {title: '学年学期/毕业年份',order: 6,view: 'list', type: 'string',dictCode: 'xnxq',},
|
||
zydl: {title: '课程所属专业',order: 7,view: 'text', type: 'string',},
|
||
kcmc: {title: '课程名称',order: 8,view: 'textarea', type: 'string',},
|
||
kkdw: {title: '开课单位',order: 9,view: 'textarea', type: 'string',},
|
||
sqzt: {title: '授权状态(0正常,1过期)',order: 10,view: 'list', type: 'string',dictCode: 'zj_sqzt',},
|
||
};
|