Compare commits

...

2 Commits

@ -694,7 +694,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防篡改"> <el-form-item label="防篡改" required>
<el-checkbox-group v-model="xtfhqkFcg"> <el-checkbox-group v-model="xtfhqkFcg">
<!-- <el-checkbox label="网页防篡改产品" name="type"></el-checkbox> <!-- <el-checkbox label="网页防篡改产品" name="type"></el-checkbox>
<el-checkbox label="软硬件waf" name="type"></el-checkbox> <el-checkbox label="软硬件waf" name="type"></el-checkbox>
@ -715,7 +715,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防泄露"> <el-form-item label="防泄露" required>
<el-checkbox-group v-model="xtfhqkFxl"> <el-checkbox-group v-model="xtfhqkFxl">
<!-- <el-checkbox label="加密传输" name="type"></el-checkbox> <!-- <el-checkbox label="加密传输" name="type"></el-checkbox>
<el-checkbox label="加密存储" name="type"></el-checkbox> <el-checkbox label="加密存储" name="type"></el-checkbox>
@ -742,7 +742,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防中断"> <el-form-item label="防中断" required>
<el-checkbox-group v-model="xtfhqkFzd"> <el-checkbox-group v-model="xtfhqkFzd">
<!-- <el-checkbox label="备份恢复演练" name="type"></el-checkbox> <!-- <el-checkbox label="备份恢复演练" name="type"></el-checkbox>
<el-checkbox label="应用及灾备" name="type"></el-checkbox> <el-checkbox label="应用及灾备" name="type"></el-checkbox>
@ -767,7 +767,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防勒索"> <el-form-item label="防勒索" required>
<el-checkbox-group v-model="xtfhqkFls"> <el-checkbox-group v-model="xtfhqkFls">
<!-- <el-checkbox label="数据备份" name="type"></el-checkbox> <!-- <el-checkbox label="数据备份" name="type"></el-checkbox>
<el-checkbox label="补丁更新" name="type"></el-checkbox> <el-checkbox label="补丁更新" name="type"></el-checkbox>
@ -4274,13 +4274,19 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </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-form-item label="个人信息数据量" required>
<el-input <el-input
:placeholder="'请填写个人信息数据量' + (dataIndex + 1)" :placeholder="'请填写个人信息数据量' + (dataIndex + 1)"
type="number" type="number"
v-model="dataItem.grxxsjl" v-model="dataItem.grxxsjl"
></el-input> >
<template slot="append"></template>
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -4778,7 +4784,7 @@ export default {
], ],
}, },
// //
dlwz: ['江苏省', '苏州市', '太仓市'], dlwz: ["江苏省", "苏州市", "太仓市"],
// //
xttz: [], xttz: [],
// //

@ -21,7 +21,6 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item <el-form-item
label="系统名称" label="系统名称"
:rules="{ :rules="{
required: true, required: true,
message: '请输入', message: '请输入',
@ -113,7 +112,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="使用单位" <el-form-item
label="使用单位"
prop="jsyydw" prop="jsyydw"
:rules="{ :rules="{
required: true, required: true,
@ -362,7 +362,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="系统重要性" <el-form-item
label="系统重要性"
prop="xtzyx" prop="xtzyx"
:rules="{ :rules="{
required: true, required: true,
@ -552,7 +553,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="在线状态" <el-form-item
label="在线状态"
prop="zxzt" prop="zxzt"
:rules="{ :rules="{
required: true, required: true,
@ -571,7 +573,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="C-机密性" <el-form-item
label="C-机密性"
prop="cjmx" prop="cjmx"
:rules="{ :rules="{
required: true, required: true,
@ -592,7 +595,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="I-完整性" <el-form-item
label="I-完整性"
prop="iwzx" prop="iwzx"
:rules="{ :rules="{
required: true, required: true,
@ -611,7 +615,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="A-可用性" <el-form-item
label="A-可用性"
prop="akyx" prop="akyx"
:rules="{ :rules="{
required: true, required: true,
@ -978,8 +983,17 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防篡改"> <el-form-item
<el-checkbox-group v-model="xtfhqkFcg"> 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="网页防篡改产品" name="type"></el-checkbox>
<el-checkbox label="软硬件waf" name="type"></el-checkbox> <el-checkbox label="软硬件waf" name="type"></el-checkbox>
<el-checkbox label="云防篡改平台服务" name="type"></el-checkbox> <el-checkbox label="云防篡改平台服务" name="type"></el-checkbox>
@ -999,8 +1013,17 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防泄露"> <el-form-item
<el-checkbox-group v-model="xtfhqkFxl"> 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> <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-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防中断"> <el-form-item
<el-checkbox-group v-model="xtfhqkFzd"> 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> <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-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防勒索"> <el-form-item
<el-checkbox-group v-model="xtfhqkFls"> 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> <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-select>
</el-form-item> </el-form-item>
</el-col> </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 <el-form-item
label="个人信息数据量" label="个人信息数据量"
:prop="`sjzcList[${dataIndex}].grxxsjl`" :prop="`sjzcList[${dataIndex}].grxxsjl`"
@ -5108,7 +5153,9 @@
:placeholder="'请填写个人信息数据量' + (dataIndex + 1)" :placeholder="'请填写个人信息数据量' + (dataIndex + 1)"
type="number" type="number"
v-model="dataItem.grxxsjl" v-model="dataItem.grxxsjl"
></el-input> >
<template slot="append"></template>
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -5557,11 +5604,6 @@ export default {
type: 3, type: 3,
}, },
], ],
},
//
dlwz: ['江苏省', '苏州市', '太仓市'],
//
xttz: [],
// //
xtfhqkFcg: [], xtfhqkFcg: [],
// //
@ -5570,6 +5612,11 @@ export default {
xtfhqkFzd: [], xtfhqkFzd: [],
// //
xtfhqkFls: [], xtfhqkFls: [],
},
//
dlwz: ["江苏省", "苏州市", "太仓市"],
//
xttz: [],
rules: { rules: {
bwk: [{ required: true, message: "请输入", trigger: "change" }], bwk: [{ required: true, message: "请输入", trigger: "change" }],
@ -5703,6 +5750,39 @@ export default {
getInfo(id) { getInfo(id) {
assetInfo(id).then((res) => { assetInfo(id).then((res) => {
this.ruleForm = res.data; 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) { if (!this.ruleForm.xjgywxt) {
this.ruleForm.xjgywxt = {}; this.ruleForm.xjgywxt = {};
this.$set(this.ruleForm.xjgywxt, "remark", ""); this.$set(this.ruleForm.xjgywxt, "remark", "");
@ -5854,18 +5934,18 @@ export default {
}, },
] ]
); );
this.ruleForm.xtfhqkFcg // this.ruleForm.xtfhqkFcg
? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(",")) // ? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(","))
: []; // : [];
this.ruleForm.xtfhqkFxl // this.ruleForm.xtfhqkFxl
? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(",")) // ? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(","))
: []; // : [];
this.ruleForm.xtfhqkFzd // this.ruleForm.xtfhqkFzd
? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(",")) // ? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(","))
: []; // : [];
this.ruleForm.xtfhqkFls // this.ruleForm.xtfhqkFls
? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(",")) // ? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(","))
: []; // : [];
if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) { if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) {
this.dlwz = [ this.dlwz = [
@ -5887,6 +5967,39 @@ export default {
getInfoTwo(id) { getInfoTwo(id) {
lookInfo(id).then((res) => { lookInfo(id).then((res) => {
this.ruleForm = res.data; 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) { if (!this.ruleForm.xjgywxt) {
this.ruleForm.xjgywxt = {}; this.ruleForm.xjgywxt = {};
this.$set(this.ruleForm.xjgywxt, "remark", ""); this.$set(this.ruleForm.xjgywxt, "remark", "");
@ -6125,18 +6238,18 @@ export default {
}, },
]); ]);
} }
this.ruleForm.xtfhqkFcg // this.ruleForm.xtfhqkFcg
? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(",")) // ? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(","))
: []; // : [];
this.ruleForm.xtfhqkFxl // this.ruleForm.xtfhqkFxl
? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(",")) // ? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(","))
: []; // : [];
this.ruleForm.xtfhqkFzd // this.ruleForm.xtfhqkFzd
? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(",")) // ? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(","))
: []; // : [];
this.ruleForm.xtfhqkFls // this.ruleForm.xtfhqkFls
? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(",")) // ? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(","))
: []; // : [];
if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) { if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) {
this.dlwz = [ this.dlwz = [
@ -6293,10 +6406,22 @@ export default {
console.log(this.ruleForm); console.log(this.ruleForm);
if (valid) { if (valid) {
this.ruleForm.xttz = this.xttz.join(","); this.ruleForm.xttz = this.xttz.join(",");
this.ruleForm.xtfhqkFcg = this.xtfhqkFcg.join(","); //
this.ruleForm.xtfhqkFxl = this.xtfhqkFxl.join(","); this.ruleForm.xtfhqkFcg = Array.isArray(this.ruleForm.xtfhqkFcg)
this.ruleForm.xtfhqkFzd = this.xtfhqkFzd.join(","); ? this.ruleForm.xtfhqkFcg.join(",")
this.ruleForm.xtfhqkFls = this.xtfhqkFls.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.gylxxList = [
...this.ruleForm.chepingUnit, ...this.ruleForm.chepingUnit,
...this.ruleForm.yjgysUnit, ...this.ruleForm.yjgysUnit,

@ -110,7 +110,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="使用单位" <el-form-item
label="使用单位"
prop="jsyydw" prop="jsyydw"
:rules="{ :rules="{
required: true, required: true,
@ -331,7 +332,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="系统重要性" <el-form-item
label="系统重要性"
prop="xtzyx" prop="xtzyx"
:rules="{ :rules="{
required: true, required: true,
@ -500,7 +502,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="在线状态" <el-form-item
label="在线状态"
prop="zxzt" prop="zxzt"
:rules="{ :rules="{
required: true, required: true,
@ -519,7 +522,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="C-机密性" <el-form-item
label="C-机密性"
prop="cjmx" prop="cjmx"
:rules="{ :rules="{
required: true, required: true,
@ -540,7 +544,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="I-完整性" <el-form-item
label="I-完整性"
prop="iwzx" prop="iwzx"
:rules="{ :rules="{
required: true, required: true,
@ -559,7 +564,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="A-可用性" <el-form-item
label="A-可用性"
prop="akyx" prop="akyx"
:rules="{ :rules="{
required: true, required: true,
@ -928,8 +934,12 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防篡改"> <el-form-item
<el-checkbox-group v-model="xtfhqkFcg"> label="防篡改"
prop="xtfhqkFcg"
:rules="rules.xtfhqkFcg"
>
<el-checkbox-group v-model="ruleForm.xtfhqkFcg">
<!-- <el-checkbox label="网页防篡改产品" name="type"></el-checkbox> <!-- <el-checkbox label="网页防篡改产品" name="type"></el-checkbox>
<el-checkbox label="软硬件waf" name="type"></el-checkbox> <el-checkbox label="软硬件waf" name="type"></el-checkbox>
<el-checkbox label="云防篡改平台服务" name="type"></el-checkbox> <el-checkbox label="云防篡改平台服务" name="type"></el-checkbox>
@ -949,8 +959,12 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防泄露"> <el-form-item
<el-checkbox-group v-model="xtfhqkFxl"> 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> <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-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防中断"> <el-form-item
<el-checkbox-group v-model="xtfhqkFzd"> 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> <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-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防勒索"> <el-form-item
<el-checkbox-group v-model="xtfhqkFls"> 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> <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-select>
</el-form-item> </el-form-item>
</el-col> </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 <el-form-item
label="个人信息数据量" label="个人信息数据量"
:prop="`sjzcList[${dataIndex}].grxxsjl`" :prop="`sjzcList[${dataIndex}].grxxsjl`"
@ -4962,7 +4988,9 @@
:placeholder="'请填写个人信息数据量' + (dataIndex + 1)" :placeholder="'请填写个人信息数据量' + (dataIndex + 1)"
type="number" type="number"
v-model="dataItem.grxxsjl" v-model="dataItem.grxxsjl"
></el-input> >
<template slot="append"></template>
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -5356,11 +5384,6 @@ export default {
type: 3, type: 3,
}, },
], ],
},
//
dlwz: ['江苏省', '苏州市', '太仓市'],
//
xttz: [],
// //
xtfhqkFcg: [], xtfhqkFcg: [],
// //
@ -5369,9 +5392,46 @@ export default {
xtfhqkFzd: [], xtfhqkFzd: [],
// //
xtfhqkFls: [], xtfhqkFls: [],
},
//
dlwz: ["江苏省", "苏州市", "太仓市"],
//
xttz: [],
rules: { rules: {
bwk: [{ required: true, message: "请输入", trigger: "change" }], 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: [ ywxttpt: [
{ {
required: true, required: true,
@ -5483,6 +5543,36 @@ export default {
} }
}, },
hebingfun() { 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) { if (!this.ruleForm.xjgywxt) {
this.ruleForm.xjgywxt = {}; this.ruleForm.xjgywxt = {};
this.$set(this.ruleForm.xjgywxt, "remark", ""); 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.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.ruleForm.xtfhqkFcg
? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(",")) // ? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(","))
: []; // : [];
this.ruleForm.xtfhqkFcg // this.ruleForm.xtfhqkFcg
? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(",")) // ? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(","))
: []; // : [];
this.ruleForm.xtfhqkFcg // this.ruleForm.xtfhqkFcg
? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(",")) // ? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(","))
: []; // : [];
this.ruleForm.xtfhqkFcg // this.ruleForm.xtfhqkFcg
? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(",")) // ? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(","))
: []; // : [];
if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) { if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) {
this.dlwz = [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) { if (type == 1) {
this.$refs["ruleForm"].validate((valid) => { this.$refs["ruleForm"].validate((valid) => {
if (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 = { let tijioaobj = {
taskId: this.$route.query.taskId, taskId: this.$route.query.taskId,
assetId: this.$route.query.assetId, assetId: this.$route.query.assetId,
@ -5834,7 +5940,7 @@ export default {
dwmc: this.$route.query.zcdwmc, dwmc: this.$route.query.zcdwmc,
status: 3, status: 3,
type: this.$route.query.type, type: this.$route.query.type,
assetCurrentCpPo: this.ruleForm, assetCurrentCpPo: submitForm, //
}; };
tijioaobj.status = 3; tijioaobj.status = 3;
assetTasksh(tijioaobj).then((res) => { assetTasksh(tijioaobj).then((res) => {
@ -5846,7 +5952,6 @@ export default {
}); });
} else { } else {
this.loading = false; this.loading = false;
this.$message({ this.$message({
type: "info", type: "info",
message: "请填写完整", message: "请填写完整",

@ -110,7 +110,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="使用单位" <el-form-item
label="使用单位"
prop="jsyydw" prop="jsyydw"
:rules="{ :rules="{
required: true, required: true,
@ -355,7 +356,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="系统重要性" <el-form-item
label="系统重要性"
prop="xtzyx" prop="xtzyx"
:rules="{ :rules="{
required: true, required: true,
@ -524,7 +526,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="在线状态" <el-form-item
label="在线状态"
prop="zxzt" prop="zxzt"
:rules="{ :rules="{
required: true, required: true,
@ -543,7 +546,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="C-机密性" <el-form-item
label="C-机密性"
prop="cjmx" prop="cjmx"
:rules="{ :rules="{
required: true, required: true,
@ -564,7 +568,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="I-完整性" <el-form-item
label="I-完整性"
prop="iwzx" prop="iwzx"
:rules="{ :rules="{
required: true, required: true,
@ -583,7 +588,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="A-可用性" <el-form-item
label="A-可用性"
prop="akyx" prop="akyx"
:rules="{ :rules="{
required: true, required: true,
@ -952,8 +958,12 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防篡改"> <el-form-item
<el-checkbox-group v-model="xtfhqkFcg"> label="防篡改"
prop="xtfhqkFcg"
:rules="rules.xtfhqkFcg"
>
<el-checkbox-group v-model="ruleForm.xtfhqkFcg">
<!-- <el-checkbox label="网页防篡改产品" name="type"></el-checkbox> <!-- <el-checkbox label="网页防篡改产品" name="type"></el-checkbox>
<el-checkbox label="软硬件waf" name="type"></el-checkbox> <el-checkbox label="软硬件waf" name="type"></el-checkbox>
<el-checkbox label="云防篡改平台服务" name="type"></el-checkbox> <el-checkbox label="云防篡改平台服务" name="type"></el-checkbox>
@ -973,8 +983,12 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防泄露"> <el-form-item
<el-checkbox-group v-model="xtfhqkFxl"> 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> <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-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防中断"> <el-form-item
<el-checkbox-group v-model="xtfhqkFzd"> 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> <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-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="防勒索"> <el-form-item
<el-checkbox-group v-model="xtfhqkFls"> 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> <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-row style="display: flex">
<el-col :span="12"> <el-col :span="12">
<el-form-item <el-form-item
label="系统建设单位名称"
:prop="`xtjsUnit[${index}].name`" :prop="`xtjsUnit[${index}].name`"
:rules="{ :rules="{
required: true, required: true,
@ -5068,7 +5091,11 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </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 <el-form-item
label="个人信息数据量" label="个人信息数据量"
:prop="`sjzcList[${dataIndex}].grxxsjl`" :prop="`sjzcList[${dataIndex}].grxxsjl`"
@ -5078,7 +5105,9 @@
:placeholder="'请填写个人信息数据量' + (dataIndex + 1)" :placeholder="'请填写个人信息数据量' + (dataIndex + 1)"
type="number" type="number"
v-model="dataItem.grxxsjl" v-model="dataItem.grxxsjl"
></el-input> >
<template slot="append"></template>
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -5472,11 +5501,6 @@ export default {
type: 3, type: 3,
}, },
], ],
},
//
dlwz: ['江苏省', '苏州市', '太仓市'],
//
xttz: [],
// //
xtfhqkFcg: [], xtfhqkFcg: [],
// //
@ -5485,6 +5509,11 @@ export default {
xtfhqkFzd: [], xtfhqkFzd: [],
// //
xtfhqkFls: [], xtfhqkFls: [],
},
//
dlwz: ["江苏省", "苏州市", "太仓市"],
//
xttz: [],
dialogruleForm: { dialogruleForm: {
bfyy: "", bfyy: "",
}, },
@ -5492,6 +5521,39 @@ export default {
bfyy: [{ required: true, message: "请输入", trigger: "blur" }], bfyy: [{ required: true, message: "请输入", trigger: "blur" }],
}, },
rules: { 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" }], bwk: [{ required: true, message: "请输入", trigger: "change" }],
ywxttpt: [ ywxttpt: [
{ {
@ -5613,6 +5675,35 @@ export default {
this.loading = true; this.loading = true;
assetTasktaskSh(obj).then((res) => { assetTasktaskSh(obj).then((res) => {
this.ruleForm = res.data; 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) { if (!this.ruleForm.xjgywxt) {
this.ruleForm.xjgywxt = {}; this.ruleForm.xjgywxt = {};
this.$set(this.ruleForm.xjgywxt, "remark", ""); 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.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.ruleForm.xtfhqkFcg
? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(",")) // ? (this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(","))
: []; // : [];
this.ruleForm.xtfhqkFcg // this.ruleForm.xtfhqkFcg
? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(",")) // ? (this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(","))
: []; // : [];
this.ruleForm.xtfhqkFcg // this.ruleForm.xtfhqkFcg
? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(",")) // ? (this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(","))
: []; // : [];
this.ruleForm.xtfhqkFcg // this.ruleForm.xtfhqkFcg
? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(",")) // ? (this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(","))
: []; // : [];
if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) { if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) {
this.dlwz = [ this.dlwz = [
@ -5795,6 +5886,37 @@ export default {
} else if (this.ruleForm.sheng) { } else if (this.ruleForm.sheng) {
this.dlwz = [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; this.loading = false;
}); });
}, },
@ -5925,42 +6047,50 @@ export default {
newAssets(type) { newAssets(type) {
if (type == 1) { if (type == 1) {
this.loading = true; this.loading = true;
//
this.$router.go(-1); this.$router.go(-1);
this.loading = false; this.loading = false;
return; return;
} }
this.ruleForm.taskId = this.$route.query.taskId; // this.ruleForm
this.ruleForm.assetId = this.$route.query.assetId; let submitData = JSON.parse(JSON.stringify(this.ruleForm));
submitData.taskId = this.$route.query.taskId;
this.ruleForm.xttz = this.xttz.join(","); submitData.assetId = this.$route.query.assetId;
this.ruleForm.xtfhqkFcg = this.xtfhqkFcg.join(","); //
this.ruleForm.xtfhqkFxl = this.xtfhqkFxl.join(","); submitData.xttz = this.xttz.join(",");
this.ruleForm.xtfhqkFzd = this.xtfhqkFzd.join(","); submitData.xtfhqkFcg = Array.isArray(submitData.xtfhqkFcg)
this.ruleForm.xtfhqkFls = this.xtfhqkFls.join(","); ? submitData.xtfhqkFcg.join(",")
this.ruleForm.gylxxList = [ : "";
...this.ruleForm.chepingUnit, submitData.xtfhqkFxl = Array.isArray(submitData.xtfhqkFxl)
...this.ruleForm.yjgysUnit, ? submitData.xtfhqkFxl.join(",")
...this.ruleForm.jfywUnit, : "";
...this.ruleForm.xtsjUnit, submitData.xtfhqkFzd = Array.isArray(submitData.xtfhqkFzd)
...this.ruleForm.xtjsUnit, ? submitData.xtfhqkFzd.join(",")
...this.ruleForm.xtyyUnit, : "";
...this.ruleForm.aqfwUnit, 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 = [ submitData.jcwlList = [
...this.ruleForm.fwqxx, ...submitData.fwqxx,
...this.ruleForm.wlsb, ...submitData.wlsb,
...this.ruleForm.aqsb, ...submitData.aqsb,
]; ];
if (this.dlwz.length > 0) { if (this.dlwz.length > 0) {
this.ruleForm.sheng = this.dlwz[0]; submitData.sheng = this.dlwz[0];
this.ruleForm.shi = this.dlwz[1]; submitData.shi = this.dlwz[1];
this.ruleForm.qu = this.dlwz[2]; submitData.qu = this.dlwz[2];
} }
if (this.ruleForm.fwwz) { if (submitData.fwwz) {
this.ruleForm.fwwz = this.select + "-" + this.ruleForm.fwwz; submitData.fwwz = this.select + "-" + submitData.fwwz;
} }
if (type == 0) { if (type == 0) {
this.$refs.liebiaoDialog.open(); this.$refs.liebiaoDialog.open();
@ -5968,10 +6098,7 @@ export default {
if (type == 2) { if (type == 2) {
this.loading = true; this.loading = true;
assetTaskzc(submitData).then((res) => {
//
assetTaskzc(this.ruleForm).then((res) => {
console.log(res, "res");
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.$router.go(-1); this.$router.go(-1);
this.loading = false; this.loading = false;
@ -5979,20 +6106,15 @@ export default {
} }
if (type == 3) { if (type == 3) {
this.loading = true; this.loading = true;
console.log(this.ruleForm);
//
this.$refs["ruleForm"].validate((valid) => { this.$refs["ruleForm"].validate((valid) => {
if (valid) { if (valid) {
assetTaskjyTj(this.ruleForm).then((res) => { assetTaskjyTj(submitData).then((res) => {
console.log(res, "res");
this.$modal.msgSuccess("提交成功"); this.$modal.msgSuccess("提交成功");
this.$router.go(-1); this.$router.go(-1);
this.loading = false; this.loading = false;
}); });
} else { } else {
this.loading = false; this.loading = false;
this.$message({ this.$message({
type: "info", type: "info",
message: "请填写完整", message: "请填写完整",

Loading…
Cancel
Save