fix: 1、修改dataSource路由路径;2、entity integration的mapping添加tag字段

This commit is contained in:
刘洪洪
2024-11-26 18:34:22 +08:00
parent 4062a604c7
commit 2b8d23eb6e
4 changed files with 34 additions and 14 deletions

View File

@@ -393,7 +393,7 @@ export const api = {
sourceUpload: apiVersion + '/entity/sources/upload' // 文件上传post sourceUpload: apiVersion + '/entity/sources/upload' // 文件上传post
}, },
profiles: { profiles: {
profiles: apiVersion + '/entity/profiles' // get列表查询delete删除post新增put修改 profiles: apiVersion + '/entity/integrations' // get列表查询delete删除post新增put修改
} }
} }
} }

View File

@@ -2922,21 +2922,33 @@ export const settingFields = {
{ displayName: 'IP.ASN', fieldName: 'ip_asn' }, { displayName: 'IP.ASN', fieldName: 'ip_asn' },
{ displayName: 'IP.ISP', fieldName: 'ip_isp' }, { displayName: 'IP.ISP', fieldName: 'ip_isp' },
{ displayName: 'seen_time', fieldName: 'seen_time' }, { displayName: 'seen_time', fieldName: 'seen_time' },
{ displayName: 'tags', fieldName: 'tags' } { displayName: 'Cloud Provider', fieldName: 'Cloud Provider' },
{ displayName: 'CDN Provider', fieldName: 'CDN Provider' },
{ displayName: 'Category Name', fieldName: 'Category Name' },
{ displayName: 'IoC', fieldName: 'IoC' },
{ displayName: 'Anonymous', fieldName: 'Anonymous' }
], ],
domain: [ domain: [
{ displayName: 'Domain', fieldName: 'domain', disabled: true }, { displayName: 'Domain', fieldName: 'domain', disabled: true },
{ displayName: 'Domain.Category', fieldName: 'domain_category' }, { displayName: 'Domain.Category', fieldName: 'domain_category' },
{ displayName: 'Domain.Category Group', fieldName: 'domain_category_group' }, { displayName: 'Domain.Category Group', fieldName: 'domain_category_group' },
{ displayName: 'seen_time', fieldName: 'seen_time' }, { displayName: 'seen_time', fieldName: 'seen_time' },
{ displayName: 'tags', fieldName: 'tags' } { displayName: 'Cloud Provider', fieldName: 'Cloud Provider' },
{ displayName: 'CDN Provider', fieldName: 'CDN Provider' },
{ displayName: 'Category Name', fieldName: 'Category Name' },
{ displayName: 'IoC', fieldName: 'IoC' },
{ displayName: 'Anonymous', fieldName: 'Anonymous' }
], ],
app: [ app: [
{ displayName: 'Application', fieldName: 'app', disabled: true }, { displayName: 'Application', fieldName: 'app', disabled: true },
{ displayName: 'APP.Category', fieldName: 'app_category' }, { displayName: 'APP.Category', fieldName: 'app_category' },
{ displayName: 'APP.Subcategory', fieldName: 'app_subcategory' }, { displayName: 'APP.Subcategory', fieldName: 'app_subcategory' },
{ displayName: 'seen_time', fieldName: 'seen_time' }, { displayName: 'seen_time', fieldName: 'seen_time' },
{ displayName: 'tags', fieldName: 'tags' } { displayName: 'Cloud Provider', fieldName: 'Cloud Provider' },
{ displayName: 'CDN Provider', fieldName: 'CDN Provider' },
{ displayName: 'Category Name', fieldName: 'Category Name' },
{ displayName: 'IoC', fieldName: 'IoC' },
{ displayName: 'Anonymous', fieldName: 'Anonymous' }
], ],
subscriber: [ subscriber: [
{ displayName: 'Subscriber ID', fieldName: 'subscriber_id', disabled: true }, { displayName: 'Subscriber ID', fieldName: 'subscriber_id', disabled: true },
@@ -2945,7 +2957,11 @@ export const settingFields = {
{ displayName: 'Subscriber.IMEI', fieldName: 'subscriber_imei' }, { displayName: 'Subscriber.IMEI', fieldName: 'subscriber_imei' },
{ displayName: 'Subscriber.APNs', fieldName: 'subscriber_apns' }, { displayName: 'Subscriber.APNs', fieldName: 'subscriber_apns' },
{ displayName: 'seen_time', fieldName: 'seen_time' }, { displayName: 'seen_time', fieldName: 'seen_time' },
{ displayName: 'tags', fieldName: 'tags' } { displayName: 'Cloud Provider', fieldName: 'Cloud Provider' },
{ displayName: 'CDN Provider', fieldName: 'CDN Provider' },
{ displayName: 'Category Name', fieldName: 'Category Name' },
{ displayName: 'IoC', fieldName: 'IoC' },
{ displayName: 'Anonymous', fieldName: 'Anonymous' }
], ],
cell: [ cell: [
{ displayName: 'Cell ID', fieldName: 'cell_id', disabled: true }, { displayName: 'Cell ID', fieldName: 'cell_id', disabled: true },
@@ -2966,7 +2982,11 @@ export const settingFields = {
{ displayName: 'cell_azimuth', fieldName: 'cell_azimuth' }, { displayName: 'cell_azimuth', fieldName: 'cell_azimuth' },
{ displayName: 'cell_fdd_spectrum', fieldName: 'cell_fdd_spectrum' }, { displayName: 'cell_fdd_spectrum', fieldName: 'cell_fdd_spectrum' },
{ displayName: 'seen_time', fieldName: 'seen_time' }, { displayName: 'seen_time', fieldName: 'seen_time' },
{ displayName: 'tags', fieldName: 'tags' } { displayName: 'Cloud Provider', fieldName: 'Cloud Provider' },
{ displayName: 'CDN Provider', fieldName: 'CDN Provider' },
{ displayName: 'Category Name', fieldName: 'Category Name' },
{ displayName: 'IoC', fieldName: 'IoC' },
{ displayName: 'Anonymous', fieldName: 'Anonymous' }
] ]
} }

View File

@@ -208,7 +208,7 @@ export default {
}, },
add () { add () {
this.$router.push({ this.$router.push({
path: '/setting/source/create', path: '/setting/dataSource/create',
query: { query: {
t: +new Date() t: +new Date()
} }
@@ -232,7 +232,7 @@ export default {
viewSource () { viewSource () {
const pageNo = this.$router.currentRoute.value.query.pageNo const pageNo = this.$router.currentRoute.value.query.pageNo
this.$router.push({ this.$router.push({
path: '/setting/source/view', path: '/setting/dataSource/view',
query: { query: {
t: +new Date(), t: +new Date(),
pageNoForTable: pageNo || 1, pageNoForTable: pageNo || 1,
@@ -243,7 +243,7 @@ export default {
jumpToEditPage (id) { jumpToEditPage (id) {
const pageNo = this.$router.currentRoute.value.query.pageNo const pageNo = this.$router.currentRoute.value.query.pageNo
this.$router.push({ this.$router.push({
path: '/setting/source/edit', path: '/setting/dataSource/edit',
query: { query: {
t: +new Date(), t: +new Date(),
pageNoForTable: pageNo || 1, pageNoForTable: pageNo || 1,

View File

@@ -333,7 +333,7 @@ export default {
console.error(e) console.error(e)
this.$message.error(this.errorMsgHandler(e)) this.$message.error(this.errorMsgHandler(e))
this.$router.push({ this.$router.push({
path: '/setting/source', path: '/setting/dataSource',
query: { query: {
pageNo: this.pageNoForTable ? Number(this.pageNoForTable) : 1, pageNo: this.pageNoForTable ? Number(this.pageNoForTable) : 1,
t: +new Date() t: +new Date()
@@ -383,7 +383,7 @@ export default {
}) })
this.$router.push({ this.$router.push({
path: '/setting/source', path: '/setting/dataSource',
query: { query: {
t: +new Date() t: +new Date()
} }
@@ -413,7 +413,7 @@ export default {
queryInfo.name = this.settingObj.name queryInfo.name = this.settingObj.name
} }
this.$router.push({ this.$router.push({
path: '/setting/source', path: '/setting/dataSource',
query: queryInfo query: queryInfo
}) })
} else { } else {
@@ -442,7 +442,7 @@ export default {
customClass: 'del-model' customClass: 'del-model'
}).then(() => { }).then(() => {
this.$router.push({ this.$router.push({
path: '/setting/source', path: '/setting/dataSource',
query: { query: {
pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1, pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1,
t: +new Date() t: +new Date()
@@ -451,7 +451,7 @@ export default {
}).catch(() => {}) }).catch(() => {})
} else { } else {
this.$router.push({ this.$router.push({
path: '/setting/source', path: '/setting/dataSource',
query: { query: {
pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1, pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1,
t: +new Date() t: +new Date()