CN-119 feat: 完成interface页面
This commit is contained in:
@@ -12,6 +12,10 @@ export const api = {
|
||||
permission: '/sys/user/permissions',
|
||||
i18n: '/sys/i18n/lang',
|
||||
dict: '/sys/dict',
|
||||
user: '/sys/user',
|
||||
role: '/sys/role',
|
||||
galaxyProxy: '/galaxy/setting',
|
||||
operationLog: '/sys/log',
|
||||
// 业务
|
||||
panel: '/visual/panel',
|
||||
chart: '/visual/chart',
|
||||
|
||||
@@ -29,7 +29,8 @@ export const fromRoute = {
|
||||
trafficSummary: 'trafficSummary',
|
||||
networkAppPerformance: 'networkAppPerformance',
|
||||
dnsServiceInsights: 'dnsServiceInsights',
|
||||
user: 'user'
|
||||
user: 'user',
|
||||
galaxyProxy: 'galaxyProxy'
|
||||
}
|
||||
|
||||
/* panel类别和路由之间的映射 */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ElMessageBox } from 'element-plus'
|
||||
import { ElMessageBox, ElMessage } from 'element-plus'
|
||||
import i18n from '@/i18n'
|
||||
import _ from 'lodash'
|
||||
import { storageKey, iso36112 } from '@/utils/constants'
|
||||
@@ -462,3 +462,16 @@ function JSONParse (data) {
|
||||
return firstParse
|
||||
}
|
||||
}
|
||||
|
||||
export function copyValue (item) {
|
||||
const str = item
|
||||
const domUrl = document.createElement('input')
|
||||
domUrl.value = JSON.stringify(str)
|
||||
domUrl.id = 'creatDom'
|
||||
document.body.appendChild(domUrl)
|
||||
domUrl.select() // 选择对象
|
||||
document.execCommand('Copy') // 执行浏览器复制命令
|
||||
const creatDom = document.getElementById('creatDom')
|
||||
creatDom.parentNode.removeChild(creatDom)
|
||||
ElMessage.success(i18n.global.t('tip.copySuccess'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user