Compare commits

...

2 Commits

@ -18,7 +18,7 @@
>
<el-row>
<el-col :span="12">
<el-form-item label="系统名称" prop="xtmc">
<el-form-item label="系统名称" prop="xtmc">
<el-input
v-model="ruleForm.xtmc"
placeholder="请输入系统名称"
@ -26,7 +26,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="单位名称" prop="dwmc">
<el-form-item label="单位名称" prop="dwmc">
<el-autocomplete
v-model="ruleForm.dwmc"
:fetch-suggestions="querySearchAsync"
@ -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>
@ -4274,13 +4274,19 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px">
<el-col
:span="12"
style="margin-left: 10px"
v-if="dataItem.sfsjgrxx == 1"
>
<el-form-item label="个人信息数据量" required>
<el-input
:placeholder="'请填写个人信息数据量' + (dataIndex + 1)"
type="number"
v-model="dataItem.grxxsjl"
></el-input>
>
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col>
</el-row>
@ -4778,7 +4784,7 @@ export default {
],
},
//
dlwz: ['江苏省', '苏州市', '太仓市'],
dlwz: ["江苏省", "苏州市", "太仓市"],
//
xttz: [],
//

@ -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>
@ -5098,7 +5139,11 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px">
<el-col
:span="12"
style="margin-left: 10px"
v-if="dataItem.sfsjgrxx == 1"
>
<el-form-item
label="个人信息数据量"
:prop="`sjzcList[${dataIndex}].grxxsjl`"
@ -5108,7 +5153,9 @@
:placeholder="'请填写个人信息数据量' + (dataIndex + 1)"
type="number"
v-model="dataItem.grxxsjl"
></el-input>
>
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col>
</el-row>
@ -5557,19 +5604,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 +5750,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 +5934,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 +5967,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 +6238,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 +6406,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,

@ -110,7 +110,8 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="使用单位"
<el-form-item
label="使用单位"
prop="jsyydw"
:rules="{
required: true,
@ -331,8 +332,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: '请选择',
@ -500,8 +502,9 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="在线状态"
prop="zxzt"
<el-form-item
label="在线状态"
prop="zxzt"
:rules="{
required: true,
message: '请选择',
@ -519,8 +522,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: '请选择',
@ -540,8 +544,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: '请选择',
@ -559,8 +564,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: '请选择',
@ -928,8 +934,12 @@
</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="rules.xtfhqkFcg"
>
<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>
@ -949,8 +959,12 @@
</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="rules.xtfhqkFxl"
>
<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>
@ -976,8 +990,12 @@
</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="rules.xtfhqkFzd"
>
<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>
@ -1001,8 +1019,12 @@
</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="rules.xtfhqkFls"
>
<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>
@ -4952,7 +4974,11 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px">
<el-col
:span="12"
style="margin-left: 10px"
v-if="dataItem.sfsjgrxx == '1'"
>
<el-form-item
label="个人信息数据量"
:prop="`sjzcList[${dataIndex}].grxxsjl`"
@ -4962,7 +4988,9 @@
:placeholder="'请填写个人信息数据量' + (dataIndex + 1)"
type="number"
v-model="dataItem.grxxsjl"
></el-input>
>
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col>
</el-row>
@ -5356,22 +5384,54 @@ export default {
type: 3,
},
],
//
xtfhqkFcg: [],
//
xtfhqkFxl: [],
//
xtfhqkFzd: [],
//
xtfhqkFls: [],
},
//
dlwz: ['江苏省', '苏州市', '太仓市'],
dlwz: ["江苏省", "苏州市", "太仓市"],
//
xttz: [],
//
xtfhqkFcg: [],
//
xtfhqkFxl: [],
//
xtfhqkFzd: [],
//
xtfhqkFls: [],
rules: {
bwk: [{ required: true, message: "请输入", trigger: "change" }],
xtfhqkFcg: [
{
type: "array",
required: true,
message: "至少选择一项",
trigger: "change",
},
],
xtfhqkFxl: [
{
type: "array",
required: true,
message: "至少选择一项",
trigger: "change",
},
],
xtfhqkFzd: [
{
type: "array",
required: true,
message: "至少选择一项",
trigger: "change",
},
],
xtfhqkFls: [
{
type: "array",
required: true,
message: "至少选择一项",
trigger: "change",
},
],
ywxttpt: [
{
required: true,
@ -5483,6 +5543,36 @@ export default {
}
},
hebingfun() {
//
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", "");
@ -5641,18 +5731,18 @@ export default {
// this.ruleForm.aqsb = (this.ruleForm.jcwlList.filter((item) => item.type == 3) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 3) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 3 }])
this.ruleForm.xtfhqkFcg
? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(","))
: [];
this.ruleForm.xtfhqkFcg
? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(","))
: [];
this.ruleForm.xtfhqkFcg
? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(","))
: [];
this.ruleForm.xtfhqkFcg
? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(","))
: [];
// this.ruleForm.xtfhqkFcg
// ? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(","))
// : [];
// this.ruleForm.xtfhqkFcg
// ? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(","))
// : [];
// this.ruleForm.xtfhqkFcg
// ? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(","))
// : [];
// this.ruleForm.xtfhqkFcg
// ? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(","))
// : [];
if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) {
this.dlwz = [this.ruleForm.sheng, this.ruleForm.shi, this.ruleForm.qu];
@ -5827,6 +5917,22 @@ export default {
if (type == 1) {
this.$refs["ruleForm"].validate((valid) => {
if (valid) {
// 1. ruleForm
let submitForm = JSON.parse(JSON.stringify(this.ruleForm));
// 2.
submitForm.xtfhqkFcg = Array.isArray(submitForm.xtfhqkFcg)
? submitForm.xtfhqkFcg.join(",")
: "";
submitForm.xtfhqkFxl = Array.isArray(submitForm.xtfhqkFxl)
? submitForm.xtfhqkFxl.join(",")
: "";
submitForm.xtfhqkFzd = Array.isArray(submitForm.xtfhqkFzd)
? submitForm.xtfhqkFzd.join(",")
: "";
submitForm.xtfhqkFls = Array.isArray(submitForm.xtfhqkFls)
? submitForm.xtfhqkFls.join(",")
: "";
let tijioaobj = {
taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId,
@ -5834,7 +5940,7 @@ export default {
dwmc: this.$route.query.zcdwmc,
status: 3,
type: this.$route.query.type,
assetCurrentCpPo: this.ruleForm,
assetCurrentCpPo: submitForm, //
};
tijioaobj.status = 3;
assetTasksh(tijioaobj).then((res) => {
@ -5846,7 +5952,6 @@ export default {
});
} else {
this.loading = false;
this.$message({
type: "info",
message: "请填写完整",

@ -110,7 +110,8 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="使用单位"
<el-form-item
label="使用单位"
prop="jsyydw"
:rules="{
required: true,
@ -355,8 +356,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: '请选择',
@ -524,8 +526,9 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="在线状态"
prop="zxzt"
<el-form-item
label="在线状态"
prop="zxzt"
:rules="{
required: true,
message: '请选择',
@ -543,8 +546,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: '请选择',
@ -564,8 +568,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: '请选择',
@ -583,8 +588,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: '请选择',
@ -952,8 +958,12 @@
</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="rules.xtfhqkFcg"
>
<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>
@ -973,8 +983,12 @@
</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="rules.xtfhqkFxl"
>
<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>
@ -1000,8 +1014,12 @@
</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="rules.xtfhqkFzd"
>
<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>
@ -1025,8 +1043,12 @@
</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="rules.xtfhqkFls"
>
<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>
@ -2703,6 +2725,7 @@
<el-row style="display: flex">
<el-col :span="12">
<el-form-item
label="系统建设单位名称"
:prop="`xtjsUnit[${index}].name`"
:rules="{
required: true,
@ -5068,7 +5091,11 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px">
<el-col
:span="12"
style="margin-left: 10px"
v-if="dataItem.sfsjgrxx == 1"
>
<el-form-item
label="个人信息数据量"
:prop="`sjzcList[${dataIndex}].grxxsjl`"
@ -5078,7 +5105,9 @@
:placeholder="'请填写个人信息数据量' + (dataIndex + 1)"
type="number"
v-model="dataItem.grxxsjl"
></el-input>
>
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col>
</el-row>
@ -5472,19 +5501,19 @@ export default {
type: 3,
},
],
//
xtfhqkFcg: [],
//
xtfhqkFxl: [],
//
xtfhqkFzd: [],
//
xtfhqkFls: [],
},
//
dlwz: ['江苏省', '苏州市', '太仓市'],
dlwz: ["江苏省", "苏州市", "太仓市"],
//
xttz: [],
//
xtfhqkFcg: [],
//
xtfhqkFxl: [],
//
xtfhqkFzd: [],
//
xtfhqkFls: [],
dialogruleForm: {
bfyy: "",
},
@ -5492,6 +5521,39 @@ export default {
bfyy: [{ required: true, message: "请输入", trigger: "blur" }],
},
rules: {
// ()
xtfhqkFcg: [
{
type: "array",
required: true,
message: "至少选择一项",
trigger: "change",
},
],
xtfhqkFxl: [
{
type: "array",
required: true,
message: "至少选择一项",
trigger: "change",
},
],
xtfhqkFzd: [
{
type: "array",
required: true,
message: "至少选择一项",
trigger: "change",
},
],
xtfhqkFls: [
{
type: "array",
required: true,
message: "至少选择一项",
trigger: "change",
},
],
bwk: [{ required: true, message: "请输入", trigger: "change" }],
ywxttpt: [
{
@ -5613,6 +5675,35 @@ export default {
this.loading = true;
assetTasktaskSh(obj).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", "");
@ -5771,18 +5862,18 @@ export default {
// this.ruleForm.aqsb = (this.ruleForm.jcwlList.filter((item) => item.type == 3) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 3) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 3 }])
this.ruleForm.xtfhqkFcg
? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(","))
: [];
this.ruleForm.xtfhqkFcg
? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(","))
: [];
this.ruleForm.xtfhqkFcg
? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(","))
: [];
this.ruleForm.xtfhqkFcg
? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(","))
: [];
// this.ruleForm.xtfhqkFcg
// ? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(","))
// : [];
// this.ruleForm.xtfhqkFcg
// ? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(","))
// : [];
// this.ruleForm.xtfhqkFcg
// ? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(","))
// : [];
// this.ruleForm.xtfhqkFcg
// ? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(","))
// : [];
if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) {
this.dlwz = [
@ -5795,6 +5886,37 @@ export default {
} else if (this.ruleForm.sheng) {
this.dlwz = [this.ruleForm.sheng];
}
//
if (
!Array.isArray(this.ruleForm.sjzcList) ||
this.ruleForm.sjzcList.length === 0
) {
this.$set(this.ruleForm, "sjzcList", [
{
grxxsjl: 0,
sjzcSjkmc: "",
sjzcSjklx: "",
sjzcDk: "",
sjzcSjkbb: "",
sjzcSjkIp: "",
sjzcGxsx: "",
sjzcKfsx: "",
sjzcSjly: "",
sjzcGxzq: "",
sjzcSjlx: "",
sjzcSjl: "",
sjzcSjldw: "",
sjzcCj: "",
sjzcSjfjfl: "",
sjzcSjzycd: "",
sjzcSmsj: "",
sjzcSjms: "",
sfsjgrxx: "",
grxxsjl: "",
},
]);
}
this.loading = false;
});
},
@ -5925,42 +6047,50 @@ export default {
newAssets(type) {
if (type == 1) {
this.loading = true;
//
this.$router.go(-1);
this.loading = false;
return;
}
this.ruleForm.taskId = this.$route.query.taskId;
this.ruleForm.assetId = this.$route.query.assetId;
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.gylxxList = [
...this.ruleForm.chepingUnit,
...this.ruleForm.yjgysUnit,
...this.ruleForm.jfywUnit,
...this.ruleForm.xtsjUnit,
...this.ruleForm.xtjsUnit,
...this.ruleForm.xtyyUnit,
...this.ruleForm.aqfwUnit,
// this.ruleForm
let submitData = JSON.parse(JSON.stringify(this.ruleForm));
submitData.taskId = this.$route.query.taskId;
submitData.assetId = this.$route.query.assetId;
//
submitData.xttz = this.xttz.join(",");
submitData.xtfhqkFcg = Array.isArray(submitData.xtfhqkFcg)
? submitData.xtfhqkFcg.join(",")
: "";
submitData.xtfhqkFxl = Array.isArray(submitData.xtfhqkFxl)
? submitData.xtfhqkFxl.join(",")
: "";
submitData.xtfhqkFzd = Array.isArray(submitData.xtfhqkFzd)
? submitData.xtfhqkFzd.join(",")
: "";
submitData.xtfhqkFls = Array.isArray(submitData.xtfhqkFls)
? submitData.xtfhqkFls.join(",")
: "";
submitData.gylxxList = [
...submitData.chepingUnit,
...submitData.yjgysUnit,
...submitData.jfywUnit,
...submitData.xtsjUnit,
...submitData.xtjsUnit,
...submitData.xtyyUnit,
...submitData.aqfwUnit,
];
this.ruleForm.jcwlList = [
...this.ruleForm.fwqxx,
...this.ruleForm.wlsb,
...this.ruleForm.aqsb,
submitData.jcwlList = [
...submitData.fwqxx,
...submitData.wlsb,
...submitData.aqsb,
];
if (this.dlwz.length > 0) {
this.ruleForm.sheng = this.dlwz[0];
this.ruleForm.shi = this.dlwz[1];
this.ruleForm.qu = this.dlwz[2];
submitData.sheng = this.dlwz[0];
submitData.shi = this.dlwz[1];
submitData.qu = this.dlwz[2];
}
if (this.ruleForm.fwwz) {
this.ruleForm.fwwz = this.select + "-" + this.ruleForm.fwwz;
if (submitData.fwwz) {
submitData.fwwz = this.select + "-" + submitData.fwwz;
}
if (type == 0) {
this.$refs.liebiaoDialog.open();
@ -5968,10 +6098,7 @@ export default {
if (type == 2) {
this.loading = true;
//
assetTaskzc(this.ruleForm).then((res) => {
console.log(res, "res");
assetTaskzc(submitData).then((res) => {
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
this.loading = false;
@ -5979,20 +6106,15 @@ export default {
}
if (type == 3) {
this.loading = true;
console.log(this.ruleForm);
//
this.$refs["ruleForm"].validate((valid) => {
if (valid) {
assetTaskjyTj(this.ruleForm).then((res) => {
console.log(res, "res");
assetTaskjyTj(submitData).then((res) => {
this.$modal.msgSuccess("提交成功");
this.$router.go(-1);
this.loading = false;
});
} else {
this.loading = false;
this.$message({
type: "info",
message: "请填写完整",

Loading…
Cancel
Save