web资产弹窗的组件渲染整理完善

yfy
严飞永 2 months ago
parent ea476544c0
commit 5c5db9bbd8

@ -1,5 +1,5 @@
// import { directive } from "vue/types/umd"; // import { directive } from "vue/types/umd";
// 基本信息
const list = [ const list = [
{ {
key: "xtmc", key: "xtmc",
@ -20,10 +20,10 @@ const list = [
prop: "xtym", prop: "xtym",
}, },
{ {
key: "xtym", key: "fwwz",
label: "访问网址", label: "访问网址",
type: "input", type: "custom",
prop: "xtym", prop: "fwwz",
}, },
{ {
key: "jsyydw", key: "jsyydw",
@ -38,24 +38,12 @@ const list = [
prop: "hlwkfyt", prop: "hlwkfyt",
dict: "zc_hlwkfyt" dict: "zc_hlwkfyt"
}, },
{
key: "jsyydw",
label: "建设(运营)单位",
type: "input",
prop: "jsyydw",
},
{ {
key: "ipAddress", key: "ipAddress",
label: "Ip/Port", label: "Ip/Port",
type: "input", type: "ip-port",
prop: "ipAddress", prop: "ipAddress",
}, },
{
key: "ipPort",
label: "",
type: "input",
prop: "ipPort",
},
{ {
key: "isZjhlwip", key: "isZjhlwip",
label: "是否自建互联网专线IP", label: "是否自建互联网专线IP",
@ -78,27 +66,21 @@ const list = [
{ {
key: "ymdqsj", key: "ymdqsj",
label: "关联IP", label: "关联IP",
type: "date", type: "input",
prop: "ymdqsj", prop: "ymdqsj",
}, },
{ {
key: "ymtxrXm", key: "ymtxrXm",
label: "到期提醒人", label: "到期提醒人",
type: "input", type: "input2",
prop: "ymtxrXm", prop: "ymtxrXm",
}, },
{
key: "ymtxrLxfs",
label: "",
type: "input",
prop: "ymtxrLxfs",
},
{ {
key: "xtzyx", key: "xtzyx",
label: "系统重要性", label: "系统重要性",
type: "select", type: "select",
prop: "xtzyx", prop: "xtzyx",
dict: "zc_xtzc" dict: "zc_xtzyx"
}, },
{ {
key: "gjxt", key: "gjxt",
@ -186,6 +168,7 @@ const list = [
label: "地理位置", label: "地理位置",
type: "cascader", type: "cascader",
prop: "dlwz", prop: "dlwz",
options: "options"
}, },
{ {
key: "jd", key: "jd",
@ -198,18 +181,21 @@ const list = [
label: "纬度", label: "纬度",
type: "input", type: "input",
prop: "wd", prop: "wd",
}, }];
const list01 = [
{ {
key: "xttz", key: "xttz",
label: "系统特征", label: "系统特征",
type: "checkbox", type: "checkbox",
prop: "xttz", prop: "xttz",
// dict: "zc_xttz" dict: "tc_xttz"
}, }
];
const list02 = [
{ {
key: "yhgm", key: "yhgm",
label: "用户规模", label: "用户规模",
type: "checkbox", type: "select",
prop: "yhgm", prop: "yhgm",
dict: "zc_yhgm" dict: "zc_yhgm"
}, },
@ -269,19 +255,11 @@ const list = [
label: "系统标签", label: "系统标签",
type: "input", type: "input",
prop: "xtbq" prop: "xtbq"
}, }
{ ];
key: "tgdw",
label: "托管单位", // 系统防护信息
type: "input", const list2 = [
prop: "tgdw"
},
{
key: "yfws",
label: "云服务商",
type: "input",
prop: "yfws"
},
{ {
key: "xtfhqkFcg", key: "xtfhqkFcg",
label: "防篡改", label: "防篡改",
@ -309,7 +287,10 @@ const list = [
type: "checkbox-group", type: "checkbox-group",
prop: "xtfhqkFls", prop: "xtfhqkFls",
dict: "xtfhqk_fls" dict: "xtfhqk_fls"
}, }];
//相关业务
const list3 = [
{ {
key: "xgywFgfw", key: "xgywFgfw",
label: "覆盖范围", label: "覆盖范围",
@ -357,86 +338,56 @@ const list = [
label: "业务描述", label: "业务描述",
type: "textarea", type: "textarea",
prop: "xgywYwms", prop: "xgywYwms",
}, }];
//联系人
const list4 = [
{ {
key: "fgfzrxm", key: "fgfzr",
label: "分管责任人", label: "分管责任人",
type: "input", items: [
prop: "fgfzrxm" { key: "fgfzrxm", label: "姓名", type: "input", prop: "fgfzrxm" },
}, { key: "fgfzrlxfs", label: "联系方式", type: "input", prop: "fgfzrlxfs" },
{ { key: "fgfzryx", label: "邮箱", type: "input", prop: "fgfzryx" }
key: "fgfzrlxfs", ]
label: "",
type: "input",
prop: "fgfzrlxfs",
},
{
key: "fgfzryx",
label: "",
type: "input",
prop: "fgfzryx",
}, },
{ {
key: "bmfzrxm", key: "bmfzr",
label: "部门负责人", label: "部门负责人",
type: "input", items: [
prop: "bmfzrxm" { key: "bmfzrxm", label: "姓名", type: "input", prop: "bmfzrxm" },
}, { key: "bmfzrlxfs", label: "联系方式", type: "input", prop: "bmfzrlxfs" },
{ { key: "bmfzryx", label: "邮箱", type: "input", prop: "bmfzryx" }
key: "bmfzrlxfs", ]
label: "",
type: "input",
prop: "bmfzrlxfs",
},
{
key: "bmfzryx",
label: "",
type: "input",
prop: "bmfzryx",
}, },
{ {
key: "dylxrlxfs", key: "dylxr",
label: "第一联系人", label: "第一联系人",
type: "input", items: [
prop: "dylxrlxfs", { key: "dylxrxm", label: "姓名", type: "input", prop: "dylxrxm" },
}, { key: "dylxrlxfs", label: "联系方式", type: "input", prop: "dylxrlxfs" },
{ { key: "dylxryx", label: "邮箱", type: "input", prop: "dylxryx" }
key: "dylxrlxfs", ]
label: "",
type: "input",
prop: "dylxrlxfs",
},
{
key: "dylxryx",
label: "",
type: "input",
prop: "dylxryx",
}, },
{ {
key: "qtlxrlxfs", key: "qt",
label: "其他联系人", label: "其他联系人",
type: "input", items: [
prop: "qtlxrlxfs", { key: "qtlxrxm", label: "姓名", type: "input", prop: "qtlxrxm" },
}, { key: "qtlxrlxfs", label: "联系方式", type: "input", prop: "qtlxrlxfs" },
{ { key: "qtlxryx", label: "邮箱", type: "input", prop: "qtlxryx" }
key: "qtlxrlxfs", ]
label: "", }
type: "input", ];
prop: "qtlxrlxfs", //ICP备案信息
}, const list5 = [
{
key: "qtlxryx",
label: "",
type: "input",
prop: "qtlxryx",
},
{ {
key: "ipcSfba", key: "ipcSfba",
label: "是否备案", label: "是否备案",
type: "select", type: "select",
prop: "ipcSfba", prop: "ipcSfba",
dict: "is_no" dict: "is_no"
}, }];
const list501 = [
{ {
key: "ipcBayxx", key: "ipcBayxx",
label: "备案有效性", label: "备案有效性",
@ -499,14 +450,18 @@ const list = [
label: "审核时间", label: "审核时间",
type: "date", type: "date",
prop: "shsj", prop: "shsj",
}, }];
//公安机关备案信息
const list6 = [
{ {
key: "gajgSfba", key: "gajgSfba",
label: "是否备案", label: "是否备案",
type: "select", type: "select",
prop: "gajgSfba", prop: "gajgSfba",
dict: "is_no" dict: "is_no"
}, }];
//公安机关备案信息(是)
const list7 = [
{ {
key: "gajgBajg", key: "gajgBajg",
label: "备案机关", label: "备案机关",
@ -524,7 +479,9 @@ const list = [
label: "备案日期", label: "备案日期",
type: "date", type: "date",
prop: "gajgBarq", prop: "gajgBarq",
}, }];
//系统架构
const list8 = [
{ {
key: "xtjgKfs", key: "xtjgKfs",
label: "开发商", label: "开发商",
@ -578,15 +535,20 @@ const list = [
{ {
key: "xtjgGchl", key: "xtjgGchl",
label: "系统设备国产化率", label: "系统设备国产化率",
type: "input", type: "number",
prop: "xtjgGchl" prop: "xtjgGchl"
}, }]
//等保信息
const list9 = [
{ {
key: "dbxxSfdbxt", key: "dbxxSfdbxt",
label: "是否等保系统", label: "是否等保系统",
type: "select", type: "select",
prop: "dbxxSfdbxt" prop: "dbxxSfdbxt",
}, dict: "is_no"
}];
//等保信息(是)
const list10 = [
{ {
key: "dbxxDbcpbah", key: "dbxxDbcpbah",
label: "等保测评备案号", label: "等保测评备案号",
@ -638,7 +600,9 @@ const list = [
type: "select", type: "select",
prop: "dbxxSfydsfcp", prop: "dbxxSfydsfcp",
dict: "is_no" dict: "is_no"
}, }];
//如果----是---第三方测评
const list11 = [
{ {
key: "sfCpjgmc", key: "sfCpjgmc",
label: "测评机构名称", label: "测评机构名称",
@ -724,7 +688,9 @@ const list = [
label: "测评结论", label: "测评结论",
type: "textarea", type: "textarea",
prop: "sfCpjl", prop: "sfCpjl",
}, }];
//密评信息
const list12 = [
{ {
key: "mpSfmpxt", key: "mpSfmpxt",
label: "是否密评系统", label: "是否密评系统",
@ -735,15 +701,11 @@ const list = [
{ {
key: "mpMpdf", key: "mpMpdf",
label: "密评得分", label: "密评得分",
type: "input", type: "number",
prop: "mpMpdf", prop: "mpMpdf",
}, }];
// 供应链 //供应链信息
{ const list13 = [
key: "chepingUnit",
label: "测评单位",
type: "array",
items: [
{ {
key: "name", key: "name",
label: "测评单位名称", label: "测评单位名称",
@ -768,18 +730,13 @@ const list = [
type: "input", type: "input",
prop: "lxdh" prop: "lxdh"
} }
] ];
}, const list1301 = [
{
key: "yjgysUnit",
label: "硬件供应商单位",
type: "array",
items: [
{ {
key: "name", key: "name2",
label: "硬件供应商单位名称", label: "硬件供应商单位名称",
type: "input", type: "input",
prop: "name" prop: "name2"
}, },
{ {
key: "tyshxydm", key: "tyshxydm",
@ -799,18 +756,13 @@ const list = [
type: "input", type: "input",
prop: "lxdh" prop: "lxdh"
} }
] ];
}, const list1302 = [
{
key: "jfywUnit",
label: "机房运维单位",
type: "array",
items: [
{ {
key: "name", key: "name3",
label: "机房运维单位名称", label: "机房运维单位名称",
type: "input", type: "input",
prop: "name" prop: "name3"
}, },
{ {
key: "tyshxydm", key: "tyshxydm",
@ -830,18 +782,14 @@ const list = [
type: "input", type: "input",
prop: "lxdh" prop: "lxdh"
} }
] ];
}, const list1303 = [
{
key: "xtsjUnit",
label: "系统设计单位",
type: "array",
items: [
{ {
key: "name",
key: "name3",
label: "系统设计单位名称", label: "系统设计单位名称",
type: "input", type: "input",
prop: "name" prop: "name3"
}, },
{ {
key: "tyshxydm", key: "tyshxydm",
@ -861,14 +809,10 @@ const list = [
type: "input", type: "input",
prop: "lxdh" prop: "lxdh"
} }
] ];
}, const list1304 = [
{
key: "xtjsUnit",
label: "系统建设单位",
type: "array",
items: [
{ {
key: "name", key: "name",
label: "系统建设单位名称", label: "系统建设单位名称",
type: "input", type: "input",
@ -906,13 +850,8 @@ const list = [
prop: "sfwtc", prop: "sfwtc",
dict: "is_no" dict: "is_no"
} }
] ];
}, const list1305 = [
{
key: "xtyyUnit",
label: "系统运营单位",
type: "array",
items: [
{ {
key: "name", key: "name",
label: "系统运营单位名称", label: "系统运营单位名称",
@ -950,18 +889,13 @@ const list = [
prop: "sfwtc", prop: "sfwtc",
dict: "is_no" dict: "is_no"
} }
] ]
}, const list1306 = [
{
key: "aqfwUnit",
label: "安全服务单位",
type: "array",
items: [
{ {
key: "name", key: "name4",
label: "安全服务单位", label: "安全服务单位",
type: "input", type: "input",
prop: "name" prop: "name4"
}, },
{ {
key: "tyshxydm", key: "tyshxydm",
@ -981,13 +915,9 @@ const list = [
type: "input", type: "input",
prop: "lxdh" prop: "lxdh"
} }
] ];
}, // 基础网络里的 服务器信息
{ const list14 = [
key: "fwqxx",
label: "服务器信息",
type: "array",
items: [
{ {
key: "sblx", key: "sblx",
label: "设备类型", label: "设备类型",
@ -1056,13 +986,9 @@ const list = [
type: "input", type: "input",
prop: "yjbsxx", prop: "yjbsxx",
} }
] ];
}, //基础网络-网络设备
{ const list15 = [
key: "wlsb",
label: "网络设备",
type: "array",
items: [
{ {
key: "sblx", key: "sblx",
label: "设备类型", label: "设备类型",
@ -1118,13 +1044,9 @@ const list = [
type: "input", type: "input",
prop: "yjbsxx", prop: "yjbsxx",
} }
] ];
}, //基础网络-安全设备
{ const list16 = [
key: "aqsb",
label: "安全设备",
type: "array",
items: [
{ {
key: "sblx", key: "sblx",
label: "设备类型", label: "设备类型",
@ -1180,11 +1102,11 @@ const list = [
type: "input", type: "input",
prop: "yjbsxx", prop: "yjbsxx",
} }
] ];
}, // 新监管业务形态
const list17 = [
{ {
key: "xjgywxt", key: "xjgywxt.remark",
label: "新监管业务形态",
type: "radio", type: "radio",
prop: "xjgywxt.remark", prop: "xjgywxt.remark",
options: [ options: [
@ -1195,57 +1117,51 @@ const list = [
{ label: "工业控制", value: "5" }, { label: "工业控制", value: "5" },
{ label: "CDN", value: "6" } { label: "CDN", value: "6" }
], ],
onChange: "changeRadio", }
style: "margin-left: 170px;" ];
}, // 上面 -(云平台)
// radio云平台 const list18 = [
{
key: "ypt",
label: "云平台",
type: "group",
condition: "ruleForm.xjgywxt.remark == '1'",
items: [
{ {
key: "yptFws", key: "xjgywxt.yptFws",
label: "云平台服务商", label: "云平台服务商",
type: "input", type: "input",
prop: "xjgywxt.yptFws", prop: "xjgywxt.yptFws",
}, },
{ {
key: "yptSfzh", key: "xjgywxt.yptSfzh",
label: "是否租户级安全", label: "是否租户级安全",
type: "select", type: "select",
prop: "xjgywxt.yptSfzh", prop: "xjgywxt.yptSfzh",
dict: "is_no" dict: "is_no"
}, },
{ {
key: "yptLx", key: "xjgywxt.yptLx",
label: "云平台类型", label: "云平台类型",
type: "input", type: "input",
prop: "xjgywxt.yptLx", prop: "xjgywxt.yptLx",
}, },
{ {
key: "yptYjzydx", key: "xjgywxt.yptYjzydx",
label: "硬件资源大小", label: "硬件资源大小",
type: "input", type: "input",
prop: "xjgywxt.yptYjzydx", prop: "xjgywxt.yptYjzydx",
}, },
{ {
key: "yptPtjg", key: "xjgywxt.yptPtjg",
label: "平台架构", label: "平台架构",
type: "input", type: "input",
prop: "xjgywxt.yptPtjg", prop: "xjgywxt.yptPtjg",
}, },
{ {
key: "yptIp", key: "xjgywxt.yptIp",
label: "互联网IP段", label: "互联网IP段",
type: "input", type: "input",
prop: "xjgywxt.yptIp", prop: "xjgywxt.yptIp",
}, },
{ {
key: "yptJflxr", key: "xjgywxt.yptJflxr",
label: "机房联系人", label: "机房联系人",
type: "input", type: "input",
prop: "xjgywxt.yptJflxr", prop: "xjgywxt.yptJflxr",
@ -1257,37 +1173,32 @@ const list = [
prop: "xjgywxt.yptJflxrdh", prop: "xjgywxt.yptJflxrdh",
}, },
{ {
key: "yptJfEmail", key: "xjgywxt.yptJfEmail",
label: "机房联系人邮箱", label: "机房联系人邮箱",
type: "input", type: "input",
prop: "xjgywxt.yptJfEmail", prop: "xjgywxt.yptJfEmail",
}, },
{ {
key: "yptJfdz", key: "xjgywxt.yptJfdz",
label: "机房地址", label: "机房地址",
type: "input", type: "input",
prop: "xjgywxt.yptJfdz", prop: "xjgywxt.yptJfdz",
}, },
{ {
key: "yptYwfw", key: "xjgywxt.yptYwfw",
label: "业务范围", label: "业务范围",
type: "input", type: "input",
prop: "xjgywxt.yptYwfw", prop: "xjgywxt.yptYwfw",
}, },
{ {
key: "yptYwms", key: "xjgywxt.yptYwms",
label: "业务描述", label: "业务描述",
type: "textarea", type: "textarea",
prop: "xjgywxt.yptYwms", prop: "xjgywxt.yptYwms",
} }
] ];
}, // 上面 -- (大数据)
{ const list19 = [
key: "dsj",
label: "大数据",
type: "group",
condition: "ruleForm.xjgywxt.remark == '2'",
items: [
{ {
key: "dsjPtfws", key: "dsjPtfws",
label: "平台服务商", label: "平台服务商",
@ -1334,13 +1245,8 @@ const list = [
dict: "is_no" dict: "is_no"
} }
] ]
}, // 上面value == 3 时 (物联网)
{ const list20 = [
key: "wulianwang",
label: "物联网",
type: "group",
condition: "ruleForm.xjgywxt.remark == '3'",
items: [
{ {
key: "wlwsbXtjcs", key: "wlwsbXtjcs",
label: "系统集成商名称", label: "系统集成商名称",
@ -1447,13 +1353,8 @@ const list = [
prop: "xjgywxt.sxtGdbb", prop: "xjgywxt.sxtGdbb",
} }
] ]
}, // 上面value == 4 时 移动App
{ const list21 = [
key: "yidongapp",
label: "移动APP",
type: "group",
condition: "ruleForm.xjgywxt.remark == '4'",
items: [
{ {
key: "appXt", key: "appXt",
label: "移动APP系统", label: "移动APP系统",
@ -1498,13 +1399,8 @@ const list = [
dict: "is_no" dict: "is_no"
} }
] ]
}, // 上面value == 5 时 (工业控制)
{ const list22 = [
key: "gongyeKongzhi",
label: "工业控制",
type: "group",
condition: "ruleForm.xjgywxt.remark == '5'",
items: [
{ {
key: "gykzJcs", key: "gykzJcs",
label: "系统集成商名称", label: "系统集成商名称",
@ -1607,13 +1503,8 @@ const list = [
prop: "xjgywxt.gykzMs", prop: "xjgywxt.gykzMs",
} }
] ]
}, // 上面value == 6 时 CDN
{ const list23 = [
key: "cdn",
label: "CDN",
type: "group",
condition: "ruleForm.xjgywxt.remark == '6'",
items: [
{ {
key: "cdnGys", key: "cdnGys",
label: "CDN供应商", label: "CDN供应商",
@ -1658,12 +1549,17 @@ const list = [
prop: "xjgywxt.cdnJsxx", prop: "xjgywxt.cdnJsxx",
} }
] ]
}, //Whois信息
const list24 = [
{ {
key: "whoisYxx", key: "whoisYxx",
label: "有效性质", label:"有效性质",
type: "radio", type: "radio",
prop: "whoisYxx", prop: "whoisYxx",
options: [
{ label: "是", value: "1" },
{ label: "否", value: "2" }
],
}, },
{ {
key: "whoisZcm", key: "whoisZcm",
@ -1724,7 +1620,9 @@ const list = [
label: "到期时间", label: "到期时间",
type: "date", type: "date",
prop: "whoisDqsj" prop: "whoisDqsj"
}, }];
//数据资产
const list25 = [
{ {
key: "sjzcSjkmc", key: "sjzcSjkmc",
label: "数据库名称", label: "数据库名称",
@ -1829,29 +1727,41 @@ const list = [
label: "数据描述", label: "数据描述",
type: "textarea", type: "textarea",
prop: "sjzcSjms", prop: "sjzcSjms",
}, }
];
const list26 = [
{ {
key: "ywxttpwj", key: "ywxttpwj",
label: "业务系统拓扑图文件", label: "",
type: "upload", type: "file",
prop: "ywxttpwj", prop: "ywxttpwj",
accept: "xls,xlsx,doc,docx,pdf,rar,zip,pcap,txt",
limit: 1,
fileSize: 30,
description: "附件上传支持xls、xlsx、doc、docx、pdf、rar、zip、pcap、txt、最多上传1个文件每个不超过30M"
}, },
{ {
key: "ywxttpt", key: "ywxttpt",
label: "业务系统拓扑图图片", label: "",
type: "upload", type: "image",
prop: "ywxttpt", prop: "ywxttpt",
}, accept: "jpg,jpeg,png",
{ limit: 1,
key: "bfyy", fileSize: 30,
label: "关停原因", description: "图片上传支持jpg、jpeg、png、最多上传1张图片每个不超过30M"
type: "display", },
prop: "bfyy", // {
condition: "ruleForm.bfyy" // key: "bfyy",
} // label: "关停原因",
// type: "textarea",
]; // prop: "bfyy",
// condition: "ruleForm.bfyy"
// }
]
const listRules = { const listRules = {
//供应链的表单验证
name: [{ required: true, message: "请填写", trigger: "blur" }],
xtmc: [{ required: true, message: "请填写", trigger: "blur" }], xtmc: [{ required: true, message: "请填写", trigger: "blur" }],
dwmc: [{ required: true, message: "请填写", trigger: "blur" }], dwmc: [{ required: true, message: "请填写", trigger: "blur" }],
hlwkfyt: [{ required: true, message: "请填写", trigger: "change" }], hlwkfyt: [{ required: true, message: "请填写", trigger: "change" }],
@ -1929,7 +1839,7 @@ const listRules = {
message: '请输入正确的邮箱地址', message: '请输入正确的邮箱地址',
trigger: ['blur', 'change'] trigger: ['blur', 'change']
}], }],
ipcBayxx: [{ required: true, message: "请填写", trigger: "change" }], ipcSfba: [{ required: true, message: "请填写", trigger: "change" }],
ipcIpcbabh: [{ required: true, message: "请填写", trigger: "blur" }], ipcIpcbabh: [{ required: true, message: "请填写", trigger: "blur" }],
ipcBaym: [{ required: true, message: "请填写", trigger: "blur" }], ipcBaym: [{ required: true, message: "请填写", trigger: "blur" }],
ipcBalxrdh: [ ipcBalxrdh: [
@ -2053,5 +1963,6 @@ const listRules = {
sjzcSjfjfl: [{ required: true, message: "请填写", trigger: "change" }], sjzcSjfjfl: [{ required: true, message: "请填写", trigger: "change" }],
sjzcSjzycd: [{ required: true, message: "请填写", trigger: "change" }], sjzcSjzycd: [{ required: true, message: "请填写", trigger: "change" }],
}; };
console.log(list); console.log(list);
export { list, listRules }; export { list,list01,list02, list2, list3, list4, list5, list501, list6, list7, list8, list9, list10, list11, list12, list13,list1301,list1302,list1303,list1304,list1305,list1306, list14, list15, list16, list17, list18, list19, list20, list21, list22, list23, list24, list25,list26, listRules };

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save