济菏高速业务端
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.

141 lines
3.1 KiB

1 year ago
import * as PresetFormItems from "@screen/pages/control/event/event/FormEvent/PresetFormItems.js";
1 year ago
import { warningType } from "@screen/utils/enum.js";
import { checkRole } from '@/utils/permission'
export function checkFacility() {
if(checkRole(['101','102','103','104','105','106','107','108','109','110',]) && !checkRole(["admin"])){
if (checkRole(["101"])){
return "大学城收费站"
} else if (checkRole(["102"])){
return "长清收费站"
} else if (checkRole(["103"])){
return "孝里收费站"
} else if (checkRole(["104"])){
return "平阴北收费站"
} else if (checkRole(["105"])){
return "平阴收费站"
} else if (checkRole(["106"])){
return "平阴南收费站"
} else if (checkRole(["107"])){
return "东平收费站"
} else if (checkRole(["108"])){
return "梁山东收费站"
} else if (checkRole(["109"])){
return "梁山收费站"
} else if (checkRole(["110"])){
return "嘉祥西收费站"
} else {
return ""
}
}
}
1 year ago
export const searchFormList = [
12 months ago
{
label: "类型:",
key: "warningType",
type: "select",
options: {
clearable: true,
options: [
{
value: 1,
label: "交通拥堵",
},
{
value: 2,
label: "行人",
},
{
value: 4,
label: "停车",
},
{
value: 5,
label: "违规驾驶",
},
{
value: 6,
label: "路障",
},
{
value: 7,
label: "道路施工",
},
{
value: 99,
label: "其他",
},
],
},
},
1 year ago
{
label: "时间范围:",
key: "warningTime",
required: false,
1 year ago
type: "datePicker",
options: {
style:{width:'100%'},
type: "datetimerange",
1 year ago
format: "yyyy-MM-dd HH:mm:ss",
valueFormat: "yyyy-MM-dd HH:mm:ss",
},
default: [
moment().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
moment().format("YYYY-MM-DD HH:mm:ss"),
],
12 months ago
}, {
label: "收费站:",
key: "facilityName",
type: "select",
default: checkFacility(),
12 months ago
options: {
clearable: true,
disabled: checkRole(['101','102','103','104','105','106','107','108','109','110',]) && !checkRole(["admin"]),
12 months ago
options: [
12 months ago
],
},
}, {
label: "方向:",
key: "direction",
type: "select",
options: {
options: [
{
key: "1",
label: "菏泽方向",
},
{
key: "3",
label: "济南方向",
},
{
11 months ago
key: "",
label: "双向",
},
],
},
},
1 year ago
// {
// ...PresetFormItems.station,
// label: "开始桩号:",
// required: false,
// },
// merge(cloneDeep(PresetFormItems.station), {
// options: {
// options: [
// {
// key: "endStakeMark[0]",
// },
// {
// key: "endStakeMark[1]",
// },
// ],
// },
// label: "结束桩号:",
// required: false,
// }),
1 year ago
];