连接器去掉IP地址和域名信息;供应商信息和等保信息改成非必填
Showing
3 changed files
with
52 additions
and
50 deletions
| ... | @@ -6,7 +6,7 @@ pipeline { | ... | @@ -6,7 +6,7 @@ pipeline { |
| 6 | SVN_FOLD = "fe-data-trusted-space-connector" | 6 | SVN_FOLD = "fe-data-trusted-space-connector" |
| 7 | SSH_PATH = "js-match" | 7 | SSH_PATH = "js-match" |
| 8 | SVN_TYPE = "temp" | 8 | SVN_TYPE = "temp" |
| 9 | image_tag = "1.0.1-arm" | 9 | image_tag = "1.0.2-arm" |
| 10 | ip = "121.237.182.192:30002" | 10 | ip = "121.237.182.192:30002" |
| 11 | port = "59900" | 11 | port = "59900" |
| 12 | vport = "80" | 12 | vport = "80" | ... | ... |
| ... | @@ -372,14 +372,14 @@ const fileKeyNames = ref({ | ... | @@ -372,14 +372,14 @@ const fileKeyNames = ref({ |
| 372 | <span class="item_label">可信凭证证书:</span> | 372 | <span class="item_label">可信凭证证书:</span> |
| 373 | <span class="item_value link" @click="viewVoucherFile">查看</span> | 373 | <span class="item_value link" @click="viewVoucherFile">查看</span> |
| 374 | </div> --> | 374 | </div> --> |
| 375 | <div class="list_item is_block"> | 375 | <!-- <div class="list_item is_block"> |
| 376 | <span class="item_label">IP地址列表:</span> | 376 | <span class="item_label">IP地址列表:</span> |
| 377 | <span class="item_value">{{ flowDetail.ipAddressList?.join(',') || '--' }}</span> | 377 | <span class="item_value">{{ flowDetail.ipAddressList?.join(',') || '--' }}</span> |
| 378 | </div> | 378 | </div> |
| 379 | <div class="list_item is_block"> | 379 | <div class="list_item is_block"> |
| 380 | <span class="item_label">域名信息:</span> | 380 | <span class="item_label">域名信息:</span> |
| 381 | <span class="item_value">{{ flowDetail.domainList?.join(',') || '--' }}</span> | 381 | <span class="item_value">{{ flowDetail.domainList?.join(',') || '--' }}</span> |
| 382 | </div> | 382 | </div> --> |
| 383 | </div> | 383 | </div> |
| 384 | </ContentWrap> | 384 | </ContentWrap> |
| 385 | <ContentWrap title="连接器附属信息" expandSwicth style="margin-top: 15px" :isExpand="expand2" | 385 | <ContentWrap title="连接器附属信息" expandSwicth style="margin-top: 15px" :isExpand="expand2" |
| ... | @@ -428,7 +428,7 @@ const fileKeyNames = ref({ | ... | @@ -428,7 +428,7 @@ const fileKeyNames = ref({ |
| 428 | </div> | 428 | </div> |
| 429 | </div> | 429 | </div> |
| 430 | </ContentWrap> | 430 | </ContentWrap> |
| 431 | <ContentWrap title="连接器可验信息" expandSwicth style="margin-top: 15px" :isExpand="expand3" | 431 | <ContentWrap title="连接器可验信息" v-if="Object.keys(fileKeyNames || {}).some(field => flowDetail.tdsConnectorVerifiable?.[field]?.length)" expandSwicth style="margin-top: 15px" :isExpand="expand3" |
| 432 | @expand="(v) => expand3 = v"> | 432 | @expand="(v) => expand3 = v"> |
| 433 | <div class="list_panel"> | 433 | <div class="list_panel"> |
| 434 | <template v-for="(field, index) in Object.keys(fileKeyNames || {})"> | 434 | <template v-for="(field, index) in Object.keys(fileKeyNames || {})"> | ... | ... |
| ... | @@ -120,33 +120,33 @@ const baseInfoFormItems = ref([ | ... | @@ -120,33 +120,33 @@ const baseInfoFormItems = ref([ |
| 120 | // visible: false, | 120 | // visible: false, |
| 121 | // required: false, | 121 | // required: false, |
| 122 | // }, | 122 | // }, |
| 123 | { | 123 | // { |
| 124 | type: "input", | 124 | // type: "input", |
| 125 | label: "IP地址列表", | 125 | // label: "IP地址列表", |
| 126 | field: "ipAddressList", | 126 | // field: "ipAddressList", |
| 127 | default: "", | 127 | // default: "", |
| 128 | placeholder: "支持以逗号,分隔的多地址配置,格式IPv4/IPv6", | 128 | // placeholder: "支持以逗号,分隔的多地址配置,格式IPv4/IPv6", |
| 129 | clearable: true, | 129 | // clearable: true, |
| 130 | required: false, | 130 | // required: false, |
| 131 | block: true, | 131 | // block: true, |
| 132 | }, | 132 | // }, |
| 133 | { | 133 | // { |
| 134 | type: "input", | 134 | // type: "input", |
| 135 | label: "域名信息", | 135 | // label: "域名信息", |
| 136 | field: "domainList", | 136 | // field: "domainList", |
| 137 | default: "", | 137 | // default: "", |
| 138 | placeholder: "支持以逗号,分隔的多个域名配置", | 138 | // placeholder: "支持以逗号,分隔的多个域名配置", |
| 139 | clearable: true, | 139 | // clearable: true, |
| 140 | required: false, | 140 | // required: false, |
| 141 | block: true, | 141 | // block: true, |
| 142 | }, | 142 | // }, |
| 143 | ]); | 143 | ]); |
| 144 | 144 | ||
| 145 | const baseInfoFormRules = ref({ | 145 | const baseInfoFormRules = ref({ |
| 146 | connectorName: [required("请填写连接器名称")], | 146 | connectorName: [required("请填写连接器名称")], |
| 147 | accessMethod: [required("请选择接入方式")], | 147 | accessMethod: [required("请选择接入方式")], |
| 148 | ipAddressList: [/*required("请填写IP地址列表"),*/validateIPList()], //TODO,校验IP地址和域名 | 148 | // ipAddressList: [/*required("请填写IP地址列表"),*/validateIPList()], //TODO,校验IP地址和域名 |
| 149 | domainList: [/*required("请填写域名信息"),*/ validateDomainList()], | 149 | // domainList: [/*required("请填写域名信息"),*/ validateDomainList()], |
| 150 | }); | 150 | }); |
| 151 | 151 | ||
| 152 | /** 连接器附属信息表单配置 */ | 152 | /** 连接器附属信息表单配置 */ |
| ... | @@ -160,7 +160,7 @@ const addInfoFormItems = ref([ | ... | @@ -160,7 +160,7 @@ const addInfoFormItems = ref([ |
| 160 | placeholder: "请输入", | 160 | placeholder: "请输入", |
| 161 | maxlength: 50, | 161 | maxlength: 50, |
| 162 | clearable: true, | 162 | clearable: true, |
| 163 | required: true, | 163 | required: false, |
| 164 | }, | 164 | }, |
| 165 | { | 165 | { |
| 166 | type: "input", | 166 | type: "input", |
| ... | @@ -170,7 +170,7 @@ const addInfoFormItems = ref([ | ... | @@ -170,7 +170,7 @@ const addInfoFormItems = ref([ |
| 170 | placeholder: "请输入", | 170 | placeholder: "请输入", |
| 171 | maxlength: 50, | 171 | maxlength: 50, |
| 172 | clearable: true, | 172 | clearable: true, |
| 173 | required: true, | 173 | required: false, |
| 174 | }, | 174 | }, |
| 175 | { | 175 | { |
| 176 | label: "连接器类型", | 176 | label: "连接器类型", |
| ... | @@ -188,7 +188,7 @@ const addInfoFormItems = ref([ | ... | @@ -188,7 +188,7 @@ const addInfoFormItems = ref([ |
| 188 | value: 1, | 188 | value: 1, |
| 189 | }, | 189 | }, |
| 190 | ], | 190 | ], |
| 191 | required: true, | 191 | required: false, |
| 192 | }, | 192 | }, |
| 193 | { | 193 | { |
| 194 | type: "input", | 194 | type: "input", |
| ... | @@ -208,7 +208,7 @@ const addInfoFormItems = ref([ | ... | @@ -208,7 +208,7 @@ const addInfoFormItems = ref([ |
| 208 | placeholder: "请输入出厂唯一SN号", | 208 | placeholder: "请输入出厂唯一SN号", |
| 209 | maxlength: 20, | 209 | maxlength: 20, |
| 210 | clearable: true, | 210 | clearable: true, |
| 211 | required: true, | 211 | required: false, |
| 212 | }, | 212 | }, |
| 213 | { | 213 | { |
| 214 | type: "input", | 214 | type: "input", |
| ... | @@ -218,7 +218,7 @@ const addInfoFormItems = ref([ | ... | @@ -218,7 +218,7 @@ const addInfoFormItems = ref([ |
| 218 | placeholder: "请输入产品版本号,用于补丁管理和漏洞响应", | 218 | placeholder: "请输入产品版本号,用于补丁管理和漏洞响应", |
| 219 | maxlength: 20, | 219 | maxlength: 20, |
| 220 | clearable: true, | 220 | clearable: true, |
| 221 | required: true, | 221 | required: false, |
| 222 | }, | 222 | }, |
| 223 | { | 223 | { |
| 224 | type: "input", | 224 | type: "input", |
| ... | @@ -228,16 +228,16 @@ const addInfoFormItems = ref([ | ... | @@ -228,16 +228,16 @@ const addInfoFormItems = ref([ |
| 228 | placeholder: "物理设备唯一标识符(若有多台,只登记管理服务器mac地址)", | 228 | placeholder: "物理设备唯一标识符(若有多台,只登记管理服务器mac地址)", |
| 229 | maxlength: 50, | 229 | maxlength: 50, |
| 230 | clearable: true, | 230 | clearable: true, |
| 231 | required: true, | 231 | required: false, |
| 232 | }, | 232 | }, |
| 233 | ]); | 233 | ]); |
| 234 | 234 | ||
| 235 | const addInfoFormRules = ref({ | 235 | const addInfoFormRules = ref({ |
| 236 | supplierName: [required("请填写供应商名称")], | 236 | // supplierName: [required("请填写供应商名称")], |
| 237 | supplierCode: [required('请填写供应商统一社会信用代码'), isUSCCCode()], | 237 | // supplierCode: [required('请填写供应商统一社会信用代码'), isUSCCCode()], |
| 238 | productSn: [required("请填写出厂唯一SN号")], | 238 | // productSn: [required("请填写出厂唯一SN号")], |
| 239 | productVersion: [required("请填写产品版本号")], | 239 | // productVersion: [required("请填写产品版本号")], |
| 240 | deviceMacAddress: [required("请填写设备MAC地址")], //校验 | 240 | // deviceMacAddress: [required("请填写设备MAC地址")], //校验 |
| 241 | }); | 241 | }); |
| 242 | 242 | ||
| 243 | /** 连接器身份可验证信息 */ | 243 | /** 连接器身份可验证信息 */ |
| ... | @@ -260,7 +260,7 @@ const validInfoFormItems = ref([ | ... | @@ -260,7 +260,7 @@ const validInfoFormItems = ref([ |
| 260 | tip: "支持扩展名:pdf、png、jpg,单个文件不得大于10M", | 260 | tip: "支持扩展名:pdf、png、jpg,单个文件不得大于10M", |
| 261 | type: "upload-file", | 261 | type: "upload-file", |
| 262 | accept: ".pdf, .png, .jpg", | 262 | accept: ".pdf, .png, .jpg", |
| 263 | required: true, | 263 | required: false, |
| 264 | limitSize: 10, | 264 | limitSize: 10, |
| 265 | default: [], | 265 | default: [], |
| 266 | tooltip: true, | 266 | tooltip: true, |
| ... | @@ -294,7 +294,7 @@ const validInfoFormItems = ref([ | ... | @@ -294,7 +294,7 @@ const validInfoFormItems = ref([ |
| 294 | // 禁用 dateStart < todayStart 的日期(即今天之前) | 294 | // 禁用 dateStart < todayStart 的日期(即今天之前) |
| 295 | return dateStart.getTime() < todayStart.getTime(); | 295 | return dateStart.getTime() < todayStart.getTime(); |
| 296 | }, | 296 | }, |
| 297 | required: true, | 297 | required: false, |
| 298 | }, | 298 | }, |
| 299 | { | 299 | { |
| 300 | label: "网络安全产品备案证明", | 300 | label: "网络安全产品备案证明", |
| ... | @@ -390,8 +390,8 @@ const validInfoFormItems = ref([ | ... | @@ -390,8 +390,8 @@ const validInfoFormItems = ref([ |
| 390 | 390 | ||
| 391 | const validInfoFormRules = ref({ | 391 | const validInfoFormRules = ref({ |
| 392 | //networkAccessQualification: [requiredFiles()], | 392 | //networkAccessQualification: [requiredFiles()], |
| 393 | levelProtectionEvaluationResults: [requiredFiles()], | 393 | // levelProtectionEvaluationResults: [requiredFiles()], |
| 394 | levelProtectionEvaluationExpirationTime: [required("请选择有效期")], | 394 | // levelProtectionEvaluationExpirationTime: [required("请选择有效期")], |
| 395 | //networkSecurityFilingCertificate: [requiredFiles()], | 395 | //networkSecurityFilingCertificate: [requiredFiles()], |
| 396 | // encryptionModuleAuthentication: [requiredFiles()], | 396 | // encryptionModuleAuthentication: [requiredFiles()], |
| 397 | // softwareScmStatemen: [requiredFiles()], | 397 | // softwareScmStatemen: [requiredFiles()], |
| ... | @@ -440,7 +440,7 @@ const transferValueInfo = () => { | ... | @@ -440,7 +440,7 @@ const transferValueInfo = () => { |
| 440 | let tdsConnectorVerifiable = {}; | 440 | let tdsConnectorVerifiable = {}; |
| 441 | for (const key in validInfo) { | 441 | for (const key in validInfo) { |
| 442 | if (key == "levelProtectionEvaluationExpirationTime") { | 442 | if (key == "levelProtectionEvaluationExpirationTime") { |
| 443 | tdsConnectorVerifiable[key] = validInfo[key]; | 443 | tdsConnectorVerifiable[key] = validInfo[key] || ''; |
| 444 | } else { | 444 | } else { |
| 445 | tdsConnectorVerifiable[key] = | 445 | tdsConnectorVerifiable[key] = |
| 446 | validInfo[key]?.map((v) => { | 446 | validInfo[key]?.map((v) => { |
| ... | @@ -499,11 +499,11 @@ const saveDraft = () => { | ... | @@ -499,11 +499,11 @@ const saveDraft = () => { |
| 499 | 499 | ||
| 500 | const submit = () => { | 500 | const submit = () => { |
| 501 | baseInfoFormRef.value.ruleFormRef.validate((valid1, errorItem1) => { | 501 | baseInfoFormRef.value.ruleFormRef.validate((valid1, errorItem1) => { |
| 502 | let baseForminline = baseInfoFormRef.value.formInline; | 502 | // let baseForminline = baseInfoFormRef.value.formInline; |
| 503 | if (!baseForminline.ipAddressList && !baseForminline.domainList) { | 503 | // if (!baseForminline.ipAddressList && !baseForminline.domainList) { |
| 504 | proxy.$ElMessage.error('IP地址和域名信息请至少填写一个'); | 504 | // proxy.$ElMessage.error('IP地址和域名信息请至少填写一个'); |
| 505 | return; | 505 | // return; |
| 506 | } | 506 | // } |
| 507 | if (valid1) { | 507 | if (valid1) { |
| 508 | addInfoFormRef.value.ruleFormRef.validate((valid2, errorItem2) => { | 508 | addInfoFormRef.value.ruleFormRef.validate((valid2, errorItem2) => { |
| 509 | if (valid2) { | 509 | if (valid2) { |
| ... | @@ -671,9 +671,11 @@ onBeforeMount(() => { | ... | @@ -671,9 +671,11 @@ onBeforeMount(() => { |
| 671 | item.default = connectorDetail[item.field] || logonUserDetail["socialCreditCode"] || ""; | 671 | item.default = connectorDetail[item.field] || logonUserDetail["socialCreditCode"] || ""; |
| 672 | } else if (item.field == 'credentialTime' || item.field == 'trustedIdentityCredential') { | 672 | } else if (item.field == 'credentialTime' || item.field == 'trustedIdentityCredential') { |
| 673 | item.default = connectorDetail[item.field] || logonUserDetail[item.field] || ""; | 673 | item.default = connectorDetail[item.field] || logonUserDetail[item.field] || ""; |
| 674 | } else if (item.field == 'ipAddressList' || item.field == 'domainList') { | 674 | } |
| 675 | item.default = connectorDetail[item.field]?.join(',') || ''; | 675 | // else if (item.field == 'ipAddressList' || item.field == 'domainList') { |
| 676 | } else { | 676 | // item.default = connectorDetail[item.field]?.join(',') || ''; |
| 677 | // } | ||
| 678 | else { | ||
| 677 | item.default = connectorDetail[item.field] || ''; | 679 | item.default = connectorDetail[item.field] || ''; |
| 678 | } | 680 | } |
| 679 | }); | 681 | }); | ... | ... |
-
Please register or sign in to post a comment