fix: 修复组件指定name重复问题
This commit is contained in:
@@ -40,7 +40,7 @@ import multipleTime from './multipleTime'
|
|||||||
import chartUnit from './chartUnit'
|
import chartUnit from './chartUnit'
|
||||||
let timeout
|
let timeout
|
||||||
export default {
|
export default {
|
||||||
name: 'intervalRefresh',
|
name: 'pickTime',
|
||||||
components: {
|
components: {
|
||||||
'time-picker': timePicker,
|
'time-picker': timePicker,
|
||||||
'chart-unit': chartUnit,
|
'chart-unit': chartUnit,
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ import dataListMixin from '@/components/common/mixin/dataList'
|
|||||||
import alertMessageTable from '@/components/common/table/alert/alertMessageTable.vue'
|
import alertMessageTable from '@/components/common/table/alert/alertMessageTable.vue'
|
||||||
import { alertMessage as alertMessageConstant } from '@/components/common/js/constants'
|
import { alertMessage as alertMessageConstant } from '@/components/common/js/constants'
|
||||||
export default {
|
export default {
|
||||||
name: 'alertTable',
|
name: 'alertTableProject',
|
||||||
props: {
|
props: {
|
||||||
moduleId: {},
|
moduleId: {},
|
||||||
projectId: {},
|
projectId: {},
|
||||||
|
|||||||
@@ -205,7 +205,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import editEndpointBoxNew from './editEndpointBoxNew'
|
import editEndpointBoxNew from './editEndpointBoxNew'
|
||||||
export default {
|
export default {
|
||||||
name: 'endpointBox',
|
name: 'addEndpointBox',
|
||||||
components: {
|
components: {
|
||||||
'edit-endpoint-box-new': editEndpointBoxNew
|
'edit-endpoint-box-new': editEndpointBoxNew
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'userBox',
|
name: 'roleBox',
|
||||||
components: {
|
components: {
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ import chartDataFormat from '../../charts/chartDataFormat'
|
|||||||
import promqlInput from '../../page/dashboard/explore/promqlInput'
|
import promqlInput from '../../page/dashboard/explore/promqlInput'
|
||||||
import { nzNumber } from '../js/validate'
|
import { nzNumber } from '../js/validate'
|
||||||
export default {
|
export default {
|
||||||
name: 'alertConfigBox',
|
name: 'alertRuleBox',
|
||||||
props: {
|
props: {
|
||||||
alertRule: Object
|
alertRule: Object
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -116,7 +116,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import editEndpointBoxNew from './editEndpointBoxNew'
|
import editEndpointBoxNew from './editEndpointBoxNew'
|
||||||
export default {
|
export default {
|
||||||
name: 'endpointBox',
|
name: 'batchModifyEndpointBox',
|
||||||
props: {
|
props: {
|
||||||
currentProject: Object,
|
currentProject: Object,
|
||||||
currentModule: Object,
|
currentModule: Object,
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
import nzTransfer from '@/components/common/nzTransfer'
|
import nzTransfer from '@/components/common/nzTransfer'
|
||||||
import { fromRoute } from '@/components/common/js/constants'
|
import { fromRoute } from '@/components/common/js/constants'
|
||||||
export default {
|
export default {
|
||||||
name: 'chartTemp',
|
name: 'chartTempBox',
|
||||||
components: {
|
components: {
|
||||||
nzTransfer
|
nzTransfer
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
import { port } from '../js/validate'
|
import { port } from '../js/validate'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'credentialBox',
|
name: 'snmpCredentialBox',
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
credential: Object
|
credential: Object
|
||||||
|
|||||||
@@ -222,7 +222,7 @@
|
|||||||
import subBox from './subBox'
|
import subBox from './subBox'
|
||||||
import loading from '../../loading'
|
import loading from '../../loading'
|
||||||
export default {
|
export default {
|
||||||
name: 'assetConfigTab',
|
name: 'trafficSettingTab',
|
||||||
components: {
|
components: {
|
||||||
'sub-box': subBox,
|
'sub-box': subBox,
|
||||||
loading: loading
|
loading: loading
|
||||||
|
|||||||
@@ -245,7 +245,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import searchSelectInfo from './searchSelectInfo' // 搜索框组件--下拉框内容
|
import searchSelectInfo from './searchSelectInfo' // 搜索框组件--下拉框内容
|
||||||
export default {
|
export default {
|
||||||
name: 'index',
|
name: 'searchInput',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
selectDom: { top: '', left: '', tempTop: '', show: true }, // 选择弹框的位置
|
selectDom: { top: '', left: '', tempTop: '', show: true }, // 选择弹框的位置
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
import table from '@/components/common/mixin/table'
|
import table from '@/components/common/mixin/table'
|
||||||
import chartDataFormat from '@/components/charts/chartDataFormat'
|
import chartDataFormat from '@/components/charts/chartDataFormat'
|
||||||
export default {
|
export default {
|
||||||
name: 'roleTable',
|
name: 'alertRuleTable',
|
||||||
mixins: [table],
|
mixins: [table],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import table from '@/components/common/mixin/table'
|
import table from '@/components/common/mixin/table'
|
||||||
export default {
|
export default {
|
||||||
name: 'roleTable',
|
name: 'assetLabelTable',
|
||||||
mixins: [table],
|
mixins: [table],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
import table from '@/components/common/mixin/table'
|
import table from '@/components/common/mixin/table'
|
||||||
import { chart as chartConstant } from '@/components/common/js/constants'
|
import { chart as chartConstant } from '@/components/common/js/constants'
|
||||||
export default {
|
export default {
|
||||||
name: 'roleTable',
|
name: 'chartTmplTable',
|
||||||
mixins: [table],
|
mixins: [table],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import table from '@/components/common/mixin/table'
|
import table from '@/components/common/mixin/table'
|
||||||
export default {
|
export default {
|
||||||
name: 'roleTable',
|
name: 'exprTmplTable',
|
||||||
mixins: [table],
|
mixins: [table],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import table from '@/components/common/mixin/table'
|
import table from '@/components/common/mixin/table'
|
||||||
export default {
|
export default {
|
||||||
name: 'userTable',
|
name: 'moduleTable',
|
||||||
mixins: [table],
|
mixins: [table],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import table from '@/components/common/mixin/table'
|
import table from '@/components/common/mixin/table'
|
||||||
export default {
|
export default {
|
||||||
name: 'roleTable',
|
name: 'operationLog',
|
||||||
mixins: [table],
|
mixins: [table],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import table from '@/components/common/mixin/table'
|
import table from '@/components/common/mixin/table'
|
||||||
export default {
|
export default {
|
||||||
name: 'userTable',
|
name: 'projectTable',
|
||||||
mixins: [table],
|
mixins: [table],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ import { terminalLog } from '@/components/common/js/constants'
|
|||||||
import { calcDurationByStringTimeB } from '@/components/common/js/tools'
|
import { calcDurationByStringTimeB } from '@/components/common/js/tools'
|
||||||
import table from '@/components/common/mixin/table'
|
import table from '@/components/common/mixin/table'
|
||||||
export default {
|
export default {
|
||||||
name: 'roleTable',
|
name: 'terminalLogTable',
|
||||||
mixins: [table],
|
mixins: [table],
|
||||||
props: {
|
props: {
|
||||||
nowTime: {}
|
nowTime: {}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ import chart from '@/components/page/dashboard/overview/chart'
|
|||||||
import { sameLabels } from '@/components/common/js/constants'
|
import { sameLabels } from '@/components/common/js/constants'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'endpointTable',
|
name: 'endpointQueryTab',
|
||||||
components: {
|
components: {
|
||||||
chartBox,
|
chartBox,
|
||||||
chart
|
chart
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ import chart from '@/components/page/dashboard/overview/chart'
|
|||||||
import { alertMessage as alertMessageConstant } from '@/components/common/js/constants'
|
import { alertMessage as alertMessageConstant } from '@/components/common/js/constants'
|
||||||
import alertSilenceBox from '@/components/common/rightBox/alertSilenceBox'
|
import alertSilenceBox from '@/components/common/rightBox/alertSilenceBox'
|
||||||
export default {
|
export default {
|
||||||
name: 'alertList',
|
name: 'alertMessage',
|
||||||
components: {
|
components: {
|
||||||
alertMessageTable,
|
alertMessageTable,
|
||||||
pickTime,
|
pickTime,
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ import topToolMoreOptions from '@/components/common/popBox/topToolMoreOptions'
|
|||||||
import alertSilenceBox from '@/components/common/rightBox/alertSilenceBox'
|
import alertSilenceBox from '@/components/common/rightBox/alertSilenceBox'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'alert-config',
|
name: 'alertRule',
|
||||||
components: {
|
components: {
|
||||||
deleteButton,
|
deleteButton,
|
||||||
alertRuleBox,
|
alertRuleBox,
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ import dataListMixin from '@/components/common/mixin/dataList'
|
|||||||
import alertSilenceTable from '@/components/common/table/alert/alertSilenceTable'
|
import alertSilenceTable from '@/components/common/table/alert/alertSilenceTable'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'silence',
|
name: 'alertSilence',
|
||||||
components: {
|
components: {
|
||||||
alertSilenceTable,
|
alertSilenceTable,
|
||||||
deleteButton,
|
deleteButton,
|
||||||
|
|||||||
Reference in New Issue
Block a user