xiaoju-survey/web/src/management/config/listConfig.js

214 lines
3.8 KiB
JavaScript
Raw Normal View History

2023-11-02 12:12:37 +00:00
export const type = {
2024-05-21 13:31:55 +00:00
normal: '基础调查',
2023-11-02 12:12:37 +00:00
vote: '投票评选',
nps: 'NPS评分',
2024-05-09 12:34:24 +00:00
register: '在线报名'
}
2023-11-02 12:12:37 +00:00
export const spaceListConfig = {
name: {
title: '空间名称',
key: 'name',
width: 200
},
surveyTotal: {
title: '问卷数',
key: 'surveyTotal',
width: 150,
tip: true
},
memberTotal: {
title: '成员数',
key: 'memberTotal',
width: 150
},
owner: {
title: '所有者',
key: 'owner',
width: 150
},
createDate: {
title: '创建时间',
key: 'createDate',
minWidth: 200
}
}
2023-11-02 12:12:37 +00:00
export const fieldConfig = {
type: {
2024-01-30 14:19:45 +00:00
title: '类型',
2023-11-02 12:12:37 +00:00
key: 'type',
width: 150,
2024-05-09 12:34:24 +00:00
comp: 'TagModule'
2023-11-02 12:12:37 +00:00
},
title: {
2024-01-30 14:19:45 +00:00
title: '标题',
2023-11-02 12:12:37 +00:00
key: 'title',
width: 240,
2024-05-09 12:34:24 +00:00
tip: true
2023-11-02 12:12:37 +00:00
},
remark: {
2024-01-30 14:19:45 +00:00
title: '备注',
2023-11-02 12:12:37 +00:00
key: 'remark',
width: 200,
2024-05-09 12:34:24 +00:00
tip: true
2023-11-02 12:12:37 +00:00
},
state: {
2024-01-30 14:19:45 +00:00
title: '状态',
key: 'state',
width: 140,
2024-05-09 12:34:24 +00:00
comp: 'StateModule'
},
2024-01-30 14:19:45 +00:00
owner: {
title: '所有者',
key: 'owner',
2024-05-09 12:34:24 +00:00
width: 140
2023-11-02 12:12:37 +00:00
},
updateDate: {
2024-01-30 14:19:45 +00:00
title: '更新时间',
key: 'curStatus.date',
2024-05-09 12:34:24 +00:00
minWidth: 200
2023-11-02 12:12:37 +00:00
},
createDate: {
2024-01-30 14:19:45 +00:00
title: '创建时间',
key: 'createDate',
2024-05-09 12:34:24 +00:00
minWidth: 200
}
}
2023-11-02 12:12:37 +00:00
export const noListDataConfig = {
title: '您还没有创建问卷',
desc: '赶快点击右上角立即创建问卷吧!',
2024-05-09 12:34:24 +00:00
img: '/imgs/icons/list-empty.webp'
}
export const noSpaceDataConfig = {
title: '您还没有创建团队空间',
desc: '赶快点击右上角立即创建团队空间吧!',
img: '/imgs/icons/list-empty.webp'
}
export const noSpaceSearchDataConfig = {
title: '没有满足该查询条件的团队空间哦',
desc: '可以更换条件查询试试',
img: '/imgs/icons/list-empty.webp'
}
export const noSearchDataConfig = {
title: '没有满足该查询条件的问卷哦',
desc: '可以更换条件查询试试',
2024-05-09 12:34:24 +00:00
img: '/imgs/icons/list-empty.webp'
}
export const statusMaps = {
new: '未发布',
editing: '修改中',
published: '已发布',
removed: '',
2024-05-09 12:34:24 +00:00
pausing: ''
}
// 问卷类型
2024-02-06 07:35:30 +00:00
export const surveyTypeSelect = {
label: '问卷类型',
value: [
{
value: '',
2024-05-09 12:34:24 +00:00
label: '全部类型'
2024-01-30 14:19:45 +00:00
},
{
value: 'normal',
2024-05-09 12:34:24 +00:00
label: '基础调查'
2024-01-30 14:19:45 +00:00
},
// {
// value: 'exam',
// label: '在线考试'
2024-01-30 14:19:45 +00:00
// },
// {
// value: 'nps',
// label: 'NPS评分'
2024-01-30 14:19:45 +00:00
// },
{
value: 'vote',
2024-05-09 12:34:24 +00:00
label: '投票评选'
},
{
value: 'register',
2024-05-09 12:34:24 +00:00
label: '在线报名'
}
],
2024-05-09 12:34:24 +00:00
default: ''
}
// 问卷状态
export const curStatusSelect = {
label: '问卷状态',
value: [
{
value: '',
2024-05-09 12:34:24 +00:00
label: '全部状态'
},
{
value: 'new',
2024-05-09 12:34:24 +00:00
label: '未发布'
2024-01-30 14:19:45 +00:00
},
{
value: 'published',
2024-05-09 12:34:24 +00:00
label: '已发布'
2024-01-30 14:19:45 +00:00
},
{
value: 'editing',
2024-05-09 12:34:24 +00:00
label: '修改中'
}
],
2024-05-09 12:34:24 +00:00
default: ''
}
export const selectOptionsDict = Object.freeze({
2024-02-06 07:35:30 +00:00
surveyType: surveyTypeSelect,
2024-05-09 12:34:24 +00:00
'curStatus.status': curStatusSelect
})
export const buttonOptionsDict = Object.freeze({
'curStatus.date': {
label: '更新时间',
icons: [
{
name: 'el-icon-sort',
effectValue: '',
2024-01-30 14:19:45 +00:00
isDefaultValue: true,
2024-05-09 12:34:24 +00:00
icon: 'sort'
},
{
name: 'el-icon-sort-up',
2024-01-30 14:19:45 +00:00
effectValue: 1,
2024-05-09 12:34:24 +00:00
icon: 'sort-up'
},
{
name: 'el-icon-sort-down',
effectValue: -1,
2024-05-09 12:34:24 +00:00
icon: 'sort-down'
}
]
},
createDate: {
label: '创建时间',
icons: [
{
name: 'el-icon-sort',
effectValue: '',
2024-05-09 12:34:24 +00:00
icon: 'sort'
},
{
name: 'el-icon-sort-up',
2024-01-30 14:19:45 +00:00
effectValue: 1,
2024-05-09 12:34:24 +00:00
icon: 'sort-up'
},
{
name: 'el-icon-sort-down',
effectValue: -1,
2024-01-30 14:19:45 +00:00
isDefaultValue: true,
2024-05-09 12:34:24 +00:00
icon: 'sort-down'
}
]
}
})