diff --git a/src/components/table/tag/TagTable.vue b/src/components/table/tag/TagTable.vue
index 87e4811e..25da5bc2 100644
--- a/src/components/table/tag/TagTable.vue
+++ b/src/components/table/tag/TagTable.vue
@@ -155,7 +155,7 @@ export default {
label: this.$t('tag.category'),
prop: 'category',
show: true,
- width: 100
+ width: 150
}, {
label: this.$t('tag.entityType'),
prop: 'indicatorType',
diff --git a/src/utils/constants.js b/src/utils/constants.js
index cd1975e2..2cce8ec3 100644
--- a/src/utils/constants.js
+++ b/src/utils/constants.js
@@ -362,6 +362,17 @@ export const tagCategoryOptions = [
}
]
+export const tagSourceOptions = [
+ {
+ value: 1,
+ label: 'tag.builtInTag'
+ },
+ {
+ value: 0,
+ label: 'tag.userDefined'
+ }
+]
+
export const metricType = {
Bits: 'Bits/s',
Packets: 'Packets/s',
diff --git a/src/views/tag/Tag.vue b/src/views/tag/Tag.vue
index 27a544b8..f426eb6f 100644
--- a/src/views/tag/Tag.vue
+++ b/src/views/tag/Tag.vue
@@ -26,25 +26,11 @@
{{$t('overall.delete')}}
-
-
- {{$t('tag.intent')}}:
-
-
-
+
+
+ {{$t('tag.intention')}}:
+
+
+
+
+
+ {{$t('tag.source')}}:
+
+
+
@@ -86,7 +100,7 @@ import TagTable from '@/components/table/tag/TagTable'
import cnDataList from '@/components/table/CnDataList'
import dataListMixin from '@/mixins/data-list'
import { api } from '@/utils/api'
-import { tagIntentOptions, tagCategoryOptions } from '@/utils/constants'
+import { tagIntentOptions, tagCategoryOptions, tagSourceOptions } from '@/utils/constants'
import { urlParamsHandler, overwriteUrl } from '@/utils/tools'
import Loading from '@/components/common/Loading'
import { ref } from 'vue'
@@ -100,11 +114,13 @@ export default {
url: api.tagList,
tagIntentOptions,
tagCategoryOptions,
+ tagSourceOptions,
tableId: 'tagTable',
builtinLeftLoading: false,
isInit: true,
intent: '',
category: '',
+ source: '',
name: ''
}
},
@@ -144,6 +160,9 @@ export default {
if (this.name) {
params = { ...params, name: this.name }
}
+ if (this.source || this.source === 0) {
+ params = { ...params, name: this.source }
+ }
this.getTableData(params)
},
categoryChange (value) {
@@ -157,6 +176,25 @@ export default {
if (this.name) {
params = { ...params, name: this.name }
}
+ if (this.source || this.source === 0) {
+ params = { ...params, name: this.source }
+ }
+ this.getTableData(params)
+ },
+ sourceChange (value) {
+ let params = {}
+ if (value || value === 0) {
+ params = { isBuiltIn: value }
+ }
+ if (this.category) {
+ params = { ...params, category: this.category }
+ }
+ if (this.intent) {
+ params = { ...params, intent: this.intent }
+ }
+ if (this.name) {
+ params = { ...params, name: this.name }
+ }
this.getTableData(params)
},
search (params) {