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.

204 lines
5.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

export const userStatusOptions = [
{ label: '', value: 0 },
{ label: '', value: 1 },
{ label: '', value: 2 },
{ label: '', value: 3 },
{ label: '', value: 4 },
]
export const attachmentTypeOptions = [
{ label: '', value: 0 },
{ label: '', value: 1 },
{ label: '', value: 2 },
{ label: '', value: 3 },
{ label: '', value: 4 },
{ label: '', value: 5 },
{ label: '', value: 6 },
{ label: '', value: 7 },
]
export const documentStatusOptions = [
{ label: '', value: 0, type: 'info' },
{ label: '', value: 1, type: 'primary' },
{ label: '', value: 2, type: 'success' },
{ label: '', value: 3, type: 'warning' },
{ label: '', value: 4, type: 'danger' },
{ label: '', value: 5, type: 'info' },
]
// 0 网站横幅1 小程序横幅2 APP横幅
export const bannerTypeOptions = [
{ label: '', value: 0, type: 'primary' },
{ label: '', value: 1, type: 'success' },
{ label: 'APP', value: 2, type: 'warning' },
]
export const boolOptions = [
{ label: '是', value: true, type: 'success' },
{ label: '否', value: false, type: 'danger' },
]
export const reportOptions = [
{ label: '广', value: 1 },
{ label: '', value: 2 },
{ label: '', value: 3 },
{ label: '', value: 4 },
{ label: '', value: 5 },
{ label: '', value: 6 },
]
export const methodOptions = [
{
label: 'GET',
value: 'GET',
type: 'success',
},
{
label: 'POST',
value: 'POST',
type: 'primary',
},
{
label: 'PUT',
value: 'PUT',
type: 'warning',
},
{
label: 'DELETE',
value: 'DELETE',
type: 'danger',
},
{
label: 'GRPC',
value: 'GRPC',
type: 'primary',
},
]
export const datetimePickerOptions = {
shortcuts: [
{
text: '',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
picker.$emit('pick', [start, end])
},
},
{
text: '',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
picker.$emit('pick', [start, end])
},
},
{
text: '',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
picker.$emit('pick', [start, end])
},
},
{
text: '',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 183)
picker.$emit('pick', [start, end])
},
},
{
text: '',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 365)
picker.$emit('pick', [start, end])
},
},
],
}
export const datetimePickerPunishmentOptions = {
shortcuts: [
{
text: '1',
onClick(picker) {
const end = new Date()
end.setTime(end.getTime() + 3600 * 1000)
picker.$emit('pick', end)
},
},
{
text: '12',
onClick(picker) {
const end = new Date()
end.setTime(end.getTime() + 3600 * 1000 * 12)
picker.$emit('pick', end)
},
},
{
text: '1',
onClick(picker) {
const end = new Date()
end.setTime(end.getTime() + 3600 * 1000 * 24)
picker.$emit('pick', end)
},
},
{
text: '2',
onClick(picker) {
const end = new Date()
end.setTime(end.getTime() + 3600 * 1000 * 24 * 2)
picker.$emit('pick', end)
},
},
{
text: '1',
onClick(picker) {
const end = new Date()
end.setTime(end.getTime() + 3600 * 1000 * 24 * 7)
picker.$emit('pick', end)
},
},
{
text: '1',
onClick(picker) {
const end = new Date()
end.setTime(end.getTime() + 3600 * 1000 * 24 * 30)
picker.$emit('pick', end)
},
},
{
text: '',
onClick(picker) {
const end = new Date()
end.setTime(end.getTime() + 3600 * 1000 * 24 * 183)
picker.$emit('pick', [start, end])
},
},
{
text: '1',
onClick(picker) {
const end = new Date()
end.setTime(end.getTime() + 3600 * 1000 * 24 * 365)
picker.$emit('pick', [start, end])
},
},
],
}
export const punishmentTypeOptions = [
{ label: '', value: 1, type: 'danger' },
{ label: '', value: 2, type: 'warning' },
{ label: '', value: 3, type: 'warning' },
{ label: '', value: 4, type: 'warning' },
{ label: '', value: 5, type: 'warning' },
]