数通互联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

352 lines
4.7 KiB

2 years ago
export interface tableButton {
control: any;
id?: string;
name?: string;
field?: string;
type?: string;
attribute:string;
pattern?: string;
fieldClass?: string;
activeValue?: string;
inactiveValue?: string;
options?: optionsInfo[];
config?:any;
label?: string;
}
export interface optionsInfo {
label: string;
value: string;
}
export interface attrButton {
label: string;
key: string;
type: string;
size: string;
icon: string;
}
//表头操作
export const tableButtonList :attrButton[] = [
{
label: "新增",
key:"newAdd",
type:"primary",
size: "small",
icon: "editPen"
},
{
label: "批量删除",
key: "del",
type: "danger",
size: "small",
icon: "delete"
},
{
label: "生成二维码",
key: "showQrCode",
type: "primary",
size: "small",
icon: "setUp"
2 years ago
}
]
//记录操作
export const tableLogButtonList :attrButton[] = [
{
label: "查看",
key: "look",
type: "success",
size: "small",
icon: "view"
},
{
label: "编辑",
key: "edit",
type: "warning",
size: "small",
icon: "delete"
},
{
label: "删除",
key: "del",
type: "danger",
size: "small",
icon: "delete"
}
];
//记录操作
export const tableAttrLogButtonList = [
2 years ago
{
2 years ago
id: "checkbox",
label: "多选",
field: "checkbox",
type: "selection",
attribute:"-",
pattern: "bigint",
fieldClass: "-",
activeValue: "",
inactiveValue: "",
options: []
},
{
id: "serialNumber",
label: "序号",
field: "index",
type: "index",
attribute:"-",
pattern: "bigint",
fieldClass: "-",
activeValue: "",
inactiveValue: "",
options: []
},
{
id: "operate",
label: "操作",
field: "operate",
type: "",
attribute:"-",
pattern: "bigint",
fieldClass: "__control",
activeValue: "",
inactiveValue: "",
options: []
}
];
//新增和编辑页面展开方式
export const diaOrDrawer = [
{
label:"抽屉",
value:"drawer"
},
{
label:"弹窗",
value:"dialog"
}
]
//表单结构
export interface FormPageList {
columns: tableButton[],
config: any,
controlBtn:tableButton[],
operateBtn:tableButton[]
}
export interface FormPageConfig{
pageSize:number,
searchIsShow:boolean,
searchFormIsShow:boolean,
openPageMode:string
}
export const submitButtonEs = {
type: "div",
control:{},
config:{
textAlign: "center",
span: ""
},
list: [
{
type: "button",
control:{
label: "保存",
type: "primary",
key: "submit"
},
config:{
textAlign: "center"
}
}
]
}
export const cancelButton = {
type: "div",
control:{},
config:{
textAlign: "center",
span: ""
},
list: [
{
type: "button",
control:{
label: "返回",
type: "danger",
key: "cancel"
},
config:{
textAlign: "center"
}
}
]
}
export const submitAndCancelButton = {
type: "div",
control:{},
config:{
span: 24,
textAlign: "center"
},
list: [
{
type: "button",
control:{
label: "保存",
type: "primary",
key: "submit"
},
config:{
span: 0
}
},
{
type: "button",
control:{
label: "返回",
type: "danger",
key: "cancel"
},
config:{
span: 0
}
}
]
};
export const tipMstClass = [
{
value: 1,
label: '流程提醒',
},
{
value: 2,
label: '表单提醒',
},
]
export const tipMstTypeClass = [
{
value: 1,
label: '只提醒一次',
},
{
value: 2,
label: '周期性提醒',
},
]
export const repetitionPeriodClass = [
{
value: 1,
label: '每天',
},
{
value: 2,
label: 'N天',
},
{
value: 3,
label: '每小时',
},
{
value: 4,
label: 'N小时',
},
{
value: 5,
label: 'N分钟',
},
{
value: 6,
label: '每星期',
},
{
value: 7,
label: '每月',
}
]
export const weekForDay = [
{
value: 1,
label: '周一',
},
{
value: 2,
label: '周二',
},
{
value: 3,
label: '周三',
},
{
value: 4,
label: '周四',
},
{
value: 5,
label: '周五',
},
{
value: 6,
label: '周六',
},
{
value: 7,
label: '周日',
}
]
export interface viewPageType {
list:{
status:boolean,
isClick:boolean,
form:{
sortWord:string,
sortClass:number
}
},
date:{
status:boolean,
isClick:boolean,
form:{
startTime:string,
endTime:string,
dayType:number
}
}
,
time:{
status:boolean,
isClick:boolean,
form:{
sortWord:string,
sort:number
}
}
,
gantt:{
status:boolean,
isClick:boolean,
form:{
startTime:string,
endTime:string,
dayType:number,
sortWord:string,
sort:number
}
}
,
map:{
status:boolean,
isClick:boolean,
form:{
mapWord:string,
sortWord:string,
sort:number
}
}
}