管理端系统防护必填校验

lijinlongNew
严飞永 2 days ago
parent d2e955db87
commit b640cd316a

@ -694,7 +694,7 @@
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="防篡改">
<el-form-item label="防篡改" required>
<el-checkbox-group v-model="xtfhqkFcg">
<!-- <el-checkbox label="网页防篡改产品" name="type"></el-checkbox>
<el-checkbox label="软硬件waf" name="type"></el-checkbox>
@ -715,7 +715,7 @@
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="防泄露">
<el-form-item label="防泄露" required>
<el-checkbox-group v-model="xtfhqkFxl">
<!-- <el-checkbox label="加密传输" name="type"></el-checkbox>
<el-checkbox label="加密存储" name="type"></el-checkbox>
@ -742,7 +742,7 @@
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="防中断">
<el-form-item label="防中断" required>
<el-checkbox-group v-model="xtfhqkFzd">
<!-- <el-checkbox label="备份恢复演练" name="type"></el-checkbox>
<el-checkbox label="应用及灾备" name="type"></el-checkbox>
@ -767,7 +767,7 @@
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="防勒索">
<el-form-item label="防勒索" required>
<el-checkbox-group v-model="xtfhqkFls">
<!-- <el-checkbox label="数据备份" name="type"></el-checkbox>
<el-checkbox label="补丁更新" name="type"></el-checkbox>

@ -21,7 +21,6 @@
<el-col :span="12">
<el-form-item
label="系统名称"
:rules="{
required: true,
message: '请输入',
@ -37,8 +36,8 @@
</el-col>
<el-col :span="12">
<el-form-item
label="单位名称"
prop="dwmc"
label="单位名称"
prop="dwmc"
:rules="{
required: true,
message: '请输入',
@ -113,8 +112,9 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="使用单位"
prop="jsyydw"
<el-form-item
label="使用单位"
prop="jsyydw"
:rules="{
required: true,
message: '请输入',
@ -362,8 +362,9 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="系统重要性"
prop="xtzyx"
<el-form-item
label="系统重要性"
prop="xtzyx"
:rules="{
required: true,
message: '请选择',
@ -552,7 +553,8 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="在线状态"
<el-form-item
label="在线状态"
prop="zxzt"
:rules="{
required: true,
@ -571,8 +573,9 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="C-机密性"
prop="cjmx"
<el-form-item
label="C-机密性"
prop="cjmx"
:rules="{
required: true,
message: '请选择',
@ -592,8 +595,9 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="I-完整性"
prop="iwzx"
<el-form-item
label="I-完整性"
prop="iwzx"
:rules="{
required: true,
message: '请选择',
@ -611,8 +615,9 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="A-可用性"
prop="akyx"
<el-form-item
label="A-可用性"
prop="akyx"
:rules="{
required: true,
message: '请选择',
@ -978,8 +983,17 @@
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="防篡改">
<el-checkbox-group v-model="xtfhqkFcg">
<el-form-item
label="防篡改"
prop="xtfhqkFcg"
:rules="{
type: 'array',
required: true,
message: '至少选择一项',
trigger: 'change',
}"
>
<el-checkbox-group v-model="ruleForm.xtfhqkFcg">
<!-- <el-checkbox label="网页防篡改产品" name="type"></el-checkbox>
<el-checkbox label="软硬件waf" name="type"></el-checkbox>
<el-checkbox label="云防篡改平台服务" name="type"></el-checkbox>
@ -999,8 +1013,17 @@
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="防泄露">
<el-checkbox-group v-model="xtfhqkFxl">
<el-form-item
label="防泄露"
prop="xtfhqkFxl"
:rules="{
type: 'array',
required: true,
message: '至少选择一项',
trigger: 'change',
}"
>
<el-checkbox-group v-model="ruleForm.xtfhqkFxl">
<!-- <el-checkbox label="加密传输" name="type"></el-checkbox>
<el-checkbox label="加密存储" name="type"></el-checkbox>
<el-checkbox label="散列存储" name="type"></el-checkbox>
@ -1026,8 +1049,17 @@
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="防中断">
<el-checkbox-group v-model="xtfhqkFzd">
<el-form-item
label="防中断"
prop="xtfhqkFzd"
:rules="{
type: 'array',
required: true,
message: '至少选择一项',
trigger: 'change',
}"
>
<el-checkbox-group v-model="ruleForm.xtfhqkFzd">
<!-- <el-checkbox label="备份恢复演练" name="type"></el-checkbox>
<el-checkbox label="应用及灾备" name="type"></el-checkbox>
<el-checkbox label="硬件冗余" name="type"></el-checkbox>
@ -1051,8 +1083,17 @@
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="防勒索">
<el-checkbox-group v-model="xtfhqkFls">
<el-form-item
label="防勒索"
prop="xtfhqkFls"
:rules="{
type: 'array',
required: true,
message: '至少选择一项',
trigger: 'change',
}"
>
<el-checkbox-group v-model="ruleForm.xtfhqkFls">
<!-- <el-checkbox label="数据备份" name="type"></el-checkbox>
<el-checkbox label="补丁更新" name="type"></el-checkbox>
<el-checkbox label="防病毒网关" name="type"></el-checkbox>
@ -5557,19 +5598,19 @@ export default {
type: 3,
},
],
//
xtfhqkFcg: [],
//
xtfhqkFxl: [],
//
xtfhqkFzd: [],
//
xtfhqkFls: [],
},
//
dlwz: ['江苏省', '苏州市', '太仓市'],
dlwz: ["江苏省", "苏州市", "太仓市"],
//
xttz: [],
//
xtfhqkFcg: [],
//
xtfhqkFxl: [],
//
xtfhqkFzd: [],
//
xtfhqkFls: [],
rules: {
bwk: [{ required: true, message: "请输入", trigger: "change" }],
@ -5703,6 +5744,39 @@ export default {
getInfo(id) {
assetInfo(id).then((res) => {
this.ruleForm = res.data;
//
if (typeof this.ruleForm.xtfhqkFcg === "string") {
this.ruleForm.xtfhqkFcg = this.ruleForm.xtfhqkFcg
? this.ruleForm.xtfhqkFcg.split(",")
: [];
} else if (!Array.isArray(this.ruleForm.xtfhqkFcg)) {
this.ruleForm.xtfhqkFcg = [];
}
//
if (typeof this.ruleForm.xtfhqkFxl === "string") {
this.ruleForm.xtfhqkFxl = this.ruleForm.xtfhqkFxl
? this.ruleForm.xtfhqkFxl.split(",")
: [];
} else if (!Array.isArray(this.ruleForm.xtfhqkFxl)) {
this.ruleForm.xtfhqkFxl = [];
}
//
if (typeof this.ruleForm.xtfhqkFzd === "string") {
this.ruleForm.xtfhqkFzd = this.ruleForm.xtfhqkFzd
? this.ruleForm.xtfhqkFzd.split(",")
: [];
} else if (!Array.isArray(this.ruleForm.xtfhqkFzd)) {
this.ruleForm.xtfhqkFzd = [];
}
//
if (typeof this.ruleForm.xtfhqkFls === "string") {
this.ruleForm.xtfhqkFls = this.ruleForm.xtfhqkFls
? this.ruleForm.xtfhqkFls.split(",")
: [];
} else if (!Array.isArray(this.ruleForm.xtfhqkFls)) {
this.ruleForm.xtfhqkFls = [];
}
//
if (!this.ruleForm.xjgywxt) {
this.ruleForm.xjgywxt = {};
this.$set(this.ruleForm.xjgywxt, "remark", "");
@ -5854,18 +5928,18 @@ export default {
},
]
);
this.ruleForm.xtfhqkFcg
? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(","))
: [];
this.ruleForm.xtfhqkFxl
? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(","))
: [];
this.ruleForm.xtfhqkFzd
? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(","))
: [];
this.ruleForm.xtfhqkFls
? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(","))
: [];
// this.ruleForm.xtfhqkFcg
// ? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(","))
// : [];
// this.ruleForm.xtfhqkFxl
// ? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(","))
// : [];
// this.ruleForm.xtfhqkFzd
// ? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(","))
// : [];
// this.ruleForm.xtfhqkFls
// ? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(","))
// : [];
if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) {
this.dlwz = [
@ -5887,6 +5961,39 @@ export default {
getInfoTwo(id) {
lookInfo(id).then((res) => {
this.ruleForm = res.data;
//
if (typeof this.ruleForm.xtfhqkFcg === "string") {
this.ruleForm.xtfhqkFcg = this.ruleForm.xtfhqkFcg
? this.ruleForm.xtfhqkFcg.split(",")
: [];
} else if (!Array.isArray(this.ruleForm.xtfhqkFcg)) {
this.ruleForm.xtfhqkFcg = [];
}
//
if (typeof this.ruleForm.xtfhqkFxl === "string") {
this.ruleForm.xtfhqkFxl = this.ruleForm.xtfhqkFxl
? this.ruleForm.xtfhqkFxl.split(",")
: [];
} else if (!Array.isArray(this.ruleForm.xtfhqkFxl)) {
this.ruleForm.xtfhqkFxl = [];
}
//
if (typeof this.ruleForm.xtfhqkFzd === "string") {
this.ruleForm.xtfhqkFzd = this.ruleForm.xtfhqkFzd
? this.ruleForm.xtfhqkFzd.split(",")
: [];
} else if (!Array.isArray(this.ruleForm.xtfhqkFzd)) {
this.ruleForm.xtfhqkFzd = [];
}
//
if (typeof this.ruleForm.xtfhqkFls === "string") {
this.ruleForm.xtfhqkFls = this.ruleForm.xtfhqkFls
? this.ruleForm.xtfhqkFls.split(",")
: [];
} else if (!Array.isArray(this.ruleForm.xtfhqkFls)) {
this.ruleForm.xtfhqkFls = [];
}
//
if (!this.ruleForm.xjgywxt) {
this.ruleForm.xjgywxt = {};
this.$set(this.ruleForm.xjgywxt, "remark", "");
@ -6125,18 +6232,18 @@ export default {
},
]);
}
this.ruleForm.xtfhqkFcg
? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(","))
: [];
this.ruleForm.xtfhqkFxl
? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(","))
: [];
this.ruleForm.xtfhqkFzd
? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(","))
: [];
this.ruleForm.xtfhqkFls
? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(","))
: [];
// this.ruleForm.xtfhqkFcg
// ? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(","))
// : [];
// this.ruleForm.xtfhqkFxl
// ? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(","))
// : [];
// this.ruleForm.xtfhqkFzd
// ? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(","))
// : [];
// this.ruleForm.xtfhqkFls
// ? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(","))
// : [];
if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) {
this.dlwz = [
@ -6293,10 +6400,22 @@ export default {
console.log(this.ruleForm);
if (valid) {
this.ruleForm.xttz = this.xttz.join(",");
this.ruleForm.xtfhqkFcg = this.xtfhqkFcg.join(",");
this.ruleForm.xtfhqkFxl = this.xtfhqkFxl.join(",");
this.ruleForm.xtfhqkFzd = this.xtfhqkFzd.join(",");
this.ruleForm.xtfhqkFls = this.xtfhqkFls.join(",");
//
this.ruleForm.xtfhqkFcg = Array.isArray(this.ruleForm.xtfhqkFcg)
? this.ruleForm.xtfhqkFcg.join(",")
: "";
//
this.ruleForm.xtfhqkFxl = Array.isArray(this.ruleForm.xtfhqkFxl)
? this.ruleForm.xtfhqkFxl.join(",")
: "";
//
this.ruleForm.xtfhqkFzd = Array.isArray(this.ruleForm.xtfhqkFzd)
? this.ruleForm.xtfhqkFzd.join(",")
: "";
//
this.ruleForm.xtfhqkFls = Array.isArray(this.ruleForm.xtfhqkFls)
? this.ruleForm.xtfhqkFls.join(",")
: "";
this.ruleForm.gylxxList = [
...this.ruleForm.chepingUnit,
...this.ruleForm.yjgysUnit,

Loading…
Cancel
Save