DBSD_ZJPT/jeecgboot-vue3/src/views/bl/zjSqxx/ZjSqxx.data.ts

82 lines
2.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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',},
};