2023-11-02 12:12:37 +00:00
|
|
|
export const type = {
|
|
|
|
normal: '调查问卷',
|
|
|
|
vote: '投票评选',
|
|
|
|
nps: 'NPS评分',
|
|
|
|
register: '在线报名',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const thead = {
|
|
|
|
type: '类型',
|
|
|
|
title: '标题',
|
|
|
|
remark: '备注',
|
|
|
|
state: '状态',
|
|
|
|
owner: '所有者',
|
|
|
|
creator: '创建人',
|
|
|
|
tags: '标签',
|
2023-12-11 06:48:15 +00:00
|
|
|
updateDate: '更新时间',
|
|
|
|
createDate: '创建时间',
|
2023-11-02 12:12:37 +00:00
|
|
|
collectCount: '回收数',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const fieldConfig = {
|
|
|
|
type: {
|
|
|
|
key: 'type',
|
|
|
|
width: 150,
|
|
|
|
comp: 'tag',
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
key: 'title',
|
|
|
|
width: 240,
|
|
|
|
tip: true,
|
|
|
|
},
|
|
|
|
remark: {
|
|
|
|
key: 'remark',
|
|
|
|
width: 200,
|
|
|
|
tip: true,
|
|
|
|
},
|
2023-12-11 06:48:15 +00:00
|
|
|
state: {
|
|
|
|
key: 'state',
|
|
|
|
width: 140,
|
|
|
|
comp: 'state',
|
|
|
|
},
|
2023-11-02 12:12:37 +00:00
|
|
|
creator: {
|
|
|
|
key: 'creator',
|
|
|
|
width: 140,
|
|
|
|
},
|
|
|
|
updateDate: {
|
|
|
|
key: 'updateDate',
|
|
|
|
minWidth: 200,
|
|
|
|
},
|
2023-12-11 06:48:15 +00:00
|
|
|
createDate: {
|
|
|
|
key: 'createDate',
|
|
|
|
minWidth: 200,
|
|
|
|
},
|
2023-11-02 12:12:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const noListDataConfig = {
|
|
|
|
title: '您还没有创建问卷',
|
|
|
|
desc: '赶快点击右上角立即创建问卷吧!',
|
|
|
|
img: '/imgs/icons/list-empty.png',
|
|
|
|
};
|
2023-12-11 06:48:15 +00:00
|
|
|
|
2024-01-16 06:49:33 +00:00
|
|
|
export const noSearchDataConfig = {
|
|
|
|
title: '没有满足该查询条件的问卷哦',
|
|
|
|
desc: '可以更换条件查询试试',
|
|
|
|
img: '/imgs/icons/list-empty.png',
|
|
|
|
};
|
|
|
|
|
2023-12-11 06:48:15 +00:00
|
|
|
export const statusMaps = {
|
|
|
|
new: '未发布',
|
|
|
|
editing: '修改中',
|
|
|
|
published: '已发布',
|
|
|
|
removed: '',
|
|
|
|
pausing: '',
|
2023-12-27 11:29:20 +00:00
|
|
|
};
|
2024-01-18 09:17:06 +00:00
|
|
|
|
|
|
|
// 问卷类型
|
|
|
|
export const questionTypeSelect = {
|
|
|
|
label: '问卷类型',
|
|
|
|
value: [
|
|
|
|
{
|
|
|
|
value: '',
|
|
|
|
label: '全部类型'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'normal',
|
|
|
|
label: '基础调查'
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// value: 'exam',
|
|
|
|
// label: '在线考试'
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// value: 'nps',
|
|
|
|
// label: 'NPS评分'
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
value: 'vote',
|
|
|
|
label: '投票评选'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'register',
|
|
|
|
label: '在线报名'
|
|
|
|
},
|
|
|
|
],
|
|
|
|
default: ''
|
|
|
|
}
|
|
|
|
|
|
|
|
// 问卷状态
|
|
|
|
export const curStatusSelect = {
|
|
|
|
label: '问卷状态',
|
|
|
|
value: [
|
|
|
|
{
|
|
|
|
value: '',
|
|
|
|
label: '全部状态'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'new',
|
|
|
|
label: '未发布'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'published',
|
|
|
|
label: '已发布'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'editing',
|
|
|
|
label: '修改中'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
default: ''
|
|
|
|
}
|
|
|
|
|
|
|
|
export const selectOptionsDict = Object.freeze({
|
|
|
|
questionType: questionTypeSelect,
|
|
|
|
'curStatus.status': curStatusSelect
|
|
|
|
})
|
|
|
|
|
2024-01-23 13:49:39 +00:00
|
|
|
export const buttonOptionsDict = Object.freeze({
|
|
|
|
'curStatus.date': {
|
|
|
|
label: '更新时间',
|
|
|
|
icons: [
|
|
|
|
{
|
|
|
|
name: 'el-icon-sort',
|
|
|
|
effectValue: '',
|
|
|
|
isDefaultValue: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'el-icon-sort-up',
|
|
|
|
effectValue: 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'el-icon-sort-down',
|
|
|
|
effectValue: -1,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
createDate: {
|
|
|
|
label: '创建时间',
|
|
|
|
icons: [
|
|
|
|
{
|
|
|
|
name: 'el-icon-sort',
|
|
|
|
effectValue: '',
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'el-icon-sort-up',
|
|
|
|
effectValue: 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'el-icon-sort-down',
|
|
|
|
effectValue: -1,
|
|
|
|
isDefaultValue: true
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2024-01-18 09:17:06 +00:00
|
|
|
|