fix: 1、修复entity setting的relation全删除能提交的问题;2、修复mapping的subscriber和cell类型和属性填错的问题

This commit is contained in:
刘洪洪
2024-11-20 14:51:41 +08:00
parent 99e489accf
commit 58871d8599
2 changed files with 12 additions and 5 deletions

View File

@@ -2935,7 +2935,7 @@ export const settingFields = {
{ displayName: 'APP.Subcategory', fieldName: 'app_subcategory' },
{ displayName: 'seen_time', fieldName: 'seen_time' }
],
subscriber_id: [
subscriber: [
{ displayName: 'Subscriber ID', fieldName: 'subscriber_id', disabled: true },
{ displayName: 'Subscriber.Phone Number', fieldName: 'subscriber_phone_number' },
{ displayName: 'Subscriber.IMSI', fieldName: 'subscriber_imsi' },
@@ -2943,7 +2943,7 @@ export const settingFields = {
{ displayName: 'Subscriber.APNs', fieldName: 'subscriber_apns' },
{ displayName: 'seen_time', fieldName: 'seen_time' }
],
cell_id: [
cell: [
{ displayName: 'Cell ID', fieldName: 'cell_id', disabled: true },
{ displayName: 'Cell.Technology', fieldName: 'cell_technology' },
{ displayName: 'Cell.Coverage Radius', fieldName: 'cell_coverage_radius' },

View File

@@ -254,8 +254,8 @@ export default {
{ value: 'ip', label: 'ip' },
{ value: 'domain', label: 'domain' },
{ value: 'app', label: 'app' },
{ value: 'subscriber_id', label: 'subscriber' },
{ value: 'cell_id', label: 'cell' }
{ value: 'subscriber', label: 'subscriber' },
{ value: 'cell', label: 'cell' }
],
relationTypeOption: [
{ value: 'RESOLVE_DOMAIN_IP', label: 'RESOLVE_DOMAIN_IP' },
@@ -624,7 +624,8 @@ export default {
})
formObj.entities = JSON.stringify(formObj.schemaMappingData.data)
formObj.relations = JSON.stringify(formObj.relationData.data)
if (formObj.schemaMappingData.data.length === 0 && formObj.relationData.data.length === 0) {
if (formObj.schemaMappingData.data.length === 0 || formObj.relationData.data.length === 0) {
this.activeNames = ['1', '2']
ElMessageBox.alert(this.$t('detection.create.informationFilled'), this.$t('overall.tip'), {
confirmButtonText: 'OK',
callback: () => {}
@@ -683,6 +684,12 @@ export default {
this.myLoading = false
})
}
} else {
this.activeNames = ['1', '2']
ElMessageBox.alert(this.$t('detection.create.informationFilled'), this.$t('overall.tip'), {
confirmButtonText: 'OK',
callback: () => {}
})
}
},
/** 底部返回按钮 */