mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 03:48:05 +08:00
fix 前端 i18n key 为一层
This commit is contained in:
parent
6478bcbada
commit
24014703ff
@ -90,7 +90,7 @@ watch(pageLoadingStore, (newValue) => {
|
||||
pageloading.value = true
|
||||
globalLoading({
|
||||
spinning: true,
|
||||
tip: t('App.a4e5a0a8')
|
||||
tip: t('i18n.6ad02e7a1b')
|
||||
})
|
||||
}, 500)
|
||||
}
|
||||
@ -127,7 +127,7 @@ const reload = () => {
|
||||
|
||||
const globalLoadingProps = ref<SpinProps>({
|
||||
spinning: false,
|
||||
tip: t('App.ed2baf28'),
|
||||
tip: t('i18n.26b5bd4947'),
|
||||
size: 'large',
|
||||
delay: 500,
|
||||
wrapperClassName: ''
|
||||
|
@ -113,10 +113,10 @@ export function uploadBackupFile(formData) {
|
||||
}
|
||||
|
||||
export const backupTypeArray = [
|
||||
{ key: 0, value: t('api.backup-info.945bddc'), disabled: false },
|
||||
{ key: 1, value: t('api.backup-info.4e769e75'), disabled: false },
|
||||
{ key: 2, value: t('api.backup-info.8cefd9a6'), disabled: true },
|
||||
{ key: 3, value: t('api.backup-info.bc583419'), disabled: true }
|
||||
{ key: 0, value: t('i18n.6d68bd5458'), disabled: false },
|
||||
{ key: 1, value: t('i18n.67b667bf98'), disabled: false },
|
||||
{ key: 2, value: t('i18n.90c0458a4c'), disabled: true },
|
||||
{ key: 3, value: t('i18n.590e5b46a0'), disabled: true }
|
||||
]
|
||||
|
||||
export const arrayToMap = (arra) => {
|
||||
@ -130,7 +130,7 @@ export const arrayToMap = (arra) => {
|
||||
export const backupTypeMap = arrayToMap(backupTypeArray)
|
||||
|
||||
export const backupStatusMap = {
|
||||
0: t('api.backup-info.fc1391c9'),
|
||||
1: t('api.backup-info.6d865b0a'),
|
||||
2: t('api.backup-info.78bc7266')
|
||||
0: t('i18n.5d459d550a'),
|
||||
1: t('i18n.3ba621d736'),
|
||||
2: t('i18n.1012e09849')
|
||||
}
|
||||
|
@ -292,16 +292,16 @@ export function sortItem(params) {
|
||||
}
|
||||
|
||||
export const statusMap = {
|
||||
1: t('api.build-info.90b71abe'),
|
||||
2: t('api.build-info.47e182a5'),
|
||||
3: t('api.build-info.20ce2aae'),
|
||||
4: t('api.build-info.e64e695c'),
|
||||
5: t('api.build-info.5fe167f7'),
|
||||
6: t('api.build-info.4adb4e9b'),
|
||||
7: t('api.build-info.2ebf779c'),
|
||||
8: t('api.build-info.f7ba88b7'),
|
||||
9: t('api.build-info.7c974164'),
|
||||
10: t('api.build-info.7ab6f39e')
|
||||
1: t('i18n.32493aeef9'),
|
||||
2: t('i18n.641796b655'),
|
||||
3: t('i18n.41298f56a3'),
|
||||
4: t('i18n.0baa0e3fc4'),
|
||||
5: t('i18n.2fff079bc7'),
|
||||
6: t('i18n.250688d7c9'),
|
||||
7: t('i18n.b4fc1ac02c'),
|
||||
8: t('i18n.979b7d10b0'),
|
||||
9: t('i18n.81afd9e713'),
|
||||
10: t('i18n.8160b4be4e')
|
||||
}
|
||||
export const statusColor = {
|
||||
1: 'orange',
|
||||
@ -317,22 +317,22 @@ export const statusColor = {
|
||||
}
|
||||
|
||||
export const releaseMethodMap = {
|
||||
0: t('api.build-info.ea464dbb'),
|
||||
1: t('api.build-info.2341ce30'),
|
||||
2: t('api.build-info.a2c247c4'),
|
||||
0: t('i18n.a189314b9e'),
|
||||
1: t('i18n.ae6838c0e6'),
|
||||
2: t('i18n.31ecc0e65b'),
|
||||
3: 'SSH',
|
||||
4: t('api.build-info.a979b939'),
|
||||
5: t('api.build-info.913d1c8d')
|
||||
4: t('i18n.b71a7e6aab'),
|
||||
5: t('i18n.9136e1859a')
|
||||
}
|
||||
|
||||
export const triggerBuildTypeMap = {
|
||||
0: t('api.build-info.4139f3b5'),
|
||||
1: t('api.build-info.44701ced'),
|
||||
2: t('api.build-info.5bccadd3'),
|
||||
3: t('api.build-info.f6ef2a8')
|
||||
0: t('i18n.2a3e7f5c38'),
|
||||
1: t('i18n.4696724ed3'),
|
||||
2: t('i18n.72ebfe28b0'),
|
||||
3: t('i18n.31070fd376')
|
||||
}
|
||||
|
||||
export const buildModeMap = {
|
||||
0: t('api.build-info.db53bc39'),
|
||||
1: t('api.build-info.19d0a75')
|
||||
0: t('i18n.69c3b873c1'),
|
||||
1: t('i18n.685e5de706')
|
||||
}
|
||||
|
@ -120,14 +120,14 @@ export function getTriggerUrl(data) {
|
||||
}
|
||||
|
||||
export const statusMap = {
|
||||
0: t('api.command.5b123a0d'),
|
||||
1: t('api.command.f979b457'),
|
||||
2: t('api.command.2e68c441'),
|
||||
3: t('api.command.5da3d762')
|
||||
0: t('i18n.46e3867956'),
|
||||
1: t('i18n.ec219f99ee'),
|
||||
2: t('i18n.05f6e923af'),
|
||||
3: t('i18n.e2f942759e')
|
||||
}
|
||||
|
||||
export const triggerExecTypeMap = {
|
||||
0: t('api.command.4139f3b5'),
|
||||
1: t('api.command.dc8de4ff'),
|
||||
2: t('api.command.44701ced')
|
||||
0: t('i18n.2a3e7f5c38'),
|
||||
1: t('i18n.3aed2c11e9'),
|
||||
2: t('i18n.4696724ed3')
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ instance.interceptors.response.use(
|
||||
$notification.error({
|
||||
key: 'network-error-no-response',
|
||||
message: 'Network Error No response',
|
||||
description: t('api.config.80d94c1b') + error
|
||||
description: t('i18n.9ee0deb3c8') + error
|
||||
})
|
||||
} else if (!error.response.config.headers[NO_NOTIFY_KEY]) {
|
||||
const { status, statusText, data } = error.response
|
||||
@ -139,12 +139,12 @@ instance.interceptors.response.use(
|
||||
$notification.error({
|
||||
key: 'network-error-no-response',
|
||||
message: 'Network Error',
|
||||
description: t('api.config.80d94c1b') + error
|
||||
description: t('i18n.9ee0deb3c8') + error
|
||||
})
|
||||
} else {
|
||||
$notification.error({
|
||||
key: 'network-error-status-' + status,
|
||||
message: t('api.config.e4090b01') + status,
|
||||
message: t('i18n.cc9a708364') + status,
|
||||
description: (statusText || '') + (data || '')
|
||||
})
|
||||
}
|
||||
@ -196,8 +196,8 @@ async function request<T = any>(arg: string | AxiosRequestConfig, config?: Axios
|
||||
if (data.code === 999) {
|
||||
$notification.error({
|
||||
key: 'prohibit-access',
|
||||
message: t('api.config.26cb698e'),
|
||||
description: t('api.config.50ec27cf')
|
||||
message: t('i18n.bb9ef827bf'),
|
||||
description: t('i18n.f05e3ec44d')
|
||||
})
|
||||
window.location.href = jpomWindow_.routerBase + '/prohibit-access'
|
||||
return Promise.reject(data)
|
||||
@ -208,7 +208,7 @@ async function request<T = any>(arg: string | AxiosRequestConfig, config?: Axios
|
||||
// 如果 headers 里面配置了 tip: no 就不用弹出提示信息
|
||||
if (!response.config.headers[NO_NOTIFY_KEY]) {
|
||||
$notification.error({
|
||||
message: t('api.config.b12a126b') + (pro ? '' : response.config.url),
|
||||
message: t('i18n.1a8f90122f') + (pro ? '' : response.config.url),
|
||||
description: data.msg
|
||||
})
|
||||
console.error(response.config.url, data)
|
||||
@ -227,8 +227,8 @@ async function handleRefreshTokenAndRetryQueue(config: InternalAxiosRequestConfi
|
||||
try {
|
||||
$notification.info({
|
||||
key: 'login-timeout',
|
||||
message: t('api.config.f3e23cfc'),
|
||||
description: t('api.config.e50dee1a')
|
||||
message: t('i18n.72d46ec2cf'),
|
||||
description: t('i18n.f652d8cca7')
|
||||
})
|
||||
// 执行续签操作
|
||||
const result = await refreshToken()
|
||||
@ -238,8 +238,8 @@ async function handleRefreshTokenAndRetryQueue(config: InternalAxiosRequestConfi
|
||||
await userStore.login(result.data)
|
||||
$notification.success({
|
||||
key: 'login-timeout',
|
||||
message: t('api.config.f3e23cfc'),
|
||||
description: t('api.config.a1387e97')
|
||||
message: t('i18n.72d46ec2cf'),
|
||||
description: t('i18n.a7c8eea801')
|
||||
})
|
||||
// 更新token到config中,以便于后续请求使用新token
|
||||
config.headers[TOKEN_HEADER_KEY] = userStore.getToken()
|
||||
@ -247,12 +247,12 @@ async function handleRefreshTokenAndRetryQueue(config: InternalAxiosRequestConfi
|
||||
resolve(result2)
|
||||
isRefreshing = false
|
||||
} else {
|
||||
toLoginOnly(t('api.config.f3e23cfc'), t('api.config.b40257fb') + result.msg + t('api.config.377b243'))
|
||||
toLoginOnly(t('i18n.72d46ec2cf'), t('i18n.edc1185b8e') + result.msg + t('i18n.d3fb6a7c83'))
|
||||
return
|
||||
}
|
||||
} catch (error) {
|
||||
//reject('Failed to refresh token:' + error)
|
||||
toLoginOnly(t('api.config.f3e23cfc'), t('api.config.b40257fb') + error + t('api.config.377b243'))
|
||||
toLoginOnly(t('i18n.72d46ec2cf'), t('i18n.edc1185b8e') + error + t('i18n.d3fb6a7c83'))
|
||||
} finally {
|
||||
}
|
||||
})
|
||||
@ -274,7 +274,7 @@ async function handleRefreshTokenAndRetryQueue(config: InternalAxiosRequestConfi
|
||||
}
|
||||
|
||||
function toLogin(res: IResponse<any>, response: AxiosResponse<IResponse<any>>) {
|
||||
return toLogin2(t('api.config.b12a126b') + (pro ? '' : response.config.url), res.msg)
|
||||
return toLogin2(t('i18n.1a8f90122f') + (pro ? '' : response.config.url), res.msg)
|
||||
}
|
||||
|
||||
function toLogin2(message: any, description: any) {
|
||||
|
@ -277,40 +277,40 @@ export function saveDispatchProjectConfig(data) {
|
||||
}
|
||||
|
||||
export const afterOptList = [
|
||||
{ title: t('api.dispatch.83fd11a1'), value: 0 },
|
||||
{ title: t('api.dispatch.e77cefce'), value: 1 },
|
||||
{ title: t('api.dispatch.c1710178'), value: 2 },
|
||||
{ title: t('api.dispatch.54d3f1f5'), value: 3 }
|
||||
{ title: t('i18n.a2ebd000e4'), value: 0 },
|
||||
{ title: t('i18n.82915930eb'), value: 1 },
|
||||
{ title: t('i18n.0e1ecdae4a'), value: 2 },
|
||||
{ title: t('i18n.8887e94cb7'), value: 3 }
|
||||
]
|
||||
|
||||
export const afterOptListSimple = [
|
||||
{ title: t('api.dispatch.83fd11a1'), value: 0 },
|
||||
{ title: t('api.dispatch.865550b4'), value: 1 }
|
||||
{ title: t('i18n.a2ebd000e4'), value: 0 },
|
||||
{ title: t('i18n.913ef5d129'), value: 1 }
|
||||
]
|
||||
|
||||
export const dispatchStatusMap = {
|
||||
0: t('api.dispatch.afc66cc9'),
|
||||
1: t('api.dispatch.a7e33987'),
|
||||
2: t('api.dispatch.cce13f66'),
|
||||
3: t('api.dispatch.d9db160a'),
|
||||
4: t('api.dispatch.aab64cfb'),
|
||||
5: t('api.dispatch.9622bffb'),
|
||||
6: t('api.dispatch.5b773403')
|
||||
0: t('i18n.29efa328e5'),
|
||||
1: t('i18n.5b3ffc2910'),
|
||||
2: t('i18n.7e300e89b1'),
|
||||
3: t('i18n.2a049f4f5b'),
|
||||
4: t('i18n.036c0dc2aa'),
|
||||
5: t('i18n.339097ba2e'),
|
||||
6: t('i18n.7bf62f7284')
|
||||
}
|
||||
|
||||
export const statusMap = {
|
||||
0: t('api.dispatch.afc66cc9'),
|
||||
1: t('api.dispatch.a7e33987'),
|
||||
2: t('api.dispatch.f44cbbb4'),
|
||||
3: t('api.dispatch.fa14a52c'),
|
||||
4: t('api.dispatch.d9db160a')
|
||||
0: t('i18n.29efa328e5'),
|
||||
1: t('i18n.5b3ffc2910'),
|
||||
2: t('i18n.3ea6c5e8ec'),
|
||||
3: t('i18n.30e855a053'),
|
||||
4: t('i18n.2a049f4f5b')
|
||||
}
|
||||
|
||||
export const dispatchMode = {
|
||||
upload: t('api.dispatch.17e12f0a'),
|
||||
download: t('api.dispatch.5b364aef'),
|
||||
'build-trigger': t('api.dispatch.3e0a458'),
|
||||
'use-build': t('api.dispatch.29329b03'),
|
||||
'static-file-storage': t('api.dispatch.d0afc180'),
|
||||
'file-storage': t('api.dispatch.ec4380bb')
|
||||
upload: t('i18n.bd7c8c96bc'),
|
||||
download: t('i18n.bd7043cae3'),
|
||||
'build-trigger': t('i18n.74d5f61b9f'),
|
||||
'use-build': t('i18n.c1af35d001'),
|
||||
'static-file-storage': t('i18n.28f6e7a67b'),
|
||||
'file-storage': t('i18n.26183c99bf')
|
||||
}
|
||||
|
@ -204,19 +204,19 @@ export function dockerSwarmServicesDownloaLog(urlPrefix, id) {
|
||||
<a-select-option key="ORPHANED">已失联</a-select-option>
|
||||
*/
|
||||
export const TASK_STATE = {
|
||||
NEW: t('api.docker-swarm.d84cdb52'),
|
||||
NEW: t('i18n.40da3fb58b'),
|
||||
// ALLOCATED: "已分配",
|
||||
PENDING: t('api.docker-swarm.f7d829eb'),
|
||||
ASSIGNED: t('api.docker-swarm.8192b104'),
|
||||
ACCEPTED: t('api.docker-swarm.fc1391c9'),
|
||||
PREPARING: t('api.docker-swarm.bda03d7d'),
|
||||
READY: t('api.docker-swarm.2a21d3d2'),
|
||||
STARTING: t('api.docker-swarm.7487690f'),
|
||||
RUNNING: t('api.docker-swarm.942d3df3'),
|
||||
COMPLETE: t('api.docker-swarm.c1d43085'),
|
||||
SHUTDOWN: t('api.docker-swarm.24540de'),
|
||||
FAILED: t('api.docker-swarm.d4ee19e9'),
|
||||
REJECTED: t('api.docker-swarm.8582af3f'),
|
||||
REMOVE: t('api.docker-swarm.65fcbd09'),
|
||||
ORPHANED: t('api.docker-swarm.e99ab4ea')
|
||||
PENDING: t('i18n.047109def4'),
|
||||
ASSIGNED: t('i18n.fbfa6c18bf'),
|
||||
ACCEPTED: t('i18n.5d459d550a'),
|
||||
PREPARING: t('i18n.f76540a92e'),
|
||||
READY: t('i18n.424a2ad8f7'),
|
||||
STARTING: t('i18n.a34c24719b'),
|
||||
RUNNING: t('i18n.e9e9373c6f'),
|
||||
COMPLETE: t('i18n.f56c1d014e'),
|
||||
SHUTDOWN: t('i18n.095e938e2a'),
|
||||
FAILED: t('i18n.1c83d79715'),
|
||||
REJECTED: t('i18n.7173f80900'),
|
||||
REMOVE: t('i18n.86048b4fea'),
|
||||
ORPHANED: t('i18n.788a3afc90')
|
||||
}
|
||||
|
@ -89,14 +89,14 @@ export function triggerUrl(params) {
|
||||
}
|
||||
|
||||
export const sourceMap = {
|
||||
0: t('api.file-manager.file-storage.ae09d79d'),
|
||||
1: t('api.file-manager.file-storage.fe7ede8b'),
|
||||
2: t('api.file-manager.file-storage.65b21404'),
|
||||
3: t('api.file-manager.file-storage.481e8a05')
|
||||
0: t('i18n.d5a73b0c7f'),
|
||||
1: t('i18n.fcba60e773'),
|
||||
2: t('i18n.f26ef91424'),
|
||||
3: t('i18n.d40b511510')
|
||||
}
|
||||
|
||||
export const statusMap = {
|
||||
0: t('api.file-manager.file-storage.d919f7c7'),
|
||||
1: t('api.file-manager.file-storage.b46a531a'),
|
||||
2: t('api.file-manager.file-storage.d43541fc')
|
||||
0: t('i18n.2d455ce5cd'),
|
||||
1: t('i18n.50940ed76f'),
|
||||
2: t('i18n.af924a1a14')
|
||||
}
|
||||
|
@ -77,14 +77,14 @@ export function taskLogInfoList(params) {
|
||||
}
|
||||
|
||||
export const statusMap = {
|
||||
0: t('api.file-manager.release-task-log.4430873a'),
|
||||
1: t('api.file-manager.release-task-log.bfb17443'),
|
||||
2: t('api.file-manager.release-task-log.a3ef7878'),
|
||||
3: t('api.file-manager.release-task-log.4adb4e9b'),
|
||||
4: t('api.file-manager.release-task-log.8e26504a')
|
||||
0: t('i18n.a87818b04f'),
|
||||
1: t('i18n.fb852fc6cc'),
|
||||
2: t('i18n.5ab90c17a3'),
|
||||
3: t('i18n.250688d7c9'),
|
||||
4: t('i18n.d926e2f58e')
|
||||
}
|
||||
|
||||
export const taskTypeMap = {
|
||||
0: 'SSH',
|
||||
1: t('api.file-manager.release-task-log.e076d90b')
|
||||
1: t('i18n.3bf3c0a8d6')
|
||||
}
|
||||
|
@ -140,8 +140,8 @@ export function deleteMonitorOperate(id) {
|
||||
}
|
||||
|
||||
export const notifyStyle = {
|
||||
0: t('api.monitor.ca3e5e1b'),
|
||||
1: t('api.monitor.c654b275'),
|
||||
2: t('api.monitor.6dcc4f03'),
|
||||
0: t('i18n.4a0e9142e7'),
|
||||
1: t('i18n.3bc5e602b2'),
|
||||
2: t('i18n.ff17b9f9cd'),
|
||||
3: 'webhook'
|
||||
}
|
||||
|
@ -87,9 +87,9 @@ export function syncScript(params) {
|
||||
})
|
||||
}
|
||||
export const triggerExecTypeMap = {
|
||||
0: t('api.node-other.4139f3b5'),
|
||||
1: t('api.node-other.dc8de4ff'),
|
||||
2: t('api.node-other.44701ced')
|
||||
0: t('i18n.2a3e7f5c38'),
|
||||
1: t('i18n.3aed2c11e9'),
|
||||
2: t('i18n.4696724ed3')
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -542,18 +542,18 @@ export function getProjectGroupAll() {
|
||||
export const runModeList = ['Dsl', 'ClassPath', 'Jar', 'JarWar', 'JavaExtDirsCp', 'File', 'Link']
|
||||
|
||||
export const runModeArray = [
|
||||
{ name: 'Dsl', desc: t('api.node-project.817ed490') },
|
||||
{ name: 'ClassPath', desc: t('api.node-project.ba1922ad') },
|
||||
{ name: 'Jar', desc: t('api.node-project.575da0af') },
|
||||
{ name: 'JavaExtDirsCp', desc: t('api.node-project.1470f80e') },
|
||||
{ name: 'File', desc: t('api.node-project.9344737c') },
|
||||
{ name: 'Dsl', desc: t('i18n.386edb98a5') },
|
||||
{ name: 'ClassPath', desc: t('i18n.f9c9f95929') },
|
||||
{ name: 'Jar', desc: t('i18n.be24e5ffbe') },
|
||||
{ name: 'JavaExtDirsCp', desc: t('i18n.eef4dfe786') },
|
||||
{ name: 'File', desc: t('i18n.f282058f75') },
|
||||
{
|
||||
name: 'Link',
|
||||
desc: t('api.node-project.442c1685'),
|
||||
desc: t('i18n.c538b1db4a'),
|
||||
// 仅有节点有此项目(节点分发不支持)
|
||||
onlyNode: true
|
||||
},
|
||||
{ name: 'JarWar', desc: t('api.node-project.8117f976') }
|
||||
{ name: 'JarWar', desc: t('i18n.d6eab4107a') }
|
||||
]
|
||||
|
||||
/**
|
||||
|
@ -105,7 +105,7 @@ const defaultData = {
|
||||
*/
|
||||
export function generateNodeTopChart(data) {
|
||||
const cpuItem = {
|
||||
name: t('api.node-stat.b2fe8225'),
|
||||
name: t('i18n.7f5bcd975b'),
|
||||
type: 'line',
|
||||
data: [],
|
||||
showSymbol: false,
|
||||
@ -113,28 +113,28 @@ export function generateNodeTopChart(data) {
|
||||
smooth: true
|
||||
}
|
||||
const diskItem = {
|
||||
name: t('api.node-stat.f503ab56'),
|
||||
name: t('i18n.f5d14ee3f8'),
|
||||
type: 'line',
|
||||
data: [],
|
||||
showSymbol: false,
|
||||
smooth: true
|
||||
}
|
||||
const memoryItem = {
|
||||
name: t('api.node-stat.f892bef6'),
|
||||
name: t('i18n.883848dd37'),
|
||||
type: 'line',
|
||||
data: [],
|
||||
showSymbol: false,
|
||||
smooth: true
|
||||
}
|
||||
const virtualMemory = {
|
||||
name: t('api.node-stat.9b6411f6'),
|
||||
name: t('i18n.07a03567aa'),
|
||||
type: 'line',
|
||||
data: [],
|
||||
showSymbol: false,
|
||||
smooth: true
|
||||
}
|
||||
const swapMemory = {
|
||||
name: t('api.node-stat.93a9742d'),
|
||||
name: t('i18n.0895c740a6'),
|
||||
type: 'line',
|
||||
data: [],
|
||||
showSymbol: false,
|
||||
@ -212,7 +212,7 @@ export function generateNodeTopChart(data) {
|
||||
*/
|
||||
export function generateNodeNetChart(data) {
|
||||
const rxItem = {
|
||||
name: t('api.node-stat.9ffc4b4d'),
|
||||
name: t('i18n.15e9238b79'),
|
||||
type: 'line',
|
||||
data: [],
|
||||
showSymbol: false,
|
||||
@ -220,7 +220,7 @@ export function generateNodeNetChart(data) {
|
||||
smooth: true
|
||||
}
|
||||
const txItem = {
|
||||
name: t('api.node-stat.c60e4ac2'),
|
||||
name: t('i18n.1535fcfa4c'),
|
||||
type: 'line',
|
||||
data: [],
|
||||
showSymbol: false,
|
||||
@ -281,7 +281,7 @@ export function generateNodeNetChart(data) {
|
||||
*/
|
||||
export function generateNodeNetworkTimeChart(data) {
|
||||
const dataArray = {
|
||||
name: t('api.node-stat.bd96d908'),
|
||||
name: t('i18n.204222d167'),
|
||||
type: 'line',
|
||||
data: [],
|
||||
showSymbol: false,
|
||||
|
@ -122,8 +122,8 @@ export function getTriggerUrl(data) {
|
||||
}
|
||||
|
||||
export const triggerExecTypeMap = {
|
||||
0: t('api.server-script.4139f3b5'),
|
||||
1: t('api.server-script.dc8de4ff'),
|
||||
2: t('api.server-script.44701ced'),
|
||||
3: t('api.server-script.a1e86c58')
|
||||
0: t('i18n.2a3e7f5c38'),
|
||||
1: t('i18n.3aed2c11e9'),
|
||||
2: t('i18n.4696724ed3'),
|
||||
3: t('i18n.dba16b1b92')
|
||||
}
|
||||
|
@ -146,6 +146,6 @@ export function dockerListWorkspace(params) {
|
||||
}
|
||||
|
||||
export const statusMap = {
|
||||
0: { desc: t('api.system.assets-docker.b26020d2'), color: 'red' },
|
||||
1: { desc: t('api.system.assets-docker.591ff086'), color: 'green' }
|
||||
0: { desc: t('i18n.757a730c9e'), color: 'red' },
|
||||
1: { desc: t('i18n.0f0a5f6107'), color: 'green' }
|
||||
}
|
||||
|
@ -56,11 +56,11 @@ export function machineDistribute(params) {
|
||||
}
|
||||
|
||||
export const statusMap = {
|
||||
0: t('api.system.assets-machine.b26020d2'),
|
||||
1: t('api.system.assets-machine.e039b9b5'),
|
||||
2: t('api.system.assets-machine.2eff6016'),
|
||||
3: t('api.system.assets-machine.8ae7a8a'),
|
||||
4: t('api.system.assets-machine.f1e810b2')
|
||||
0: t('i18n.757a730c9e'),
|
||||
1: t('i18n.fd6e80f1e0'),
|
||||
2: t('i18n.c18455fbe3'),
|
||||
3: t('i18n.c5bbaed670'),
|
||||
4: t('i18n.a14da34559')
|
||||
}
|
||||
|
||||
// 查看机器关联节点
|
||||
|
@ -124,7 +124,7 @@ export function importData(formData) {
|
||||
}
|
||||
|
||||
export const statusMap = {
|
||||
0: { desc: t('api.system.assets-ssh.b26020d2'), color: 'red' },
|
||||
1: { desc: t('api.system.assets-ssh.e039b9b5'), color: 'green' },
|
||||
2: { desc: t('api.system.assets-ssh.3eb8617a'), color: 'orange' }
|
||||
0: { desc: t('i18n.757a730c9e'), color: 'red' },
|
||||
1: { desc: t('i18n.fd6e80f1e0'), color: 'green' },
|
||||
2: { desc: t('i18n.46158d0d6e'), color: 'orange' }
|
||||
}
|
||||
|
@ -20,11 +20,11 @@ export function userLoginLgin(params) {
|
||||
}
|
||||
|
||||
export const operateCodeMap = {
|
||||
0: t('api.user.user-login-log.a1d02c3e'),
|
||||
1: t('api.user.user-login-log.e5849544'),
|
||||
2: t('api.user.user-login-log.2d6b6d8f'),
|
||||
3: t('api.user.user-login-log.d08efdf4'),
|
||||
4: t('api.user.user-login-log.227abc8e'),
|
||||
5: t('api.user.user-login-log.521c4ec2'),
|
||||
0: t('i18n.dd95bf2d45'),
|
||||
1: t('i18n.5a5368cf9b'),
|
||||
2: t('i18n.18d49918f5'),
|
||||
3: t('i18n.a093ae6a6e'),
|
||||
4: t('i18n.8b63640eee'),
|
||||
5: t('i18n.bb9a581f48'),
|
||||
6: 'oauth2'
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
height: height
|
||||
}"
|
||||
>
|
||||
<a-spin v-if="loading" :tip="$t('components.codeEditor.index.23a71197')" :spinning="loading">
|
||||
<a-spin v-if="loading" :tip="$t('i18n.6a8c30bd06')" :spinning="loading">
|
||||
<a-skeleton />
|
||||
</a-spin>
|
||||
<template v-else>
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
<a-space class="tool-bar-end">
|
||||
<div>
|
||||
{{ $t('components.codeEditor.index.18a600ba')
|
||||
{{ $t('i18n.08902526f1')
|
||||
}}<a-select
|
||||
v-model:value="cmOptions.theme"
|
||||
show-search
|
||||
@ -28,7 +28,7 @@
|
||||
)
|
||||
}
|
||||
"
|
||||
:placeholder="$t('components.codeEditor.index.b93f2874')"
|
||||
:placeholder="$t('i18n.37b30fc862')"
|
||||
style="width: 150px"
|
||||
@select="handleSelectTheme"
|
||||
>
|
||||
@ -36,7 +36,7 @@
|
||||
</a-select>
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('components.codeEditor.index.9ffb8723')
|
||||
{{ $t('i18n.117a9cbc8d')
|
||||
}}<a-select
|
||||
v-model:value="cmOptions.mode"
|
||||
show-search
|
||||
@ -50,11 +50,11 @@
|
||||
)
|
||||
}
|
||||
"
|
||||
:placeholder="$t('components.codeEditor.index.ce1e3802')"
|
||||
:placeholder="$t('i18n.773b1a5ef6')"
|
||||
style="width: 150px"
|
||||
@select="handleSelectMode"
|
||||
>
|
||||
<a-select-option value="">{{ $t('components.codeEditor.index.ce1e3802') }}</a-select-option>
|
||||
<a-select-option value="">{{ $t('i18n.773b1a5ef6') }}</a-select-option>
|
||||
<a-select-option v-for="item in modeList" :key="item.mode">{{ item.name }}</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
@ -62,13 +62,13 @@
|
||||
<a-tooltip>
|
||||
<template #title>
|
||||
<ul>
|
||||
<li><b>Ctrl-F / Cmd-F</b> {{ $t('components.codeEditor.index.77c1e63d') }}</li>
|
||||
<li><b>Ctrl-G / Cmd-G</b> {{ $t('components.codeEditor.index.4f85e42e') }}</li>
|
||||
<li><b>Shift-Ctrl-G / Shift-Cmd-G</b> {{ $t('components.codeEditor.index.e9f2ef9a') }}</li>
|
||||
<li><b>Shift-Ctrl-F / Cmd-Option-F</b> {{ $t('components.codeEditor.index.6a91de60') }}</li>
|
||||
<li><b>Shift-Ctrl-R / Shift-Cmd-Option-F</b> {{ $t('components.codeEditor.index.d720ba75') }}</li>
|
||||
<li><b>Alt-F</b> {{ $t('components.codeEditor.index.6bcfa0bc') }}</li>
|
||||
<li><b>Alt-G</b> {{ $t('components.codeEditor.index.e2621574') }}</li>
|
||||
<li><b>Ctrl-F / Cmd-F</b> {{ $t('i18n.99d3e5c718') }}</li>
|
||||
<li><b>Ctrl-G / Cmd-G</b> {{ $t('i18n.6292498392') }}</li>
|
||||
<li><b>Shift-Ctrl-G / Shift-Cmd-G</b> {{ $t('i18n.11e88c95ee') }}</li>
|
||||
<li><b>Shift-Ctrl-F / Cmd-Option-F</b> {{ $t('i18n.d324f8b5c9') }}</li>
|
||||
<li><b>Shift-Ctrl-R / Shift-Cmd-Option-F</b> {{ $t('i18n.b9c4cf7483') }}</li>
|
||||
<li><b>Alt-F</b> {{ $t('i18n.9402665a2c') }}</li>
|
||||
<li><b>Alt-G</b> {{ $t('i18n.5fc6c33832') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
<QuestionCircleOutlined />
|
||||
@ -307,7 +307,7 @@ export default {
|
||||
placeholder: {
|
||||
type: String,
|
||||
default: function () {
|
||||
return t('components.codeEditor.index.4ea93630')
|
||||
return t('i18n.a11cc7a65b')
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -375,14 +375,14 @@ export default {
|
||||
// { name: 'ayu深2', theme: 'ayu-mirage' },
|
||||
// { name: '浅灰', theme: 'bespin' }
|
||||
|
||||
{ name: this.$t('components.codeEditor.index.49d615d0'), theme: 'abbott' },
|
||||
{ name: this.$t('components.codeEditor.index.5d5fcf0c'), theme: 'abcdef' },
|
||||
{ name: this.$t('components.codeEditor.index.8b36cd9a'), theme: 'ambiance-mobile' },
|
||||
{ name: this.$t('components.codeEditor.index.f135212d'), theme: 'ambiance' },
|
||||
{ name: this.$t('components.codeEditor.index.1eeb7ec7'), theme: 'dracula' },
|
||||
{ name: this.$t('components.codeEditor.index.5cb430c4'), theme: 'eclipse' },
|
||||
{ name: this.$t('components.codeEditor.index.e26f389a'), theme: 'blackboard' },
|
||||
{ name: this.$t('components.codeEditor.index.10adc4a3'), theme: 'idea' },
|
||||
{ name: this.$t('i18n.72eae3107e'), theme: 'abbott' },
|
||||
{ name: this.$t('i18n.96c1c8f4ee'), theme: 'abcdef' },
|
||||
{ name: this.$t('i18n.cad01fe13c'), theme: 'ambiance-mobile' },
|
||||
{ name: this.$t('i18n.1880b85dc5'), theme: 'ambiance' },
|
||||
{ name: this.$t('i18n.50ed14e70b'), theme: 'dracula' },
|
||||
{ name: this.$t('i18n.d937a135b9'), theme: 'eclipse' },
|
||||
{ name: this.$t('i18n.be1956b246'), theme: 'blackboard' },
|
||||
{ name: this.$t('i18n.8cae9cb626'), theme: 'idea' },
|
||||
{ name: 'ayu-dark', theme: 'ayu-dark' },
|
||||
{ name: 'ayu-mirage', theme: 'ayu-mirage' },
|
||||
{ name: 'base16-dark', theme: 'base16-dark' },
|
||||
|
@ -25,7 +25,7 @@
|
||||
</template>
|
||||
</a-tree>
|
||||
<a-empty v-else :image="Empty.PRESENTED_IMAGE_SIMPLE">
|
||||
<template #description>{{ $t('components.compositionTransfer.composition-transfer.f8525cf2') }}</template>
|
||||
<template #description>{{ $t('i18n.21efd88b67') }}</template>
|
||||
</a-empty>
|
||||
</template>
|
||||
<template v-else-if="direction === 'right'">
|
||||
@ -46,7 +46,7 @@
|
||||
</template>
|
||||
</a-tree>
|
||||
<a-empty v-else :image="Empty.PRESENTED_IMAGE_SIMPLE">
|
||||
<template #description>{{ $t('components.compositionTransfer.composition-transfer.f8525cf2') }}</template>
|
||||
<template #description>{{ $t('i18n.21efd88b67') }}</template>
|
||||
</a-empty>
|
||||
</template>
|
||||
</template>
|
||||
|
@ -10,20 +10,20 @@
|
||||
<template #addonBefore>
|
||||
<a-tooltip>
|
||||
<template #title
|
||||
>{{ $t('components.customInput.index.cee23a04') }}
|
||||
>{{ $t('i18n.e6551a2295') }}
|
||||
<ul v-if="!envList.length">
|
||||
{{
|
||||
$t('components.customInput.index.8a9fee0b')
|
||||
$t('i18n.7afb02ed93')
|
||||
}}
|
||||
</ul>
|
||||
</template>
|
||||
<a-select
|
||||
v-model:value="selectData"
|
||||
:placeholder="$t('components.customInput.index.fca5b3d2')"
|
||||
:placeholder="$t('i18n.3a1052ccfc')"
|
||||
style="width: 120px"
|
||||
@change="selectChange"
|
||||
>
|
||||
<a-select-option value="">{{ $t('components.customInput.index.38f36dfa') }}</a-select-option>
|
||||
<a-select-option value="">{{ $t('i18n.e76e6a13dd') }}</a-select-option>
|
||||
<a-select-option v-for="item in envList" :key="item.id" :value="item.name"
|
||||
>{{ item.name }}
|
||||
</a-select-option>
|
||||
@ -37,20 +37,20 @@
|
||||
<template #addonBefore>
|
||||
<a-tooltip>
|
||||
<template #title
|
||||
>{{ $t('components.customInput.index.cee23a04') }}
|
||||
>{{ $t('i18n.e6551a2295') }}
|
||||
<ul v-if="!envList.length">
|
||||
{{
|
||||
$t('components.customInput.index.8a9fee0b')
|
||||
$t('i18n.7afb02ed93')
|
||||
}}
|
||||
</ul>
|
||||
</template>
|
||||
<a-select
|
||||
v-model:value="selectData"
|
||||
:placeholder="$t('components.customInput.index.fca5b3d2')"
|
||||
:placeholder="$t('i18n.3a1052ccfc')"
|
||||
style="width: 120px"
|
||||
@change="selectChange"
|
||||
>
|
||||
<a-select-option value="">{{ $t('components.customInput.index.fca5b3d2') }}</a-select-option>
|
||||
<a-select-option value="">{{ $t('i18n.3a1052ccfc') }}</a-select-option>
|
||||
<a-select-option v-for="item in envList" :key="item.id" :value="item.name"
|
||||
>{{ item.name }}
|
||||
</a-select-option>
|
||||
@ -77,7 +77,7 @@ export default {
|
||||
placeholder: {
|
||||
type: String,
|
||||
default: function () {
|
||||
return t('components.customInput.index.769d59d')
|
||||
return t('i18n.101a86bc84')
|
||||
}
|
||||
},
|
||||
type: {
|
||||
|
@ -15,7 +15,7 @@
|
||||
<a-space>
|
||||
<a-input ref="inputRef" v-model:value="selectInput" :max-length="maxLength" :placeholder="inputPlaceholder" />
|
||||
<a-button type="text" @click="addInput(selectInput)">
|
||||
<template #icon> <plus-outlined /> </template>{{ $t('components.customSelect.index.1644b775') }}</a-button
|
||||
<template #icon> <plus-outlined /> </template>{{ $t('i18n.66ab5e9f24') }}</a-button
|
||||
>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -52,13 +52,13 @@ export default {
|
||||
inputPlaceholder: {
|
||||
type: String,
|
||||
default: function () {
|
||||
return t('components.customSelect.index.769d59d')
|
||||
return t('i18n.101a86bc84')
|
||||
}
|
||||
},
|
||||
selectPlaceholder: {
|
||||
type: String,
|
||||
default: function () {
|
||||
return t('components.customSelect.index.3bb646e4')
|
||||
return t('i18n.708c9d6d2a')
|
||||
}
|
||||
},
|
||||
selStyle: { type: String, default: '' },
|
||||
|
@ -12,25 +12,25 @@ import { t } from '@/i18n'
|
||||
export const tableSizeList = [
|
||||
{
|
||||
value: 'large',
|
||||
label: t('components.customTable.dict.index.2325de1c')
|
||||
label: t('i18n.949934d97c')
|
||||
},
|
||||
{
|
||||
value: 'middle',
|
||||
label: t('components.customTable.dict.index.80c1453f')
|
||||
label: t('i18n.eadd05ba6a')
|
||||
},
|
||||
{
|
||||
value: 'small',
|
||||
label: t('components.customTable.dict.index.d39bbae4')
|
||||
label: t('i18n.03e59bb33c')
|
||||
}
|
||||
]
|
||||
|
||||
export const tableLayoutList = [
|
||||
{
|
||||
value: 'table',
|
||||
label: t('components.customTable.dict.index.4ff250dc')
|
||||
label: t('i18n.b339aa8710')
|
||||
},
|
||||
{
|
||||
value: 'card',
|
||||
label: t('components.customTable.dict.index.7edad275')
|
||||
label: t('i18n.d87f215d9a')
|
||||
}
|
||||
]
|
||||
|
@ -16,13 +16,13 @@
|
||||
</template>
|
||||
<a-form-item>
|
||||
<template #label>
|
||||
<span style="font-weight: normal">{{ $t('components.customTable.index.155dfc81') }}</span>
|
||||
<span style="font-weight: normal">{{ $t('i18n.891db2373b') }}</span>
|
||||
</template>
|
||||
<a-space v-if="!props.isHideAutoRefresh">
|
||||
<a-switch
|
||||
v-model:checked="countdownSwitch"
|
||||
:checked-children="$t('components.customTable.index.f5a0a9cd')"
|
||||
:un-checked-children="$t('components.customTable.index.44f44561')"
|
||||
:checked-children="$t('i18n.8493205602')"
|
||||
:un-checked-children="$t('i18n.d58a55bcee')"
|
||||
@change="countDownChange"
|
||||
/>
|
||||
<a-divider v-if="countdownSwitch" type="vertical" />
|
||||
@ -30,26 +30,26 @@
|
||||
<a-statistic-countdown
|
||||
v-if="countdownSwitch"
|
||||
format=" s"
|
||||
:title="$t('components.customTable.index.b02c67c3')"
|
||||
:title="$t('i18n.14feaa5b3a')"
|
||||
:value="countdownNumber"
|
||||
@finish="countDownFinish"
|
||||
>
|
||||
<template #suffix>
|
||||
<div style="font-size: 12px">{{ $t('components.customTable.index.de756058') }}</div>
|
||||
<div style="font-size: 12px">{{ $t('i18n.ee6ce96abb') }}</div>
|
||||
</template>
|
||||
</a-statistic-countdown>
|
||||
</div>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
<a-form-item>
|
||||
<a-tooltip v-if="!props.isHideRefresh" :title="$t('components.customTable.index.b76d94e0')">
|
||||
<a-tooltip v-if="!props.isHideRefresh" :title="$t('i18n.694fc5efa9')">
|
||||
<ReloadOutlined class="table-action__icon" @click="refreshClick" />
|
||||
</a-tooltip>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item>
|
||||
<a-popover
|
||||
:title="$t('components.customTable.index.7c3745c1')"
|
||||
:title="$t('i18n.bdd9d38d7e')"
|
||||
trigger="click"
|
||||
placement="bottomRight"
|
||||
>
|
||||
@ -60,7 +60,7 @@
|
||||
</div>
|
||||
</a-radio-group>
|
||||
</template>
|
||||
<a-tooltip :title="$t('components.customTable.index.7c3745c1')">
|
||||
<a-tooltip :title="$t('i18n.bdd9d38d7e')">
|
||||
<ColumnHeightOutlined class="table-action__icon" />
|
||||
</a-tooltip>
|
||||
</a-popover>
|
||||
@ -70,9 +70,9 @@
|
||||
<a-popover v-if="props.tableName" trigger="click" placement="bottomRight">
|
||||
<template #title>
|
||||
<div class="custom-column-list__title">
|
||||
<div>{{ $t('components.customTable.index.381c1f59') }}</div>
|
||||
<div>{{ $t('i18n.949a8b7bd2') }}</div>
|
||||
<a-button type="link" size="small" @click="resetCustomColumn">{{
|
||||
$t('components.customTable.index.50d471b2')
|
||||
$t('i18n.4b9c3271dc')
|
||||
}}</a-button>
|
||||
</div>
|
||||
</template>
|
||||
@ -103,14 +103,14 @@
|
||||
</Container>
|
||||
</a-checkbox-group>
|
||||
</template>
|
||||
<a-tooltip :title="$t('components.customTable.index.381c1f59')">
|
||||
<a-tooltip :title="$t('i18n.949a8b7bd2')">
|
||||
<SettingOutlined />
|
||||
</a-tooltip>
|
||||
</a-popover>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item v-if="canChangeLayout">
|
||||
<a-tooltip :title="$t('components.customTable.index.d2593287')">
|
||||
<a-tooltip :title="$t('i18n.03816381ec')">
|
||||
<!-- <ReloadOutlined /> -->
|
||||
<TableOutlined v-if="tableLayout === 'card'" class="table-action__icon" @click="tableLayoutClick" />
|
||||
<LayoutOutlined v-else class="table-action__icon" @click="tableLayoutClick" />
|
||||
@ -158,7 +158,7 @@
|
||||
</a-space>
|
||||
<!-- <slot name="cardPageTool"></slot> -->
|
||||
</template>
|
||||
<template v-else>{{ $t('components.customTable.index.5bb0e859') }}</template>
|
||||
<template v-else>{{ $t('i18n.f4edba3c9d') }}</template>
|
||||
</a-card>
|
||||
</a-card>
|
||||
</div>
|
||||
|
@ -63,7 +63,7 @@ export const customTableProps = initDefaultProps(
|
||||
// 空数据时现在内容
|
||||
emptyDescription: {
|
||||
type: String,
|
||||
deafult: t('components.customTable.props.d9634f4e')
|
||||
deafult: t('i18n.807ed6f5a6')
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -73,6 +73,6 @@ export const customTableProps = initDefaultProps(
|
||||
isHideRefresh: false,
|
||||
autoRefreshTime: 10,
|
||||
activePage: false,
|
||||
emptyDescription: t('components.customTable.props.d9634f4e')
|
||||
emptyDescription: t('i18n.807ed6f5a6')
|
||||
}
|
||||
)
|
||||
|
@ -20,19 +20,19 @@
|
||||
|
||||
<a-col v-if="extendBar" style="padding-left: 10px">
|
||||
<a-space>
|
||||
<a-tooltip :title="$t('components.logView.index.4cf99f17')">
|
||||
<a-tooltip :title="$t('i18n.65f66dfe97')">
|
||||
<a-button type="primary" size="small" @click="clearLogCache"
|
||||
><DeleteOutlined />{{ $t('components.logView.index.7333c7f7') }}</a-button
|
||||
><DeleteOutlined />{{ $t('i18n.288f0c404c') }}</a-button
|
||||
>
|
||||
</a-tooltip>
|
||||
<!-- <a-tooltip title="内容超过边界自动换行">
|
||||
<a-switch v-model="temp.wordBreak" checked-children="自动换行" un-checked-children="不换行" @change="onChange" />
|
||||
</a-tooltip> -->
|
||||
<a-tooltip :title="$t('components.logView.index.96536900')">
|
||||
<a-tooltip :title="$t('i18n.0693e17fc1')">
|
||||
<a-switch
|
||||
v-model:checked="temp.logScroll"
|
||||
:checked-children="$t('components.logView.index.d04d40c8')"
|
||||
:un-checked-children="$t('components.logView.index.aebe0b63')"
|
||||
:checked-children="$t('i18n.e0ce74fcac')"
|
||||
:un-checked-children="$t('i18n.18b34cf50d')"
|
||||
@change="onChange"
|
||||
/>
|
||||
</a-tooltip>
|
||||
|
@ -14,19 +14,19 @@
|
||||
|
||||
<a-col v-if="extendBar" style="padding-left: 10px">
|
||||
<a-space>
|
||||
<a-tooltip :title="$t('components.logView.index2.4cf99f17')">
|
||||
<a-tooltip :title="$t('i18n.65f66dfe97')">
|
||||
<a-button type="primary" size="small" @click="clearLogCache"
|
||||
><DeleteOutlined />{{ $t('components.logView.index2.7333c7f7') }}</a-button
|
||||
><DeleteOutlined />{{ $t('i18n.288f0c404c') }}</a-button
|
||||
>
|
||||
</a-tooltip>
|
||||
<!-- <a-tooltip title="内容超过边界自动换行">
|
||||
<a-switch v-model="temp.wordBreak" checked-children="自动换行" un-checked-children="不换行" @change="onChange" />
|
||||
</a-tooltip> -->
|
||||
<a-tooltip :title="$t('components.logView.index2.96536900')">
|
||||
<a-tooltip :title="$t('i18n.0693e17fc1')">
|
||||
<a-switch
|
||||
v-model:checked="temp.logScroll"
|
||||
:checked-children="$t('components.logView.index2.d04d40c8')"
|
||||
:un-checked-children="$t('components.logView.index2.aebe0b63')"
|
||||
:checked-children="$t('i18n.e0ce74fcac')"
|
||||
:un-checked-children="$t('i18n.18b34cf50d')"
|
||||
@change="onChange"
|
||||
/>
|
||||
</a-tooltip>
|
||||
|
@ -15,7 +15,7 @@
|
||||
}"
|
||||
@click="handleAdd"
|
||||
>
|
||||
<PlusOutlined />{{ $t('components.parameterWidget.index.42cbc280') }}</a-tag
|
||||
<PlusOutlined />{{ $t('i18n.7e1b283c57') }}</a-tag
|
||||
>
|
||||
|
||||
<!-- 编辑区 -->
|
||||
@ -23,7 +23,7 @@
|
||||
v-if="editVisible"
|
||||
v-model:open="editVisible"
|
||||
destroy-on-close
|
||||
:title="$t('components.parameterWidget.index.77ecbd27')"
|
||||
:title="$t('i18n.71a2c432b0')"
|
||||
:mask-closable="false"
|
||||
@ok="handleEditOk"
|
||||
>
|
||||
@ -32,11 +32,11 @@
|
||||
<a-input
|
||||
v-model:value="temp.key"
|
||||
:disabled="!!temp.oldKey"
|
||||
:placeholder="$t('components.parameterWidget.index.1bb65976')"
|
||||
:placeholder="$t('i18n.c0d19bbfb3')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="value" name="value">
|
||||
<a-input v-model:value="temp.value" :placeholder="$t('components.parameterWidget.index.8485924b')" />
|
||||
<a-input v-model:value="temp.value" :placeholder="$t('i18n.24384dab27')" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</CustomModal>
|
||||
@ -98,7 +98,7 @@ watch(
|
||||
)
|
||||
|
||||
const rules = ref<Record<string, Rule[]>>({
|
||||
key: [{ required: true, message: $t('components.parameterWidget.index.1bb65976') as string, trigger: 'blur' }]
|
||||
key: [{ required: true, message: $t('i18n.c0d19bbfb3') as string, trigger: 'blur' }]
|
||||
})
|
||||
|
||||
const editVisible = ref(false)
|
||||
|
@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="flex-100">
|
||||
<a-result v-if="disconnect" status="warning" :title="$t('components.terminal.index.67fd1abc')">
|
||||
<a-result v-if="disconnect" status="warning" :title="$t('i18n.af4d18402a')">
|
||||
<template #extra>
|
||||
<a-button type="primary" @click="initSocket">{{ $t('components.terminal.index.48f23b5f') }}</a-button>
|
||||
<a-button type="primary" @click="initSocket">{{ $t('i18n.5dc09dd5bd') }}</a-button>
|
||||
</template>
|
||||
</a-result>
|
||||
<div v-else :id="domId" class="flex-100"></div>
|
||||
@ -73,7 +73,7 @@ export default {
|
||||
this.socket.onerror = (err) => {
|
||||
console.error(err)
|
||||
$notification.error({
|
||||
message: this.$t('components.terminal.index.d827b290')
|
||||
message: this.$t('i18n.9bf5aa6672')
|
||||
})
|
||||
this.dispose()
|
||||
}
|
||||
@ -81,7 +81,7 @@ export default {
|
||||
//当客户端收到服务端发送的关闭连接请求时,触发onclose事件
|
||||
console.error(err)
|
||||
this.dispose()
|
||||
$message.warning(this.$t('components.terminal.index.b9b2db53'))
|
||||
$message.warning(this.$t('i18n.84e12f7434'))
|
||||
}
|
||||
},
|
||||
dispose() {
|
||||
|
@ -3,33 +3,33 @@
|
||||
<a-timeline>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('components.upgrade.index.d2c7486a') }}{{ temp.timeStamp }}
|
||||
>{{ $t('i18n.231f655e35') }}{{ temp.timeStamp }}
|
||||
<a-tag v-if="nodeId || machineId">agent</a-tag>
|
||||
<a-tag v-else>server</a-tag>
|
||||
</span>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote">{{ $t('components.upgrade.index.56586b89') }}{{ temp.vueTimeStamp }}</span>
|
||||
<span class="layui-elem-quote">{{ $t('i18n.e60389f6d6') }}{{ temp.vueTimeStamp }}</span>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item v-if="!nodeId && !machineId">
|
||||
<span class="layui-elem-quote">{{ $t('components.upgrade.index.54432619') }}</span>
|
||||
<span class="layui-elem-quote">{{ $t('i18n.bdc1fdde6c') }}</span>
|
||||
<a-space>
|
||||
<a-switch
|
||||
v-model:checked="temp.joinBetaRelease"
|
||||
:checked-children="$t('components.upgrade.index.e17b386')"
|
||||
:un-checked-children="$t('components.upgrade.index.8b04d374')"
|
||||
:checked-children="$t('i18n.c8a2447aa9')"
|
||||
:un-checked-children="$t('i18n.ae17005c0c')"
|
||||
:disabled="true"
|
||||
/>
|
||||
<template v-if="temp.joinBetaRelease">
|
||||
<a-button type="link" @click="handleChangeBetaRelease(false)">{{
|
||||
$t('components.upgrade.index.75e06a52')
|
||||
$t('i18n.8ef0f6c275')
|
||||
}}</a-button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-tooltip>
|
||||
<template #title>{{ $t('components.upgrade.index.543ffe88') }}</template>
|
||||
<template #title>{{ $t('i18n.31bca0fc93') }}</template>
|
||||
<a-button type="link" @click="handleChangeBetaRelease(true)"
|
||||
><QuestionCircleOutlined />{{ $t('components.upgrade.index.434e69f1') }}</a-button
|
||||
><QuestionCircleOutlined />{{ $t('i18n.d17eac5b5e') }}</a-button
|
||||
>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
@ -37,10 +37,10 @@
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<a-space>
|
||||
<span class="layui-elem-quote">{{ $t('components.upgrade.index.463be5e9') }}{{ temp.version }} </span>
|
||||
<span class="layui-elem-quote">{{ $t('i18n.07683555af') }}{{ temp.version }} </span>
|
||||
<template v-if="temp.upgrade !== undefined">
|
||||
<a-tag v-if="temp.upgrade" color="pink" @click="upgrageVerion"
|
||||
>{{ $t('components.upgrade.index.e3b19e4f') }}{{ temp.newVersion }} {{ temp.newBeta ? '/beta' : '' }}
|
||||
>{{ $t('i18n.ac2f4259f1') }}{{ temp.newVersion }} {{ temp.newBeta ? '/beta' : '' }}
|
||||
<DownloadOutlined />
|
||||
</a-tag>
|
||||
<a-tag v-else color="orange" @click="checkVersion">
|
||||
@ -51,27 +51,27 @@
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('components.upgrade.index.44a6a440') }}{{ formatDuration(temp.upTime) }}</span
|
||||
>{{ $t('i18n.b57ecea951') }}{{ formatDuration(temp.upTime) }}</span
|
||||
>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('components.upgrade.index.4ea00d5b') }}<a-tag>{{ temp.port }}</a-tag></span
|
||||
>{{ $t('i18n.4c096c51a3') }}<a-tag>{{ temp.port }}</a-tag></span
|
||||
>
|
||||
<span class="layui-elem-quote"> </span>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('components.upgrade.index.62143313') }}<a-tag>{{ temp.pid }}</a-tag></span
|
||||
>{{ $t('i18n.2b04210d33') }}<a-tag>{{ temp.pid }}</a-tag></span
|
||||
>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<a-alert :message="$t('components.upgrade.index.35d94d7e')" type="warning" show-icon />
|
||||
<a-alert :message="$t('i18n.5785f004ea')" type="warning" show-icon />
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('components.upgrade.index.4593b845') }}<a-tag>{{ temp.dataPath }}</a-tag>
|
||||
>{{ $t('i18n.a9add9b059') }}<a-tag>{{ temp.dataPath }}</a-tag>
|
||||
</span>
|
||||
<span v-if="temp.jarFile" class="layui-elem-quote"
|
||||
>{{ $t('components.upgrade.index.3a69c395') }}<a-tag>{{ temp.jarFile }}</a-tag>
|
||||
>{{ $t('i18n.9ce5d5202a') }}<a-tag>{{ temp.jarFile }}</a-tag>
|
||||
</span>
|
||||
</a-timeline-item>
|
||||
</a-timeline>
|
||||
@ -87,7 +87,7 @@
|
||||
@remove="handleRemove"
|
||||
>
|
||||
<LoadingOutlined v-if="percentage" />
|
||||
<a-button v-else><UploadOutlined />{{ $t('components.upgrade.index.dc168b2') }}</a-button>
|
||||
<a-button v-else><UploadOutlined />{{ $t('i18n.d615ea8e30') }}</a-button>
|
||||
</a-upload>
|
||||
<a-row v-if="percentage">
|
||||
<a-col span="20">
|
||||
@ -95,7 +95,7 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-button type="primary" :disabled="fileList.length === 0 || !!percentage" @click="startUpload">{{
|
||||
$t('components.upgrade.index.b6ecd3cc')
|
||||
$t('i18n.3dd6c10ffd')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</a-col>
|
||||
@ -189,7 +189,7 @@ export default {
|
||||
uploadPieces,
|
||||
formatDuration,
|
||||
renderMarkdown(markdown) {
|
||||
return (this.markdownit && this.markdownit.render(markdown)) || this.$t('components.upgrade.index.50cfdf2b')
|
||||
return (this.markdownit && this.markdownit.render(markdown)) || this.$t('i18n.aeade8e979')
|
||||
},
|
||||
// 加载数据
|
||||
loadData() {
|
||||
@ -250,18 +250,18 @@ export default {
|
||||
// 开始上传文件
|
||||
startUpload() {
|
||||
const html =
|
||||
this.$t('components.upgrade.index.597788c9') +
|
||||
this.$t('components.upgrade.index.5739dd8b') +
|
||||
this.$t('components.upgrade.index.ccb42e58') +
|
||||
this.$t('components.upgrade.index.50e3ae59') +
|
||||
this.$t('i18n.66860c7f3b') +
|
||||
this.$t('i18n.0fbd484ced') +
|
||||
this.$t('i18n.7dfb695d14') +
|
||||
this.$t('i18n.e1bbafe8dc') +
|
||||
' </ul>'
|
||||
|
||||
$confirm({
|
||||
title: this.$t('components.upgrade.index.3875bf60'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
content: h('div', null, [h('p', { innerHTML: html }, null)]),
|
||||
okText: this.$t('components.upgrade.index.1cbe2507'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
zIndex: 1009,
|
||||
cancelText: this.$t('components.upgrade.index.a0451c97'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
const file = this.fileList[0]
|
||||
this.percentage = 0
|
||||
@ -344,7 +344,7 @@ export default {
|
||||
|
||||
this.globalLoading({
|
||||
spinning: true,
|
||||
tip: (msg || this.$t('components.upgrade.index.351dd143')) + this.$t('components.upgrade.index.ad5617c0')
|
||||
tip: (msg || this.$t('i18n.589060f38e')) + this.$t('i18n.9ba71275d3')
|
||||
})
|
||||
//
|
||||
this.timer = setInterval(() => {
|
||||
@ -360,7 +360,7 @@ export default {
|
||||
})
|
||||
clearInterval(this.timer)
|
||||
$notification.success({
|
||||
message: this.$t('components.upgrade.index.7a1c1ded')
|
||||
message: this.$t('i18n.e64d788d11')
|
||||
})
|
||||
this.temp = manifest
|
||||
setTimeout(() => {
|
||||
@ -369,7 +369,7 @@ export default {
|
||||
} else {
|
||||
if (this.checkCount > RESTART_UPGRADE_WAIT_TIME_COUNT) {
|
||||
$notification.warning({
|
||||
message: this.$t('components.upgrade.index.3fa2ee24') + (res.msg || '')
|
||||
message: this.$t('i18n.2a38b6c0ae') + (res.msg || '')
|
||||
})
|
||||
this.globalLoading({
|
||||
spinning: false
|
||||
@ -386,13 +386,13 @@ export default {
|
||||
})
|
||||
clearInterval(this.timer)
|
||||
$notification.error({
|
||||
message: this.$t('components.upgrade.index.306c5167')
|
||||
message: this.$t('i18n.2191afee6e')
|
||||
})
|
||||
} else {
|
||||
this.globalLoading({
|
||||
spinning: true,
|
||||
tip:
|
||||
(msg || this.$t('components.upgrade.index.351dd143')) + this.$t('components.upgrade.index.ad5617c0')
|
||||
(msg || this.$t('i18n.589060f38e')) + this.$t('i18n.9ba71275d3')
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -441,10 +441,10 @@ export default {
|
||||
const dUrl = data.downloadUrl || 'https://jpom.top'
|
||||
const htmlAref = `<a href='${dUrl}' target='_blank'>${dUrl}</a>`
|
||||
const html =
|
||||
this.$t('components.upgrade.index.c133eb37') +
|
||||
this.$t('i18n.2314f99795') +
|
||||
tagName +
|
||||
htmlAref +
|
||||
this.$t('components.upgrade.index.3f944483')
|
||||
this.$t('i18n.ab3615a5ad')
|
||||
$notification.success({
|
||||
duration: 10,
|
||||
message: h('div', null, [h('p', { innerHTML: html }, null)])
|
||||
@ -458,7 +458,7 @@ export default {
|
||||
this.temp = { ...this.temp, upgrade: false }
|
||||
if (tip) {
|
||||
$notification.success({
|
||||
message: this.$t('components.upgrade.index.4b9cc2c4')
|
||||
message: this.$t('i18n.e6cde5a4bc')
|
||||
})
|
||||
}
|
||||
resolve(false)
|
||||
@ -477,8 +477,8 @@ export default {
|
||||
if (tip) {
|
||||
$notification.success({
|
||||
message: this.temp.upgrade
|
||||
? this.$t('components.upgrade.index.c133eb37') + data.tagName
|
||||
: this.$t('components.upgrade.index.4b9cc2c4')
|
||||
? this.$t('i18n.2314f99795') + data.tagName
|
||||
: this.$t('i18n.e6cde5a4bc')
|
||||
})
|
||||
}
|
||||
resolve(data.upgrade)
|
||||
@ -488,17 +488,17 @@ export default {
|
||||
upgrageVerion() {
|
||||
// "components.upgrade.index.1cbe2507要升级到最新版本吗?,升级前请阅读更新日志里面的说明和注意事项并且请注意备份数据防止数据丢失!!"
|
||||
const html =
|
||||
this.$t('components.upgrade.index.444e366f') +
|
||||
this.$t('components.upgrade.index.95b27c31') +
|
||||
this.$t('components.upgrade.index.4e82a639') +
|
||||
this.$t('components.upgrade.index.50e3ae59') +
|
||||
this.$t('i18n.a99866bdc8') +
|
||||
this.$t('i18n.b250411e23') +
|
||||
this.$t('i18n.80b655c1e3') +
|
||||
this.$t('i18n.e1bbafe8dc') +
|
||||
' </ul>'
|
||||
$confirm({
|
||||
title: this.$t('components.upgrade.index.3875bf60'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
content: h('div', null, [h('p', { innerHTML: html }, null)]),
|
||||
okText: this.$t('components.upgrade.index.1cbe2507'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
zIndex: 1009,
|
||||
cancelText: this.$t('components.upgrade.index.a0451c97'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return remoteUpgrade({
|
||||
nodeId: this.nodeId,
|
||||
@ -517,19 +517,19 @@ export default {
|
||||
// components.upgrade.index.e17b386beta计划
|
||||
handleChangeBetaRelease(beta) {
|
||||
const html = beta
|
||||
? this.$t('components.upgrade.index.85c315ec') +
|
||||
this.$t('components.upgrade.index.f35152df') +
|
||||
this.$t('components.upgrade.index.c6733249') +
|
||||
this.$t('components.upgrade.index.1365438c') +
|
||||
? this.$t('i18n.e10b5cfcb1') +
|
||||
this.$t('i18n.d0c6dad2aa') +
|
||||
this.$t('i18n.7acf8f7d90') +
|
||||
this.$t('i18n.8fe6bf0803') +
|
||||
' </ul>'
|
||||
: this.$t('components.upgrade.index.dd255b35')
|
||||
: this.$t('i18n.87659a4953')
|
||||
|
||||
$confirm({
|
||||
title: this.$t('components.upgrade.index.3875bf60'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
content: h('div', {}, [h('p', { innerHTML: html })]),
|
||||
okText: this.$t('components.upgrade.index.1cbe2507'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
zIndex: 1009,
|
||||
cancelText: this.$t('components.upgrade.index.a0451c97'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return changBetaRelease({
|
||||
beta: beta
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -4,11 +4,11 @@
|
||||
<a-card hoverable class="card">
|
||||
<a-card-meta>
|
||||
<template #description>
|
||||
<a-result status="404" title="404" :sub-title="$t('pages.404.index.aa96d303')">
|
||||
<a-result status="404" title="404" :sub-title="$t('i18n.603dc06c4b')">
|
||||
<a-space>
|
||||
<a-button type="primary" @click="goHome">
|
||||
<HomeOutlined />
|
||||
<span>{{ $t('pages.404.index.a8c3afb4') }}</span>
|
||||
<span>{{ $t('i18n.5a1367058c') }}</span>
|
||||
</a-button>
|
||||
<!-- <a-button type="primary" @click="goBack">
|
||||
<left-outlined />
|
||||
|
@ -5,77 +5,77 @@
|
||||
<template #title>
|
||||
<a-space>
|
||||
{{ data.name }}
|
||||
<a-tooltip :title="$t('pages.build.details.948517a9')">
|
||||
<a-tooltip :title="$t('i18n.f33db5e0b2')">
|
||||
<a-button type="link" size="small" @click="refresh"> <ReloadOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
</template>
|
||||
|
||||
<a-descriptions-item :label="$t('pages.build.details.3228ecae')">
|
||||
<a-descriptions-item :label="$t('i18n.829abe5a8d')">
|
||||
{{ data.group }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('pages.build.details.83d5a14e')">
|
||||
<a-descriptions-item :label="$t('i18n.6f854129e9')">
|
||||
{{ data.branchName }} {{ data.branchTagName }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('pages.build.details.bc1227cd')">
|
||||
<a-descriptions-item :label="$t('i18n.17a74824de')">
|
||||
<template v-if="data.buildMode === 1">
|
||||
<CloudOutlined />
|
||||
{{ $t('pages.build.details.2e6fea2b') }}
|
||||
{{ $t('i18n.685e5de706') }}
|
||||
</template>
|
||||
<template v-else>
|
||||
<CodeOutlined />
|
||||
{{ $t('pages.build.details.75a44c2b') }}
|
||||
{{ $t('i18n.69c3b873c1') }}
|
||||
</template>
|
||||
</a-descriptions-item>
|
||||
|
||||
<a-descriptions-item :label="$t('pages.build.details.21dcaeba')">
|
||||
<a-descriptions-item :label="$t('i18n.66aafbdb72')">
|
||||
<span v-if="data.buildId <= 0"></span>
|
||||
<a-tag v-else color="#108ee9">#{{ data.buildId }}</a-tag>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('pages.build.details.994b78b1')">
|
||||
<a-descriptions-item :label="$t('i18n.248c9aa7aa')">
|
||||
<a-tooltip :title="data.statusMsg">
|
||||
<a-tag :color="statusColor[data.status]">
|
||||
{{ statusMap[data.status] || $t('pages.build.details.5f51a112') }}
|
||||
{{ statusMap[data.status] || $t('i18n.1622dc9b6b') }}
|
||||
|
||||
<InfoCircleOutlined v-if="data.statusMsg" />
|
||||
</a-tag>
|
||||
</a-tooltip>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('pages.build.details.907f888f')"
|
||||
<a-descriptions-item :label="$t('i18n.f98994f7ec')"
|
||||
>{{ releaseMethodMap[data.releaseMethod] }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('pages.build.details.19083f0e')">
|
||||
<a-descriptions-item :label="$t('i18n.db9296212a')">
|
||||
{{ data.autoBuildCron }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('pages.build.details.9dfaff03')">
|
||||
<a-descriptions-item :label="$t('i18n.2f5e828ecd')">
|
||||
{{ data.aliasCode }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('pages.build.details.89ba7e0f')">
|
||||
<a-descriptions-item :label="$t('i18n.d175a854a6')">
|
||||
<a-tag>{{
|
||||
data.sourceDirExist ? $t('pages.build.details.f03e24c') : $t('pages.build.details.f6eed47f')
|
||||
data.sourceDirExist ? $t('i18n.df9497ea98') : $t('i18n.d7d11654a7')
|
||||
}}</a-tag>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('pages.build.details.f5b90169')">
|
||||
<a-descriptions-item :label="$t('i18n.eca37cb072')">
|
||||
{{ parseTime(data.createTimeMillis) }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('pages.build.details.c4dbb7c9')">
|
||||
<a-descriptions-item :label="$t('i18n.4b96762a7e')">
|
||||
{{ parseTime(data.modifyTimeMillis) }}</a-descriptions-item
|
||||
>
|
||||
<a-descriptions-item :label="$t('pages.build.details.49942d36')">{{ data.modifyUser }}</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('pages.build.details.213d0278')" :span="3">
|
||||
<a-descriptions-item :label="$t('i18n.3bcc1c7a20')">{{ data.modifyUser }}</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.7dfcab648d')" :span="3">
|
||||
{{ data.resultDirFile }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item v-if="tempRepository" :label="$t('pages.build.details.1beebcf2')" :span="3">{{
|
||||
<a-descriptions-item v-if="tempRepository" :label="$t('i18n.b3ef35a359')" :span="3">{{
|
||||
`${tempRepository ? tempRepository.name + '[' + tempRepository.gitUrl + ']' : ''}`
|
||||
}}</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('pages.build.details.736d2699')" :span="3">{{
|
||||
<a-descriptions-item :label="$t('i18n.86e9e4dd58')" :span="3">{{
|
||||
data.repositoryLastCommitId
|
||||
}}</a-descriptions-item>
|
||||
</a-descriptions>
|
||||
|
||||
<!-- <a-row type="flex" justify="center"> -->
|
||||
<!-- <a-divider v-if="listQuery.total > 0" dashed> 构建历史 </a-divider> -->
|
||||
<a-card v-if="listQuery.total > 0" :title="$t('pages.build.details.8f3fe403')" size="small">
|
||||
<a-card v-if="listQuery.total > 0" :title="$t('i18n.a05c1667ca')" size="small">
|
||||
<template #extra>
|
||||
<a-pagination
|
||||
v-model:current="listQuery.page"
|
||||
@ -108,52 +108,52 @@
|
||||
<span :style="`color: ${statusColor[item.status]};`" @click="handleBuildLog(item)"
|
||||
>#{{ item.buildNumberId }} <EyeOutlined
|
||||
/></span>
|
||||
<span v-if="item.buildRemark">{{ $t('pages.build.details.11757b06') }}{{ item.buildRemark }}</span>
|
||||
<span v-if="item.buildRemark">{{ $t('i18n.65571516e2') }}{{ item.buildRemark }}</span>
|
||||
</a-space>
|
||||
</div>
|
||||
<div>
|
||||
<a-tooltip :title="item.statusMsg || statusMap[item.status] || $t('pages.build.details.5f51a112')">
|
||||
{{ $t('pages.build.details.9c32c887')
|
||||
<a-tooltip :title="item.statusMsg || statusMap[item.status] || $t('i18n.1622dc9b6b')">
|
||||
{{ $t('i18n.bec98b4d6a')
|
||||
}}<a-tag :color="statusColor[item.status]">{{
|
||||
statusMap[item.status] || $t('pages.build.details.5f51a112')
|
||||
statusMap[item.status] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
</a-tooltip>
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('pages.build.details.8ac17a5e') }}{{ parseTime(item.startTime) }} ~
|
||||
{{ $t('i18n.14e6d83ff5') }}{{ parseTime(item.startTime) }} ~
|
||||
{{ parseTime(item.endTime) }}
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('pages.build.details.4abba04f')
|
||||
}}{{ triggerBuildTypeMap[item.triggerBuildType] || $t('pages.build.details.5f51a112') }}
|
||||
{{ $t('i18n.b5a1e1f2d1')
|
||||
}}{{ triggerBuildTypeMap[item.triggerBuildType] || $t('i18n.1622dc9b6b') }}
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('pages.build.details.2314b40d') }}{{ renderSize(item.resultFileSize) }}({{
|
||||
$t('pages.build.details.213d0278')
|
||||
}})/{{ renderSize(item.buildLogFileSize) }}({{ $t('pages.build.details.2823935a') }})
|
||||
{{ $t('i18n.8dbe0c2ffa') }}{{ renderSize(item.resultFileSize) }}({{
|
||||
$t('i18n.7dfcab648d')
|
||||
}})/{{ renderSize(item.buildLogFileSize) }}({{ $t('i18n.456d29ef8b') }})
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{{ $t('pages.build.details.fef0ccf6')
|
||||
{{ $t('i18n.3c014532b1')
|
||||
}}{{ formatDuration((item.endTime || 0) - (item.startTime || 0), '', 2) }}
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('pages.build.details.89952fc1') }}
|
||||
<a-tag> {{ releaseMethodMap[item.releaseMethod] || $t('pages.build.details.5f51a112') }}</a-tag>
|
||||
{{ $t('i18n.e8321f5a61') }}
|
||||
<a-tag> {{ releaseMethodMap[item.releaseMethod] || $t('i18n.1622dc9b6b') }}</a-tag>
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('pages.build.details.3bb962bf') }}
|
||||
{{ $t('i18n.4a5ab3bc72') }}
|
||||
<a-space>
|
||||
<a-tooltip :title="$t('pages.build.details.cafd8c4c')">
|
||||
<a-tooltip :title="$t('i18n.b38d7db9b0')">
|
||||
<a-button size="small" type="primary" :disabled="!item.hasLog" @click="handleDownload(item)"
|
||||
><DownloadOutlined />{{ $t('pages.build.details.2823935a') }}</a-button
|
||||
><DownloadOutlined />{{ $t('i18n.456d29ef8b') }}</a-button
|
||||
>
|
||||
</a-tooltip>
|
||||
|
||||
<a-tooltip :title="$t('pages.build.details.6a09ee66')">
|
||||
<a-tooltip :title="$t('i18n.02e35447d4')">
|
||||
<a-button size="small" type="primary" :disabled="!item.hasFile" @click="handleFile(item)">
|
||||
<DownloadOutlined />
|
||||
{{ $t('pages.build.details.213d0278') }}
|
||||
{{ $t('i18n.7dfcab648d') }}
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<template v-if="item.releaseMethod !== 5">
|
||||
@ -163,13 +163,13 @@
|
||||
type="primary"
|
||||
danger
|
||||
@click="handleRollback(item)"
|
||||
>{{ $t('pages.build.details.6f9c6f93') }}
|
||||
>{{ $t('i18n.d00b485b26') }}
|
||||
</a-button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-tooltip :title="$t('pages.build.details.53bdfc23')">
|
||||
<a-tooltip :title="$t('i18n.2d94b9cf0e')">
|
||||
<a-button size="small" :disabled="true" type="primary" danger
|
||||
>{{ $t('pages.build.details.6f9c6f93') }}
|
||||
>{{ $t('i18n.d00b485b26') }}
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
@ -313,11 +313,11 @@ export default {
|
||||
// 回滚
|
||||
handleRollback(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.build.details.7cd89470'),
|
||||
content: this.$t('pages.build.details.5d19de17'),
|
||||
okText: this.$t('pages.build.details.e8e9db25'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
content: this.$t('i18n.fb61d4d708'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
zIndex: 1009,
|
||||
cancelText: this.$t('pages.build.details.b12468e9'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return rollback(record.id).then((res) => {
|
||||
if (res.code === 200) {
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,7 @@
|
||||
:auto-refresh-time="30"
|
||||
:active-page="activePage"
|
||||
table-name="build-history-list"
|
||||
:empty-description="$t('pages.build.history.ddecb959')"
|
||||
:empty-description="$t('i18n.2b36926bc1')"
|
||||
:data-source="list"
|
||||
size="middle"
|
||||
:columns="columns"
|
||||
@ -27,7 +27,7 @@
|
||||
v-model:value="listQuery['%buildName%']"
|
||||
allow-clear
|
||||
class="search-input-item"
|
||||
:placeholder="$t('pages.build.history.b7ff5dde')"
|
||||
:placeholder="$t('i18n.50a299c847')"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-select
|
||||
@ -44,7 +44,7 @@
|
||||
}
|
||||
"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.build.history.56195645')"
|
||||
:placeholder="$t('i18n.e1c965efff')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="(val, key) in statusMap" :key="key">{{ val }}</a-select-option>
|
||||
@ -63,15 +63,15 @@
|
||||
}
|
||||
"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.build.history.81fc1ba6')"
|
||||
:placeholder="$t('i18n.9057ac9664')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="(val, key) in triggerBuildTypeMap" :key="key">{{ val }}</a-select-option>
|
||||
</a-select>
|
||||
<a-range-picker :show-time="{ format: 'HH:mm:ss' }" format="YYYY-MM-DD HH:mm:ss" @change="onchangeTime" />
|
||||
<a-tooltip :title="$t('pages.build.history.767472f6')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.build.history.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button
|
||||
@ -80,16 +80,16 @@
|
||||
:disabled="!tableSelections || tableSelections.length <= 0"
|
||||
@click="handleBatchDelete"
|
||||
>
|
||||
{{ $t('pages.build.history.b5139d46') }}
|
||||
{{ $t('i18n.7fb62b3011') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
<template #tableHelp>
|
||||
<a-tooltip>
|
||||
<template #title>
|
||||
<div>{{ $t('pages.build.history.37009c8e') }}</div>
|
||||
<div>{{ $t('pages.build.history.39bcbda8') }}</div>
|
||||
<div>{{ $t('pages.build.history.652264a8') }}</div>
|
||||
<div>{{ $t('i18n.005de9a4eb') }}</div>
|
||||
<div>{{ $t('i18n.9cd0554305') }}</div>
|
||||
<div>{{ $t('i18n.952232ca52') }}</div>
|
||||
</template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
@ -101,16 +101,16 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'buildNumberId'">
|
||||
<a-tooltip :title="text + `( ${$t('pages.build.history.b51c8bb3')} )`">
|
||||
<a-tooltip :title="text + `( ${$t('i18n.aac62bc255')} )`">
|
||||
<a-tag color="#108ee9" @click="handleBuildLog(record)">
|
||||
#{{ text }}<template v-if="record.fromBuildNumberId"><-{{ record.fromBuildNumberId }}</template>
|
||||
</a-tag>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'status'">
|
||||
<a-tooltip :title="record.statusMsg || statusMap[text] || $t('pages.build.history.5f51a112')">
|
||||
<a-tooltip :title="record.statusMsg || statusMap[text] || $t('i18n.1622dc9b6b')">
|
||||
<a-tag :color="statusColor[record.status]">{{
|
||||
statusMap[text] || $t('pages.build.history.5f51a112')
|
||||
statusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
@ -127,7 +127,7 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'resultFileSize'">
|
||||
<a-tooltip
|
||||
:title="`${$t('pages.build.history.ea860618')}${renderSize(record.resultFileSize)}, ${$t(
|
||||
:title="`${$t('i18n.16646e46b1')}${renderSize(record.resultFileSize)}, ${$t(
|
||||
'pages.build.history.6919d16e'
|
||||
)} ${renderSize(record.buildLogFileSize)}`"
|
||||
>
|
||||
@ -139,8 +139,8 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'endTime'">
|
||||
<a-tooltip
|
||||
:title="`${$t('pages.build.history.ac9ef5f5')}${parseTime(record.startTime)},${
|
||||
record.endTime ? $t('pages.build.history.9376939d') + parseTime(record.endTime) : ''
|
||||
:title="`${$t('i18n.61e84eb5bb')}${parseTime(record.startTime)},${
|
||||
record.endTime ? $t('i18n.590dbb68cf') + parseTime(record.endTime) : ''
|
||||
}`"
|
||||
>
|
||||
<span v-if="record.endTime">{{
|
||||
@ -152,22 +152,22 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-tooltip :title="$t('pages.build.history.3853c6b2')">
|
||||
<a-tooltip :title="$t('i18n.b38d7db9b0')">
|
||||
<a-button size="small" type="primary" :disabled="!record.hasLog" @click="handleDownload(record)"
|
||||
><DownloadOutlined />{{ $t('pages.build.history.f637e08') }}</a-button
|
||||
><DownloadOutlined />{{ $t('i18n.456d29ef8b') }}</a-button
|
||||
>
|
||||
</a-tooltip>
|
||||
|
||||
<a-tooltip :title="$t('pages.build.history.44ea38fe')">
|
||||
<a-tooltip :title="$t('i18n.02e35447d4')">
|
||||
<a-button size="small" type="primary" :disabled="!record.hasFile" @click="handleFile(record)"
|
||||
><DownloadOutlined />
|
||||
{{ $t('pages.build.history.72370b9a') }}
|
||||
{{ $t('i18n.7dfcab648d') }}
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
|
||||
<a-dropdown>
|
||||
<a @click="(e) => e.preventDefault()">
|
||||
{{ $t('pages.build.history.6e071067') }}
|
||||
{{ $t('i18n.0ec9eaf9c3') }}
|
||||
<DownOutlined />
|
||||
</a>
|
||||
<template #overlay>
|
||||
@ -180,20 +180,20 @@
|
||||
type="primary"
|
||||
danger
|
||||
@click="handleRollback(record)"
|
||||
>{{ $t('pages.build.history.6f9c6f93') }}
|
||||
>{{ $t('i18n.d00b485b26') }}
|
||||
</a-button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-tooltip :title="$t('pages.build.history.b57dad8c')">
|
||||
<a-tooltip :title="$t('i18n.2d94b9cf0e')">
|
||||
<a-button size="small" :disabled="true" type="primary" danger
|
||||
>{{ $t('pages.build.history.6f9c6f93') }}
|
||||
>{{ $t('i18n.d00b485b26') }}
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
<a-button size="small" type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('pages.build.history.dd20d11c')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
@ -298,21 +298,21 @@ export default {
|
||||
tableSelections: [],
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.build.history.b7ff5dde'),
|
||||
title: this.$t('i18n.50a299c847'),
|
||||
dataIndex: 'buildName',
|
||||
width: 120,
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.history.7cf809d7'),
|
||||
title: this.$t('i18n.46e4265791'),
|
||||
dataIndex: 'buildNumberId',
|
||||
width: '90px',
|
||||
align: 'center',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.history.2ae8180f'),
|
||||
title: this.$t('i18n.2432b57515'),
|
||||
dataIndex: 'buildRemark',
|
||||
width: 120,
|
||||
ellipsis: true,
|
||||
@ -320,62 +320,62 @@ export default {
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.build.history.9c32c887'),
|
||||
title: this.$t('i18n.3fea7ca76c'),
|
||||
dataIndex: 'status',
|
||||
width: '100px',
|
||||
align: 'center',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.history.4abba04f'),
|
||||
title: this.$t('i18n.ff9814bf6b'),
|
||||
dataIndex: 'triggerBuildType',
|
||||
align: 'center',
|
||||
width: '100px',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.history.c2a7a92f'),
|
||||
title: this.$t('i18n.ad35f58fb3'),
|
||||
dataIndex: 'resultFileSize',
|
||||
width: '100px',
|
||||
sorter: true,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.history.7a013409'),
|
||||
title: this.$t('i18n.592c595891'),
|
||||
dataIndex: 'startTime',
|
||||
sorter: true,
|
||||
customRender: ({ text }) => parseTime(text),
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.history.bc8deb76'),
|
||||
title: this.$t('i18n.39f1374d36'),
|
||||
dataIndex: 'endTime',
|
||||
// sorter: true,
|
||||
|
||||
width: '120px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.history.5f141679'),
|
||||
title: this.$t('i18n.af427d2541'),
|
||||
dataIndex: 'modifyTimeMillis',
|
||||
sorter: true,
|
||||
customRender: ({ text }) => parseTime(text),
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.history.907f888f'),
|
||||
title: this.$t('i18n.f98994f7ec'),
|
||||
dataIndex: 'releaseMethod',
|
||||
width: '100px',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.history.ed74cc37'),
|
||||
title: this.$t('i18n.f9ac4b2aa6'),
|
||||
dataIndex: 'modifyUser',
|
||||
width: '130px',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.history.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
|
||||
width: '220px',
|
||||
@ -449,11 +449,11 @@ export default {
|
||||
// 回滚
|
||||
handleRollback(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.build.history.1da61c06'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.build.history.511ca141'),
|
||||
okText: this.$t('pages.build.history.7da4a591'),
|
||||
cancelText: this.$t('pages.build.history.43105e21'),
|
||||
content: this.$t('i18n.fb61d4d708'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
// 重新发布
|
||||
return rollback(record.id).then((res) => {
|
||||
@ -476,11 +476,11 @@ export default {
|
||||
// 删除
|
||||
handleDelete(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.build.history.1da61c06'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.build.history.14ac7e60'),
|
||||
okText: this.$t('pages.build.history.7da4a591'),
|
||||
cancelText: this.$t('pages.build.history.43105e21'),
|
||||
content: this.$t('i18n.ad8b626496'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return deleteBuildHistory(record.id).then((res) => {
|
||||
if (res.code === 200) {
|
||||
@ -497,16 +497,16 @@ export default {
|
||||
handleBatchDelete() {
|
||||
if (!this.tableSelections || this.tableSelections.length <= 0) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.build.history.d1aa06b3')
|
||||
message: this.$t('i18n.5d817c403e')
|
||||
})
|
||||
return
|
||||
}
|
||||
$confirm({
|
||||
title: this.$t('pages.build.history.1da61c06'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.build.history.a938924a'),
|
||||
okText: this.$t('pages.build.history.7da4a591'),
|
||||
cancelText: this.$t('pages.build.history.43105e21'),
|
||||
content: this.$t('i18n.02d46f7e6f'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
// 删除
|
||||
return deleteBuildHistory(this.tableSelections.join(',')).then((res) => {
|
||||
@ -541,7 +541,7 @@ export default {
|
||||
handerConfirm() {
|
||||
if (!this.tableSelections.length) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.build.history.a67c2624')
|
||||
message: this.$t('i18n.2b4cf3d74e')
|
||||
})
|
||||
return
|
||||
}
|
||||
@ -557,7 +557,7 @@ export default {
|
||||
})
|
||||
if (!selectData.length) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.build.history.c53f077b')
|
||||
message: this.$t('i18n.a637a42173')
|
||||
})
|
||||
return
|
||||
}
|
||||
|
@ -23,20 +23,20 @@
|
||||
<template v-if="id">
|
||||
<a-menu v-model:selectedKeys="menuKey" mode="horizontal" class="menu" @click="menuClick">
|
||||
<a-menu-item key="info">
|
||||
<span><InfoOutlined /> {{ $t('pages.build.item.1541b045') }}</span>
|
||||
<span><InfoOutlined /> {{ $t('i18n.224aef211c') }}</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="edit">
|
||||
<span> <EditOutlined /> {{ $t('pages.build.item.b2bad6f5') }}</span>
|
||||
<span> <EditOutlined /> {{ $t('i18n.e54c5ecb54') }}</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="trigger">
|
||||
<span><ApiOutlined /> {{ $t('pages.build.item.7d51773c') }}</span>
|
||||
<span><ApiOutlined /> {{ $t('i18n.4696724ed3') }}</span>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-menu v-model:selectedKeys="menuKey" mode="horizontal" class="menu" @click="menuClick">
|
||||
<a-menu-item key="edit">
|
||||
<span> <EditOutlined /> {{ $t('pages.build.item.156e1b82') }}</span>
|
||||
<span> <EditOutlined /> {{ $t('i18n.44a6891817') }}</span>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
@ -74,10 +74,10 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.build.item.b12468e9') }}
|
||||
{{ $t('i18n.625fb26b4b') }}
|
||||
</a-button>
|
||||
<a-tooltip v-if="id" :title="$t('pages.build.item.c0e613d6')">
|
||||
<a-button @click="$refs.editBuild.refresh()"> {{ $t('pages.build.item.7bbd89a') }}</a-button>
|
||||
<a-tooltip v-if="id" :title="$t('i18n.18c7e2556e')">
|
||||
<a-button @click="$refs.editBuild.refresh()"> {{ $t('i18n.694fc5efa9') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-divider type="vertical" />
|
||||
<a-button
|
||||
@ -88,7 +88,7 @@
|
||||
stepsCurrent = stepsCurrent - 1
|
||||
}
|
||||
"
|
||||
>{{ $t('pages.build.item.d1379d85') }}</a-button
|
||||
>{{ $t('i18n.eeb6908870') }}</a-button
|
||||
>
|
||||
<a-button
|
||||
type="primary"
|
||||
@ -98,15 +98,15 @@
|
||||
stepsCurrent = stepsCurrent + 1
|
||||
}
|
||||
"
|
||||
>{{ $t('pages.build.item.6af322a9') }}</a-button
|
||||
>{{ $t('i18n.38ce27d846') }}</a-button
|
||||
>
|
||||
<a-divider type="vertical" />
|
||||
|
||||
<a-button type="primary" @click="$refs.editBuild.handleEditBuildOk(false)">
|
||||
{{ $t('pages.build.item.b033d8c5') }}
|
||||
{{ $t('i18n.be5fbbe34c') }}
|
||||
</a-button>
|
||||
<a-button type="primary" @click="$refs.editBuild.handleEditBuildOk(true)">
|
||||
{{ $t('pages.build.item.4af9344a') }}
|
||||
{{ $t('i18n.a577822cdd') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
|
@ -19,7 +19,7 @@
|
||||
default-auto-refresh
|
||||
:auto-refresh-time="5"
|
||||
table-name="buildList"
|
||||
:empty-description="$t('pages.build.list-info.623e07ea')"
|
||||
:empty-description="$t('i18n.1c2e9d0c76')"
|
||||
:active-page="activePage"
|
||||
:layout="layout"
|
||||
size="middle"
|
||||
@ -58,7 +58,7 @@
|
||||
v-model:value="listQuery['%name%']"
|
||||
allow-clear
|
||||
class="search-input-item"
|
||||
:placeholder="$t('pages.build.list-info.80ebff14')"
|
||||
:placeholder="$t('i18n.50a299c847')"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-select
|
||||
@ -75,7 +75,7 @@
|
||||
)
|
||||
}
|
||||
"
|
||||
:placeholder="$t('pages.build.list-info.6e06fe4f')"
|
||||
:placeholder="$t('i18n.3fea7ca76c')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="(val, key) in statusMap" :key="key">{{ val }}</a-select-option>
|
||||
@ -94,7 +94,7 @@
|
||||
}
|
||||
"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.build.list-info.c5607db9')"
|
||||
:placeholder="$t('i18n.f98994f7ec')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="(val, key) in releaseMethodMap" :key="key">{{ val }}</a-select-option>
|
||||
@ -113,7 +113,7 @@
|
||||
}
|
||||
"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.build.list-info.b1765e98')"
|
||||
:placeholder="$t('i18n.829abe5a8d')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="item in groupList" :key="item">{{ item }}</a-select-option>
|
||||
@ -122,32 +122,32 @@
|
||||
v-model:value="listQuery['%resultDirFile%']"
|
||||
allow-clear
|
||||
class="search-input-item"
|
||||
:placeholder="$t('pages.build.list-info.63121c12')"
|
||||
:placeholder="$t('i18n.c972010694')"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-tooltip :title="$t('pages.build.list-info.6ebd5885')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.build.list-info.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('pages.build.list-info.ebbf5288') }}</a-button>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
<template v-if="tableSelections && tableSelections.length">
|
||||
<a-dropdown>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item key="1" @click="batchBuild"> {{ $t('pages.build.list-info.d9dfcc07') }} </a-menu-item>
|
||||
<a-menu-item key="2" @click="batchCancel"> {{ $t('pages.build.list-info.d91724b3') }} </a-menu-item>
|
||||
<a-menu-item key="1" @click="batchBuild"> {{ $t('i18n.67e3d3e09c') }} </a-menu-item>
|
||||
<a-menu-item key="2" @click="batchCancel"> {{ $t('i18n.32112950da') }} </a-menu-item>
|
||||
<a-menu-item key="3" @click="handleBatchDelete">
|
||||
{{ $t('pages.build.list-info.b5139d46') }}
|
||||
{{ $t('i18n.7fb62b3011') }}
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
<a-button type="primary"> {{ $t('pages.build.list-info.766122c2') }}<DownOutlined /> </a-button>
|
||||
<a-button type="primary"> {{ $t('i18n.7f7c624a84') }}<DownOutlined /> </a-button>
|
||||
</a-dropdown>
|
||||
</template>
|
||||
<a-tooltip v-else :title="$t('pages.build.list-info.2ed8929')">
|
||||
<a-tooltip v-else :title="$t('i18n.98357846a2')">
|
||||
<a-button :disabled="true" type="primary">
|
||||
{{ $t('pages.build.list-info.766122c2') }} <DownOutlined />
|
||||
{{ $t('i18n.7f7c624a84') }} <DownOutlined />
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
|
||||
@ -180,12 +180,12 @@
|
||||
</a-col>
|
||||
<a-col :span="7" style="text-align: right" class="text-overflow-hidden">
|
||||
<a-tooltip
|
||||
:title="`${$t('pages.build.list-info.8a8e4923')}${statusMap[item.status]} ${
|
||||
item.statusMsg ? $t('pages.build.list-info.e57df4bc') + item.statusMsg : ''
|
||||
:title="`${$t('i18n.e703c7367c')}${statusMap[item.status]} ${
|
||||
item.statusMsg ? $t('i18n.8d13037eb7') + item.statusMsg : ''
|
||||
}`"
|
||||
>
|
||||
<a-tag :color="statusColor[item.status]" style="margin-right: 0">
|
||||
{{ statusMap[item.status] || $t('pages.build.list-info.3ebb81e0') }}</a-tag
|
||||
{{ statusMap[item.status] || $t('i18n.903b25f64e') }}</a-tag
|
||||
>
|
||||
</a-tooltip>
|
||||
</a-col>
|
||||
@ -195,17 +195,17 @@
|
||||
<a-tooltip>
|
||||
<template #title>
|
||||
<div v-if="item.branchTagName">
|
||||
<div>{{ $t('pages.build.list-info.40d35415') }}{{ item.branchTagName }}</div>
|
||||
<div>{{ $t('pages.build.list-info.153a2f31') }}{{ item.repositoryLastCommitId }}</div>
|
||||
<div>{{ $t('i18n.8086beecb3') }}{{ item.branchTagName }}</div>
|
||||
<div>{{ $t('i18n.ca774ec5b4') }}{{ item.repositoryLastCommitId }}</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div>{{ $t('pages.build.list-info.c40b3b99') }}{{ item.branchName }}</div>
|
||||
<div>{{ $t('pages.build.list-info.153a2f31') }}{{ item.repositoryLastCommitId }}</div>
|
||||
<div>{{ $t('i18n.f240f9d69c') }}{{ item.branchName }}</div>
|
||||
<div>{{ $t('i18n.ca774ec5b4') }}{{ item.repositoryLastCommitId }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<a-row class="item-info">
|
||||
<a-col :span="6" class="title text-overflow-hidden">{{ $t('pages.build.list-info.990386a2') }}</a-col>
|
||||
<a-col :span="6" class="title text-overflow-hidden">{{ $t('i18n.88ab27cfd0') }}</a-col>
|
||||
<a-col :span="18" class="content text-overflow-hidden">
|
||||
{{ item.branchName }} {{ item.branchTagName }}</a-col
|
||||
>
|
||||
@ -213,7 +213,7 @@
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="item.resultDirFile">
|
||||
<a-row class="item-info">
|
||||
<a-col :span="6" class="title text-overflow-hidden">{{ $t('pages.build.list-info.b4707ccc') }}</a-col>
|
||||
<a-col :span="6" class="title text-overflow-hidden">{{ $t('i18n.cc637e17a0') }}</a-col>
|
||||
<a-col :span="18" class="content text-overflow-hidden">
|
||||
{{ item.resultDirFile }}
|
||||
</a-col>
|
||||
@ -221,7 +221,7 @@
|
||||
</a-tooltip>
|
||||
|
||||
<a-row class="item-info">
|
||||
<a-col :span="6" class="title text-overflow-hidden">{{ $t('pages.build.list-info.7cf809d7') }}:</a-col>
|
||||
<a-col :span="6" class="title text-overflow-hidden">{{ $t('i18n.b5d0091ae3') }}:</a-col>
|
||||
<a-col :span="18" class="content text-overflow-hidden">
|
||||
<a-tag v-if="item.buildId <= 0">-</a-tag>
|
||||
<a-tag v-else color="#108ee9" @click="handleBuildLog(item)">#{{ item.buildId }}</a-tag>
|
||||
@ -229,20 +229,20 @@
|
||||
</a-row>
|
||||
|
||||
<a-row class="item-info">
|
||||
<a-col :span="6" class="title text-overflow-hidden">{{ $t('pages.build.list-info.bc1227cd') }}</a-col>
|
||||
<a-col :span="6" class="title text-overflow-hidden">{{ $t('i18n.c530a094f9') }}</a-col>
|
||||
<a-col :span="18" class="content text-overflow-hidden">
|
||||
<template v-if="item.buildMode === 1">
|
||||
<CloudOutlined />
|
||||
{{ $t('pages.build.list-info.e1806047') }}
|
||||
{{ $t('i18n.685e5de706') }}
|
||||
</template>
|
||||
<template v-else>
|
||||
<CodeOutlined />
|
||||
{{ $t('pages.build.list-info.e227327') }}
|
||||
{{ $t('i18n.69c3b873c1') }}
|
||||
</template>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row class="item-info">
|
||||
<a-col :span="6" class="title text-overflow-hidden">{{ $t('pages.build.list-info.907f888f') }}</a-col>
|
||||
<a-col :span="6" class="title text-overflow-hidden">{{ $t('i18n.65894da683') }}</a-col>
|
||||
<a-col :span="18" class="content text-overflow-hidden">
|
||||
{{ releaseMethodMap[item.releaseMethod] }}
|
||||
</a-col>
|
||||
@ -256,11 +256,11 @@
|
||||
type="primary"
|
||||
danger
|
||||
@click="handleStopBuild(item)"
|
||||
>{{ $t('pages.build.list-info.d9418498') }}
|
||||
>{{ $t('i18n.095e938e2a') }}
|
||||
</a-button>
|
||||
<a-dropdown v-else>
|
||||
<a-button size="small" type="primary" @click="handleConfirmStartBuild(item)">
|
||||
{{ $t('pages.build.list-info.6116e886') }}
|
||||
{{ $t('i18n.fcba60e773') }}
|
||||
<DownOutlined />
|
||||
</a-button>
|
||||
<template #overlay>
|
||||
@ -270,7 +270,7 @@
|
||||
size="small"
|
||||
type="primary"
|
||||
@click="reqStartBuild({ id: item.id, buildEnvParameter: item.buildEnvParameter }, true)"
|
||||
>{{ $t('pages.build.list-info.56424415') }}
|
||||
>{{ $t('i18n.16b5e7b472') }}
|
||||
</a-button>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="2">
|
||||
@ -279,7 +279,7 @@
|
||||
type="primary"
|
||||
@click="reqStartBuild({ id: item.id, buildEnvParameter: item.buildEnvParameter }, false)"
|
||||
>
|
||||
{{ $t('pages.build.list-info.d128c3f3') }}
|
||||
{{ $t('i18n.f1fdaffdf0') }}
|
||||
</a-button>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
@ -287,32 +287,32 @@
|
||||
</a-dropdown>
|
||||
<a-dropdown>
|
||||
<a-button size="small" type="primary" @click="handleEdit(item)">{{
|
||||
$t('pages.build.list-info.e1224c34')
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item @click="handleEdit(item, 0)">
|
||||
<a href="javascript:;">{{ $t('pages.build.list-info.b5dfedd9') }}</a>
|
||||
<a href="javascript:;">{{ $t('i18n.17a74824de') }}</a>
|
||||
</a-menu-item>
|
||||
<a-menu-item @click="handleEdit(item, 1)">
|
||||
<a href="javascript:;">{{ $t('pages.build.list-info.fbe7a37d') }}</a>
|
||||
<a href="javascript:;">{{ $t('i18n.6ea1fe6baa') }}</a>
|
||||
</a-menu-item>
|
||||
<a-menu-item @click="handleEdit(item, 2)">
|
||||
<a href="javascript:;">{{ $t('pages.build.list-info.344b9569') }}</a>
|
||||
<a href="javascript:;">{{ $t('i18n.a2ae15f8a7') }}</a>
|
||||
</a-menu-item>
|
||||
<a-menu-item @click="handleEdit(item, 3)">
|
||||
<a href="javascript:;">{{ $t('pages.build.list-info.7be4f983') }}</a>
|
||||
<a href="javascript:;">{{ $t('i18n.3c91490844') }}</a>
|
||||
</a-menu-item>
|
||||
<a-menu-item @click="handleEdit(item, 4)">
|
||||
<a href="javascript:;">{{ $t('pages.build.list-info.17607860') }}</a>
|
||||
<a href="javascript:;">{{ $t('i18n.9ab433e930') }}</a>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
</a-dropdown>
|
||||
<a-button size="small" @click="handleDelete(item)">{{ $t('pages.build.list-info.2f14e7d4') }}</a-button>
|
||||
<a-tooltip placement="leftBottom" :title="$t('pages.build.list-info.7ed8368b')">
|
||||
<a-button size="small" @click="handleDelete(item)">{{ $t('i18n.2f4aaddde3') }}</a-button>
|
||||
<a-tooltip placement="leftBottom" :title="$t('i18n.19675b9d36')">
|
||||
<a-button size="small" :disabled="!item.sourceDirExist" @click="handleClear(item)"
|
||||
>{{ $t('pages.build.list-info.49cc9441') }}
|
||||
>{{ $t('i18n.c37ac7f024') }}
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-button-group>
|
||||
@ -323,7 +323,7 @@
|
||||
<template v-if="column.dataIndex === 'name'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('pages.build.list-info.bb769c1d')}${text} ${$t('pages.build.list-info.ef7334e0')}`"
|
||||
:title="`${$t('i18n.d7ec2d3fea')}${text} ${$t('i18n.84632d372f')}`"
|
||||
@click="handleDetails(record)"
|
||||
>
|
||||
<a-button type="link" style="padding: 0" size="small"> <FullscreenOutlined />{{ text }}</a-button>
|
||||
@ -333,12 +333,12 @@
|
||||
<a-tooltip placement="topLeft">
|
||||
<template #title>
|
||||
<div v-if="record.branchTagName">
|
||||
<div>{{ $t('pages.build.list-info.40d35415') }}{{ record.branchTagName }}</div>
|
||||
<div>{{ $t('pages.build.list-info.153a2f31') }}{{ record.repositoryLastCommitId }}</div>
|
||||
<div>{{ $t('i18n.8086beecb3') }}{{ record.branchTagName }}</div>
|
||||
<div>{{ $t('i18n.ca774ec5b4') }}{{ record.repositoryLastCommitId }}</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div>{{ $t('pages.build.list-info.c40b3b99') }}{{ text }}</div>
|
||||
<div>{{ $t('pages.build.list-info.153a2f31') }}{{ record.repositoryLastCommitId }}</div>
|
||||
<div>{{ $t('i18n.f240f9d69c') }}{{ text }}</div>
|
||||
<div>{{ $t('i18n.ca774ec5b4') }}{{ record.repositoryLastCommitId }}</div>
|
||||
</div>
|
||||
</template>
|
||||
<span v-if="record.branchTagName"><TagOutlined />{{ record.branchTagName }}</span>
|
||||
@ -349,7 +349,7 @@
|
||||
<template v-else-if="column.dataIndex === 'buildMode'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="text === 1 ? $t('pages.build.list-info.e1806047') : $t('pages.build.list-info.e227327')"
|
||||
:title="text === 1 ? $t('i18n.685e5de706') : $t('i18n.69c3b873c1')"
|
||||
>
|
||||
<CloudOutlined v-if="text === 1" />
|
||||
<CodeOutlined v-else />
|
||||
@ -359,25 +359,25 @@
|
||||
<a-tooltip>
|
||||
<template #title>
|
||||
<ul>
|
||||
<li>{{ $t('pages.build.list-info.907f888f') }}{{ releaseMethodMap[text] }}</li>
|
||||
<li>{{ $t('pages.build.list-info.27d9deeb') }}{{ record.resultDirFile }}</li>
|
||||
<li v-if="record.buildMode !== 1">{{ $t('pages.build.list-info.264f7e9c') }}{{ record.script }}</li>
|
||||
<li>{{ $t('i18n.65894da683') }}{{ releaseMethodMap[text] }}</li>
|
||||
<li>{{ $t('i18n.113576ce91') }}{{ record.resultDirFile }}</li>
|
||||
<li v-if="record.buildMode !== 1">{{ $t('i18n.1160ab56fd') }}{{ record.script }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
<span>{{ releaseMethodMap[text] }}</span>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'status'">
|
||||
<a-tooltip :title="record.statusMsg || statusMap[text] || $t('pages.build.list-info.5f51a112')">
|
||||
<a-tooltip :title="record.statusMsg || statusMap[text] || $t('i18n.1622dc9b6b')">
|
||||
<a-tag
|
||||
:color="statusColor[record.status]"
|
||||
:title="record.statusMsg || statusMap[text] || $t('pages.build.list-info.5f51a112')"
|
||||
>{{ statusMap[text] || $t('pages.build.list-info.5f51a112') }}</a-tag
|
||||
:title="record.statusMsg || statusMap[text] || $t('i18n.1622dc9b6b')"
|
||||
>{{ statusMap[text] || $t('i18n.1622dc9b6b') }}</a-tag
|
||||
>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'buildId'">
|
||||
<a-tooltip placement="topLeft" :title="text + ` ( ${$t('pages.build.list-info.b51c8bb3')} ) `">
|
||||
<a-tooltip placement="topLeft" :title="text + ` ( ${$t('i18n.aac62bc255')} ) `">
|
||||
<span v-if="record.buildId <= 0"></span>
|
||||
<a-tag v-else color="#108ee9" @click="handleBuildLog(record)">#{{ text }}</a-tag>
|
||||
</a-tooltip>
|
||||
@ -395,11 +395,11 @@
|
||||
type="primary"
|
||||
danger
|
||||
@click="handleStopBuild(record)"
|
||||
>{{ $t('pages.build.list-info.d9418498') }}
|
||||
>{{ $t('i18n.095e938e2a') }}
|
||||
</a-button>
|
||||
<a-dropdown v-else>
|
||||
<a-button size="small" type="primary" @click="handleConfirmStartBuild(record)"
|
||||
>{{ $t('pages.build.list-info.6116e886') }}<DownOutlined
|
||||
>{{ $t('i18n.fcba60e773') }}<DownOutlined
|
||||
/></a-button>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
@ -408,7 +408,7 @@
|
||||
size="small"
|
||||
type="primary"
|
||||
@click="reqStartBuild({ id: record.id, buildEnvParameter: record.buildEnvParameter }, true)"
|
||||
>{{ $t('pages.build.list-info.56424415') }}</a-button
|
||||
>{{ $t('i18n.16b5e7b472') }}</a-button
|
||||
>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="2">
|
||||
@ -416,7 +416,7 @@
|
||||
size="small"
|
||||
type="primary"
|
||||
@click="reqStartBuild({ id: record.id, buildEnvParameter: record.buildEnvParameter }, false)"
|
||||
>{{ $t('pages.build.list-info.d128c3f3') }}</a-button
|
||||
>{{ $t('i18n.f1fdaffdf0') }}</a-button
|
||||
>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
@ -424,38 +424,38 @@
|
||||
</a-dropdown>
|
||||
<a-dropdown>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record, 1)">{{
|
||||
$t('pages.build.list-info.e1224c34')
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item @click="handleEdit(record, 0)">
|
||||
<a href="javascript:;">{{ $t('pages.build.list-info.b5dfedd9') }}</a>
|
||||
<a href="javascript:;">{{ $t('i18n.17a74824de') }}</a>
|
||||
</a-menu-item>
|
||||
<a-menu-item @click="handleEdit(record, 1)">
|
||||
<a href="javascript:;">{{ $t('pages.build.list-info.fbe7a37d') }}</a>
|
||||
<a href="javascript:;">{{ $t('i18n.6ea1fe6baa') }}</a>
|
||||
</a-menu-item>
|
||||
<a-menu-item @click="handleEdit(record, 2)">
|
||||
<a href="javascript:;">{{ $t('pages.build.list-info.344b9569') }}</a>
|
||||
<a href="javascript:;">{{ $t('i18n.a2ae15f8a7') }}</a>
|
||||
</a-menu-item>
|
||||
<a-menu-item @click="handleEdit(record, 3)">
|
||||
<a href="javascript:;">{{ $t('pages.build.list-info.7be4f983') }}</a>
|
||||
<a href="javascript:;">{{ $t('i18n.3c91490844') }}</a>
|
||||
</a-menu-item>
|
||||
<a-menu-item @click="handleEdit(record, 4)">
|
||||
<a href="javascript:;">{{ $t('pages.build.list-info.17607860') }}</a>
|
||||
<a href="javascript:;">{{ $t('i18n.9ab433e930') }}</a>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
</a-dropdown>
|
||||
<a-dropdown>
|
||||
<a class="ant-dropdown-link" @click="(e) => e.preventDefault()">
|
||||
{{ $t('pages.build.list-info.6e071067') }}
|
||||
{{ $t('i18n.0ec9eaf9c3') }}
|
||||
<DownOutlined />
|
||||
</a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
<a-button size="small" type="primary" @click="copyItem(record)">{{
|
||||
$t('pages.build.list-info.a8ef5999')
|
||||
$t('i18n.79d3abe929')
|
||||
}}</a-button>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
@ -464,24 +464,24 @@
|
||||
:disabled="!record.resultHasFile"
|
||||
type="primary"
|
||||
@click="handleDownloadFile(record)"
|
||||
>{{ $t('pages.build.list-info.44ea38fe') }}</a-button
|
||||
>{{ $t('i18n.635391aa5d') }}</a-button
|
||||
>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
<a-button size="small" type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('pages.build.list-info.2f14e7d4')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-menu-item>
|
||||
|
||||
<a-menu-item>
|
||||
<a-tooltip placement="leftBottom" :title="$t('pages.build.list-info.7ed8368b')">
|
||||
<a-tooltip placement="leftBottom" :title="$t('i18n.19675b9d36')">
|
||||
<a-button
|
||||
size="small"
|
||||
type="primary"
|
||||
danger
|
||||
:disabled="!record.sourceDirExist"
|
||||
@click="handleClear(record)"
|
||||
>{{ $t('pages.build.list-info.49cc9441') }}
|
||||
>{{ $t('i18n.c37ac7f024') }}
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-menu-item>
|
||||
@ -492,7 +492,7 @@
|
||||
type="primary"
|
||||
:disabled="(listQuery.page - 1) * listQuery.limit + (index + 1) <= 1"
|
||||
@click="sortItemHander(record, index, 'top')"
|
||||
>{{ $t('pages.build.list-info.35d93b3e') }}</a-button
|
||||
>{{ $t('i18n.3d43ff1199') }}</a-button
|
||||
>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
@ -501,7 +501,7 @@
|
||||
type="primary"
|
||||
:disabled="(listQuery.page - 1) * listQuery.limit + (index + 1) <= 1"
|
||||
@click="sortItemHander(record, index, 'up')"
|
||||
>{{ $t('pages.build.list-info.6e79de86') }}</a-button
|
||||
>{{ $t('i18n.315eacd193') }}</a-button
|
||||
>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
@ -511,7 +511,7 @@
|
||||
:disabled="(listQuery.page - 1) * listQuery.limit + (index + 1) === listQuery.total"
|
||||
@click="sortItemHander(record, index, 'down')"
|
||||
>
|
||||
{{ $t('pages.build.list-info.78c0cb41') }}
|
||||
{{ $t('i18n.17acd250da') }}
|
||||
</a-button>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
@ -593,31 +593,31 @@
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
width="40vw"
|
||||
:title="$t('pages.build.list-info.f56a79a2')"
|
||||
:title="$t('i18n.0a1d18283e')"
|
||||
:mask-closable="false"
|
||||
@ok="handleStartBuild"
|
||||
>
|
||||
<a-form :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
|
||||
<a-form-item :label="$t('pages.build.list-info.bb769c1d')" name="name">
|
||||
<a-form-item :label="$t('i18n.d7ec2d3fea')" name="name">
|
||||
<a-input v-model:value="temp.name" read-only disabled />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.build.list-info.5cb4b684')" name="branchName">
|
||||
<a-form-item :label="$t('i18n.bfc04cfda7')" name="branchName">
|
||||
<custom-select
|
||||
v-model:value="temp.branchName"
|
||||
:data="branchList"
|
||||
:disabled="temp.branchTagName ? true : false"
|
||||
:can-reload="true"
|
||||
:input-placeholder="$t('pages.build.list-info.8f70dedd')"
|
||||
:select-placeholder="$t('pages.build.list-info.969f2846')"
|
||||
:input-placeholder="$t('i18n.c618659cea')"
|
||||
:select-placeholder="$t('i18n.121e76bb63')"
|
||||
@on-refresh-select="loadBranchListById(temp.repositoryId)"
|
||||
>
|
||||
<template #inputTips>
|
||||
<div>
|
||||
{{ $t('pages.build.list-info.bb871195') }}(AntPathMatcher)
|
||||
{{ $t('i18n.89f5ca6928') }}(AntPathMatcher)
|
||||
<ul>
|
||||
<li>? {{ $t('pages.build.list-info.e0095c49') }}</li>
|
||||
<li>* {{ $t('pages.build.list-info.970e6cdf') }}</li>
|
||||
<li>** {{ $t('pages.build.list-info.e073d65') }}</li>
|
||||
<li>? {{ $t('i18n.9973159a4d') }}</li>
|
||||
<li>* {{ $t('i18n.32f882ae24') }}</li>
|
||||
<li>** {{ $t('i18n.45b88fc569') }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
@ -625,45 +625,45 @@
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="(branchTagList && branchTagList.length) || (temp.branchTagName && temp.branchTagName.length)"
|
||||
:label="$t('pages.build.list-info.83d5a14e')"
|
||||
:label="$t('i18n.977bfe8508')"
|
||||
name="branchTagName"
|
||||
>
|
||||
<custom-select
|
||||
v-model:value="temp.branchTagName"
|
||||
:data="branchTagList"
|
||||
:can-reload="true"
|
||||
:input-placeholder="$t('pages.build.list-info.b328c96c')"
|
||||
:select-placeholder="$t('pages.build.list-info.7f712bec')"
|
||||
:input-placeholder="$t('i18n.30e6f71a18')"
|
||||
:select-placeholder="$t('i18n.2d58b0e650')"
|
||||
@on-refresh-select="loadBranchListById(temp.repositoryId)"
|
||||
>
|
||||
<template #inputTips>
|
||||
<div>
|
||||
{{ $t('pages.build.list-info.bb871195') }}(AntPathMatcher)
|
||||
{{ $t('i18n.89f5ca6928') }}(AntPathMatcher)
|
||||
<ul>
|
||||
<li>? {{ $t('pages.build.list-info.e0095c49') }}</li>
|
||||
<li>* {{ $t('pages.build.list-info.970e6cdf') }}</li>
|
||||
<li>** {{ $t('pages.build.list-info.e073d65') }}</li>
|
||||
<li>? {{ $t('i18n.9973159a4d') }}</li>
|
||||
<li>* {{ $t('i18n.32f882ae24') }}</li>
|
||||
<li>** {{ $t('i18n.45b88fc569') }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
</custom-select>
|
||||
</a-form-item>
|
||||
<a-form-item name="resultDirFile" :label="$t('pages.build.list-info.63121c12')">
|
||||
<a-input v-model:value="temp.resultDirFile" :placeholder="$t('pages.build.list-info.6f375d88')" />
|
||||
<a-form-item name="resultDirFile" :label="$t('i18n.c972010694')">
|
||||
<a-input v-model:value="temp.resultDirFile" :placeholder="$t('i18n.2bef5b58ab')" />
|
||||
</a-form-item>
|
||||
<a-form-item name="checkRepositoryDiff" :label="$t('pages.build.list-info.8692041e')" help="">
|
||||
<a-form-item name="checkRepositoryDiff" :label="$t('i18n.0b23d2f584')" help="">
|
||||
<a-space>
|
||||
<a-switch
|
||||
v-model:checked="temp.checkRepositoryDiff"
|
||||
:checked-children="$t('pages.build.list-info.f5bb2364')"
|
||||
:un-checked-children="$t('pages.build.list-info.5edb2e8a')"
|
||||
:checked-children="$t('i18n.0a60ac8f02')"
|
||||
:un-checked-children="$t('i18n.c9744f45e7')"
|
||||
/>
|
||||
<span>
|
||||
<a-tooltip>
|
||||
<template #title> {{ $t('pages.build.list-info.6f2466a3') }} </template>
|
||||
<template #title> {{ $t('i18n.4cbc5505c7') }} </template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
{{ $t('pages.build.list-info.abad81a4') }}
|
||||
{{ $t('i18n.1d263b7efb') }}
|
||||
</span>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
@ -671,43 +671,43 @@
|
||||
<a-form-item
|
||||
v-if="temp.releaseMethod === 1 || temp.releaseMethod === 2"
|
||||
name="projectSecondaryDirectory"
|
||||
:label="$t('pages.build.list-info.597f26e8')"
|
||||
:label="$t('i18n.871cc8602a')"
|
||||
>
|
||||
<a-input v-model:value="temp.projectSecondaryDirectory" :placeholder="$t('pages.build.list-info.8e2b5cb2')" />
|
||||
<a-input v-model:value="temp.projectSecondaryDirectory" :placeholder="$t('i18n.9c99e8bec9')" />
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
:label="$t('pages.build.list-info.798dbcb4')"
|
||||
:label="$t('i18n.3867e350eb')"
|
||||
name="buildEnvParameter"
|
||||
:help="$t('pages.build.list-info.c23ac61d')"
|
||||
:help="$t('i18n.220650a1f5')"
|
||||
>
|
||||
<a-textarea
|
||||
v-model:value="temp.buildEnvParameter"
|
||||
:placeholder="$t('pages.build.list-info.6cc91892')"
|
||||
:placeholder="$t('i18n.b3913b9bb7')"
|
||||
:auto-size="{ minRows: 3, maxRows: 5 }"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
:label="$t('pages.build.list-info.11757b06')"
|
||||
:label="$t('i18n.d1498d9dbf')"
|
||||
name="buildRemark"
|
||||
:help="$t('pages.build.list-info.6a69192c')"
|
||||
:help="$t('i18n.111e786daa')"
|
||||
>
|
||||
<a-textarea
|
||||
v-model:value="temp.buildRemark"
|
||||
:max-length="240"
|
||||
:placeholder="$t('pages.build.list-info.48ed56a')"
|
||||
:placeholder="$t('i18n.7777a83497')"
|
||||
:auto-size="{ minRows: 2, maxRows: 5 }"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="dispatchProjectList && dispatchProjectList.length"
|
||||
name="selectProject"
|
||||
:label="$t('pages.build.list-info.ec12e21e')"
|
||||
:help="$t('pages.build.list-info.1bdcc00f')"
|
||||
:label="$t('i18n.c4e0c6b6fe')"
|
||||
:help="$t('i18n.25be899f66')"
|
||||
>
|
||||
<a-select
|
||||
v-model:value="temp.dispatchSelectProjectArray"
|
||||
mode="multiple"
|
||||
:placeholder="$t('pages.build.list-info.3d29208d')"
|
||||
:placeholder="$t('i18n.b29fd18c93')"
|
||||
>
|
||||
<a-select-option
|
||||
v-for="item in dispatchProjectList"
|
||||
@ -801,28 +801,28 @@ export default {
|
||||
buildConfirmVisible: false,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.build.list-info.bb769c1d'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: 'name',
|
||||
sorter: true,
|
||||
width: 200,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.list-info.b1765e98'),
|
||||
title: this.$t('i18n.829abe5a8d'),
|
||||
dataIndex: 'group',
|
||||
width: 100,
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.list-info.a36b3cc8'),
|
||||
title: this.$t('i18n.f4bbbaf882'),
|
||||
dataIndex: 'branchName',
|
||||
ellipsis: true,
|
||||
width: 100
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.build.list-info.b96b97fb'),
|
||||
title: this.$t('i18n.7220e4d5f9'),
|
||||
dataIndex: 'buildMode',
|
||||
align: 'center',
|
||||
width: '80px',
|
||||
@ -830,14 +830,14 @@ export default {
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.list-info.6e06fe4f'),
|
||||
title: this.$t('i18n.3fea7ca76c'),
|
||||
dataIndex: 'status',
|
||||
align: 'center',
|
||||
width: '100px',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.list-info.7cf809d7'),
|
||||
title: this.$t('i18n.b5d0091ae3'),
|
||||
dataIndex: 'buildId',
|
||||
width: '90px',
|
||||
ellipsis: true,
|
||||
@ -845,27 +845,27 @@ export default {
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.build.list-info.c5607db9'),
|
||||
title: this.$t('i18n.f98994f7ec'),
|
||||
dataIndex: 'releaseMethod',
|
||||
width: '100px',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.list-info.72370b9a'),
|
||||
title: this.$t('i18n.7dfcab648d'),
|
||||
dataIndex: 'resultDirFile',
|
||||
width: 100,
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.list-info.313ac3d0'),
|
||||
title: this.$t('i18n.db9296212a'),
|
||||
dataIndex: 'autoBuildCron',
|
||||
width: 100,
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.list-info.916db24b'),
|
||||
title: this.$t('i18n.9baca0054e'),
|
||||
dataIndex: 'modifyUser',
|
||||
width: '130px',
|
||||
ellipsis: true,
|
||||
@ -873,7 +873,7 @@ export default {
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.build.list-info.f5b90169'),
|
||||
title: this.$t('i18n.eca37cb072'),
|
||||
dataIndex: 'createTimeMillis',
|
||||
sorter: true,
|
||||
ellipsis: true,
|
||||
@ -881,20 +881,20 @@ export default {
|
||||
width: '160px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.list-info.a2b40316'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'modifyTimeMillis',
|
||||
sorter: true,
|
||||
customRender: ({ text }) => parseTime(text),
|
||||
width: '160px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.list-info.f5049383'),
|
||||
title: this.$t('i18n.c35c1a1330'),
|
||||
dataIndex: 'sortValue',
|
||||
sorter: true,
|
||||
width: '80px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.build.list-info.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
width: '200px',
|
||||
|
||||
@ -1003,7 +1003,7 @@ export default {
|
||||
const temp = Object.assign({}, record)
|
||||
delete temp.id
|
||||
delete temp.triggerToken
|
||||
temp.name = temp.name + this.$t('pages.build.list-info.307f45c9')
|
||||
temp.name = temp.name + this.$t('i18n.0428b36ab1')
|
||||
this.temp = temp
|
||||
this.editBuildVisible = 2
|
||||
this.editSteps = 1
|
||||
@ -1036,11 +1036,11 @@ export default {
|
||||
// 删除
|
||||
handleDelete(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.build.list-info.cb4b5c9c'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.build.list-info.2c8deda8'),
|
||||
okText: this.$t('pages.build.list-info.7da4a591'),
|
||||
cancelText: this.$t('pages.build.list-info.43105e21'),
|
||||
content: this.$t('i18n.48281fd3f0'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
// 删除
|
||||
return deleteBuild(record.id).then((res) => {
|
||||
@ -1058,16 +1058,16 @@ export default {
|
||||
handleBatchDelete() {
|
||||
if (!this.tableSelections || this.tableSelections.length <= 0) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.build.list-info.a1dd3707')
|
||||
message: this.$t('i18n.5d817c403e')
|
||||
})
|
||||
return
|
||||
}
|
||||
$confirm({
|
||||
title: this.$t('pages.build.list-info.cb4b5c9c'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.build.list-info.cba18cfc'),
|
||||
okText: this.$t('pages.build.list-info.7da4a591'),
|
||||
cancelText: this.$t('pages.build.list-info.43105e21'),
|
||||
content: this.$t('i18n.79076b6882'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
// 删除
|
||||
return deleteatchBuild({ ids: this.tableSelections.join(',') }).then((res) => {
|
||||
@ -1084,11 +1084,11 @@ export default {
|
||||
// 清除构建
|
||||
handleClear(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.build.list-info.cb4b5c9c'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.build.list-info.38efbe58'),
|
||||
okText: this.$t('pages.build.list-info.7da4a591'),
|
||||
cancelText: this.$t('pages.build.list-info.43105e21'),
|
||||
content: this.$t('i18n.e15f22df2d'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return clearBuid(record.id).then((res) => {
|
||||
if (res.code === 200) {
|
||||
@ -1183,12 +1183,12 @@ export default {
|
||||
// 停止构建
|
||||
handleStopBuild(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.build.list-info.cb4b5c9c'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
// TODO 后续抽优化
|
||||
content: this.$t('pages.build.list-info.a37e5410') + record.name + this.$t('pages.build.list-info.4dfd12e9'),
|
||||
okText: this.$t('pages.build.list-info.7da4a591'),
|
||||
cancelText: this.$t('pages.build.list-info.43105e21'),
|
||||
content: this.$t('i18n.25f6a95de3') + record.name + this.$t('i18n.c16ab7c424'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
this.temp = Object.assign({}, record)
|
||||
return stopBuild(this.temp.id).then((res) => {
|
||||
@ -1218,22 +1218,22 @@ export default {
|
||||
// 排序
|
||||
sortItemHander(record, index, method) {
|
||||
const msgData = {
|
||||
top: this.$t('pages.build.list-info.959fa602'),
|
||||
up: this.$t('pages.build.list-info.aca73ac1'),
|
||||
down: this.$t('pages.build.list-info.9ea36aca')
|
||||
top: this.$t('i18n.0079d91f95'),
|
||||
up: this.$t('i18n.b166a66d67'),
|
||||
down: this.$t('i18n.7a7e25e9eb')
|
||||
}
|
||||
let msg = msgData[method] || this.$t('pages.build.list-info.644ef343')
|
||||
let msg = msgData[method] || this.$t('i18n.49574eee58')
|
||||
if (!record.sortValue) {
|
||||
msg += this.$t('pages.build.list-info.fd3f32c7')
|
||||
msg += this.$t('i18n.461e675921')
|
||||
}
|
||||
// console.log(this.list, index, this.list[method === "top" ? index : method === "up" ? index - 1 : index + 1]);
|
||||
const compareId = this.list[method === 'top' ? index : method === 'up' ? index - 1 : index + 1].id
|
||||
$confirm({
|
||||
title: this.$t('pages.build.list-info.cb4b5c9c'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: msg,
|
||||
okText: this.$t('pages.build.list-info.7da4a591'),
|
||||
cancelText: this.$t('pages.build.list-info.43105e21'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return sortItem({
|
||||
id: record.id,
|
||||
@ -1259,16 +1259,16 @@ export default {
|
||||
batchBuild() {
|
||||
if (!this.tableSelections || this.tableSelections.length <= 0) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.build.list-info.a1dd3707')
|
||||
message: this.$t('i18n.5d817c403e')
|
||||
})
|
||||
return
|
||||
}
|
||||
$confirm({
|
||||
title: this.$t('pages.build.list-info.cb4b5c9c'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.build.list-info.b31a6402'),
|
||||
okText: this.$t('pages.build.list-info.7da4a591'),
|
||||
cancelText: this.$t('pages.build.list-info.43105e21'),
|
||||
content: this.$t('i18n.9341881037'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
this.tableSelections.forEach((item) => {
|
||||
startBuild({
|
||||
@ -1288,16 +1288,16 @@ export default {
|
||||
batchCancel() {
|
||||
if (!this.tableSelections || this.tableSelections.length <= 0) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.build.list-info.a1dd3707')
|
||||
message: this.$t('i18n.5d817c403e')
|
||||
})
|
||||
return
|
||||
}
|
||||
$confirm({
|
||||
title: this.$t('pages.build.list-info.cb4b5c9c'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.build.list-info.44523544'),
|
||||
okText: this.$t('pages.build.list-info.7da4a591'),
|
||||
cancelText: this.$t('pages.build.list-info.43105e21'),
|
||||
content: this.$t('i18n.2d3fd578ce'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
this.tableSelections.forEach((item) => {
|
||||
stopBuild(item).then((res) => {
|
||||
@ -1331,7 +1331,7 @@ export default {
|
||||
handerConfirm() {
|
||||
if (!this.tableSelections.length) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.build.list-info.afb1ec30')
|
||||
message: this.$t('i18n.2b4cf3d74e')
|
||||
})
|
||||
return
|
||||
}
|
||||
@ -1340,7 +1340,7 @@ export default {
|
||||
})
|
||||
if (!selectData.length) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.build.list-info.afb1ec30')
|
||||
message: this.$t('i18n.2b4cf3d74e')
|
||||
})
|
||||
return
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<log-view
|
||||
:ref="`logView`"
|
||||
:title-name="$t('pages.build.log.fc20bf28')"
|
||||
:title-name="$t('i18n.7c0ee78130')"
|
||||
:visible="visible"
|
||||
@close="
|
||||
() => {
|
||||
@ -12,24 +12,24 @@
|
||||
<template #before>
|
||||
<a-space>
|
||||
<span v-if="status">
|
||||
{{ $t('pages.build.log.df91bc15') }}
|
||||
{{ $t('i18n.e703c7367c') }}
|
||||
<a-tooltip
|
||||
:title="`${$t('pages.build.log.df91bc15')} ${statusMap[status]} ${
|
||||
statusMsg ? $t('pages.build.log.7f491810') + statusMsg : ''
|
||||
:title="`${$t('i18n.e703c7367c')} ${statusMap[status]} ${
|
||||
statusMsg ? $t('i18n.8d13037eb7') + statusMsg : ''
|
||||
}`"
|
||||
>
|
||||
<a-tag :color="statusColor[status]" style="margin-right: 0">
|
||||
{{ statusMap[status] || $t('pages.build.log.3ebb81e0') }}
|
||||
{{ statusMap[status] || $t('i18n.903b25f64e') }}
|
||||
</a-tag>
|
||||
</a-tooltip>
|
||||
</span>
|
||||
<span>
|
||||
{{ $t('pages.build.log.7cf809d7') }}
|
||||
{{ $t('i18n.31aaaaa6ec') }}
|
||||
<a-tag>{{ temp && temp.buildId }}</a-tag>
|
||||
</span>
|
||||
<a-button type="primary" :disabled="!logId" size="small" @click="handleDownload"
|
||||
><DownloadOutlined />
|
||||
{{ $t('pages.build.log.42c8e9c6') }}
|
||||
{{ $t('i18n.f26ef91424') }}
|
||||
</a-button>
|
||||
|
|
||||
</a-space>
|
||||
|
@ -4,43 +4,43 @@
|
||||
<a-form ref="editTriggerForm" :model="temp" :label-col="{ span: 6 }" :wrapper-col="{ span: 16 }">
|
||||
<a-tabs default-active-key="1" type="card">
|
||||
<template #rightExtra>
|
||||
<a-tooltip :title="$t('pages.build.trigger.c70e60e6')">
|
||||
<a-tooltip :title="$t('i18n.01ad26f4a9')">
|
||||
<a-button type="primary" size="small" @click="resetTrigger">{{
|
||||
$t('pages.build.trigger.da1d2343')
|
||||
$t('i18n.4b9c3271dc')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-tab-pane key="1" :tab="$t('pages.build.trigger.ca9188db')">
|
||||
<a-tab-pane key="1" :tab="$t('i18n.3d3b918f49')">
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-alert :message="$t('pages.build.trigger.7feba425')" type="warning" show-icon>
|
||||
<a-alert :message="$t('i18n.947d983961')" type="warning" show-icon>
|
||||
<template #description>
|
||||
<ul>
|
||||
<li>{{ $t('pages.build.trigger.c16a1a40') }}</li>
|
||||
<li>{{ $t('i18n.314f5aca4e') }}</li>
|
||||
<li>
|
||||
{{ $t('pages.build.trigger.58634bfa') }}
|
||||
{{ $t('i18n.e319a2a526') }}
|
||||
</li>
|
||||
<li>
|
||||
{{ $t('pages.build.trigger.2f647b6c') }} BODY json: [ { "id":"1", "token":"a", "delay":"0" } ]
|
||||
{{ $t('i18n.3a3c5e739b') }} BODY json: [ { "id":"1", "token":"a", "delay":"0" } ]
|
||||
</li>
|
||||
<li>
|
||||
{{ $t('pages.build.trigger.b100eecf') }}
|
||||
{{ $t('i18n.3baa9f3d72') }}
|
||||
</li>
|
||||
<li>
|
||||
{{ $t('pages.build.trigger.c607de59') }} BODY json: [ { "id":"1", "token":"a",
|
||||
{{ $t('i18n.dcc846e420') }} BODY json: [ { "id":"1", "token":"a",
|
||||
"delay":"0","branchName":"test","branchTagName":"1.*","script":"mvn clean
|
||||
package","resultDirFile":"/target/","webhook":"http://test.com/webhook" } ]
|
||||
</li>
|
||||
<li>
|
||||
{{ $t('pages.build.trigger.5f0e8fe3') }} useQueue=true
|
||||
{{ $t('pages.build.trigger.2809bf75') }}
|
||||
{{ $t('i18n.2adbfb41e9') }} useQueue=true
|
||||
{{ $t('i18n.0c1e9a72b7') }}
|
||||
</li>
|
||||
<li>{{ $t('pages.build.trigger.b8b6a2e4') }}</li>
|
||||
<li>{{ $t('i18n.68a1faf6e2') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('pages.build.trigger.2cd9ba62')}(${$t('pages.build.trigger.a5873c3e')})`"
|
||||
:message="`${$t('i18n.de78b73dab')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.triggerBuildUrl }">
|
||||
@ -50,7 +50,7 @@
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('pages.build.trigger.4bd083f4')}(${$t('pages.build.trigger.a5873c3e')})`"
|
||||
:message="`${$t('i18n.8d202b890c')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.batchTriggerBuildUrl }">
|
||||
@ -61,29 +61,29 @@
|
||||
</a-alert>
|
||||
</a-space>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" :tab="$t('pages.build.trigger.d18c2cea')">
|
||||
<a-tab-pane key="2" :tab="$t('i18n.251a89efa9')">
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-alert :message="$t('pages.build.trigger.7feba425')" type="warning" show-icon>
|
||||
<a-alert :message="$t('i18n.947d983961')" type="warning" show-icon>
|
||||
<template #description>
|
||||
<ul>
|
||||
<li>{{ $t('pages.build.trigger.b2f32fef') }}</li>
|
||||
<li>{{ $t('pages.build.trigger.a96b1198') }}</li>
|
||||
<li>{{ $t('i18n.3c48d9b970') }}</li>
|
||||
<li>{{ $t('i18n.c34f1dc2b9') }}</li>
|
||||
<li>
|
||||
<a-tag>No(0, "{{ $t('pages.build.trigger.d0284f2b') }}")</a-tag>,
|
||||
<a-tag>Ing(1, "{{ $t('pages.build.trigger.dbbd0a62') }}")</a-tag>,
|
||||
<a-tag>Success(2, "{{ $t('pages.build.trigger.a2e56f86') }}")</a-tag>,
|
||||
<a-tag>Error(3, "{{ $t('pages.build.trigger.7cc0beda') }}")</a-tag>,
|
||||
<a-tag>PubIng(4, "{{ $t('pages.build.trigger.19653803') }}")</a-tag>,
|
||||
<a-tag>PubSuccess(5, "{{ $t('pages.build.trigger.5f7b06e9') }}")</a-tag>,
|
||||
<a-tag>PubError(6, "{{ $t('pages.build.trigger.50ad1198') }}")</a-tag>,
|
||||
<a-tag>Cancel(7, "{{ $t('pages.build.trigger.65add658') }}")</a-tag>,
|
||||
<a-tag>No(0, "{{ $t('i18n.d30b8b0e43') }}")</a-tag>,
|
||||
<a-tag>Ing(1, "{{ $t('i18n.32493aeef9') }}")</a-tag>,
|
||||
<a-tag>Success(2, "{{ $t('i18n.7f3809d36b') }}")</a-tag>,
|
||||
<a-tag>Error(3, "{{ $t('i18n.41298f56a3') }}")</a-tag>,
|
||||
<a-tag>PubIng(4, "{{ $t('i18n.0baa0e3fc4') }}")</a-tag>,
|
||||
<a-tag>PubSuccess(5, "{{ $t('i18n.2fff079bc7') }}")</a-tag>,
|
||||
<a-tag>PubError(6, "{{ $t('i18n.250688d7c9') }}")</a-tag>,
|
||||
<a-tag>Cancel(7, "{{ $t('i18n.b4fc1ac02c') }}")</a-tag>,
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('pages.build.trigger.2547e040')}(${$t('pages.build.trigger.a5873c3e')})`"
|
||||
:message="`${$t('i18n.dcd72e6014')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.batchBuildStatusUrl2 }">
|
||||
@ -94,7 +94,7 @@
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('pages.build.trigger.dd421d7f')}(${$t('pages.build.trigger.a5873c3e')})`"
|
||||
:message="`${$t('i18n.cac6ff1d82')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.batchBuildStatusUrl }">
|
||||
@ -105,19 +105,19 @@
|
||||
</a-alert>
|
||||
</a-space>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="3" :tab="$t('pages.build.trigger.6b0809e7')">
|
||||
<a-tab-pane key="3" :tab="$t('i18n.d3ded43cee')">
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-alert :message="$t('pages.build.trigger.7feba425')" type="warning" show-icon>
|
||||
<a-alert :message="$t('i18n.947d983961')" type="warning" show-icon>
|
||||
<template #description>
|
||||
<ul>
|
||||
<li>{{ $t('pages.build.trigger.5c5f1276') }}</li>
|
||||
<li>{{ $t('pages.build.trigger.b8b189ad') }}</li>
|
||||
<li>{{ $t('i18n.178ad7e9bc') }}</li>
|
||||
<li>{{ $t('i18n.0215b91d97') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('pages.build.trigger.fee7ed9b')}(${$t('pages.build.trigger.a5873c3e')})`"
|
||||
:message="`${$t('i18n.2f5e885bc6')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.buildLogUrl }">
|
||||
@ -131,10 +131,10 @@
|
||||
</a-form>
|
||||
</div>
|
||||
<template v-else>
|
||||
<a-result :title="$t('pages.build.trigger.2dfb8e28')">
|
||||
<a-result :title="$t('i18n.475a349f32')">
|
||||
<template #extra>
|
||||
<a-button key="console" type="primary" @click="handleTrigger">
|
||||
{{ $t('pages.build.trigger.e8fee578') }}
|
||||
{{ $t('i18n.a1a3a7d853') }}
|
||||
</a-button>
|
||||
</template>
|
||||
</a-result>
|
||||
|
@ -7,7 +7,7 @@
|
||||
:auto-refresh-time="30"
|
||||
:active-page="activePage"
|
||||
table-name="certificate-list"
|
||||
:empty-description="$t('pages.certificate.list.f2b0d2c7')"
|
||||
:empty-description="$t('i18n.8c2da7cce9')"
|
||||
:data-source="list"
|
||||
size="middle"
|
||||
:loading="loading"
|
||||
@ -34,22 +34,22 @@
|
||||
v-model:value="listQuery['%issuerDnName%']"
|
||||
allow-clear
|
||||
class="search-input-item"
|
||||
:placeholder="$t('pages.certificate.list.ce1b3963')"
|
||||
:placeholder="$t('i18n.f0aba63ae7')"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['%subjectDnName%']"
|
||||
allow-clear
|
||||
class="search-input-item"
|
||||
:placeholder="$t('pages.certificate.list.9b938af')"
|
||||
:placeholder="$t('i18n.9970ad0746')"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-tooltip :title="$t('pages.certificate.list.554d1b95')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.certificate.list.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('pages.certificate.list.66e7821f') }}</a-button>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.c1690fcca5') }}</a-button>
|
||||
</a-space>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -60,32 +60,32 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'serialNumberStr'">
|
||||
<a-popover :title="$t('pages.certificate.list.d4f87c9d')">
|
||||
<a-popover :title="$t('i18n.5dc1f36a27')">
|
||||
<template #content>
|
||||
<p>{{ $t('pages.certificate.list.eee04e4f') }}{{ record.description }}</p>
|
||||
<p>{{ $t('i18n.4a4e3b5ae4') }}{{ record.description }}</p>
|
||||
</template>
|
||||
<!-- {{ text }} -->
|
||||
<a-button type="link" style="padding: 0" size="small" @click="handleEdit(record)">{{ text }}</a-button>
|
||||
</a-popover>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'fileExists'">
|
||||
<a-tag v-if="text" color="green">{{ $t('pages.certificate.list.a78774e2') }}</a-tag>
|
||||
<a-tag v-else color="red">{{ $t('pages.certificate.list.a51066b1') }}</a-tag>
|
||||
<a-tag v-if="text" color="green">{{ $t('i18n.df9497ea98') }}</a-tag>
|
||||
<a-tag v-else color="red">{{ $t('i18n.162e219f6d') }}</a-tag>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'workspaceId'">
|
||||
<a-tag v-if="text === 'GLOBAL'">{{ $t('pages.certificate.list.fd0310d0') }}</a-tag>
|
||||
<a-tag v-else>{{ $t('pages.certificate.list.afacc4cb') }}</a-tag>
|
||||
<a-tag v-if="text === 'GLOBAL'">{{ $t('i18n.2be75b1044') }}</a-tag>
|
||||
<a-tag v-else>{{ $t('i18n.98d69f8b62') }}</a-tag>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="handleDeployFile(record)">{{
|
||||
$t('pages.certificate.list.75099561')
|
||||
$t('i18n.a9f94dcd57')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleDownload(record)">{{
|
||||
$t('pages.certificate.list.a5bebb0f')
|
||||
$t('i18n.55405ea6ff')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('pages.certificate.list.dd20d11c')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -98,12 +98,12 @@
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
width="700px"
|
||||
:title="$t('pages.certificate.list.66e7821f')"
|
||||
:title="$t('i18n.c1690fcca5')"
|
||||
:mask-closable="false"
|
||||
@ok="handleEditCertOk"
|
||||
>
|
||||
<a-form ref="importCertForm" :rules="rules" :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 18 }">
|
||||
<a-form-item :label="$t('pages.certificate.list.539387e0')" name="type">
|
||||
<a-form-item :label="$t('i18n.929e857766')" name="type">
|
||||
<a-radio-group v-model:value="temp.type">
|
||||
<a-radio value="pkcs12"> pkcs12(pfx) </a-radio>
|
||||
<a-radio value="JKS"> JKS </a-radio>
|
||||
@ -111,7 +111,7 @@
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.certificate.list.9f4bdc32')" name="file">
|
||||
<a-form-item :label="$t('i18n.94aa195397')" name="file">
|
||||
<a-upload
|
||||
v-if="temp.type"
|
||||
:file-list="uploadFileList"
|
||||
@ -129,17 +129,17 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
<a-button><UploadOutlined />{{ $t('pages.certificate.list.51eeb245') }}</a-button>
|
||||
<a-button><UploadOutlined />{{ $t('i18n.fd7e0c997d') }}</a-button>
|
||||
</a-upload>
|
||||
<template v-else>{{ $t('pages.certificate.list.51afd37c') }}</template>
|
||||
<template v-else>{{ $t('i18n.c3512a3d09') }}</template>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="temp.type && temp.type !== 'X.509'"
|
||||
:label="$t('pages.certificate.list.ac2ef19e')"
|
||||
:label="$t('i18n.45028ad61d')"
|
||||
name="password"
|
||||
:help="$t('pages.certificate.list.f13a934d')"
|
||||
:help="$t('i18n.e8f07c2186')"
|
||||
>
|
||||
<a-input v-model:value="temp.password" :placeholder="$t('pages.certificate.list.ac2ef19e')" />
|
||||
<a-input v-model:value="temp.password" :placeholder="$t('i18n.45028ad61d')" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</CustomModal>
|
||||
@ -149,19 +149,19 @@
|
||||
v-model:open="editVisible"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.certificate.list.16773a22')"
|
||||
:title="$t('i18n.d47ea92b3a')"
|
||||
:mask-closable="false"
|
||||
@ok="handleEditOk"
|
||||
>
|
||||
<a-form ref="editForm" :rules="rules" :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
|
||||
<a-form-item :label="$t('pages.certificate.list.3a750854')" name="global">
|
||||
<a-form-item :label="$t('i18n.e475e0c655')" name="global">
|
||||
<a-radio-group v-model:value="temp.global">
|
||||
<a-radio :value="true"> {{ $t('pages.certificate.list.fd0310d0') }} </a-radio>
|
||||
<a-radio :value="false"> {{ $t('pages.certificate.list.919267cc') }} </a-radio>
|
||||
<a-radio :value="true"> {{ $t('i18n.2be75b1044') }} </a-radio>
|
||||
<a-radio :value="false"> {{ $t('i18n.691b11e443') }} </a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.certificate.list.d4f87c9d')" name="description">
|
||||
<a-textarea v-model:value="temp.description" :placeholder="$t('pages.certificate.list.5e6ba316')" />
|
||||
<a-form-item :label="$t('i18n.5dc1f36a27')" name="description">
|
||||
<a-textarea v-model:value="temp.description" :placeholder="$t('i18n.066431a665')" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</CustomModal>
|
||||
@ -171,12 +171,12 @@
|
||||
v-model:open="releaseFileVisible"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.certificate.list.25775bd2')"
|
||||
:title="$t('i18n.9ae40638d2')"
|
||||
width="70%"
|
||||
:mask-closable="false"
|
||||
@ok="releaseFileOk()"
|
||||
>
|
||||
<a-alert :message="$t('pages.certificate.list.f2e66875')" type="info" show-icon style="margin-bottom: 10px" />
|
||||
<a-alert :message="$t('i18n.a62fa322b4')" type="info" show-icon style="margin-bottom: 10px" />
|
||||
<releaseFile v-if="releaseFileVisible" ref="releaseFile" @commit="handleCommitTask"></releaseFile>
|
||||
</CustomModal>
|
||||
</div>
|
||||
@ -221,55 +221,55 @@ export default {
|
||||
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.certificate.list.72cebb96'),
|
||||
title: this.$t('i18n.30aaa13963'),
|
||||
dataIndex: 'serialNumberStr',
|
||||
ellipsis: true,
|
||||
width: 150
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.certificate.list.539387e0'),
|
||||
title: this.$t('i18n.929e857766'),
|
||||
dataIndex: 'keyType',
|
||||
ellipsis: true,
|
||||
width: '80px',
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.certificate.list.34e8b7bd'),
|
||||
title: this.$t('i18n.a3d0154996'),
|
||||
dataIndex: 'fileExists',
|
||||
ellipsis: true,
|
||||
|
||||
width: '80px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.certificate.list.65860154'),
|
||||
title: this.$t('i18n.fffd3ce745'),
|
||||
dataIndex: 'workspaceId',
|
||||
ellipsis: true,
|
||||
|
||||
width: '90px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.certificate.list.ce1b3963'),
|
||||
title: this.$t('i18n.f0aba63ae7'),
|
||||
dataIndex: 'issuerDnName',
|
||||
ellipsis: true,
|
||||
width: 200,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.certificate.list.9b938af'),
|
||||
title: this.$t('i18n.9970ad0746'),
|
||||
dataIndex: 'subjectDnName',
|
||||
ellipsis: true,
|
||||
width: 150,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.certificate.list.4ac82fe2'),
|
||||
title: this.$t('i18n.3a6c2962e1'),
|
||||
dataIndex: 'sigAlgName',
|
||||
ellipsis: true,
|
||||
width: 150,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.certificate.list.65d0dc35'),
|
||||
title: this.$t('i18n.4f08d1ad9f'),
|
||||
dataIndex: 'sigAlgOid',
|
||||
ellipsis: true,
|
||||
width: 150,
|
||||
@ -277,42 +277,42 @@ export default {
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.certificate.list.bdfd1242'),
|
||||
title: this.$t('i18n.fc92e93523'),
|
||||
dataIndex: 'effectiveTime',
|
||||
customRender: ({ text }) => parseTime(text),
|
||||
sorter: true,
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.certificate.list.19741306'),
|
||||
title: this.$t('i18n.22e888c2df'),
|
||||
dataIndex: 'expirationTime',
|
||||
sorter: true,
|
||||
customRender: ({ text }) => parseTime(text),
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.certificate.list.d826aba2'),
|
||||
title: this.$t('i18n.d0b2958432'),
|
||||
dataIndex: 'certVersion',
|
||||
ellipsis: true,
|
||||
width: '80px',
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.certificate.list.db3c9202'),
|
||||
title: this.$t('i18n.95a43eaa59'),
|
||||
dataIndex: 'createUser',
|
||||
ellipsis: true,
|
||||
|
||||
width: '120px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.certificate.list.916db24b'),
|
||||
title: this.$t('i18n.9baca0054e'),
|
||||
dataIndex: 'modifyUser',
|
||||
ellipsis: true,
|
||||
|
||||
width: '120px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.certificate.list.f5b90169'),
|
||||
title: this.$t('i18n.eca37cb072'),
|
||||
dataIndex: 'createTimeMillis',
|
||||
sorter: true,
|
||||
ellipsis: true,
|
||||
@ -320,7 +320,7 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.certificate.list.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
align: 'center',
|
||||
fixed: 'right',
|
||||
@ -333,7 +333,7 @@ export default {
|
||||
// id: [{ required: true, message: "Please input ID", trigger: "blur" }],
|
||||
// name: [{ required: true, message: "Please input name", trigger: "blur" }],
|
||||
// path: [{ required: true, message: "Please select path", trigger: "blur" }],
|
||||
type: [{ required: true, message: this.$t('pages.certificate.list.71717caf'), trigger: 'blur' }]
|
||||
type: [{ required: true, message: this.$t('i18n.ac408e4b03'), trigger: 'blur' }]
|
||||
},
|
||||
releaseFileVisible: false,
|
||||
editVisible: false,
|
||||
@ -399,7 +399,7 @@ export default {
|
||||
this.$refs['importCertForm'].validate().then(() => {
|
||||
if (this.uploadFileList.length === 0) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.certificate.list.71301d96')
|
||||
message: this.$t('i18n.4244830033')
|
||||
})
|
||||
return false
|
||||
}
|
||||
@ -430,11 +430,11 @@ export default {
|
||||
// 删除
|
||||
handleDelete(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.certificate.list.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.certificate.list.987c2cd6'),
|
||||
okText: this.$t('pages.certificate.list.e8e9db25'),
|
||||
cancelText: this.$t('pages.certificate.list.b12468e9'),
|
||||
content: this.$t('i18n.efe9d26148'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk() {
|
||||
return deleteCert({
|
||||
id: record.id
|
||||
@ -519,7 +519,7 @@ export default {
|
||||
handerConfirm() {
|
||||
if (!this.tableSelections.length) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.certificate.list.d1dba43e')
|
||||
message: this.$t('i18n.94ca71ae7b')
|
||||
})
|
||||
return
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,7 @@
|
||||
:auto-refresh-time="30"
|
||||
:active-page="activePage"
|
||||
table-name="dispatch-log-list"
|
||||
:empty-description="$t('pages.dispatch.log.e9534f0')"
|
||||
:empty-description="$t('i18n.8d1286cd2e')"
|
||||
size="middle"
|
||||
:data-source="list"
|
||||
:columns="columns"
|
||||
@ -24,7 +24,7 @@
|
||||
<a-select
|
||||
v-model:value="listQuery.nodeId"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.dispatch.log.580e6c10')"
|
||||
:placeholder="$t('i18n.f8a613d247')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="node in nodeList" :key="node.id">{{ node.name }}</a-select-option>
|
||||
@ -32,7 +32,7 @@
|
||||
<a-select
|
||||
v-model:value="listQuery.outGivingId"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.dispatch.log.d935498a')"
|
||||
:placeholder="$t('i18n.bc8752e529')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="dispatch in dispatchList" :key="dispatch.id">{{ dispatch.name }}</a-select-option>
|
||||
@ -40,7 +40,7 @@
|
||||
<a-select
|
||||
v-model:value="listQuery.status"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.dispatch.log.56195645')"
|
||||
:placeholder="$t('i18n.e1c965efff')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="(item, key) in dispatchStatusMap" :key="key" :value="key">{{
|
||||
@ -48,9 +48,9 @@
|
||||
}}</a-select-option>
|
||||
</a-select>
|
||||
<a-range-picker :show-time="{ format: 'HH:mm:ss' }" format="YYYY-MM-DD HH:mm:ss" @change="onchangeTime" />
|
||||
<a-tooltip :title="$t('pages.dispatch.log.1bfed54a')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{
|
||||
$t('pages.dispatch.log.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
@ -86,7 +86,7 @@
|
||||
<template v-else-if="column.dataIndex === 'mode'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${dispatchMode[text] || ''} ${$t('pages.dispatch.log.733ffc6e')}${record.modeData || ''}`"
|
||||
:title="`${dispatchMode[text] || ''} ${$t('i18n.b04209e785')}${record.modeData || ''}`"
|
||||
>
|
||||
<span>{{ dispatchMode[text] || '' }}</span>
|
||||
</a-tooltip>
|
||||
@ -122,19 +122,19 @@
|
||||
<template v-else-if="column.dataIndex === 'status'">
|
||||
<!-- {{ dispatchStatusMap[text] || "未知" }} -->
|
||||
<a-tag v-if="text === 2" color="green">{{
|
||||
dispatchStatusMap[text] || $t('pages.dispatch.log.5f51a112')
|
||||
dispatchStatusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else-if="text === 1 || text === 0 || text === 5" color="orange">{{
|
||||
dispatchStatusMap[text] || $t('pages.dispatch.log.5f51a112')
|
||||
dispatchStatusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else-if="text === 3 || text === 4 || text === 6" color="red">{{
|
||||
dispatchStatusMap[text] || $t('pages.dispatch.log.5f51a112')
|
||||
dispatchStatusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else>{{ dispatchStatusMap[text] || $t('pages.dispatch.log.5f51a112') }}</a-tag>
|
||||
<a-tag v-else>{{ dispatchStatusMap[text] || $t('i18n.1622dc9b6b') }}</a-tag>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-button type="primary" size="small" @click="handleDetail(record)">{{
|
||||
$t('pages.dispatch.log.151c73eb')
|
||||
$t('i18n.f26225bde6')
|
||||
}}</a-button>
|
||||
</template>
|
||||
</template>
|
||||
@ -145,7 +145,7 @@
|
||||
v-model:open="detailVisible"
|
||||
destroy-on-close
|
||||
width="600px"
|
||||
:title="$t('pages.dispatch.log.2edcd34c')"
|
||||
:title="$t('i18n.3032257aa3')"
|
||||
:footer="null"
|
||||
>
|
||||
<a-list item-layout="horizontal" :data-source="detailData">
|
||||
@ -186,49 +186,49 @@ export default {
|
||||
detailData: [],
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.dispatch.log.4eaba425'),
|
||||
title: this.$t('i18n.b714160f52'),
|
||||
dataIndex: 'outGivingId',
|
||||
width: 100,
|
||||
ellipsis: true
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.dispatch.log.fa8d810f'),
|
||||
title: this.$t('i18n.b1785ef01e'),
|
||||
dataIndex: 'nodeName',
|
||||
ellipsis: true,
|
||||
width: 150
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.log.87c0ef77'),
|
||||
title: this.$t('i18n.4fdd2213b5'),
|
||||
dataIndex: 'projectId',
|
||||
ellipsis: true,
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.log.b96b97fb'),
|
||||
title: this.$t('i18n.174062da44'),
|
||||
dataIndex: 'mode',
|
||||
ellipsis: true,
|
||||
width: '100px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.log.66c5a40'),
|
||||
title: this.$t('i18n.0ef396cbcc'),
|
||||
dataIndex: 'outGivingResultMsg',
|
||||
ellipsis: true,
|
||||
width: 200
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.dispatch.log.bc8deb76'),
|
||||
title: this.$t('i18n.4cd49caae4'),
|
||||
dataIndex: 'outGivingResultTime',
|
||||
width: '120px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.log.f087781'),
|
||||
title: this.$t('i18n.396b7d3f91'),
|
||||
dataIndex: 'outGivingResultSize',
|
||||
width: '100px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.log.ac9ef5f5'),
|
||||
title: this.$t('i18n.592c595891'),
|
||||
dataIndex: 'startTime',
|
||||
customRender: ({ text }) => {
|
||||
return parseTime(text)
|
||||
@ -237,7 +237,7 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.log.9376939d'),
|
||||
title: this.$t('i18n.f782779e8b'),
|
||||
dataIndex: 'endTime',
|
||||
sorter: true,
|
||||
customRender: ({ text }) => {
|
||||
@ -246,27 +246,27 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.log.e57df4bc'),
|
||||
title: this.$t('i18n.543de6ff04'),
|
||||
dataIndex: 'outGivingResultMsgData',
|
||||
ellipsis: true,
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.log.ed74cc37'),
|
||||
title: this.$t('i18n.f9ac4b2aa6'),
|
||||
dataIndex: 'modifyUser',
|
||||
ellipsis: true,
|
||||
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.log.9c32c887'),
|
||||
title: this.$t('i18n.3fea7ca76c'),
|
||||
dataIndex: 'status',
|
||||
width: 100,
|
||||
ellipsis: true,
|
||||
fixed: 'right'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.log.a0fe2109'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
align: 'center',
|
||||
width: '100px',
|
||||
@ -332,7 +332,7 @@ export default {
|
||||
this.detailVisible = true
|
||||
this.temp = Object.assign({}, record)
|
||||
|
||||
this.detailData.push({ title: this.$t('pages.dispatch.log.66c5a40'), description: this.temp.result })
|
||||
this.detailData.push({ title: this.$t('i18n.0ef396cbcc'), description: this.temp.result })
|
||||
},
|
||||
// 分页、排序、筛选变化时触发
|
||||
changePage(pagination, filters, sorter) {
|
||||
|
@ -16,17 +16,17 @@
|
||||
<a-space wrap class="search-box">
|
||||
<a-input
|
||||
v-model:value="listQuery['%name%']"
|
||||
:placeholder="$t('pages.dispatch.logRead.2ee8e7cc')"
|
||||
:placeholder="$t('i18n.66e9ea5488')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
|
||||
<a-tooltip :title="$t('pages.dispatch.logRead.3371c7a0')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.dispatch.logRead.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('pages.dispatch.logRead.52ca17c1') }}</a-button>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
<template #bodyCell="{ column, text, record }">
|
||||
@ -39,13 +39,13 @@
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button type="primary" size="small" @click="handleEdit(record)">{{
|
||||
$t('pages.dispatch.logRead.64603c01')
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<a-button type="primary" size="small" @click="handleLogRead(record)">{{
|
||||
$t('pages.dispatch.logRead.1ba84995')
|
||||
$t('i18n.607e7a4f37')
|
||||
}}</a-button>
|
||||
<a-button type="primary" danger size="small" @click="handleDelete(record)">{{
|
||||
$t('pages.dispatch.logRead.dd20d11c')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -58,23 +58,23 @@
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
width="60%"
|
||||
:title="$t('pages.dispatch.logRead.4621082b')"
|
||||
:title="$t('i18n.7e58312632')"
|
||||
:mask-closable="false"
|
||||
@ok="handleEditOk"
|
||||
>
|
||||
<a-form ref="editForm" :rules="rules" :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 18 }">
|
||||
<a-form-item :label="$t('pages.dispatch.logRead.2ee8e7cc')" name="name">
|
||||
<a-input v-model:value="temp.name" :max-length="50" :placeholder="$t('pages.dispatch.logRead.ce9b8b40')" />
|
||||
<a-form-item :label="$t('i18n.66e9ea5488')" name="name">
|
||||
<a-input v-model:value="temp.name" :max-length="50" :placeholder="$t('i18n.7c9bb61536')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.dispatch.logRead.89553def')" required>
|
||||
<a-form-item :label="$t('i18n.83f25dbaa0')" required>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-row v-for="(item, index) in temp.projectList" :key="index">
|
||||
<a-col :span="11">
|
||||
<span>{{ $t('pages.dispatch.logRead.602a0a5e') }} </span>
|
||||
<span>{{ $t('i18n.9b280a6d2d') }} </span>
|
||||
<a-select
|
||||
v-model:value="item.nodeId"
|
||||
style="width: 80%"
|
||||
:placeholder="$t('pages.dispatch.logRead.2c33c91c')"
|
||||
:placeholder="$t('i18n.f8a613d247')"
|
||||
@change="
|
||||
() => {
|
||||
temp = {
|
||||
@ -103,12 +103,12 @@
|
||||
</a-select>
|
||||
</a-col>
|
||||
<a-col :span="11">
|
||||
<span>{{ $t('pages.dispatch.logRead.4889a88f') }} </span>
|
||||
<span>{{ $t('i18n.8198e4461a') }} </span>
|
||||
<a-select
|
||||
v-model:value="item.projectId"
|
||||
:disabled="!item.nodeId"
|
||||
style="width: 80%"
|
||||
:placeholder="`${$t('pages.dispatch.logRead.bf2bdd20')}`"
|
||||
:placeholder="`${$t('i18n.9fc2e26bfa')}`"
|
||||
>
|
||||
<!-- <a-select-option value=""> 请先选择节点</a-select-option> -->
|
||||
<template v-if="nodeProjectList[item.nodeId]">
|
||||
@ -136,7 +136,7 @@
|
||||
</a-row>
|
||||
|
||||
<a-button type="primary" @click="() => temp.projectList.push({})">{{
|
||||
$t('pages.dispatch.logRead.52ca17c1')
|
||||
$t('i18n.66ab5e9f24')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
@ -157,7 +157,7 @@
|
||||
"
|
||||
>
|
||||
<template #title>
|
||||
{{ $t('pages.dispatch.logRead.a602ffb5') }}
|
||||
{{ $t('i18n.bfda12336c') }}
|
||||
{{ temp.cacheData && temp.cacheData.logFile ? ':' + temp.cacheData.logFile : '' }}
|
||||
</template>
|
||||
<logReadView
|
||||
@ -198,14 +198,14 @@ export default {
|
||||
editVisible: false,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.dispatch.logRead.bb769c1d'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: 'name',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.dispatch.logRead.916db24b'),
|
||||
title: this.$t('i18n.9baca0054e'),
|
||||
dataIndex: 'modifyUser',
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
@ -213,7 +213,7 @@ export default {
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.logRead.61164914'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'modifyTimeMillis',
|
||||
sorter: true,
|
||||
customRender: ({ text }) => {
|
||||
@ -225,7 +225,7 @@ export default {
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.logRead.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
ellipsis: true,
|
||||
|
||||
@ -235,7 +235,7 @@ export default {
|
||||
],
|
||||
|
||||
rules: {
|
||||
name: [{ required: true, message: this.$t('pages.dispatch.logRead.b3c4e04b'), trigger: 'blur' }]
|
||||
name: [{ required: true, message: this.$t('i18n.679de60f71'), trigger: 'blur' }]
|
||||
},
|
||||
confirmLoading: false
|
||||
}
|
||||
@ -326,7 +326,7 @@ export default {
|
||||
})
|
||||
if (!temp.projectList || !temp.projectList.length) {
|
||||
$notification.warn({
|
||||
message: this.$t('pages.dispatch.logRead.6d8491c8')
|
||||
message: this.$t('i18n.1a56bb2237')
|
||||
})
|
||||
return false
|
||||
}
|
||||
@ -352,11 +352,11 @@ export default {
|
||||
// 删除
|
||||
handleDelete(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.dispatch.logRead.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.dispatch.logRead.347d0d00'),
|
||||
okText: this.$t('pages.dispatch.logRead.e8e9db25'),
|
||||
cancelText: this.$t('pages.dispatch.logRead.b12468e9'),
|
||||
content: this.$t('i18n.9bbb6b5b75'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return deleteLogRead(record.id).then((res) => {
|
||||
if (res.code === 200) {
|
||||
|
@ -7,11 +7,11 @@
|
||||
<div class="dir-container">
|
||||
<template v-if="temp.projectList && temp.cacheData">
|
||||
<a-form layout="inline" autocomplete="off">
|
||||
<a-form-item :label="$t('pages.dispatch.logReadView.602a0a5e')">
|
||||
<a-form-item :label="$t('i18n.3bf3c0a8d6')">
|
||||
<a-select
|
||||
:value="`${temp.cacheData.useNodeId},${temp.cacheData.useProjectId}`"
|
||||
style="width: 200px"
|
||||
:placeholder="$t('pages.dispatch.logReadView.fa46eeab')"
|
||||
:placeholder="$t('i18n.f8a613d247')"
|
||||
@change="nodeChange"
|
||||
>
|
||||
<a-select-option v-for="item in temp.projectList" :key="`${item.nodeId},${item.projectId}`">
|
||||
@ -42,21 +42,21 @@
|
||||
<a-form layout="inline" autocomplete="off">
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-space>
|
||||
<a-form-item :label="$t('pages.dispatch.logReadView.6dfb72aa')">
|
||||
<a-form-item :label="$t('i18n.5349f417e9')">
|
||||
<!-- 关键词: -->
|
||||
<!-- ^.*\d+.*$ -->
|
||||
<!-- .*(0999996|0999995).* .*(a|b).* -->
|
||||
<a-tooltip placement="right" :title="$t('pages.dispatch.logReadView.d98d089a')">
|
||||
<a-tooltip placement="right" :title="$t('i18n.e5ae5b36db')">
|
||||
<a-input
|
||||
v-model:value="temp.cacheData.keyword"
|
||||
:placeholder="$t('pages.dispatch.logReadView.302f617f')"
|
||||
:placeholder="$t('i18n.2d05c9d012')"
|
||||
:style="`width: 250px`"
|
||||
@press-enter="sendSearchLog"
|
||||
>
|
||||
</a-input>
|
||||
</a-tooltip>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.dispatch.logReadView.c100be5f')">
|
||||
<a-form-item :label="$t('i18n.a20341341b')">
|
||||
<a-input-number
|
||||
id="inputNumber"
|
||||
v-model:value="temp.cacheData.beforeCount"
|
||||
@ -65,7 +65,7 @@
|
||||
@press-enter="sendSearchLog"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.dispatch.logReadView.919cda12')">
|
||||
<a-form-item :label="$t('i18n.10d6dfd112')">
|
||||
<a-input-number
|
||||
id="inputNumber"
|
||||
v-model:value="temp.cacheData.afterCount"
|
||||
@ -74,28 +74,28 @@
|
||||
@press-enter="sendSearchLog"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-popover :title="$t('pages.dispatch.logReadView.1c3a658d')">
|
||||
<a-popover :title="$t('i18n.108d492247')">
|
||||
<template #content>
|
||||
<ul>
|
||||
<li><b>^.*\d+.*$</b> - {{ $t('pages.dispatch.logReadView.f272a03b') }}</li>
|
||||
<li><b>.*(a|b).*</b> - {{ $t('pages.dispatch.logReadView.86178136') }}</li>
|
||||
<li><b>^.*\d+.*$</b> - {{ $t('i18n.66c15f2815') }}</li>
|
||||
<li><b>.*(a|b).*</b> - {{ $t('i18n.a1638e78e8') }}</li>
|
||||
<li>
|
||||
<b>.*({{ $t('pages.dispatch.logReadView.5df14abf') }}).*</b> -
|
||||
{{ $t('pages.dispatch.logReadView.2b62360b') }}
|
||||
<b>.*({{ $t('i18n.c195df6308') }}).*</b> -
|
||||
{{ $t('i18n.346008472d') }}
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
<a-button type="link" style="padding: 0"
|
||||
><UnorderedListOutlined /><span style="margin-left: 2px">{{
|
||||
$t('pages.dispatch.logReadView.a4387127')
|
||||
$t('i18n.be5b6463cf')
|
||||
}}</span></a-button
|
||||
>
|
||||
</a-popover>
|
||||
</a-space>
|
||||
<a-space>
|
||||
<a-form-item :label="$t('pages.dispatch.logReadView.d6d70eec')">
|
||||
<a-form-item :label="$t('i18n.ff9dffec4d')">
|
||||
<!-- -->
|
||||
<a-tooltip placement="right" :title="$t('pages.dispatch.logReadView.688a9d49')">
|
||||
<a-tooltip placement="right" :title="$t('i18n.a9463d0f1a')">
|
||||
<a-select
|
||||
:style="`width: 250px`"
|
||||
:value="temp.cacheData.first"
|
||||
@ -107,12 +107,12 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
<a-select-option value="false">{{ $t('pages.dispatch.logReadView.11566afb') }}</a-select-option>
|
||||
<a-select-option value="true">{{ $t('pages.dispatch.logReadView.87580afa') }} </a-select-option>
|
||||
<a-select-option value="false">{{ $t('i18n.518df98392') }}</a-select-option>
|
||||
<a-select-option value="true">{{ $t('i18n.9914219dd1') }} </a-select-option>
|
||||
</a-select>
|
||||
</a-tooltip>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.dispatch.logReadView.a1bcf223')">
|
||||
<a-form-item :label="$t('i18n.d82ab35b27')">
|
||||
<a-input-number
|
||||
id="inputNumber"
|
||||
v-model:value="temp.cacheData.head"
|
||||
@ -121,7 +121,7 @@
|
||||
@press-enter="sendSearchLog"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.dispatch.logReadView.809babf4')">
|
||||
<a-form-item :label="$t('i18n.10145884ba')">
|
||||
<a-input-number
|
||||
id="inputNumber"
|
||||
v-model:value="temp.cacheData.tail"
|
||||
@ -130,42 +130,42 @@
|
||||
@press-enter="sendSearchLog"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-popover :title="$t('pages.dispatch.logReadView.9a3e275d')">
|
||||
<a-popover :title="$t('i18n.257dc29ef7')">
|
||||
<template #content>
|
||||
<ul>
|
||||
<li>
|
||||
<b>{{ $t('pages.dispatch.logReadView.10e4a1c0') }}</b> -
|
||||
{{ $t('pages.dispatch.logReadView.b0942cee') }}
|
||||
<b>{{ $t('i18n.625aa478e2') }}</b> -
|
||||
{{ $t('i18n.cb25f04b46') }}
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ $t('pages.dispatch.logReadView.33b45e7b') }}</b> -
|
||||
{{ $t('pages.dispatch.logReadView.6aca37a9') }}
|
||||
<b>{{ $t('i18n.704f33fc74') }}</b> -
|
||||
{{ $t('i18n.7d3f2fd640') }}
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ $t('pages.dispatch.logReadView.89edf07a') }}</b> -
|
||||
{{ $t('pages.dispatch.logReadView.f3c36613') }}
|
||||
<b>{{ $t('i18n.5d414afd86') }}</b> -
|
||||
{{ $t('i18n.4effdeb1ff') }}
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ $t('pages.dispatch.logReadView.feeac0ec') }}</b> -
|
||||
{{ $t('pages.dispatch.logReadView.84c45685') }}
|
||||
<b>{{ $t('i18n.8ea4c3f537') }}</b> -
|
||||
{{ $t('i18n.9b0bc05511') }}
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ $t('pages.dispatch.logReadView.aabd0fc1') }}</b> -
|
||||
{{ $t('pages.dispatch.logReadView.1aa0c326') }}
|
||||
<b>{{ $t('i18n.758edf4666') }}</b> -
|
||||
{{ $t('i18n.3f2d5bd6cc') }}
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ $t('pages.dispatch.logReadView.608e554f') }}</b> -
|
||||
{{ $t('pages.dispatch.logReadView.6da7f3b0') }}
|
||||
<b>{{ $t('i18n.6e2d78a20e') }}</b> -
|
||||
{{ $t('i18n.59d20801e9') }}
|
||||
</li>
|
||||
<li>
|
||||
<b>{{ $t('pages.dispatch.logReadView.ddba3f57') }}</b> -
|
||||
{{ $t('pages.dispatch.logReadView.f4aea20a') }}
|
||||
<b>{{ $t('i18n.abba4043d8') }}</b> -
|
||||
{{ $t('i18n.4bbc09fc55') }}
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
<a-button type="link" style="padding: 0"
|
||||
><UnorderedListOutlined /><span style="margin-left: 2px">{{
|
||||
$t('pages.dispatch.logReadView.5ff0949a')
|
||||
$t('i18n.62170d5b0a')
|
||||
}}</span></a-button
|
||||
>
|
||||
</a-popover>
|
||||
@ -344,7 +344,7 @@ export default {
|
||||
console.error(err)
|
||||
$notification.error({
|
||||
key: 'log-read-error',
|
||||
message: `web socket ${this.$t('pages.dispatch.logReadView.d75d207f')},${this.$t(
|
||||
message: `web socket ${this.$t('i18n.7030ff6470')},${this.$t(
|
||||
'pages.dispatch.logReadView.763330b'
|
||||
)}`
|
||||
})
|
||||
@ -357,7 +357,7 @@ export default {
|
||||
key: 'log-read-close',
|
||||
message:
|
||||
((this.nodeName[item.nodeId] && this.nodeName[item.nodeId].name) || '') +
|
||||
` ${this.$t('pages.dispatch.logReadView.8a2aae09')}[tail-log]`
|
||||
` ${this.$t('i18n.ab3725d06b')}[tail-log]`
|
||||
})
|
||||
clearInterval(this.socketCache[id].heart)
|
||||
}
|
||||
@ -454,7 +454,7 @@ export default {
|
||||
this.sendSearchLog()
|
||||
} else {
|
||||
//
|
||||
$message.error(this.$t('pages.dispatch.logReadView.a84270cf'))
|
||||
$message.error(this.$t('i18n.765d09eea5'))
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -8,7 +8,7 @@
|
||||
:footer="uploading ? null : undefined"
|
||||
width="50%"
|
||||
:keyboard="false"
|
||||
:title="$t('pages.dispatch.start.d935498a') + data.name"
|
||||
:title="$t('i18n.a0a111cbbd') + data.name"
|
||||
:mask-closable="false"
|
||||
@ok="handleDispatchOk"
|
||||
@cancel="
|
||||
@ -18,39 +18,39 @@
|
||||
"
|
||||
>
|
||||
<a-form ref="dispatchForm" :rules="rules" :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
|
||||
<a-form-item :label="$t('pages.dispatch.start.b96b97fb')" name="type">
|
||||
<a-form-item :label="$t('i18n.7220e4d5f9')" name="type">
|
||||
<a-radio-group v-model:value="temp.type" name="type" :disabled="!!percentage" @change="restForm">
|
||||
<a-radio :value="'use-build'">{{ $t('pages.dispatch.start.7bcf90e5') }}</a-radio>
|
||||
<a-radio :value="'file-storage'">{{ $t('pages.dispatch.start.f183985') }}</a-radio>
|
||||
<a-radio :value="'static-file-storage'">{{ $t('pages.dispatch.start.c3a20e28') }}</a-radio>
|
||||
<a-radio :value="'upload'">{{ $t('pages.dispatch.start.33ffacfb') }}</a-radio>
|
||||
<a-radio :value="'download'">{{ $t('pages.dispatch.start.367f115c') }}</a-radio>
|
||||
<a-radio :value="'use-build'">{{ $t('i18n.c1af35d001') }}</a-radio>
|
||||
<a-radio :value="'file-storage'">{{ $t('i18n.26183c99bf') }}</a-radio>
|
||||
<a-radio :value="'static-file-storage'">{{ $t('i18n.28f6e7a67b') }}</a-radio>
|
||||
<a-radio :value="'upload'">{{ $t('i18n.a6fc9e3ae6') }}</a-radio>
|
||||
<a-radio :value="'download'">{{ $t('i18n.bd7043cae3') }}</a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
<!-- 手动上传 -->
|
||||
<a-form-item v-if="temp.type === 'upload'" :label="$t('pages.dispatch.start.fc83ff3a')" name="clearOld">
|
||||
<a-form-item v-if="temp.type === 'upload'" :label="$t('i18n.4cfca88db8')" name="clearOld">
|
||||
<a-progress v-if="percentage" :percent="percentage">
|
||||
<template #format="percent">
|
||||
{{ percent }}%
|
||||
<template v-if="percentageInfo.total"> ({{ renderSize(percentageInfo.total) }}) </template>
|
||||
<template v-if="percentageInfo.duration">
|
||||
{{ $t('pages.dispatch.start.bca9469e') }}:{{ formatDuration(percentageInfo.duration) }}
|
||||
{{ $t('i18n.e710da3487') }}:{{ formatDuration(percentageInfo.duration) }}
|
||||
</template>
|
||||
</template>
|
||||
</a-progress>
|
||||
|
||||
<a-upload :file-list="fileList" :disabled="!!percentage" :before-upload="beforeUpload" @remove="handleRemove">
|
||||
<LoadingOutlined v-if="percentage" />
|
||||
<a-button v-else type="primary"><UploadOutlined />{{ $t('pages.dispatch.start.2a688d49') }}</a-button>
|
||||
<a-button v-else type="primary"><UploadOutlined />{{ $t('i18n.fd7e0c997d') }}</a-button>
|
||||
</a-upload>
|
||||
</a-form-item>
|
||||
<!-- 远程下载 -->
|
||||
<a-form-item v-else-if="temp.type === 'download'" :label="$t('pages.dispatch.start.94149f7b')" name="url">
|
||||
<a-input v-model:value="temp.url" :placeholder="$t('pages.dispatch.start.40ced483')" />
|
||||
<a-form-item v-else-if="temp.type === 'download'" :label="$t('i18n.a66fff7541')" name="url">
|
||||
<a-input v-model:value="temp.url" :placeholder="$t('i18n.7457228a61')" />
|
||||
</a-form-item>
|
||||
<!-- 在线构建 -->
|
||||
<template v-else-if="temp.type == 'use-build'">
|
||||
<a-form-item :label="$t('pages.dispatch.start.afb1ec30')">
|
||||
<a-form-item :label="$t('i18n.4f9e3db4b8')">
|
||||
<a-space>
|
||||
{{ chooseBuildInfo.name }}
|
||||
<a-button
|
||||
@ -61,11 +61,11 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.dispatch.start.afb1ec30') }}
|
||||
{{ $t('i18n.4f9e3db4b8') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.dispatch.start.94cf01f8')">
|
||||
<a-form-item :label="$t('i18n.cabdf0cd45')">
|
||||
<a-space>
|
||||
<a-tag v-if="chooseBuildInfo.buildNumberId">#{{ chooseBuildInfo.buildNumberId }}</a-tag>
|
||||
<a-button
|
||||
@ -77,14 +77,14 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.dispatch.start.94cf01f8') }}
|
||||
{{ $t('i18n.cabdf0cd45') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
</template>
|
||||
<!-- 文件中心 -->
|
||||
<template v-else-if="temp.type === 'file-storage'">
|
||||
<a-form-item :label="$t('pages.dispatch.start.2a688d49')">
|
||||
<a-form-item :label="$t('i18n.fd7e0c997d')">
|
||||
<a-space>
|
||||
{{ chooseFileInfo.name }}
|
||||
<a-button
|
||||
@ -95,14 +95,14 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.dispatch.start.2a688d49') }}
|
||||
{{ $t('i18n.fd7e0c997d') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
</template>
|
||||
<!-- 静态文件 -->
|
||||
<template v-else-if="temp.type === 'static-file-storage'">
|
||||
<a-form-item :label="$t('pages.dispatch.start.2a688d49')">
|
||||
<a-form-item :label="$t('i18n.fd7e0c997d')">
|
||||
<a-space>
|
||||
{{ chooseFileInfo.name }}
|
||||
<a-button
|
||||
@ -113,65 +113,65 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.dispatch.start.2a688d49') }}
|
||||
{{ $t('i18n.fd7e0c997d') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
</template>
|
||||
<a-form-item name="clearOld">
|
||||
<template #label>
|
||||
{{ $t('pages.dispatch.start.fa8d15d') }}
|
||||
{{ $t('i18n.2223ff647d') }}
|
||||
<a-tooltip>
|
||||
<template #title>{{ $t('pages.dispatch.start.81c6b18') }}</template>
|
||||
<template #title>{{ $t('i18n.b343663a14') }}</template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-switch
|
||||
v-model:checked="temp.clearOld"
|
||||
:checked-children="$t('pages.dispatch.start.d2fbce36')"
|
||||
:un-checked-children="$t('pages.dispatch.start.1c77d6fb')"
|
||||
:checked-children="$t('i18n.0a60ac8f02')"
|
||||
:un-checked-children="$t('i18n.c9744f45e7')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item v-if="temp.type !== 'use-build'" name="unzip">
|
||||
<template #label>
|
||||
{{ $t('pages.dispatch.start.23788e28') }}
|
||||
{{ $t('i18n.1baae8183c') }}
|
||||
<a-tooltip>
|
||||
<template #title> {{ $t('pages.dispatch.start.240759e7') }}.bz2, tar.gz, tar, bz2, zip, gz </template>
|
||||
<template #title> {{ $t('i18n.c4cfe11e54') }}.bz2, tar.gz, tar, bz2, zip, gz </template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-switch
|
||||
v-model:checked="temp.autoUnzip"
|
||||
:checked-children="$t('pages.dispatch.start.d2fbce36')"
|
||||
:un-checked-children="$t('pages.dispatch.start.1c77d6fb')"
|
||||
:checked-children="$t('i18n.0a60ac8f02')"
|
||||
:un-checked-children="$t('i18n.c9744f45e7')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item v-if="temp.autoUnzip" :label="$t('pages.dispatch.start.89d09852')">
|
||||
<a-form-item v-if="temp.autoUnzip" :label="$t('i18n.5effe31353')">
|
||||
<a-input-number
|
||||
v-model:value="temp.stripComponents"
|
||||
style="width: 100%"
|
||||
:min="0"
|
||||
:placeholder="$t('pages.dispatch.start.41a5bcc1')"
|
||||
:placeholder="$t('i18n.3f8b64991f')"
|
||||
/>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.dispatch.start.3cb4eb3e')" name="afterOpt">
|
||||
<a-select v-model:value="temp.afterOpt" :placeholder="$t('pages.dispatch.start.9c2b1069')">
|
||||
<a-form-item :label="$t('i18n.dfcc9e3c45')" name="afterOpt">
|
||||
<a-select v-model:value="temp.afterOpt" :placeholder="$t('i18n.3322338140')">
|
||||
<a-select-option v-for="item in afterOptList" :key="item.value">{{ item.title }}</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item name="secondaryDirectory" :label="$t('pages.dispatch.start.597f26e8')">
|
||||
<a-input v-model:value="temp.secondaryDirectory" :placeholder="$t('pages.dispatch.start.51be1a6d')" />
|
||||
<a-form-item name="secondaryDirectory" :label="$t('i18n.871cc8602a')">
|
||||
<a-input v-model:value="temp.secondaryDirectory" :placeholder="$t('i18n.9c99e8bec9')" />
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
name="selectProject"
|
||||
:label="$t('pages.dispatch.start.ec12e21e')"
|
||||
:help="$t('pages.dispatch.start.72a6a7a9')"
|
||||
:label="$t('i18n.c4e0c6b6fe')"
|
||||
:help="$t('i18n.25be899f66')"
|
||||
>
|
||||
<a-select
|
||||
v-model:value="temp.selectProjectArray"
|
||||
mode="multiple"
|
||||
:placeholder="$t('pages.dispatch.start.56724111')"
|
||||
:placeholder="$t('i18n.b29fd18c93')"
|
||||
>
|
||||
<a-select-option v-for="item in itemProjectList" :key="item.id" :value="`${item.projectId}@${item.nodeId}`">
|
||||
{{ item.nodeName }}-{{ item.cacheProjectName || item.projectId }}
|
||||
@ -184,7 +184,7 @@
|
||||
<CustomDrawer
|
||||
v-if="chooseVisible === 1"
|
||||
destroy-on-close
|
||||
:title="`${$t('pages.dispatch.start.afb1ec30')}`"
|
||||
:title="`${$t('i18n.4f9e3db4b8')}`"
|
||||
placement="right"
|
||||
:open="chooseVisible === 1"
|
||||
width="80vw"
|
||||
@ -225,7 +225,7 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.dispatch.start.43105e21') }}
|
||||
{{ $t('i18n.625fb26b4b') }}
|
||||
</a-button>
|
||||
<a-button
|
||||
type="primary"
|
||||
@ -235,7 +235,7 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.dispatch.start.7da4a591') }}
|
||||
{{ $t('i18n.e83a256e4f') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -244,7 +244,7 @@
|
||||
<CustomDrawer
|
||||
v-if="chooseVisible === 2"
|
||||
destroy-on-close
|
||||
:title="`${$t('pages.dispatch.start.a2d28d82')}`"
|
||||
:title="`${$t('i18n.9ec961d8cb')}`"
|
||||
placement="right"
|
||||
:open="chooseVisible === 2"
|
||||
width="80vw"
|
||||
@ -286,7 +286,7 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.dispatch.start.43105e21') }}
|
||||
{{ $t('i18n.625fb26b4b') }}
|
||||
</a-button>
|
||||
<a-button
|
||||
type="primary"
|
||||
@ -296,7 +296,7 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.dispatch.start.7da4a591') }}
|
||||
{{ $t('i18n.e83a256e4f') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -305,7 +305,7 @@
|
||||
<CustomDrawer
|
||||
v-if="chooseVisible === 3"
|
||||
destroy-on-close
|
||||
:title="`${$t('pages.dispatch.start.2a688d49')}`"
|
||||
:title="`${$t('i18n.fd7e0c997d')}`"
|
||||
placement="right"
|
||||
:open="chooseVisible === 3"
|
||||
width="80vw"
|
||||
@ -343,7 +343,7 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.dispatch.start.43105e21') }}
|
||||
{{ $t('i18n.625fb26b4b') }}
|
||||
</a-button>
|
||||
<a-button
|
||||
type="primary"
|
||||
@ -353,7 +353,7 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.dispatch.start.7da4a591') }}
|
||||
{{ $t('i18n.e83a256e4f') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -362,7 +362,7 @@
|
||||
<CustomDrawer
|
||||
v-if="chooseVisible === 4"
|
||||
destroy-on-close
|
||||
:title="`${$t('pages.dispatch.start.e5aa6b98')}`"
|
||||
:title="`${$t('i18n.a51d8375b7')}`"
|
||||
placement="right"
|
||||
:open="chooseVisible === 4"
|
||||
width="80vw"
|
||||
@ -400,7 +400,7 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.dispatch.start.43105e21') }}
|
||||
{{ $t('i18n.625fb26b4b') }}
|
||||
</a-button>
|
||||
<a-button
|
||||
type="primary"
|
||||
@ -410,7 +410,7 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.dispatch.start.7da4a591') }}
|
||||
{{ $t('i18n.e83a256e4f') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -461,8 +461,8 @@ export default {
|
||||
itemProjectList: [],
|
||||
fileList: [],
|
||||
rules: {
|
||||
afterOpt: [{ required: true, message: this.$t('pages.dispatch.start.9c2b1069'), trigger: 'blur' }],
|
||||
url: [{ required: true, message: this.$t('pages.dispatch.start.b843270d'), trigger: 'blur' }]
|
||||
afterOpt: [{ required: true, message: this.$t('i18n.3322338140'), trigger: 'blur' }],
|
||||
url: [{ required: true, message: this.$t('i18n.f4dd45fca9'), trigger: 'blur' }]
|
||||
},
|
||||
temp: { type: 'upload' },
|
||||
chooseVisible: 0,
|
||||
@ -561,7 +561,7 @@ export default {
|
||||
// 判断文件
|
||||
if (this.fileList.length === 0) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.dispatch.start.25d31749')
|
||||
message: this.$t('i18n.9febf31146')
|
||||
})
|
||||
return false
|
||||
}
|
||||
@ -648,7 +648,7 @@ export default {
|
||||
} else if (this.temp.type == 'download') {
|
||||
if (!this.temp.url) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.dispatch.start.95dc7228')
|
||||
message: this.$t('i18n.8ccbbb95a4')
|
||||
})
|
||||
return false
|
||||
}
|
||||
@ -671,7 +671,7 @@ export default {
|
||||
// 构建
|
||||
if (!this.chooseBuildInfo || !this.chooseBuildInfo.id || !this.chooseBuildInfo.buildNumberId) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.dispatch.start.de346cfe')
|
||||
message: this.$t('i18n.c704d971d6')
|
||||
})
|
||||
return false
|
||||
}
|
||||
@ -698,7 +698,7 @@ export default {
|
||||
// 文件中心
|
||||
if (!this.chooseFileInfo || !this.chooseFileInfo.id) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.dispatch.start.346e59ed')
|
||||
message: this.$t('i18n.434d888f6f')
|
||||
})
|
||||
return false
|
||||
}
|
||||
@ -724,7 +724,7 @@ export default {
|
||||
// 文件中心
|
||||
if (!this.chooseFileInfo || !this.chooseFileInfo.id) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.dispatch.start.26b3a389')
|
||||
message: this.$t('i18n.acb4ce3592')
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<CustomDrawer
|
||||
destroy-on-close
|
||||
:title="`${$t('pages.dispatch.status.1ba84995')} ${name} ${$t('pages.dispatch.status.6e06fe4f')}`"
|
||||
:title="`${$t('i18n.607e7a4f37')} ${name} ${$t('i18n.3fea7ca76c')}`"
|
||||
placement="right"
|
||||
width="85vw"
|
||||
:open="true"
|
||||
@ -13,7 +13,7 @@
|
||||
"
|
||||
>
|
||||
<a-tabs v-model:activeKey="tabKey" tab-position="left">
|
||||
<a-tab-pane key="1" :tab="$t('pages.dispatch.status.6e06fe4f')">
|
||||
<a-tab-pane key="1" :tab="$t('i18n.3fea7ca76c')">
|
||||
<!-- 嵌套表格 -->
|
||||
<a-table
|
||||
:loading="childLoading"
|
||||
@ -30,30 +30,30 @@
|
||||
<template #title>
|
||||
<a-space>
|
||||
<div>
|
||||
{{ $t('pages.dispatch.status.8a8e4923') }}
|
||||
{{ $t('i18n.e703c7367c') }}
|
||||
<a-tag v-if="data.status === 2" color="green">{{
|
||||
statusMap[data.status] || $t('pages.dispatch.status.5f51a112')
|
||||
statusMap[data.status] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else-if="data.status === 1 || data.status === 0" color="orange">{{
|
||||
statusMap[data.status] || $t('pages.dispatch.status.5f51a112')
|
||||
statusMap[data.status] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else-if="data.status === 3 || data.status === 4" color="red">{{
|
||||
statusMap[data.status] || $t('pages.dispatch.status.5f51a112')
|
||||
statusMap[data.status] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else>{{ statusMap[data.status] || $t('pages.dispatch.status.5f51a112') }}</a-tag>
|
||||
<a-tag v-else>{{ statusMap[data.status] || $t('i18n.1622dc9b6b') }}</a-tag>
|
||||
</div>
|
||||
<div>{{ $t('pages.dispatch.status.a622e852') }}{{ data.statusMsg || '-' }}</div>
|
||||
<div>{{ $t('i18n.fb3a2241bb') }}{{ data.statusMsg || '-' }}</div>
|
||||
<a-button type="primary" size="small" :loading="childLoading" @click="loadData">{{
|
||||
$t('pages.dispatch.status.7bbd89a')
|
||||
$t('i18n.694fc5efa9')
|
||||
}}</a-button>
|
||||
<a-statistic-countdown
|
||||
format="s"
|
||||
:title="$t('pages.dispatch.status.ae8f1e')"
|
||||
:title="$t('i18n.0f8403d07e')"
|
||||
:value="countdownTime"
|
||||
@finish="silenceLoadData"
|
||||
>
|
||||
<template #suffix>
|
||||
<div style="font-size: 12px">{{ $t('pages.dispatch.status.48ec7187') }}</div>
|
||||
<div style="font-size: 12px">{{ $t('i18n.ee6ce96abb') }}</div>
|
||||
</template>
|
||||
</a-statistic-countdown>
|
||||
</a-space>
|
||||
@ -70,7 +70,7 @@
|
||||
<template v-else-if="column.dataIndex === 'projectName'">
|
||||
<a-tooltip placement="topLeft" :title="text">
|
||||
<template v-if="record.disabled">
|
||||
<a-tooltip :title="$t('pages.dispatch.status.c668c2a4')">
|
||||
<a-tooltip :title="$t('i18n.f8b3165e0d')">
|
||||
<EyeInvisibleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
@ -79,15 +79,15 @@
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'outGivingStatus'">
|
||||
<a-tag v-if="text === 2" color="green">{{
|
||||
dispatchStatusMap[text] || $t('pages.dispatch.status.5f51a112')
|
||||
dispatchStatusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else-if="text === 1 || text === 0 || text === 5" color="orange">{{
|
||||
dispatchStatusMap[text] || $t('pages.dispatch.status.5f51a112')
|
||||
dispatchStatusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else-if="text === 3 || text === 4 || text === 6" color="red">{{
|
||||
dispatchStatusMap[text] || $t('pages.dispatch.status.5f51a112')
|
||||
dispatchStatusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else>{{ dispatchStatusMap[text] || $t('pages.dispatch.status.5f51a112') }}</a-tag>
|
||||
<a-tag v-else>{{ dispatchStatusMap[text] || $t('i18n.1622dc9b6b') }}</a-tag>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'outGivingResultMsg'">
|
||||
<a-tooltip placement="topLeft" :title="readJsonStrField(record.outGivingResult, 'msg')">
|
||||
@ -126,15 +126,15 @@
|
||||
:checked="text"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
:checked-children="$t('pages.dispatch.status.481bf10e')"
|
||||
:un-checked-children="$t('pages.dispatch.status.926b691b')"
|
||||
:checked-children="$t('i18n.d679aea3aa')"
|
||||
:un-checked-children="$t('i18n.4f8a2f0b28')"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'projectPid'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('pages.dispatch.status.3cf2b4f7')}${record.projectPid || '-'} / ${$t(
|
||||
:title="`${$t('i18n.2b04210d33')}${record.projectPid || '-'} / ${$t(
|
||||
'pages.dispatch.status.284af1b3'
|
||||
)}${record.projectPort || '-'}`"
|
||||
>
|
||||
@ -145,21 +145,21 @@
|
||||
<template v-else-if="column.dataIndex === 'child-operation'">
|
||||
<a-space>
|
||||
<a-button size="small" :disabled="!record.projectName" type="primary" @click="handleFile(record)">{{
|
||||
$t('pages.dispatch.status.69cad40b')
|
||||
$t('i18n.2a0c4740f1')
|
||||
}}</a-button>
|
||||
<a-button
|
||||
size="small"
|
||||
:disabled="!record.projectName"
|
||||
type="primary"
|
||||
@click="handleConsole(record)"
|
||||
>{{ $t('pages.dispatch.status.c474c963') }}</a-button
|
||||
>{{ $t('i18n.b5c3770699') }}</a-button
|
||||
>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" :tab="$t('pages.dispatch.status.7de61746')">
|
||||
<a-tab-pane key="2" :tab="$t('i18n.224e2ccda8')">
|
||||
<!-- 配置分发 -->
|
||||
<div style="width: 50vw">
|
||||
<!-- list -->
|
||||
@ -167,14 +167,14 @@
|
||||
<Draggable v-for="(element, index) in list" :key="index">
|
||||
<a-row class="item-row">
|
||||
<a-col :span="18">
|
||||
<span> {{ $t('pages.dispatch.status.fa8d810f') }} {{ element.nodeName }} </span>
|
||||
<span> {{ $t('pages.dispatch.status.e06912d') }} {{ element.cacheProjectName }} </span>
|
||||
<span> {{ $t('i18n.dc2961a26f') }} {{ element.nodeName }} </span>
|
||||
<span> {{ $t('i18n.26ffe89a7f') }} {{ element.cacheProjectName }} </span>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-space>
|
||||
<a-switch
|
||||
:checked-children="$t('pages.dispatch.status.149265a9')"
|
||||
:un-checked-children="$t('pages.dispatch.status.287f3530')"
|
||||
:checked-children="$t('i18n.7854b52a88')"
|
||||
:un-checked-children="$t('i18n.710ad08b11')"
|
||||
:checked="element.disabled ? false : true"
|
||||
@change="
|
||||
(checked) => {
|
||||
@ -195,9 +195,9 @@
|
||||
:disabled="!list || list.length <= 1"
|
||||
@click="handleRemoveProject(element)"
|
||||
>
|
||||
{{ $t('pages.dispatch.status.4c957529') }}
|
||||
{{ $t('i18n.663393986e') }}
|
||||
</a-button>
|
||||
<a-tooltip placement="left" :title="`${$t('pages.dispatch.status.686a2f77')}`" class="move">
|
||||
<a-tooltip placement="left" :title="`${$t('i18n.181e1ad17d')}`" class="move">
|
||||
<MenuOutlined />
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
@ -208,7 +208,7 @@
|
||||
<a-col style="margin-top: 10px">
|
||||
<a-space>
|
||||
<a-button type="primary" size="small" @click="viewDispatchManagerOk">{{
|
||||
$t('pages.dispatch.status.b033d8c5')
|
||||
$t('i18n.be5fbbe34c')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</a-col>
|
||||
@ -335,65 +335,65 @@ export default {
|
||||
|
||||
childColumns: [
|
||||
{
|
||||
title: this.$t('pages.dispatch.status.1f6db887'),
|
||||
title: this.$t('i18n.b1785ef01e'),
|
||||
dataIndex: 'nodeId',
|
||||
width: 120,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.status.69c543a4'),
|
||||
title: this.$t('i18n.738a41f965'),
|
||||
dataIndex: 'projectName',
|
||||
width: 120,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.status.42c1c984'),
|
||||
title: this.$t('i18n.3b94c70734'),
|
||||
dataIndex: 'projectStatus',
|
||||
width: 120,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.status.8aee2036'),
|
||||
title: this.$t('i18n.30849b2e10'),
|
||||
dataIndex: 'projectPid',
|
||||
width: '120px',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.status.f495ed7'),
|
||||
title: this.$t('i18n.da99dbfe1f'),
|
||||
dataIndex: 'outGivingStatus',
|
||||
width: '120px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.status.a774e80d'),
|
||||
title: this.$t('i18n.0ef396cbcc'),
|
||||
dataIndex: 'outGivingResultMsg',
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.status.70af3e3e'),
|
||||
title: this.$t('i18n.543de6ff04'),
|
||||
dataIndex: 'outGivingResultMsgData',
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.status.f5b107cb'),
|
||||
title: this.$t('i18n.4cd49caae4'),
|
||||
dataIndex: 'outGivingResultTime',
|
||||
width: '120px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.status.3c83339c'),
|
||||
title: this.$t('i18n.396b7d3f91'),
|
||||
dataIndex: 'outGivingResultSize',
|
||||
width: '100px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.status.9d4fa95c'),
|
||||
title: this.$t('i18n.fbd7ba1d9b'),
|
||||
dataIndex: 'lastTime',
|
||||
width: '170px',
|
||||
ellipsis: true,
|
||||
customRender: ({ text }) => parseTime(text)
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.dispatch.status.3ae3f506'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'child-operation',
|
||||
fixed: 'right',
|
||||
|
||||
@ -560,7 +560,7 @@ export default {
|
||||
...element,
|
||||
projectStatus: false,
|
||||
projectPid: '-',
|
||||
errorMsg: this.$t('pages.dispatch.status.b3fd6bb1')
|
||||
errorMsg: this.$t('i18n.44ed625b19')
|
||||
}
|
||||
}
|
||||
return element
|
||||
@ -575,7 +575,7 @@ export default {
|
||||
// 文件管理
|
||||
handleFile(record) {
|
||||
this.temp = Object.assign({}, record)
|
||||
this.drawerTitle = `${this.$t('pages.dispatch.status.502f94')}(${this.temp.projectId})`
|
||||
this.drawerTitle = `${this.$t('i18n.8780e6b3d1')}(${this.temp.projectId})`
|
||||
this.drawerFileVisible = true
|
||||
},
|
||||
// 关闭文件管理对话框
|
||||
@ -585,7 +585,7 @@ export default {
|
||||
// 控制台
|
||||
handleConsole(record) {
|
||||
this.temp = Object.assign({}, record)
|
||||
this.drawerTitle = `${this.$t('pages.dispatch.status.c474c963')}(${this.temp.projectId})`
|
||||
this.drawerTitle = `${this.$t('i18n.b5c3770699')}(${this.temp.projectId})`
|
||||
this.drawerConsoleVisible = true
|
||||
},
|
||||
// 关闭控制台
|
||||
@ -610,7 +610,7 @@ export default {
|
||||
this.onFileClose()
|
||||
this.drawerReadFileVisible = true
|
||||
this.temp.readFilePath = (path + '/' + filename).replace(new RegExp('//', 'gm'), '/')
|
||||
this.drawerTitle = `${this.$t('pages.dispatch.status.c7a1ee83')}(${filename})`
|
||||
this.drawerTitle = `${this.$t('i18n.5854370b86')}(${filename})`
|
||||
},
|
||||
onReadFileClose() {
|
||||
this.drawerReadFileVisible = false
|
||||
@ -631,22 +631,22 @@ export default {
|
||||
handleRemoveProject(item) {
|
||||
const html = `
|
||||
<b style='font-size: 20px;'>
|
||||
${this.$t('pages.dispatch.status.218bed57')}
|
||||
${this.$t('i18n.0d44f4903a')}
|
||||
</b>
|
||||
<ul style='font-size: 20px;color:red;font-weight: bold;'>
|
||||
<li>this.$t('pages.dispatch.status.3673e6eb')</b></li>
|
||||
<li>this.$t('pages.dispatch.status.1c0a903b')</li>
|
||||
<li>this.$t('pages.dispatch.status.779ded29')</li>
|
||||
<li>this.$t('i18n.7cc3bb7068')</b></li>
|
||||
<li>this.$t('i18n.5c93055d9c')</li>
|
||||
<li>this.$t('i18n.27d0c8772c')</li>
|
||||
</ul>
|
||||
`
|
||||
$confirm({
|
||||
title: this.$t('pages.dispatch.status.cd503941'),
|
||||
title: this.$t('i18n.9362e6ddf8'),
|
||||
zIndex: 1009,
|
||||
content: h('div', null, [h('p', { innerHTML: html }, null)]),
|
||||
okButtonProps: { type: 'primary', size: 'small', danger: true },
|
||||
cancelButtonProps: { type: 'primary' },
|
||||
okText: this.$t('pages.dispatch.status.e8e9db25'),
|
||||
cancelText: this.$t('pages.dispatch.status.b12468e9'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return removeProject({
|
||||
nodeId: item.nodeId,
|
||||
|
@ -1,52 +1,46 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-alert :message="$t('pages.dispatch.white-list.30376d6d')" type="info" show-icon>
|
||||
<a-alert :message="$t('i18n.c8c6e37071')" type="info" show-icon>
|
||||
<template #description>
|
||||
<ul>
|
||||
<li>{{ $t('pages.dispatch.white-list.82002fa4') }}</li>
|
||||
<li>{{ $t('pages.dispatch.white-list.468a7b4d') }}</li>
|
||||
<li>{{ $t('i18n.cf38e8f9fd') }}</li>
|
||||
<li>{{ $t('i18n.a4f629041c') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<!-- <a-alert message=",不支持软链" type="info" /> -->
|
||||
|
||||
<a-form ref="editForm" :model="temp" :label-col="{ span: 6 }" :wrapper-col="{ span: 14 }" @finish="onSubmit">
|
||||
<a-form-item :label="$t('pages.dispatch.white-list.87db3fab')" name="outGiving">
|
||||
<template #help>{{ $t('pages.dispatch.white-list.ce6ec671') }}</template>
|
||||
<a-form-item :label="$t('i18n.28e1eec677')" name="outGiving">
|
||||
<template #help>{{ $t('i18n.5b1f0fd370') }}</template>
|
||||
<a-textarea
|
||||
v-model:value="temp.outGiving"
|
||||
:rows="5"
|
||||
style="resize: none"
|
||||
:placeholder="$t('pages.dispatch.white-list.b3f9e000')"
|
||||
:placeholder="$t('i18n.9b78491b25')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.dispatch.white-list.b9e442da')" name="staticDir">
|
||||
<template #help>{{ $t('pages.dispatch.white-list.e6655bef') }}</template>
|
||||
<a-form-item :label="$t('i18n.6f7ee71e77')" name="staticDir">
|
||||
<template #help>{{ $t('i18n.3f8cedd1d7') }}</template>
|
||||
<a-textarea
|
||||
v-model:value="temp.staticDir"
|
||||
:rows="5"
|
||||
style="resize: none"
|
||||
:placeholder="$t('pages.dispatch.white-list.8190377f')"
|
||||
:placeholder="$t('i18n.ec7ef29bdf')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.dispatch.white-list.b850dd8a')" name="allowRemoteDownloadHost">
|
||||
<template #help>{{ $t('pages.dispatch.white-list.cb53f096') }}</template>
|
||||
<a-form-item :label="$t('i18n.95dbee0207')" name="allowRemoteDownloadHost">
|
||||
<template #help>{{ $t('i18n.aadf9d7028') }}</template>
|
||||
<a-textarea
|
||||
v-model:value="temp.allowRemoteDownloadHost"
|
||||
:rows="5"
|
||||
style="resize: none"
|
||||
:placeholder="
|
||||
$t('pages.dispatch.white-list.99c74010', {
|
||||
slot1: $t('pages.dispatch.white-list.a2b2c7e5')
|
||||
})
|
||||
"
|
||||
:placeholder="$t('i18n.13323711cb', { slot1: $t('i18n.4142d4fd37') })"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 6 }">
|
||||
<a-button type="primary" html-type="submit" :disabled="submitAble">{{
|
||||
$t('pages.dispatch.white-list.d8031ed8')
|
||||
}}</a-button>
|
||||
<a-button type="primary" html-type="submit" :disabled="submitAble">{{ $t('i18n.939d5345ad') }}</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-space>
|
||||
|
@ -4,7 +4,7 @@
|
||||
destroy-on-close
|
||||
:open="true"
|
||||
width="80vw"
|
||||
:title="$t('pages.docker.buildContainer.b680f412')"
|
||||
:title="$t('i18n.585ae8592f')"
|
||||
:mask-closable="false"
|
||||
:footer-style="{ textAlign: 'right' }"
|
||||
@close="
|
||||
@ -16,37 +16,37 @@
|
||||
<a-alert
|
||||
v-if="containerData && Object.keys(containerData).length"
|
||||
style="margin-bottom: 10px"
|
||||
:message="$t('pages.docker.buildContainer.2569e7e2')"
|
||||
:message="$t('i18n.a35740ae41')"
|
||||
type="warning"
|
||||
show-icon
|
||||
>
|
||||
<template #description>
|
||||
{{ $t('pages.docker.buildContainer.7f325573') }}
|
||||
{{ $t('i18n.77688e95af') }}
|
||||
<div>
|
||||
<b style="color: red">{{ $t('pages.docker.buildContainer.d6663850') }}</b
|
||||
>,{{ $t('pages.docker.buildContainer.6321caa0') }}
|
||||
<b style="color: red">{{ $t('i18n.c3490e81bf') }}</b
|
||||
>,{{ $t('i18n.765592aa05') }}
|
||||
</div>
|
||||
<div>
|
||||
<b>{{ $t('pages.docker.buildContainer.f3335d9') }}</b>
|
||||
<b>{{ $t('i18n.706333387b') }}</b>
|
||||
</div>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-form ref="editForm" :rules="rules" :model="temp" :label-col="{ span: 3 }" :wrapper-col="{ span: 20 }">
|
||||
<a-form-item :label="$t('pages.docker.buildContainer.ed825162')" name="name">
|
||||
<a-form-item :label="$t('i18n.42a93314b4')" name="name">
|
||||
<a-row>
|
||||
<a-col :span="10">
|
||||
<a-input v-model:value="temp.image" disabled placeholder="" />
|
||||
</a-col>
|
||||
<a-col :span="4" style="text-align: right">{{ $t('pages.docker.buildContainer.98c4138b') }}</a-col>
|
||||
<a-col :span="4" style="text-align: right">{{ $t('i18n.0c256f73b8') }}</a-col>
|
||||
<a-col :span="10">
|
||||
<a-form-item-rest>
|
||||
<a-input v-model:value="temp.name" :placeholder="$t('pages.docker.buildContainer.4017e91d')" />
|
||||
<a-input v-model:value="temp.name" :placeholder="$t('i18n.a51cd0898f')" />
|
||||
</a-form-item-rest>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.docker.buildContainer.a6c4bfd7')">
|
||||
<a-form-item :label="$t('i18n.c76cfefe72')">
|
||||
<a-form-item-rest>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-row v-for="(item, index) in temp.exposedPorts" :key="index">
|
||||
@ -58,30 +58,30 @@
|
||||
<a-input
|
||||
v-model:value="item.ip"
|
||||
addon-before="IP"
|
||||
:placeholder="$t('pages.docker.buildContainer.f2f92b1d')"
|
||||
:placeholder="$t('i18n.8e89763d95')"
|
||||
>
|
||||
</a-input>
|
||||
</a-col>
|
||||
<a-col :span="6" :offset="1">
|
||||
<a-input
|
||||
v-model:value="item.publicPort"
|
||||
:addon-before="$t('pages.docker.buildContainer.a6c4bfd7')"
|
||||
:placeholder="$t('pages.docker.buildContainer.a6c4bfd7')"
|
||||
:addon-before="$t('i18n.c76cfefe72')"
|
||||
:placeholder="$t('i18n.c76cfefe72')"
|
||||
>
|
||||
</a-input>
|
||||
</a-col>
|
||||
<a-col :span="8" :offset="1">
|
||||
<a-input
|
||||
v-model:value="item.port"
|
||||
:addon-before="$t('pages.docker.buildContainer.e59a28c9')"
|
||||
:addon-before="$t('i18n.22c799040a')"
|
||||
:disabled="item.disabled"
|
||||
:placeholder="$t('pages.docker.buildContainer.85763041')"
|
||||
:placeholder="$t('i18n.ceee1db95a')"
|
||||
>
|
||||
<template #addonAfter>
|
||||
<a-select
|
||||
v-model:value="item.scheme"
|
||||
:disabled="item.disabled"
|
||||
:placeholder="$t('pages.docker.buildContainer.9e4da8c2')"
|
||||
:placeholder="$t('i18n.0739b9551d')"
|
||||
>
|
||||
<a-select-option value="tcp">tcp</a-select-option>
|
||||
<a-select-option value="udp">udp</a-select-option>
|
||||
@ -122,23 +122,23 @@
|
||||
</a-form-item-rest>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.docker.buildContainer.c17b4a83')">
|
||||
<a-form-item :label="$t('i18n.640374b7ae')">
|
||||
<a-form-item-rest>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-row v-for="(item, index) in temp.volumes" :key="index">
|
||||
<a-col :span="10">
|
||||
<a-input
|
||||
v-model:value="item.host"
|
||||
:addon-before="$t('pages.docker.buildContainer.2a72f1e6')"
|
||||
:placeholder="$t('pages.docker.buildContainer.f791ed7d')"
|
||||
:addon-before="$t('i18n.ad4b4a5b3b')"
|
||||
:placeholder="$t('i18n.90eac06e61')"
|
||||
/>
|
||||
</a-col>
|
||||
<a-col :span="10" :offset="1">
|
||||
<a-input
|
||||
v-model:value="item.container"
|
||||
:addon-before="$t('pages.docker.buildContainer.e59a28c9')"
|
||||
:addon-before="$t('i18n.22c799040a')"
|
||||
:disabled="item.disabled"
|
||||
:placeholder="$t('pages.docker.buildContainer.f74fa9ca')"
|
||||
:placeholder="$t('i18n.b3401c3657')"
|
||||
/>
|
||||
</a-col>
|
||||
<a-col :span="2" :offset="1">
|
||||
@ -165,15 +165,15 @@
|
||||
</a-space>
|
||||
</a-form-item-rest>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.buildContainer.c81b2c2e')">
|
||||
<a-form-item :label="$t('i18n.3867e350eb')">
|
||||
<a-form-item-rest>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-row v-for="(item, index) in temp.env" :key="index">
|
||||
<a-col :span="10">
|
||||
<a-input v-model:value="item.key" :placeholder="$t('pages.docker.buildContainer.dbc446a0')" />
|
||||
<a-input v-model:value="item.key" :placeholder="$t('i18n.a25657422b')" />
|
||||
</a-col>
|
||||
<a-col :span="10" :offset="1">
|
||||
<a-input v-model:value="item.value" :placeholder="$t('pages.docker.buildContainer.2247b9d1')" />
|
||||
<a-input v-model:value="item.value" :placeholder="$t('i18n.9a2ee7044f')" />
|
||||
</a-col>
|
||||
<a-col :span="2" :offset="1">
|
||||
<a-space>
|
||||
@ -199,15 +199,15 @@
|
||||
</a-space>
|
||||
</a-form-item-rest>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.buildContainer.e9f092b5')">
|
||||
<a-form-item :label="$t('i18n.ddf7d2a5ce')">
|
||||
<a-form-item-rest>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-row v-for="(item, index) in temp.commands" :key="index">
|
||||
<a-col :span="20">
|
||||
<a-input
|
||||
v-model:value="item.value"
|
||||
:addon-before="$t('pages.docker.buildContainer.29a0e20e')"
|
||||
:placeholder="$t('pages.docker.buildContainer.dbba7ee')"
|
||||
:addon-before="$t('i18n.579a6d0d92')"
|
||||
:placeholder="$t('i18n.2a6a516f9d')"
|
||||
/>
|
||||
</a-col>
|
||||
|
||||
@ -235,27 +235,27 @@
|
||||
</a-form-item-rest>
|
||||
</a-form-item>
|
||||
<a-form-item label="hostname" name="hostname">
|
||||
<a-input v-model:value="temp.hostname" :placeholder="$t('pages.docker.buildContainer.df83aba7')" />
|
||||
<a-input v-model:value="temp.hostname" :placeholder="$t('i18n.f9361945f3')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.buildContainer.7beffdd')">
|
||||
<a-form-item :label="$t('i18n.7ddbe15c84')">
|
||||
<a-auto-complete
|
||||
v-model:value="temp.networkMode"
|
||||
:placeholder="$t('pages.docker.buildContainer.b97caba9')"
|
||||
:placeholder="$t('i18n.abd9ee868a')"
|
||||
:options="[
|
||||
{
|
||||
title: $t('pages.docker.buildContainer.521c8aad'),
|
||||
title: $t('i18n.c36ab9a223'),
|
||||
value: 'bridge'
|
||||
},
|
||||
{
|
||||
title: $t('pages.docker.buildContainer.f80170c1'),
|
||||
title: $t('i18n.3d6acaa5ca'),
|
||||
value: 'none'
|
||||
},
|
||||
{
|
||||
title: $t('pages.docker.buildContainer.6236d34b'),
|
||||
title: $t('i18n.fcaef5b17a'),
|
||||
value: 'container:<name|id>'
|
||||
},
|
||||
{
|
||||
title: $t('pages.docker.buildContainer.ea41efd4'),
|
||||
title: $t('i18n.ff39c45fbc'),
|
||||
value: 'host'
|
||||
}
|
||||
]"
|
||||
@ -265,25 +265,25 @@
|
||||
</template>
|
||||
</a-auto-complete>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.buildContainer.de126165')">
|
||||
<a-form-item :label="$t('i18n.5805998e42')">
|
||||
<a-auto-complete
|
||||
v-model:value="temp.restartPolicy"
|
||||
:placeholder="$t('pages.docker.buildContainer.d90576ee')"
|
||||
:placeholder="$t('i18n.32dcc6f36e')"
|
||||
:options="[
|
||||
{
|
||||
title: $t('pages.docker.buildContainer.6fa9bd5c'),
|
||||
title: $t('i18n.0c1f1cd79b'),
|
||||
value: 'no'
|
||||
},
|
||||
{
|
||||
title: $t('pages.docker.buildContainer.b86d967'),
|
||||
title: $t('i18n.7006410585'),
|
||||
value: 'always'
|
||||
},
|
||||
{
|
||||
title: $t('pages.docker.buildContainer.59d3093c'),
|
||||
title: $t('i18n.2456d2c0f8'),
|
||||
value: 'on-failure:1'
|
||||
},
|
||||
{
|
||||
title: $t('pages.docker.buildContainer.e2085ce'),
|
||||
title: $t('i18n.c97e6e823a'),
|
||||
value: 'unless-stopped'
|
||||
}
|
||||
]"
|
||||
@ -293,14 +293,14 @@
|
||||
</template>
|
||||
</a-auto-complete>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.buildContainer.b8b60236')">
|
||||
<a-form-item :label="$t('i18n.3c586b2cc0')">
|
||||
<a-form-item-rest>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-row v-for="(item, index) in temp.extraHosts" :key="index">
|
||||
<a-col :span="20">
|
||||
<a-input
|
||||
v-model:value="temp.extraHosts[index]"
|
||||
:placeholder="$t('pages.docker.buildContainer.b1033d65')"
|
||||
:placeholder="$t('i18n.5bca8cf7ee')"
|
||||
/>
|
||||
</a-col>
|
||||
|
||||
@ -327,15 +327,15 @@
|
||||
</a-space>
|
||||
</a-form-item-rest>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.buildContainer.5a6877f9')">
|
||||
<a-form-item :label="$t('i18n.64933b1012')">
|
||||
<a-form-item-rest>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-row v-for="(item, index) in temp.storageOpt" :key="index">
|
||||
<a-col :span="10">
|
||||
<a-input v-model:value="item.key" :placeholder="$t('pages.docker.buildContainer.c4c422f1')" />
|
||||
<a-input v-model:value="item.key" :placeholder="$t('i18n.930fdcdf90')" />
|
||||
</a-col>
|
||||
<a-col :span="10" :offset="1">
|
||||
<a-input v-model:value="item.value" :placeholder="$t('pages.docker.buildContainer.3e34d8d7')" />
|
||||
<a-input v-model:value="item.value" :placeholder="$t('i18n.e84b981eb4')" />
|
||||
</a-col>
|
||||
<a-col :span="2" :offset="1">
|
||||
<a-space>
|
||||
@ -362,20 +362,20 @@
|
||||
</a-form-item-rest>
|
||||
</a-form-item>
|
||||
<a-form-item label="runtime">
|
||||
<a-input v-model:value="temp.runtime" :placeholder="$t('pages.docker.buildContainer.d276e65f')" />
|
||||
<a-input v-model:value="temp.runtime" :placeholder="$t('i18n.96e6f43118')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.buildContainer.8ff3f15')">
|
||||
<a-form-item :label="$t('i18n.a823cfa70c')">
|
||||
<parameter-widget v-model:value="temp.labels"></parameter-widget>
|
||||
<!-- <a-input v-model:value="temp.labels" :placeholder="$t('pages.docker.buildContainer.f003fd5e')" /> -->
|
||||
<!-- <a-input v-model:value="temp.labels" :placeholder="$t('i18n.4b404646f4')" /> -->
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.buildContainer.12861e4e')">
|
||||
<a-form-item :label="$t('i18n.7307ca1021')">
|
||||
<a-form-item-rest>
|
||||
<a-row>
|
||||
<a-col :span="4"
|
||||
><a-switch
|
||||
v-model:checked="temp.autorun"
|
||||
:checked-children="$t('pages.docker.buildContainer.15f9c981')"
|
||||
:un-checked-children="$t('pages.docker.buildContainer.40e7a0be')"
|
||||
:checked-children="$t('i18n.8e54ddfe24')"
|
||||
:un-checked-children="$t('i18n.f4baf7c6c0')"
|
||||
/></a-col>
|
||||
<a-col :span="4" style="text-align: right">
|
||||
<a-tooltip>
|
||||
@ -384,23 +384,23 @@
|
||||
<ul>
|
||||
privileged=true|false
|
||||
{{
|
||||
$t('pages.docker.buildContainer.fc991f8c')
|
||||
$t('i18n.61a3ec6656')
|
||||
}}
|
||||
<li>true container{{ $t('pages.docker.buildContainer.8d868a21') }}</li>
|
||||
<li>false container{{ $t('pages.docker.buildContainer.f4be8553') }}</li>
|
||||
<li>privileged{{ $t('pages.docker.buildContainer.443683ba') }}</li>
|
||||
<li>true container{{ $t('i18n.9c2f1d3f39') }}</li>
|
||||
<li>false container{{ $t('i18n.211354a780') }}</li>
|
||||
<li>privileged{{ $t('i18n.ffaf95f0ef') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
|
||||
<QuestionCircleOutlined v-if="!temp.id" />
|
||||
{{ $t('pages.docker.buildContainer.a5185e55') }}
|
||||
{{ $t('i18n.059ac641c0') }}
|
||||
</a-tooltip>
|
||||
</a-col>
|
||||
<a-col :span="4">
|
||||
<a-switch
|
||||
v-model:checked="temp.privileged"
|
||||
:checked-children="$t('pages.docker.buildContainer.f5bb2364')"
|
||||
:un-checked-children="$t('pages.docker.buildContainer.5edb2e8a')"
|
||||
:checked-children="$t('i18n.0a60ac8f02')"
|
||||
:un-checked-children="$t('i18n.c9744f45e7')"
|
||||
/>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -429,10 +429,10 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.docker.buildContainer.b12468e9') }}
|
||||
{{ $t('i18n.625fb26b4b') }}
|
||||
</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="handleBuildOk">
|
||||
{{ $t('pages.docker.buildContainer.e8e9db25') }}
|
||||
{{ $t('i18n.e83a256e4f') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
<!-- </div> -->
|
||||
@ -480,10 +480,10 @@ export default {
|
||||
temp: {},
|
||||
rules: {
|
||||
name: [
|
||||
{ required: true, message: this.$t('pages.docker.buildContainer.9da75eee'), trigger: 'blur' },
|
||||
{ required: true, message: this.$t('i18n.5c502af799'), trigger: 'blur' },
|
||||
{
|
||||
pattern: /[a-zA-Z0-9][a-zA-Z0-9_.-]$/,
|
||||
message: this.$t('pages.docker.buildContainer.7bfb5be2'),
|
||||
message: this.$t('i18n.8d5c1335b6'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
]
|
||||
|
@ -17,25 +17,25 @@
|
||||
<template #title>
|
||||
<a-menu v-model:selectedKeys="menuKeyArray" mode="horizontal" class="docker-menu" @click="menuClick">
|
||||
<a-menu-item key="containers">
|
||||
<span class="nav-text">{{ $t('pages.docker.console.8d118d98') }}</span>
|
||||
<span class="nav-text">{{ $t('i18n.2b0623dab9') }}</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="docker-compose">
|
||||
<span class="nav-text">docker-compose</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="images">
|
||||
<span class="nav-text">{{ $t('pages.docker.console.4fbd9851') }}</span>
|
||||
<span class="nav-text">{{ $t('i18n.3477228591') }}</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="volumes">
|
||||
<span class="nav-text">{{ $t('pages.docker.console.5ea86045') }}</span>
|
||||
<span class="nav-text">{{ $t('i18n.7088e18ac9') }}</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="networks">
|
||||
<span class="nav-text">{{ $t('pages.docker.console.7beffdd') }}</span>
|
||||
<span class="nav-text">{{ $t('i18n.7ddbe15c84') }}</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="info">
|
||||
<span class="nav-text">{{ $t('pages.docker.console.67e9b8f') }}</span>
|
||||
<span class="nav-text">{{ $t('i18n.d8c7e04c8e') }}</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="prune">
|
||||
<span class="nav-text">{{ $t('pages.docker.console.897df80') }}</span>
|
||||
<span class="nav-text">{{ $t('i18n.293cafbbd3') }}</span>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
|
@ -16,52 +16,50 @@
|
||||
<a-space>
|
||||
<a-input
|
||||
v-model:value="listQuery['name']"
|
||||
:placeholder="$t('pages.docker.container.3e34ec28')"
|
||||
:placeholder="$t('i18n.d7ec2d3fea')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['containerId']"
|
||||
:placeholder="$t('pages.docker.container.cfda881')"
|
||||
:placeholder="$t('i18n.74dc77d4f7')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['imageId']"
|
||||
:placeholder="$t('pages.docker.container.e2840598')"
|
||||
:placeholder="$t('i18n.72e7a5d105')"
|
||||
class="search-input-item"
|
||||
@keyup.enter="loadData"
|
||||
/>
|
||||
<div>
|
||||
{{ $t('pages.docker.container.9eea39a0') }}
|
||||
{{ $t('i18n.607e7a4f37') }}
|
||||
<a-switch
|
||||
v-model:checked="listQuery['showAll']"
|
||||
:checked-children="$t('pages.docker.container.9c048a42')"
|
||||
:un-checked-children="$t('pages.docker.container.dd568fba')"
|
||||
:checked-children="$t('i18n.9a7b52fc86')"
|
||||
:un-checked-children="$t('i18n.d679aea3aa')"
|
||||
/>
|
||||
</div>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.docker.container.a1f640f4')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
<a-statistic-countdown
|
||||
format="s"
|
||||
:title="$t('pages.docker.container.c48b0e64') + ' '"
|
||||
:title="$t('i18n.0f8403d07e') + ' '"
|
||||
:value="countdownTime"
|
||||
@finish="autoUpdate"
|
||||
>
|
||||
<template #suffix>
|
||||
<div style="font-size: 12px">{{ $t('pages.docker.container.dda10f33') }}</div>
|
||||
<div style="font-size: 12px">{{ $t('i18n.ee6ce96abb') }}</div>
|
||||
</template>
|
||||
</a-statistic-countdown>
|
||||
</a-space>
|
||||
</template>
|
||||
<template #bodyCell="{ column, text, record }">
|
||||
<template v-if="column.dataIndex === 'names'">
|
||||
<a-popover :title="`${$t('pages.docker.container.cddbe6bd')}${(text || []).join(',')}`">
|
||||
<a-popover :title="`${$t('i18n.0c256f73b8')}${(text || []).join(',')}`">
|
||||
<template #content>
|
||||
<p>{{ $t('pages.docker.container.da9678ab') }}{{ record.id }}</p>
|
||||
<p>{{ $t('pages.docker.container.198b1e02') }}{{ record.image }}</p>
|
||||
<p>{{ $t('pages.docker.container.93bac13d') }}{{ record.imageId }}</p>
|
||||
<p>{{ $t('i18n.abee751418') }}{{ record.id }}</p>
|
||||
<p>{{ $t('i18n.26eccfaad1') }}{{ record.image }}</p>
|
||||
<p>{{ $t('i18n.c87bd94cd7') }}{{ record.imageId }}</p>
|
||||
</template>
|
||||
|
||||
<span>{{ (text || []).join(',') }}</span>
|
||||
@ -69,7 +67,7 @@
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'labels'">
|
||||
<a-popover :title="`${$t('pages.docker.container.ef67c3db')}`">
|
||||
<a-popover :title="`${$t('i18n.89cfb655e0')}`">
|
||||
<template #content>
|
||||
<template v-if="record.labels">
|
||||
<p v-for="(value, key) in record.labels" :key="key">
|
||||
@ -87,17 +85,15 @@
|
||||
</a-popover>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'mounts'">
|
||||
<a-popover :title="`${$t('pages.docker.container.e65fe05e')}`">
|
||||
<a-popover :title="`${$t('i18n.9964d6ed3f')}`">
|
||||
<template #content>
|
||||
<template v-if="record.mounts">
|
||||
<div v-for="(item, index) in record.mounts" :key="index">
|
||||
<p>
|
||||
{{ $t('pages.docker.container.c0d9b398') }}{{ item.name }}
|
||||
<a-tag>{{
|
||||
item.rw ? $t('pages.docker.container.71579f61') : $t('pages.docker.container.f840d349')
|
||||
}}</a-tag>
|
||||
{{ $t('i18n.5b47861521') }}{{ item.name }}
|
||||
<a-tag>{{ item.rw ? $t('i18n.2300ad28b8') : $t('i18n.75769d1ac8') }}</a-tag>
|
||||
</p>
|
||||
<p>{{ $t('pages.docker.container.6b431921') }}</p>
|
||||
<p>{{ $t('i18n.e362bc0e8a') }}</p>
|
||||
<a-divider></a-divider>
|
||||
</div>
|
||||
</template>
|
||||
@ -125,7 +121,7 @@
|
||||
<template v-else-if="column.dataIndex === 'ports'">
|
||||
<a-popover placement="topLeft">
|
||||
<template #title>
|
||||
{{ $t('pages.docker.container.64ea7bda') }}
|
||||
{{ $t('i18n.d94167ab19') }}
|
||||
<ul>
|
||||
<li v-for="(item, index) in text || []" :key="index">
|
||||
{{ item.type + ' ' + (item.ip || '') + ':' + (item.publicPort || '') + ':' + item.privatePort }}
|
||||
@ -136,7 +132,7 @@
|
||||
<template v-if="record.networkSettings">
|
||||
<template v-if="record.networkSettings.networks">
|
||||
<template v-if="record.networkSettings.networks.bridge">
|
||||
{{ $t('pages.docker.container.1976c068') }}
|
||||
{{ $t('i18n.71ee088528') }}
|
||||
<p v-if="record.networkSettings.networks.bridge.ipAddress">
|
||||
IP:
|
||||
<a-tag>{{ record.networkSettings.networks.bridge.ipAddress }}</a-tag>
|
||||
@ -146,7 +142,7 @@
|
||||
<a-tag>{{ record.networkSettings.networks.bridge.macAddress }}</a-tag>
|
||||
</p>
|
||||
<p v-if="record.networkSettings.networks.bridge.gateway">
|
||||
{{ $t('pages.docker.container.e689dbaa') }}:
|
||||
{{ $t('i18n.f332f2c8df') }}:
|
||||
<a-tag>{{ record.networkSettings.networks.bridge.gateway }}</a-tag>
|
||||
</p>
|
||||
<p v-if="record.networkSettings.networks.bridge.networkID">
|
||||
@ -168,7 +164,7 @@
|
||||
<a-tag>{{ record.networkSettings.networks.ingress.macAddress }}</a-tag>
|
||||
</p>
|
||||
<p v-if="record.networkSettings.networks.ingress.gateway">
|
||||
{{ $t('pages.docker.container.e689dbaa') }}:
|
||||
{{ $t('i18n.f332f2c8df') }}:
|
||||
<a-tag>{{ record.networkSettings.networks.ingress.gateway }}</a-tag>
|
||||
</p>
|
||||
<p v-if="record.networkSettings.networks.ingress.networkID">
|
||||
@ -195,7 +191,7 @@
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'state'">
|
||||
<a-tooltip :title="(record.status || '') + $t('pages.docker.container.854a0b5d')" @click="viewLog(record)">
|
||||
<a-tooltip :title="(record.status || '') + $t('i18n.aac62bc255')" @click="viewLog(record)">
|
||||
<a-switch :checked="text === 'running'" :disabled="true">
|
||||
<template #checkedChildren>
|
||||
<CheckCircleOutlined />
|
||||
@ -209,7 +205,7 @@
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<template v-if="record.state === 'running'">
|
||||
<a-tooltip :title="$t('pages.docker.container.e49f7a16')">
|
||||
<a-tooltip :title="$t('i18n.4fb2400af7')">
|
||||
<a-button
|
||||
size="small"
|
||||
type="link"
|
||||
@ -218,23 +214,23 @@
|
||||
><CodeOutlined
|
||||
/></a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.docker.container.d9418498')">
|
||||
<a-tooltip :title="$t('i18n.095e938e2a')">
|
||||
<a-button size="small" type="link" @click="doAction(record, 'stop')"><StopOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.docker.container.158e24d2')">
|
||||
<a-tooltip :title="$t('i18n.01b4e06f39')">
|
||||
<a-button size="small" type="link" @click="doAction(record, 'restart')"><ReloadOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-tooltip :title="$t('pages.docker.container.43cf4fd2')">
|
||||
<a-tooltip :title="$t('i18n.8e54ddfe24')">
|
||||
<a-button size="small" type="link" @click="doAction(record, 'start')">
|
||||
<PlayCircleOutlined />
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.docker.container.d9418498')">
|
||||
<a-tooltip :title="$t('i18n.095e938e2a')">
|
||||
<a-button size="small" type="link" :disabled="true"><StopOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.docker.container.158e24d2')">
|
||||
<a-tooltip :title="$t('i18n.01b4e06f39')">
|
||||
<a-button size="small" type="link" :disabled="true"><ReloadOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
@ -246,35 +242,35 @@
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
<a-tooltip :title="$t('pages.docker.container.9bce7fda')">
|
||||
<a-tooltip :title="$t('i18n.48a536d0bb')">
|
||||
<a-button size="small" type="link" @click="rebuild(record)"
|
||||
><RedoOutlined />{{ $t('pages.docker.container.37578386') }}</a-button
|
||||
><RedoOutlined />{{ $t('i18n.9e09315960') }}</a-button
|
||||
>
|
||||
</a-tooltip>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
<a-tooltip :title="$t('pages.docker.container.a1ba9678')">
|
||||
<a-tooltip :title="$t('i18n.211a60b1d6')">
|
||||
<a-button
|
||||
size="small"
|
||||
type="link"
|
||||
:disabled="record.state !== 'running'"
|
||||
@click="editContainer(record)"
|
||||
>
|
||||
<EditOutlined />{{ $t('pages.docker.container.e1224c34') }}
|
||||
<EditOutlined />{{ $t('i18n.95b351c862') }}
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
<a-tooltip :title="$t('pages.docker.container.854a0b5d')">
|
||||
<a-tooltip :title="$t('i18n.aac62bc255')">
|
||||
<a-button size="small" type="link" @click="viewLog(record)"
|
||||
><MessageOutlined />{{ $t('pages.docker.container.90985472') }}</a-button
|
||||
><MessageOutlined />{{ $t('i18n.456d29ef8b') }}</a-button
|
||||
>
|
||||
</a-tooltip>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
<a-tooltip :title="$t('pages.docker.container.30c29')">
|
||||
<a-tooltip :title="$t('i18n.ba20f0444c')">
|
||||
<a-button size="small" type="link" @click="doAction(record, 'remove')">
|
||||
<DeleteOutlined />{{ $t('pages.docker.container.2f14e7d4') }}
|
||||
<DeleteOutlined />{{ $t('i18n.2f4aaddde3') }}
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-menu-item>
|
||||
@ -292,41 +288,39 @@
|
||||
<a-space>
|
||||
<a-input
|
||||
v-model:value="listQuery['name']"
|
||||
:placeholder="$t('pages.docker.container.3e34ec28')"
|
||||
:placeholder="$t('i18n.d7ec2d3fea')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['containerId']"
|
||||
:placeholder="$t('pages.docker.container.cfda881')"
|
||||
:placeholder="$t('i18n.74dc77d4f7')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['imageId']"
|
||||
:placeholder="$t('pages.docker.container.e2840598')"
|
||||
:placeholder="$t('i18n.72e7a5d105')"
|
||||
class="search-input-item"
|
||||
@keyup.enter="loadData"
|
||||
/>
|
||||
<div>
|
||||
{{ $t('pages.docker.container.9eea39a0') }}
|
||||
{{ $t('i18n.607e7a4f37') }}
|
||||
<a-switch
|
||||
v-model:checked="listQuery['showAll']"
|
||||
:checked-children="$t('pages.docker.container.9c048a42')"
|
||||
:un-checked-children="$t('pages.docker.container.dd568fba')"
|
||||
:checked-children="$t('i18n.9a7b52fc86')"
|
||||
:un-checked-children="$t('i18n.d679aea3aa')"
|
||||
/>
|
||||
</div>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.docker.container.a1f640f4')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
<a-statistic-countdown
|
||||
format="s"
|
||||
:title="$t('pages.docker.container.c48b0e64') + ' '"
|
||||
:title="$t('i18n.0f8403d07e') + ' '"
|
||||
:value="countdownTime"
|
||||
@finish="autoUpdate"
|
||||
>
|
||||
<template #suffix>
|
||||
<div style="font-size: 12px">{{ $t('pages.docker.container.dda10f33') }}</div>
|
||||
<div style="font-size: 12px">{{ $t('i18n.ee6ce96abb') }}</div>
|
||||
</template>
|
||||
</a-statistic-countdown>
|
||||
</a-space>
|
||||
@ -371,11 +365,11 @@
|
||||
>
|
||||
<template #bodyCell="{ column, text, record }">
|
||||
<template v-if="column.dataIndex === 'names'">
|
||||
<a-popover :title="`${$t('pages.docker.container.cddbe6bd')}${(text || []).join(',')}`">
|
||||
<a-popover :title="`${$t('i18n.0c256f73b8')}${(text || []).join(',')}`">
|
||||
<template #content>
|
||||
<p>{{ $t('pages.docker.container.da9678ab') }}{{ record.id }}</p>
|
||||
<p>{{ $t('pages.docker.container.198b1e02') }}{{ record.image }}</p>
|
||||
<p>{{ $t('pages.docker.container.93bac13d') }}{{ record.imageId }}</p>
|
||||
<p>{{ $t('i18n.abee751418') }}{{ record.id }}</p>
|
||||
<p>{{ $t('i18n.26eccfaad1') }}{{ record.image }}</p>
|
||||
<p>{{ $t('i18n.c87bd94cd7') }}{{ record.imageId }}</p>
|
||||
</template>
|
||||
|
||||
<span>{{ (text || []).join(',') }}</span>
|
||||
@ -383,7 +377,7 @@
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'labels'">
|
||||
<a-popover :title="`${$t('pages.docker.container.ef67c3db')}`">
|
||||
<a-popover :title="`${$t('i18n.89cfb655e0')}`">
|
||||
<template #content>
|
||||
<template v-if="record.labels">
|
||||
<p v-for="(value, key) in record.labels" :key="key">
|
||||
@ -401,23 +395,16 @@
|
||||
</a-popover>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'mounts'">
|
||||
<a-popover :title="`${$t('pages.docker.container.e65fe05e')}`">
|
||||
<a-popover :title="`${$t('i18n.9964d6ed3f')}`">
|
||||
<template #content>
|
||||
<template v-if="record.mounts">
|
||||
<div v-for="(item, idx) in record.mounts" :key="idx">
|
||||
<p>
|
||||
{{ $t('pages.docker.container.c0d9b398') }}{{ item.name }}
|
||||
<a-tag>{{
|
||||
item.rw ? $t('pages.docker.container.71579f61') : $t('pages.docker.container.f840d349')
|
||||
}}</a-tag>
|
||||
{{ $t('i18n.5b47861521') }}{{ item.name }}
|
||||
<a-tag>{{ item.rw ? $t('i18n.2300ad28b8') : $t('i18n.75769d1ac8') }}</a-tag>
|
||||
</p>
|
||||
<p>
|
||||
{{
|
||||
$t('pages.docker.container.6b431921', {
|
||||
source: item.source,
|
||||
destination: item.destination
|
||||
})
|
||||
}}
|
||||
{{ $t('i18n.e362bc0e8a', { source: item.source, destination: item.destination }) }}
|
||||
</p>
|
||||
<a-divider></a-divider>
|
||||
</div>
|
||||
@ -446,7 +433,7 @@
|
||||
<template v-else-if="column.dataIndex === 'ports'">
|
||||
<a-popover placement="topLeft">
|
||||
<template #title>
|
||||
{{ $t('pages.docker.container.64ea7bda') }}
|
||||
{{ $t('i18n.d94167ab19') }}
|
||||
<ul>
|
||||
<li v-for="(item, idx) in text || []" :key="idx">
|
||||
{{
|
||||
@ -459,7 +446,7 @@
|
||||
<template v-if="record.networkSettings">
|
||||
<template v-if="record.networkSettings.networks">
|
||||
<template v-if="record.networkSettings.networks.bridge">
|
||||
{{ $t('pages.docker.container.1976c068') }}
|
||||
{{ $t('i18n.71ee088528') }}
|
||||
<p v-if="record.networkSettings.networks.bridge.ipAddress">
|
||||
IP:
|
||||
<a-tag>{{ record.networkSettings.networks.bridge.ipAddress }}</a-tag>
|
||||
@ -469,7 +456,7 @@
|
||||
<a-tag>{{ record.networkSettings.networks.bridge.macAddress }}</a-tag>
|
||||
</p>
|
||||
<p v-if="record.networkSettings.networks.bridge.gateway">
|
||||
{{ $t('pages.docker.container.e689dbaa') }}:
|
||||
{{ $t('i18n.f332f2c8df') }}:
|
||||
<a-tag>{{ record.networkSettings.networks.bridge.gateway }}</a-tag>
|
||||
</p>
|
||||
<p v-if="record.networkSettings.networks.bridge.networkID">
|
||||
@ -491,7 +478,7 @@
|
||||
<a-tag>{{ record.networkSettings.networks.ingress.macAddress }}</a-tag>
|
||||
</p>
|
||||
<p v-if="record.networkSettings.networks.ingress.gateway">
|
||||
{{ $t('pages.docker.container.e689dbaa') }}:
|
||||
{{ $t('i18n.f332f2c8df') }}:
|
||||
<a-tag>{{ record.networkSettings.networks.ingress.gateway }}</a-tag>
|
||||
</p>
|
||||
<p v-if="record.networkSettings.networks.ingress.networkID">
|
||||
@ -517,10 +504,7 @@
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'state'">
|
||||
<a-tooltip
|
||||
:title="(record.status || '') + $t('pages.docker.container.854a0b5d')"
|
||||
@click="viewLog(record)"
|
||||
>
|
||||
<a-tooltip :title="(record.status || '') + $t('i18n.aac62bc255')" @click="viewLog(record)">
|
||||
<a-switch :checked="record.state === 'running'" :disabled="true">
|
||||
<template #checkedChildren>
|
||||
<CheckCircleOutlined />
|
||||
@ -534,28 +518,28 @@
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<template v-if="record.state === 'running'">
|
||||
<a-tooltip :title="$t('pages.docker.container.e49f7a16')">
|
||||
<a-tooltip :title="$t('i18n.4fb2400af7')">
|
||||
<a-button size="small" type="link" @click="handleTerminal(record)"><CodeOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.docker.container.d9418498')">
|
||||
<a-tooltip :title="$t('i18n.095e938e2a')">
|
||||
<a-button size="small" type="link" @click="doAction(record, 'stop')"><StopOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.docker.container.158e24d2')">
|
||||
<a-tooltip :title="$t('i18n.01b4e06f39')">
|
||||
<a-button size="small" type="link" @click="doAction(record, 'restart')">
|
||||
<ReloadOutlined />
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-tooltip :title="$t('pages.docker.container.43cf4fd2')">
|
||||
<a-tooltip :title="$t('i18n.8e54ddfe24')">
|
||||
<a-button size="small" type="link" @click="doAction(record, 'start')">
|
||||
<PlayCircleOutlined />
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.docker.container.d9418498')">
|
||||
<a-tooltip :title="$t('i18n.095e938e2a')">
|
||||
<a-button size="small" type="link" :disabled="true"><StopOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.docker.container.158e24d2')">
|
||||
<a-tooltip :title="$t('i18n.01b4e06f39')">
|
||||
<a-button size="small" type="link" :disabled="true"><ReloadOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
@ -567,35 +551,35 @@
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
<a-tooltip :title="$t('pages.docker.container.9bce7fda')">
|
||||
<a-tooltip :title="$t('i18n.48a536d0bb')">
|
||||
<a-button size="small" type="link" @click="rebuild(record)"
|
||||
><RedoOutlined />{{ $t('pages.docker.container.37578386') }}</a-button
|
||||
><RedoOutlined />{{ $t('i18n.9e09315960') }}</a-button
|
||||
>
|
||||
</a-tooltip>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
<a-tooltip :title="$t('pages.docker.container.a1ba9678')">
|
||||
<a-tooltip :title="$t('i18n.211a60b1d6')">
|
||||
<a-button
|
||||
size="small"
|
||||
type="link"
|
||||
:disabled="record.state !== 'running'"
|
||||
@click="editContainer(record)"
|
||||
>
|
||||
<EditOutlined />{{ $t('pages.docker.container.e1224c34') }}
|
||||
<EditOutlined />{{ $t('i18n.95b351c862') }}
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
<a-tooltip :title="$t('pages.docker.container.854a0b5d')">
|
||||
<a-tooltip :title="$t('i18n.aac62bc255')">
|
||||
<a-button size="small" type="link" @click="viewLog(record)">
|
||||
<MessageOutlined />{{ $t('pages.docker.container.90985472') }}
|
||||
<MessageOutlined />{{ $t('i18n.456d29ef8b') }}
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
<a-tooltip :title="$t('pages.docker.container.30c29')">
|
||||
<a-tooltip :title="$t('i18n.ba20f0444c')">
|
||||
<a-button size="small" type="link" @click="doAction(record, 'remove')">
|
||||
<DeleteOutlined />{{ $t('pages.docker.container.2f14e7d4') }}
|
||||
<DeleteOutlined />{{ $t('i18n.2f4aaddde3') }}
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-menu-item>
|
||||
@ -609,7 +593,7 @@
|
||||
</a-collapse-panel>
|
||||
</a-collapse>
|
||||
<a-empty v-else :image="Empty.PRESENTED_IMAGE_SIMPLE">
|
||||
<template #description>{{ $t('pages.docker.container.53e901cf') }}</template>
|
||||
<template #description>{{ $t('i18n.21efd88b67') }}</template>
|
||||
</a-empty>
|
||||
</a-card>
|
||||
|
||||
@ -674,7 +658,7 @@
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
width="60vw"
|
||||
:title="$t('pages.docker.container.6cfb3f78')"
|
||||
:title="$t('i18n.1ba584c974')"
|
||||
:mask-closable="false"
|
||||
@ok="
|
||||
() => {
|
||||
@ -782,34 +766,34 @@ export default {
|
||||
confirmLoading: false,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.docker.container.72cebb96'),
|
||||
title: this.$t('i18n.faaadc447b'),
|
||||
width: '60px',
|
||||
// ellipsis: true,
|
||||
align: 'center',
|
||||
customRender: ({ index }) => `${index + 1}`
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.container.3e34ec28'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: 'names',
|
||||
ellipsis: true
|
||||
// width: 150
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.container.5306295'),
|
||||
title: this.$t('i18n.87d50f8e03'),
|
||||
dataIndex: 'id',
|
||||
ellipsis: true,
|
||||
width: '10px',
|
||||
showid: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.container.77c97b2c'),
|
||||
title: this.$t('i18n.40aff14380'),
|
||||
dataIndex: 'imageId',
|
||||
ellipsis: true,
|
||||
width: '130px',
|
||||
showid: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.container.9c32c887'),
|
||||
title: this.$t('i18n.3fea7ca76c'),
|
||||
dataIndex: 'state',
|
||||
// ellipsis: true,
|
||||
align: 'center',
|
||||
@ -817,33 +801,33 @@ export default {
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.docker.container.a6c4bfd7'),
|
||||
title: this.$t('i18n.c76cfefe72'),
|
||||
dataIndex: 'ports',
|
||||
ellipsis: true,
|
||||
width: '100px'
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.docker.container.83d5a14e'),
|
||||
title: this.$t('i18n.14d342362f'),
|
||||
dataIndex: 'labels',
|
||||
ellipsis: true,
|
||||
width: '50px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.container.e65fe05e'),
|
||||
title: this.$t('i18n.9964d6ed3f'),
|
||||
dataIndex: 'mounts',
|
||||
ellipsis: true,
|
||||
width: '50px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.container.e9f092b5'),
|
||||
title: this.$t('i18n.ddf7d2a5ce'),
|
||||
dataIndex: 'command',
|
||||
ellipsis: true,
|
||||
width: 150,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.container.f5b90169'),
|
||||
title: this.$t('i18n.eca37cb072'),
|
||||
dataIndex: 'created',
|
||||
ellipsis: true,
|
||||
sorter: (a, b) => Number(a.created) - new Number(b.created),
|
||||
@ -853,7 +837,7 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.container.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
fixed: 'right',
|
||||
|
||||
@ -890,19 +874,19 @@ export default {
|
||||
// ],
|
||||
action: {
|
||||
remove: {
|
||||
msg: this.$t('pages.docker.container.987c2cd6'),
|
||||
msg: this.$t('i18n.c469afafe0'),
|
||||
api: dockerContainerRemove
|
||||
},
|
||||
stop: {
|
||||
msg: this.$t('pages.docker.container.2e391eba'),
|
||||
msg: this.$t('i18n.60b4c08f5c'),
|
||||
api: dockerContainerStop
|
||||
},
|
||||
restart: {
|
||||
msg: this.$t('pages.docker.container.fb372d35'),
|
||||
msg: this.$t('i18n.bf77165638'),
|
||||
api: dockerContainerRestart
|
||||
},
|
||||
start: {
|
||||
msg: this.$t('pages.docker.container.965876ac'),
|
||||
msg: this.$t('i18n.2b0aa77353'),
|
||||
api: dockerContainerStart
|
||||
}
|
||||
},
|
||||
@ -975,11 +959,11 @@ export default {
|
||||
return
|
||||
}
|
||||
$confirm({
|
||||
title: this.$t('pages.docker.container.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: action.msg,
|
||||
okText: this.$t('pages.docker.container.e8e9db25'),
|
||||
cancelText: this.$t('pages.docker.container.b12468e9'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return action
|
||||
.api(this.urlPrefix, {
|
||||
|
@ -52,14 +52,14 @@
|
||||
<!-- // tx_bytes 网卡输出流量 -->
|
||||
<a-descriptions-item label="NET I/O rx">
|
||||
<div v-for="(item, index) in Object.keys(statsData.networks || {})" :key="index">
|
||||
<a-tooltip :title="`${item} ${$t('pages.docker.editContainer.8494950')}`">
|
||||
<a-tooltip :title="`${item} ${$t('i18n.3e54c81ca2')}`">
|
||||
{{ renderSize(statsData.networks[item] && statsData.networks[item].rxBytes) || 0 }}
|
||||
</a-tooltip>
|
||||
</div>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="NET I/O tx">
|
||||
<div v-for="(item, index) in Object.keys(statsData.networks || {})" :key="index">
|
||||
<a-tooltip :title="`${item} ${$t('pages.docker.editContainer.3365cdae')}`">
|
||||
<a-tooltip :title="`${item} ${$t('i18n.97ecc1bbe9')}`">
|
||||
{{ renderSize(statsData.networks[item] && statsData.networks[item].txBytes) || 0 }}
|
||||
</a-tooltip>
|
||||
</div>
|
||||
@ -114,46 +114,46 @@
|
||||
<a-form ref="editForm" :model="temp" :label-col="{ span: 7 }" :wrapper-col="{ span: 17 }">
|
||||
<a-form-item name="blkioWeight">
|
||||
<template #label>
|
||||
Block IO {{ $t('pages.docker.editContainer.12cbce12') }}
|
||||
Block IO {{ $t('i18n.4aac559105') }}
|
||||
<a-tooltip>
|
||||
<template #title> Block IO {{ $t('pages.docker.editContainer.e0fff8da') }} </template>
|
||||
<template #title> Block IO {{ $t('i18n.eaf987eea0') }} </template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input-number
|
||||
v-model:value="temp.blkioWeight"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('pages.docker.editContainer.867f55f9')"
|
||||
:placeholder="$t('i18n.41d0ecbabd')"
|
||||
:min="0"
|
||||
:max="1000"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item name="cpuShares">
|
||||
<template #label>
|
||||
CPU {{ $t('pages.docker.editContainer.12cbce12') }}
|
||||
CPU {{ $t('i18n.4aac559105') }}
|
||||
<a-tooltip>
|
||||
<template #title> {{ $t('pages.docker.editContainer.f71d1b90') }} </template>
|
||||
<template #title> {{ $t('i18n.9ac4765895') }} </template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input-number
|
||||
v-model:value="temp.cpuShares"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('pages.docker.editContainer.f71d1b90')"
|
||||
:placeholder="$t('i18n.9ac4765895')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item name="cpusetCpus">
|
||||
<template #label>
|
||||
{{ $t('pages.docker.editContainer.83d7b20') }}
|
||||
{{ $t('i18n.2ef1c35be8') }}
|
||||
<a-tooltip>
|
||||
<template #title> {{ $t('pages.docker.editContainer.1cee12b3') }},1)。 </template>
|
||||
<template #title> {{ $t('i18n.0b76afbf5d') }},1)。 </template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input
|
||||
v-model:value="temp.cpusetCpus"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('pages.docker.editContainer.80a60c2e')"
|
||||
:placeholder="$t('i18n.9c55e8e0f3')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item name="cpusetMems">
|
||||
@ -161,8 +161,8 @@
|
||||
CpusetMems
|
||||
<a-tooltip>
|
||||
<template #title>
|
||||
{{ $t('pages.docker.editContainer.7014f5d1')
|
||||
}}{{ $t('pages.docker.editContainer.937d5c60') }}</template
|
||||
{{ $t('i18n.470e9baf32')
|
||||
}}{{ $t('i18n.b28c17d2a6') }}</template
|
||||
>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
@ -170,78 +170,78 @@
|
||||
<a-input
|
||||
v-model:value="temp.cpusetMems"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('pages.docker.editContainer.4b2e0fa0')"
|
||||
:placeholder="$t('i18n.8c7d19b32a')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item name="cpuPeriod">
|
||||
<template #label>
|
||||
CPU {{ $t('pages.docker.editContainer.228ab355') }}
|
||||
CPU {{ $t('i18n.2d842318fb') }}
|
||||
<a-tooltip>
|
||||
<template #title> CPU {{ $t('pages.docker.editContainer.68d6d779') }} </template>
|
||||
<template #title> CPU {{ $t('i18n.6e02ee7aad') }} </template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input-number
|
||||
v-model:value="temp.cpuPeriod"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('pages.docker.editContainer.63880a25')"
|
||||
:placeholder="$t('i18n.c325ddecb1')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item name="cpuQuota">
|
||||
<template #label>
|
||||
CPU {{ $t('pages.docker.editContainer.e69c93e3') }}
|
||||
CPU {{ $t('i18n.19fcb9eb25') }}
|
||||
<a-tooltip>
|
||||
<template #title> {{ $t('pages.docker.editContainer.1175b2c1') }} </template>
|
||||
<template #title> {{ $t('i18n.df1da2dc59') }} </template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input-number
|
||||
v-model:value="temp.cpuQuota"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('pages.docker.editContainer.1175b2c1')"
|
||||
:placeholder="$t('i18n.df1da2dc59')"
|
||||
/>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item name="memory">
|
||||
<template #label>
|
||||
{{ $t('pages.docker.editContainer.63465f7d') }}
|
||||
{{ $t('i18n.9932551cd5') }}
|
||||
<a-tooltip>
|
||||
<template #title> {{ $t('pages.docker.editContainer.ff6baf66') }} </template>
|
||||
<template #title> {{ $t('i18n.0b3edfaf28') }} </template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input
|
||||
v-model:value="temp.memory"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('pages.docker.editContainer.ff6baf66')"
|
||||
:placeholder="$t('i18n.0b3edfaf28')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item name="memorySwap">
|
||||
<template #label>
|
||||
{{ $t('pages.docker.editContainer.deff5643') }}
|
||||
{{ $t('i18n.c983743f56') }}
|
||||
<a-tooltip>
|
||||
<template #title> {{ $t('pages.docker.editContainer.e2c3c53c') }} </template>
|
||||
<template #title> {{ $t('i18n.ebc96f0a5d') }} </template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input
|
||||
v-model:value="temp.memorySwap"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('pages.docker.editContainer.e2c3c53c')"
|
||||
:placeholder="$t('i18n.ebc96f0a5d')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item name="memoryReservation">
|
||||
<template #label>
|
||||
{{ $t('pages.docker.editContainer.d117a15f') }}
|
||||
{{ $t('i18n.c0d38f475f') }}
|
||||
<a-tooltip>
|
||||
<template #title> {{ $t('pages.docker.editContainer.95dc63a6') }} </template>
|
||||
<template #title> {{ $t('i18n.0a63bf5b41') }} </template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input
|
||||
v-model:value="temp.memoryReservation"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('pages.docker.editContainer.95dc63a6')"
|
||||
:placeholder="$t('i18n.0a63bf5b41')"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
|
@ -16,30 +16,30 @@
|
||||
<a-space wrap class="search-box">
|
||||
<!-- <a-input v-model="listQuery['name']" @pressEnter="loadData" placeholder="名称" class="search-input-item" /> -->
|
||||
<div>
|
||||
{{ $t('pages.docker.images.d2ef7608') }}
|
||||
{{ $t('i18n.843f05194a') }}
|
||||
<a-switch
|
||||
v-model:checked="listQuery['showAll']"
|
||||
:checked-children="$t('pages.docker.images.47371c73')"
|
||||
:un-checked-children="$t('pages.docker.images.1c77d6fb')"
|
||||
:checked-children="$t('i18n.0a60ac8f02')"
|
||||
:un-checked-children="$t('i18n.c9744f45e7')"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('pages.docker.images.a8ad56bd') }}
|
||||
{{ $t('i18n.a09375d96c') }}
|
||||
<a-switch
|
||||
v-model:checked="listQuery['dangling']"
|
||||
:checked-children="$t('pages.docker.images.47371c73')"
|
||||
:un-checked-children="$t('pages.docker.images.1c77d6fb')"
|
||||
:checked-children="$t('i18n.0a60ac8f02')"
|
||||
:un-checked-children="$t('i18n.c9744f45e7')"
|
||||
/>
|
||||
</div>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.docker.images.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button
|
||||
type="primary"
|
||||
danger
|
||||
:disabled="!tableSelections || !tableSelections.length"
|
||||
@click="batchDelete"
|
||||
>{{ $t('pages.docker.images.b5139d46') }}</a-button
|
||||
>{{ $t('i18n.7fb62b3011') }}</a-button
|
||||
>
|
||||
|
||||
|
|
||||
@ -47,7 +47,7 @@
|
||||
<a-input-search
|
||||
v-model:value="pullImageName"
|
||||
style="width: 260px"
|
||||
:placeholder="$t('pages.docker.images.cf1010ee')"
|
||||
:placeholder="$t('i18n.8b83cd1f29')"
|
||||
class="search-input-item"
|
||||
@search="pullImage"
|
||||
>
|
||||
@ -67,7 +67,7 @@
|
||||
:before-upload="beforeUpload"
|
||||
>
|
||||
<LoadingOutlined v-if="percentage" />
|
||||
<a-button v-else type="primary"> <UploadOutlined />{{ $t('pages.docker.images.9bf236cc') }} </a-button>
|
||||
<a-button v-else type="primary"> <UploadOutlined />{{ $t('i18n.8d9a071ee2') }} </a-button>
|
||||
</a-upload>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -97,20 +97,20 @@
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-tooltip :title="$t('pages.docker.images.eebc3517')">
|
||||
<a-tooltip :title="$t('i18n.e0a0e26031')">
|
||||
<a-button size="small" type="link" @click="createContainer(record)"><SelectOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.docker.images.a2b28fd3')">
|
||||
<a-tooltip :title="$t('i18n.159a3a8037')">
|
||||
<a-button size="small" type="link" :disabled="!record.repoTags" @click="tryPull(record)"
|
||||
><CloudDownloadOutlined
|
||||
/></a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.docker.images.506feea7')">
|
||||
<a-tooltip :title="$t('i18n.8e389298e4')">
|
||||
<a-button size="small" type="link" @click="saveImage(record.id.split(':')[1])"
|
||||
><DownloadOutlined
|
||||
/></a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.docker.images.33df7296')">
|
||||
<a-tooltip :title="$t('i18n.0306ea1908')">
|
||||
<a-button size="small" type="link" @click="doAction(record, 'remove')"><DeleteOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
@ -198,29 +198,29 @@ export default {
|
||||
temp: {},
|
||||
rules: {
|
||||
name: [
|
||||
{ required: true, message: this.$t('pages.docker.images.2a85e8f3'), trigger: 'blur' },
|
||||
{ required: true, message: this.$t('i18n.5c502af799'), trigger: 'blur' },
|
||||
{
|
||||
pattern: /[a-zA-Z0-9][a-zA-Z0-9_.-]$/,
|
||||
message: this.$t('pages.docker.images.7bfb5be2'),
|
||||
message: this.$t('i18n.8d5c1335b6'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
]
|
||||
},
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.docker.images.72cebb96'),
|
||||
title: this.$t('i18n.faaadc447b'),
|
||||
width: '80px',
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
customRender: ({ index }) => `${index + 1}`
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.images.bb769c1d'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: 'repoTags',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.images.77c97b2c'),
|
||||
title: this.$t('i18n.40aff14380'),
|
||||
dataIndex: 'id',
|
||||
ellipsis: true,
|
||||
width: 140,
|
||||
@ -228,7 +228,7 @@ export default {
|
||||
id: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.images.2a3c2758'),
|
||||
title: this.$t('i18n.5aabec5c62'),
|
||||
dataIndex: 'parentId',
|
||||
ellipsis: true,
|
||||
width: 140,
|
||||
@ -236,13 +236,13 @@ export default {
|
||||
id: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.images.c2a7a92f'),
|
||||
title: this.$t('i18n.ad35f58fb3'),
|
||||
dataIndex: 'size',
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.images.f06e8846'),
|
||||
title: this.$t('i18n.eca37cb072'),
|
||||
dataIndex: 'created',
|
||||
sorter: (a, b) => new Number(a.created) - new Number(b.created),
|
||||
sortDirections: ['descend', 'ascend'],
|
||||
@ -255,7 +255,7 @@ export default {
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.docker.images.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
fixed: 'right',
|
||||
width: '160px'
|
||||
@ -264,7 +264,7 @@ export default {
|
||||
|
||||
action: {
|
||||
remove: {
|
||||
msg: this.$t('pages.docker.images.cde2002'),
|
||||
msg: this.$t('i18n.fc06c70960'),
|
||||
api: dockerImageRemove
|
||||
}
|
||||
},
|
||||
@ -308,11 +308,11 @@ export default {
|
||||
return
|
||||
}
|
||||
$confirm({
|
||||
title: this.$t('pages.docker.images.75eab7c'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: action.msg,
|
||||
okText: this.$t('pages.docker.images.7da4a591'),
|
||||
cancelText: this.$t('pages.docker.images.43105e21'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return action
|
||||
.api(this.urlPrefix, {
|
||||
@ -334,7 +334,7 @@ export default {
|
||||
const repoTags = record?.repoTags[0]
|
||||
if (!repoTags) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.docker.images.817c9e61')
|
||||
message: this.$t('i18n.f99ead0a76')
|
||||
})
|
||||
return
|
||||
}
|
||||
@ -410,7 +410,7 @@ export default {
|
||||
pullImage() {
|
||||
if (!this.pullImageName) {
|
||||
$notification.warn({
|
||||
message: this.$t('pages.docker.images.dcbbfcb4')
|
||||
message: this.$t('i18n.6ef90ec712')
|
||||
})
|
||||
return
|
||||
}
|
||||
@ -439,11 +439,11 @@ export default {
|
||||
let ids = this.tableSelections
|
||||
|
||||
$confirm({
|
||||
title: this.$t('pages.docker.images.75eab7c'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.docker.images.729feed'),
|
||||
okText: this.$t('pages.docker.images.7da4a591'),
|
||||
cancelText: this.$t('pages.docker.images.43105e21'),
|
||||
content: this.$t('i18n.0f539ff117'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return dockerImageBatchRemove(this.urlPrefix, {
|
||||
id: this.reqDataId,
|
||||
|
@ -3,51 +3,51 @@
|
||||
<a-timeline>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote">
|
||||
{{ $t('pages.docker.info.ccf301b7') }}{{ temp.name }} - {{ temp.osType }} - {{ temp.operatingSystem }} -
|
||||
{{ $t('i18n.0c5c8d2d11') }}{{ temp.name }} - {{ temp.osType }} - {{ temp.operatingSystem }} -
|
||||
<a-tag>{{ temp.architecture }} </a-tag>
|
||||
<a-tag>{{ temp.id }}</a-tag>
|
||||
</span>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote">
|
||||
{{ $t('pages.docker.info.d826aba2') }}<a-tag>{{ temp.serverVersion }}</a-tag>
|
||||
{{ $t('i18n.2684c4634d') }}<a-tag>{{ temp.serverVersion }}</a-tag>
|
||||
<a-tag>{{ temp.kernelVersion }}</a-tag>
|
||||
</span>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('pages.docker.info.86439fa0') }} <a-tag>cpu:{{ temp.nCPU || temp.NCPU }}</a-tag>
|
||||
<a-tag>{{ $t('pages.docker.info.d5f99ae') }}{{ renderSize(temp.memTotal) }}</a-tag>
|
||||
>{{ $t('i18n.3d06693eb5') }} <a-tag>cpu:{{ temp.nCPU || temp.NCPU }}</a-tag>
|
||||
<a-tag>{{ $t('i18n.af708b659f') }}{{ renderSize(temp.memTotal) }}</a-tag>
|
||||
|
||||
<a-tag>{{ $t('pages.docker.info.16165c92') }}{{ temp.containers }}</a-tag>
|
||||
<a-tag>{{ $t('pages.docker.info.83f87adf') }}{{ temp.images }}</a-tag>
|
||||
<a-tag>{{ $t('i18n.6b189bf02d') }}{{ temp.containers }}</a-tag>
|
||||
<a-tag>{{ $t('i18n.897d865225') }}{{ temp.images }}</a-tag>
|
||||
</span>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote">{{ $t('pages.docker.info.278a0f66') }}{{ temp.systemTime }} </span>
|
||||
<span class="layui-elem-quote">{{ $t('i18n.089a88ecee') }}{{ temp.systemTime }} </span>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote">{{ $t('pages.docker.info.b958490a') }}{{ temp.dockerRootDir }} </span>
|
||||
<span class="layui-elem-quote">{{ $t('i18n.b6728e74a4') }}{{ temp.dockerRootDir }} </span>
|
||||
</a-timeline-item>
|
||||
<template v-if="temp.swarm">
|
||||
<a-timeline-item>
|
||||
<div class="layui-elem-quote">
|
||||
{{ $t('pages.docker.info.5775aec5') }}
|
||||
{{ $t('i18n.e414392917') }}
|
||||
<div style="padding-left: 10px">
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<div>
|
||||
{{ $t('pages.docker.info.c67593be')
|
||||
{{ $t('i18n.1862c48f72')
|
||||
}}<a-tag v-if="temp.swarm.nodeAddr">{{ temp.swarm.nodeAddr }}</a-tag>
|
||||
<a-tag>{{ temp.swarm.localNodeState }}</a-tag>
|
||||
</div>
|
||||
<div v-if="temp.swarm.remoteManagers">
|
||||
{{ $t('pages.docker.info.a2ad7935') }}
|
||||
{{ $t('i18n.2f6989595f') }}
|
||||
<a-tag v-for="(item, index) in temp.swarm.remoteManagers" :key="index">{{ item.addr }}</a-tag>
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('pages.docker.info.631a6968')
|
||||
{{ $t('i18n.47072e451e')
|
||||
}}{{
|
||||
temp.swarm.controlAvailable ? $t('pages.docker.info.f5bb2364') : $t('pages.docker.info.5edb2e8a')
|
||||
temp.swarm.controlAvailable ? $t('i18n.0a60ac8f02') : $t('i18n.c9744f45e7')
|
||||
}}
|
||||
</div>
|
||||
</a-space>
|
||||
@ -57,7 +57,7 @@
|
||||
</template>
|
||||
<a-timeline-item v-if="temp.plugins">
|
||||
<div class="layui-elem-quote">
|
||||
{{ $t('pages.docker.info.e5c8a0f') }}
|
||||
{{ $t('i18n.b9bcb4d623') }}
|
||||
|
||||
<a-list item-layout="horizontal" :data-source="Object.keys(temp.plugins)" size="small">
|
||||
<template #renderItem="{ item }">
|
||||
@ -71,16 +71,16 @@
|
||||
</a-timeline-item>
|
||||
<a-timeline-item v-if="temp.registryConfig">
|
||||
<div class="layui-elem-quote">
|
||||
{{ $t('pages.docker.info.3401dcf1') }}
|
||||
{{ $t('i18n.92f3fdb65f') }}
|
||||
<a-list item-layout="horizontal" :data-source="Object.keys(temp.registryConfig.indexConfigs)" size="small">
|
||||
<template #renderItem="{ item }">
|
||||
<a-list-item>
|
||||
{{ item }}
|
||||
<a-tag v-if="temp.registryConfig.indexConfigs[item].official" color="green">{{
|
||||
$t('pages.docker.info.a2a559bb')
|
||||
$t('i18n.f5c3795be5')
|
||||
}}</a-tag
|
||||
><a-tag v-if="temp.registryConfig.indexConfigs[item].secure" color="green">{{
|
||||
$t('pages.docker.info.ff49be77')
|
||||
$t('i18n.fdbc77bd19')
|
||||
}}</a-tag>
|
||||
<a-tag v-for="(item1, index) in temp.registryConfig.indexConfigs[item].mirrors" :key="index">{{
|
||||
item1
|
||||
|
@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
<template v-if="useSuggestions">
|
||||
<a-result :title="$t('pages.docker.list.dd2184f3')" :sub-title="$t('pages.docker.list.8fe35bdb')">
|
||||
<a-result :title="$t('i18n.f9cea44f02')" :sub-title="$t('i18n.56469e09f7')">
|
||||
<template #extra>
|
||||
<router-link to="/system/assets/docker-list">
|
||||
<a-button key="console" type="primary">{{ $t('pages.docker.list.b533d598') }}</a-button></router-link
|
||||
<a-button key="console" type="primary">{{ $t('i18n.6dcf6175d8') }}</a-button></router-link
|
||||
>
|
||||
</template>
|
||||
</a-result>
|
||||
@ -16,7 +16,7 @@
|
||||
default-auto-refresh
|
||||
:auto-refresh-time="5"
|
||||
table-name="docker-list"
|
||||
:empty-description="$t('pages.docker.list.a3546162')"
|
||||
:empty-description="$t('i18n.4188f4101c')"
|
||||
:active-page="activePage"
|
||||
size="middle"
|
||||
:data-source="list"
|
||||
@ -35,21 +35,19 @@
|
||||
<a-space wrap class="search-box">
|
||||
<a-input
|
||||
v-model:value="listQuery['%name%']"
|
||||
:placeholder="$t('pages.docker.list.3e34ec28')"
|
||||
:placeholder="$t('i18n.d7ec2d3fea')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
|
||||
<a-tooltip :title="$t('pages.docker.list.5da9e22d')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.docker.list.53c2763c')
|
||||
}}</a-button>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button
|
||||
type="primary"
|
||||
:disabled="!tableSelections || !tableSelections.length"
|
||||
@click="syncToWorkspaceShow"
|
||||
>{{ $t('pages.docker.list.ff284043') }}</a-button
|
||||
>{{ $t('i18n.398ce396cd') }}</a-button
|
||||
>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -62,14 +60,14 @@
|
||||
|
||||
<template v-else-if="column.dataIndex instanceof Array && column.dataIndex.includes('status')">
|
||||
<template v-if="record.machineDocker">
|
||||
<a-tag v-if="record.machineDocker.status === 1" color="green">{{ $t('pages.docker.list.52d29b16') }}</a-tag>
|
||||
<a-tag v-if="record.machineDocker.status === 1" color="green">{{ $t('i18n.fd6e80f1e0') }}</a-tag>
|
||||
<a-tooltip v-else :title="record.machineDocker.failureMsg">
|
||||
<a-tag color="red">{{ $t('pages.docker.list.921c8b81') }}</a-tag>
|
||||
<a-tag color="red">{{ $t('i18n.757a730c9e') }}</a-tag>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<a-tooltip v-else :title="$t('pages.docker.list.c69c4c30')">
|
||||
<a-tag color="red">{{ $t('pages.docker.list.4f21c0a4') }}</a-tag>
|
||||
<a-tooltip v-else :title="$t('i18n.33675a9bb3')">
|
||||
<a-tag color="red">{{ $t('i18n.5169b9af9d') }}</a-tag>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'tags'">
|
||||
@ -91,13 +89,11 @@
|
||||
type="primary"
|
||||
:disabled="!record.machineDocker || record.machineDocker.status !== 1"
|
||||
@click="handleConsole(record)"
|
||||
>{{ $t('pages.docker.list.5139b7d7') }}</a-button
|
||||
>{{ $t('i18n.b5c3770699') }}</a-button
|
||||
>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('pages.docker.list.64603c01')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{ $t('i18n.95b351c862') }}</a-button>
|
||||
<a-button size="small" type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('pages.docker.list.dd20d11c')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -109,23 +105,19 @@
|
||||
v-model:open="editVisible"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.docker.list.2e8ce846')"
|
||||
:title="$t('i18n.657969aa0f')"
|
||||
:mask-closable="false"
|
||||
@ok="handleEditOk"
|
||||
>
|
||||
<a-form ref="editForm" :rules="rules" :model="temp" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }">
|
||||
<a-form-item :label="$t('pages.docker.list.cddbe6bd')" name="name">
|
||||
<a-input v-model:value="temp.name" :placeholder="$t('pages.docker.list.cddbe6bd')" />
|
||||
<a-form-item :label="$t('i18n.a51cd0898f')" name="name">
|
||||
<a-input v-model:value="temp.name" :placeholder="$t('i18n.a51cd0898f')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item
|
||||
:label="$t('pages.docker.list.d2114ab5')"
|
||||
:label="$t('i18n.14d342362f')"
|
||||
name="tagInput"
|
||||
:help="
|
||||
$t('pages.docker.list.3727734b', {
|
||||
slot1: $t('pages.docker.list.d2114ab5')
|
||||
})
|
||||
"
|
||||
:help="$t('i18n.05b52ae2db', { slot1: $t('i18n.14d342362f') })"
|
||||
>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<div>
|
||||
@ -150,7 +142,7 @@
|
||||
v-model:value="temp.tagInput"
|
||||
type="text"
|
||||
size="small"
|
||||
:placeholder="$t('pages.docker.list.2749e827')"
|
||||
:placeholder="$t('i18n.baef58c283')"
|
||||
@blur="handleInputConfirm"
|
||||
@keyup.enter="handleInputConfirm"
|
||||
/>
|
||||
@ -160,7 +152,7 @@
|
||||
style="borderstyle: dashed"
|
||||
@click="showInput"
|
||||
>
|
||||
<PlusOutlined /> {{ $t('pages.docker.list.7d46652a') }}
|
||||
<PlusOutlined /> {{ $t('i18n.66ab5e9f24') }}
|
||||
</a-tag>
|
||||
</template>
|
||||
</a-space>
|
||||
@ -182,22 +174,22 @@
|
||||
v-model:open="syncToWorkspaceVisible"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.docker.list.6cc42b32')"
|
||||
:title="$t('i18n.1a44b9e2f7')"
|
||||
:mask-closable="false"
|
||||
@ok="handleSyncToWorkspace"
|
||||
>
|
||||
<a-alert :message="$t('pages.docker.list.d5e02e8a')" type="warning">
|
||||
<a-alert :message="$t('i18n.947d983961')" type="warning">
|
||||
<template #description>
|
||||
<ul>
|
||||
<li>{{ $t('pages.docker.list.b74cd503') }}</li>
|
||||
<li>{{ $t('pages.docker.list.f8158ed2') }}</li>
|
||||
<li>{{ $t('pages.docker.list.a7db4ba1') }}</li>
|
||||
<li>{{ $t('i18n.af7c96d2b9') }}</li>
|
||||
<li>{{ $t('i18n.4c7e4dfd33') }}</li>
|
||||
<li>{{ $t('i18n.b7df1586a9') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-form :model="temp" :label-col="{ span: 6 }" :wrapper-col="{ span: 14 }">
|
||||
<a-form-item> </a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.list.bc069d5d')" name="workspaceId">
|
||||
<a-form-item :label="$t('i18n.b4a8c78284')" name="workspaceId">
|
||||
<a-select
|
||||
v-model:value="temp.workspaceId"
|
||||
show-search
|
||||
@ -211,7 +203,7 @@
|
||||
)
|
||||
}
|
||||
"
|
||||
:placeholder="$t('pages.docker.list.3a321a02')"
|
||||
:placeholder="$t('i18n.b3bda9bf9e')"
|
||||
>
|
||||
<a-select-option v-for="item in workspaceList" :key="item.id" :disabled="getWorkspaceId() === item.id">{{
|
||||
item.name
|
||||
@ -251,7 +243,7 @@ export default {
|
||||
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.docker.list.3e34ec28'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: 'name',
|
||||
ellipsis: true,
|
||||
width: 100
|
||||
@ -264,33 +256,33 @@ export default {
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.list.9c32c887'),
|
||||
title: this.$t('i18n.3fea7ca76c'),
|
||||
dataIndex: ['machineDocker', 'status'],
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
width: '100px'
|
||||
},
|
||||
{
|
||||
title: `docker${this.$t('pages.docker.list.d826aba2')}`,
|
||||
title: `docker${this.$t('i18n.fe2df04a16')}`,
|
||||
dataIndex: ['machineDocker', 'dockerVersion'],
|
||||
ellipsis: true,
|
||||
width: '120px',
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.list.d2114ab5'),
|
||||
title: this.$t('i18n.14d342362f'),
|
||||
dataIndex: 'tags',
|
||||
width: 100,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.list.7e27adb6'),
|
||||
title: this.$t('i18n.3bcc1c7a20'),
|
||||
dataIndex: 'modifyUser',
|
||||
width: '120px',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.list.f06e8846'),
|
||||
title: this.$t('i18n.eca37cb072'),
|
||||
dataIndex: 'createTimeMillis',
|
||||
ellipsis: true,
|
||||
sorter: true,
|
||||
@ -298,7 +290,7 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.list.61164914'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'modifyTimeMillis',
|
||||
sorter: true,
|
||||
ellipsis: true,
|
||||
@ -306,7 +298,7 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.list.a0fe2109'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
|
||||
fixed: 'right',
|
||||
@ -317,16 +309,16 @@ export default {
|
||||
|
||||
rules: {
|
||||
// id: [{ required: true, message: "Please input ID", trigger: "blur" }],
|
||||
name: [{ required: true, message: this.$t('pages.docker.list.ce3b796b'), trigger: 'blur' }],
|
||||
host: [{ required: true, message: this.$t('pages.docker.list.116c39f3'), trigger: 'blur' }],
|
||||
name: [{ required: true, message: this.$t('i18n.f63870fdb0'), trigger: 'blur' }],
|
||||
host: [{ required: true, message: this.$t('i18n.3604566503'), trigger: 'blur' }],
|
||||
tagInput: [
|
||||
// { required: true, message: "Please input ID", trigger: "blur" },
|
||||
{ pattern: /^\w{1,10}$/, message: this.$t('pages.docker.list.a4c276e2') }
|
||||
{ pattern: /^\w{1,10}$/, message: this.$t('i18n.89944d6ccb') }
|
||||
],
|
||||
|
||||
tag: [
|
||||
{ required: true, message: this.$t('pages.docker.list.d6fbcd84'), trigger: 'blur' },
|
||||
{ pattern: /^\w{1,10}$/, message: this.$t('pages.docker.list.a4c276e2') }
|
||||
{ required: true, message: this.$t('i18n.3b9418269c'), trigger: 'blur' },
|
||||
{ pattern: /^\w{1,10}$/, message: this.$t('i18n.89944d6ccb') }
|
||||
]
|
||||
},
|
||||
workspaceList: [],
|
||||
@ -468,11 +460,11 @@ export default {
|
||||
// 删除
|
||||
handleDelete(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.docker.list.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.docker.list.e51646aa'),
|
||||
okText: this.$t('pages.docker.list.e8e9db25'),
|
||||
cancelText: this.$t('pages.docker.list.b12468e9'),
|
||||
content: this.$t('i18n.1593dc4920'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return deleteDcoker({
|
||||
id: record.id
|
||||
@ -546,7 +538,7 @@ export default {
|
||||
handleSyncToWorkspace() {
|
||||
if (!this.temp.workspaceId) {
|
||||
$notification.warn({
|
||||
message: this.$t('pages.docker.list.3a321a02')
|
||||
message: this.$t('i18n.b3bda9bf9e')
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
<div>
|
||||
<log-view2
|
||||
ref="logView"
|
||||
:title-name="$t('pages.docker.log-view.648b57ff')"
|
||||
:title-name="$t('i18n.cac26240b5')"
|
||||
:visible="visible"
|
||||
@close="
|
||||
() => {
|
||||
@ -16,30 +16,30 @@
|
||||
<div>
|
||||
<a-input-number
|
||||
v-model:value="tail"
|
||||
:placeholder="$t('pages.docker.log-view.5af47e85')"
|
||||
:placeholder="$t('i18n.5734b2db4e')"
|
||||
style="width: 150px"
|
||||
>
|
||||
<template #addonBefore>
|
||||
<a-tooltip :title="$t('pages.docker.log-view.d35b24b2')"
|
||||
>{{ $t('pages.docker.log-view.5866bf3c') }}
|
||||
<a-tooltip :title="$t('i18n.25b6c22d8a')"
|
||||
>{{ $t('i18n.87eb55155a') }}
|
||||
</a-tooltip>
|
||||
</template>
|
||||
</a-input-number>
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('pages.docker.log-view.87ee22ec') }}
|
||||
{{ $t('i18n.d731dc9325') }}
|
||||
<a-switch
|
||||
v-model:checked="timestamps"
|
||||
:checked-children="$t('pages.docker.log-view.d75b3b1a')"
|
||||
:un-checked-children="$t('pages.docker.log-view.41cc2930')"
|
||||
:checked-children="$t('i18n.4d775d4cd7')"
|
||||
:un-checked-children="$t('i18n.2064fc6808')"
|
||||
/>
|
||||
</div>
|
||||
<a-button type="primary" size="small" @click="initWebSocket"
|
||||
><ReloadOutlined /> {{ $t('pages.docker.log-view.7bbd89a') }}
|
||||
><ReloadOutlined /> {{ $t('i18n.694fc5efa9') }}
|
||||
</a-button>
|
||||
|
|
||||
<a-button type="primary" :disabled="!logId" size="small" @click="download">
|
||||
<DownloadOutlined /> {{ $t('pages.docker.log-view.42c8e9c6') }}
|
||||
<DownloadOutlined /> {{ $t('i18n.f26ef91424') }}
|
||||
</a-button>
|
||||
|
|
||||
</a-space>
|
||||
@ -131,7 +131,7 @@ export default {
|
||||
this.socket.onerror = (err) => {
|
||||
console.error(err)
|
||||
$notification.error({
|
||||
message: `web socket ${this.$t('pages.docker.log-view.d75d207f')},${this.$t('pages.docker.log-view.763330b')}`
|
||||
message: `web socket ${this.$t('i18n.7030ff6470')},${this.$t('i18n.226a6f9cdd')}`
|
||||
})
|
||||
clearInterval(this.heart)
|
||||
}
|
||||
@ -139,7 +139,7 @@ export default {
|
||||
//当客户端收到服务端发送的关闭连接请求时,触发onclose事件
|
||||
console.error(err)
|
||||
clearInterval(this.heart)
|
||||
$message.warning(this.$t('pages.docker.log-view.8a2aae09'))
|
||||
$message.warning(this.$t('i18n.948171025e'))
|
||||
}
|
||||
this.socket.onmessage = (msg) => {
|
||||
if (msg.data.indexOf('code') > -1 && msg.data.indexOf('msg') > -1) {
|
||||
|
@ -13,7 +13,7 @@
|
||||
<a-space>
|
||||
<a-input
|
||||
v-model:value="listQuery['name']"
|
||||
:placeholder="$t('pages.docker.networks.3e34ec28')"
|
||||
:placeholder="$t('i18n.d7ec2d3fea')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
@ -25,7 +25,7 @@
|
||||
/>
|
||||
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.docker.networks.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -44,9 +44,9 @@
|
||||
text.config
|
||||
.map((item) => {
|
||||
return (
|
||||
($t('pages.docker.networks.73c4a51e') + item.gateway || '') +
|
||||
($t('i18n.27ba6eb343') + item.gateway || '') +
|
||||
'#' +
|
||||
($t('pages.docker.networks.cf0aa0c1') + item.subnet || '')
|
||||
($t('i18n.d1aa9c2da9') + item.subnet || '')
|
||||
)
|
||||
})
|
||||
.join(',')
|
||||
@ -77,7 +77,7 @@
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-tooltip :title="$t('pages.docker.networks.dd20d11c')">
|
||||
<a-tooltip :title="$t('i18n.2f4aaddde3')">
|
||||
<a-button size="small" type="link" @click="doAction(record, 'remove')"><DeleteOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
@ -113,14 +113,14 @@ export default {
|
||||
renderSize,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.docker.networks.72cebb96'),
|
||||
title: this.$t('i18n.faaadc447b'),
|
||||
width: 80,
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
customRender: ({ index }) => `${index + 1}`
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.networks.3e34ec28'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: 'name',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
@ -132,7 +132,7 @@ export default {
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.networks.1907c647'),
|
||||
title: this.$t('i18n.df011658c3'),
|
||||
dataIndex: 'scope',
|
||||
ellipsis: true
|
||||
},
|
||||
@ -142,13 +142,13 @@ export default {
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.networks.698bb532'),
|
||||
title: this.$t('i18n.226b091218'),
|
||||
dataIndex: 'driver',
|
||||
ellipsis: true,
|
||||
width: 80
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.networks.f06e8846'),
|
||||
title: this.$t('i18n.eca37cb072'),
|
||||
dataIndex: 'Created',
|
||||
ellipsis: true,
|
||||
width: 180,
|
||||
@ -160,7 +160,7 @@ export default {
|
||||
],
|
||||
action: {
|
||||
remove: {
|
||||
msg: this.$t('pages.docker.networks.9e6ac7fa'),
|
||||
msg: this.$t('i18n.022b6ea624'),
|
||||
api: dockerVolumesRemove
|
||||
}
|
||||
}
|
||||
@ -194,11 +194,11 @@ export default {
|
||||
return
|
||||
}
|
||||
$confirm({
|
||||
title: this.$t('pages.docker.networks.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: action.msg,
|
||||
okText: this.$t('pages.docker.networks.e8e9db25'),
|
||||
cancelText: this.$t('pages.docker.networks.b12468e9'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return action
|
||||
.api(this.urlPrefix, {
|
||||
|
@ -2,13 +2,13 @@
|
||||
<div>
|
||||
<a-form ref="ruleForm" :model="pruneForm" :label-col="{ span: 4 }" :wrapper-col="{ span: 18 }" :rules="rules">
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 4 }">
|
||||
<a-alert :message="$t('pages.docker.prune.17b5ea77')" banner />
|
||||
<a-alert :message="$t('i18n.bc2c23b5d2')" banner />
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
:label="$t('pages.docker.prune.4fec20d2')"
|
||||
:label="$t('i18n.629f3211ca')"
|
||||
:help="pruneTypes[pruneForm.pruneType] && pruneTypes[pruneForm.pruneType].help"
|
||||
>
|
||||
<a-select v-model:value="pruneForm.pruneType" :placeholder="$t('pages.docker.prune.a197e176')">
|
||||
<a-select v-model:value="pruneForm.pruneType" :placeholder="$t('i18n.ad209825b5')">
|
||||
<a-select-option v-for="(item, key) in pruneTypes" :key="key">
|
||||
{{ item.name }}
|
||||
</a-select-option>
|
||||
@ -16,42 +16,42 @@
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="pruneTypes[pruneForm.pruneType] && pruneTypes[pruneForm.pruneType].filters.includes('dangling')"
|
||||
:label="$t('pages.docker.prune.a669feea')"
|
||||
:label="$t('i18n.81e4018e9d')"
|
||||
>
|
||||
<a-switch
|
||||
v-model:checked="pruneForm.dangling"
|
||||
:checked-children="$t('pages.docker.prune.d361adb6')"
|
||||
:un-checked-children="$t('pages.docker.prune.8788f12a')"
|
||||
:checked-children="$t('i18n.a09375d96c')"
|
||||
:un-checked-children="$t('i18n.643f39d45f')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="pruneTypes[pruneForm.pruneType] && pruneTypes[pruneForm.pruneType].filters.includes('until')"
|
||||
:label="$t('pages.docker.prune.937a97fd')"
|
||||
:label="$t('i18n.44d13f7017')"
|
||||
>
|
||||
<template #help
|
||||
><a-tag color="#f50"> {{ $t('pages.docker.prune.cb38bb6a') }},{{ $t('pages.docker.prune.a3e34a37') }}</a-tag>
|
||||
><a-tag color="#f50"> {{ $t('i18n.1775ff0f26') }},{{ $t('i18n.143d8d3de5') }}</a-tag>
|
||||
</template>
|
||||
<a-tooltip :title="$t('pages.docker.prune.7ea3f135')">
|
||||
<a-input v-model:value="pruneForm.until" :placeholder="`${$t('pages.docker.prune.dbf26257')}`" />
|
||||
<a-tooltip :title="$t('i18n.a37c573d7b')">
|
||||
<a-input v-model:value="pruneForm.until" :placeholder="`${$t('i18n.f8f20c1d1e')}`" />
|
||||
</a-tooltip>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item
|
||||
v-if="pruneTypes[pruneForm.pruneType] && pruneTypes[pruneForm.pruneType].filters.includes('labels')"
|
||||
:label="$t('pages.docker.prune.8dd61567')"
|
||||
:label="$t('i18n.3d61e4aaf1')"
|
||||
>
|
||||
<a-tooltip :title="$t('pages.docker.prune.b6d13d99')">
|
||||
<a-input v-model:value="pruneForm.labels" :placeholder="$t('pages.docker.prune.d3cece44')" />
|
||||
<a-tooltip :title="$t('i18n.1c10461124')">
|
||||
<a-input v-model:value="pruneForm.labels" :placeholder="$t('i18n.9a436e2a53')" />
|
||||
</a-tooltip>
|
||||
</a-form-item>
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 4 }"
|
||||
>{{ $t('pages.docker.prune.e0d922b4')
|
||||
>{{ $t('i18n.4d49b2a15f')
|
||||
}}{{ pruneTypes[pruneForm.pruneType] && pruneTypes[pruneForm.pruneType].command }}
|
||||
prune xxxxx
|
||||
</a-form-item>
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 4 }">
|
||||
<a-button type="primary" :loading="loading" @click="onPruneSubmit">
|
||||
{{ $t('pages.docker.prune.e8e9db25') }}
|
||||
{{ $t('i18n.38cf16f220') }}
|
||||
</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
@ -85,32 +85,32 @@ export default {
|
||||
pruneTypes: {
|
||||
IMAGES: {
|
||||
value: 'IMAGES',
|
||||
name: this.$t('pages.docker.prune.4fbd9851'),
|
||||
name: this.$t('i18n.3477228591'),
|
||||
command: 'image',
|
||||
help: this.$t('pages.docker.prune.2ac80e6a'),
|
||||
help: this.$t('i18n.b96b07e2bb'),
|
||||
filters: ['until', 'dangling']
|
||||
},
|
||||
CONTAINERS: {
|
||||
value: 'CONTAINERS',
|
||||
name: this.$t('pages.docker.prune.e59a28c9'),
|
||||
name: this.$t('i18n.22c799040a'),
|
||||
command: 'container',
|
||||
filters: ['until', 'labels']
|
||||
},
|
||||
NETWORKS: {
|
||||
value: 'NETWORKS',
|
||||
name: this.$t('pages.docker.prune.7beffdd'),
|
||||
name: this.$t('i18n.7ddbe15c84'),
|
||||
command: 'network',
|
||||
filters: ['until']
|
||||
},
|
||||
VOLUMES: {
|
||||
value: 'VOLUMES',
|
||||
name: this.$t('pages.docker.prune.5ea86045'),
|
||||
name: this.$t('i18n.7088e18ac9'),
|
||||
command: 'volume',
|
||||
filters: ['labels']
|
||||
},
|
||||
BUILD: {
|
||||
value: 'BUILD',
|
||||
name: this.$t('pages.docker.prune.37206ed5'),
|
||||
name: this.$t('i18n.fcba60e773'),
|
||||
command: 'builder',
|
||||
filters: ['until']
|
||||
}
|
||||
@ -136,11 +136,11 @@ export default {
|
||||
//
|
||||
const that = this
|
||||
$confirm({
|
||||
title: this.$t('pages.docker.prune.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.docker.prune.faa2b295'),
|
||||
okText: this.$t('pages.docker.prune.e5a2dcc3'),
|
||||
cancelText: this.$t('pages.docker.prune.b12468e9'),
|
||||
content: this.$t('i18n.8e8bcfbb4f'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
async onOk() {
|
||||
return await new Promise((resolve, reject) => {
|
||||
// 组装参数
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<log-view
|
||||
:ref="`logView`"
|
||||
:title-name="$t('pages.docker.pull-image-log.28d0ce86')"
|
||||
:title-name="$t('i18n.de5dadc480')"
|
||||
:visible="visible"
|
||||
@close="
|
||||
() => {
|
||||
|
@ -16,13 +16,13 @@
|
||||
<!-- 集群控制台 -->
|
||||
<a-menu v-model:selectedKeys="menuKeyArray" mode="horizontal" class="docker-menu" @click="menuClick">
|
||||
<a-menu-item key="node">
|
||||
<span class="nav-text">{{ $t('pages.docker.swarm.console.198377d7') }}</span>
|
||||
<span class="nav-text">{{ $t('i18n.957c1b1c50') }}</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="server">
|
||||
<span class="nav-text">{{ $t('pages.docker.swarm.console.5dd8de32') }}</span>
|
||||
<span class="nav-text">{{ $t('i18n.b5ce5efa6e') }}</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="task">
|
||||
<span class="nav-text">{{ $t('pages.docker.swarm.console.ce8244b7') }}</span>
|
||||
<span class="nav-text">{{ $t('i18n.8de2137776') }}</span>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
|
@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
<template v-if="useSuggestions">
|
||||
<a-result :title="$t('pages.docker.swarm.list.67b40edb')" :sub-title="$t('pages.docker.swarm.list.b037a0fc')">
|
||||
<a-result :title="$t('i18n.55e690333a')" :sub-title="$t('i18n.9878af9db5')">
|
||||
<template #extra>
|
||||
<router-link to="/system/assets/docker-list">
|
||||
<a-button key="console" type="primary">{{ $t('pages.docker.swarm.list.356927eb') }}</a-button></router-link
|
||||
<a-button key="console" type="primary">{{ $t('i18n.6dcf6175d8') }}</a-button></router-link
|
||||
>
|
||||
</template>
|
||||
</a-result>
|
||||
@ -15,7 +15,7 @@
|
||||
default-auto-refresh
|
||||
:auto-refresh-time="5"
|
||||
table-name="docker-swarm-list"
|
||||
:empty-description="$t('pages.docker.swarm.list.e33acb4f')"
|
||||
:empty-description="$t('i18n.ab9c827798')"
|
||||
:active-page="activePage"
|
||||
size="middle"
|
||||
:data-source="list"
|
||||
@ -32,19 +32,19 @@
|
||||
<a-space wrap class="search-box">
|
||||
<a-input
|
||||
v-model:value="listQuery['%name%']"
|
||||
:placeholder="$t('pages.docker.swarm.list.3e34ec28')"
|
||||
:placeholder="$t('i18n.d7ec2d3fea')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['%tag%']"
|
||||
:placeholder="$t('pages.docker.swarm.list.a4954c1c')"
|
||||
:placeholder="$t('i18n.14d342362f')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-tooltip :title="$t('pages.docker.swarm.list.1bfed54a')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.docker.swarm.list.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
@ -59,15 +59,15 @@
|
||||
<template v-else-if="column.dataIndex instanceof Array && column.dataIndex.includes('status')">
|
||||
<template v-if="record.machineDocker">
|
||||
<a-tag v-if="record.machineDocker.status === 1" color="green">{{
|
||||
$t('pages.docker.swarm.list.c6b7c57f')
|
||||
$t('i18n.fd6e80f1e0')
|
||||
}}</a-tag>
|
||||
<a-tooltip v-else :title="record.machineDocker.failureMsg">
|
||||
<a-tag color="red">{{ $t('pages.docker.swarm.list.921c8b81') }}</a-tag>
|
||||
<a-tag color="red">{{ $t('i18n.757a730c9e') }}</a-tag>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<a-tooltip v-else :title="$t('pages.docker.swarm.list.f27fdcf3')">
|
||||
<a-tag color="red">{{ $t('pages.docker.swarm.list.6e514532') }}</a-tag>
|
||||
<a-tooltip v-else :title="$t('i18n.33675a9bb3')">
|
||||
<a-tag color="red">{{ $t('i18n.5169b9af9d') }}</a-tag>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
@ -79,30 +79,30 @@
|
||||
:disabled="record.machineDocker.status !== 1"
|
||||
type="primary"
|
||||
@click="handleConsole(record, 'server')"
|
||||
>{{ $t('pages.docker.swarm.list.13ea9c07') }}</a-button
|
||||
>{{ $t('i18n.47d68cd0f4') }}</a-button
|
||||
>
|
||||
<a-button
|
||||
size="small"
|
||||
:disabled="record.machineDocker.status !== 1"
|
||||
type="primary"
|
||||
@click="handleConsole(record, 'node')"
|
||||
>{{ $t('pages.docker.swarm.list.e5687a6b') }}</a-button
|
||||
>{{ $t('i18n.3bf3c0a8d6') }}</a-button
|
||||
>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-button size="small" :disabled="true" type="primary">{{
|
||||
$t('pages.docker.swarm.list.13ea9c07')
|
||||
$t('i18n.47d68cd0f4')
|
||||
}}</a-button>
|
||||
<a-button size="small" :disabled="true" type="primary">{{
|
||||
$t('pages.docker.swarm.list.e5687a6b')
|
||||
$t('i18n.3bf3c0a8d6')
|
||||
}}</a-button>
|
||||
</template>
|
||||
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('pages.docker.swarm.list.64603c01')
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('pages.docker.swarm.list.dd20d11c')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -114,17 +114,17 @@
|
||||
v-model:open="editVisible"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.docker.swarm.list.c34f0c3a')"
|
||||
:title="$t('i18n.d8a36a8a25')"
|
||||
:mask-closable="false"
|
||||
@ok="handleEditOk"
|
||||
>
|
||||
<a-form ref="editForm" :rules="rules" :model="temp" :label-col="{ span: 5 }" :wrapper-col="{ span: 18 }">
|
||||
<a-form-item :label="$t('pages.docker.swarm.list.c2dfe194')" name="name">
|
||||
<a-input v-model:value="temp.name" :placeholder="$t('pages.docker.swarm.list.98c4138b')" />
|
||||
<a-form-item :label="$t('i18n.c3f28b34bb')" name="name">
|
||||
<a-input v-model:value="temp.name" :placeholder="$t('i18n.a51cd0898f')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.docker.swarm.list.a4954c1c')" name="tag"
|
||||
><a-input v-model:value="temp.tag" :placeholder="$t('pages.docker.swarm.list.e50751c6')" />
|
||||
<a-form-item :label="$t('i18n.14d342362f')" name="tag"
|
||||
><a-input v-model:value="temp.tag" :placeholder="$t('i18n.77017a3140')" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</CustomModal>
|
||||
@ -179,40 +179,40 @@ export default {
|
||||
consoleVisible: false,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.list.3e34ec28'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: 'name',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.list.12a8d4cf'),
|
||||
title: this.$t('i18n.7329a2637c'),
|
||||
dataIndex: 'swarmId',
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.list.e83d88b9'),
|
||||
title: this.$t('i18n.a823cfa70c'),
|
||||
dataIndex: 'tag',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.list.9c32c887'),
|
||||
title: this.$t('i18n.3fea7ca76c'),
|
||||
dataIndex: ['machineDocker', 'status'],
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
width: '100px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.list.49942d36'),
|
||||
title: this.$t('i18n.3bcc1c7a20'),
|
||||
dataIndex: 'modifyUser',
|
||||
width: 120,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.list.61164914'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'modifyTimeMillis',
|
||||
sorter: true,
|
||||
ellipsis: true,
|
||||
@ -220,7 +220,7 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.list.fb7465c4'),
|
||||
title: this.$t('i18n.11724cd00b'),
|
||||
dataIndex: ['machineDocker', 'swarmCreatedAt'],
|
||||
sorter: true,
|
||||
ellipsis: true,
|
||||
@ -228,7 +228,7 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.list.a0835704'),
|
||||
title: this.$t('i18n.fe87269484'),
|
||||
dataIndex: ['machineDocker', 'swarmUpdatedAt'],
|
||||
sorter: true,
|
||||
ellipsis: true,
|
||||
@ -236,7 +236,7 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.list.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
fixed: 'right',
|
||||
align: 'center',
|
||||
@ -246,11 +246,11 @@ export default {
|
||||
|
||||
rules: {
|
||||
// id: [{ required: true, message: "Please input ID", trigger: "blur" }],
|
||||
name: [{ required: true, message: this.$t('pages.docker.swarm.list.b9de83e8'), trigger: 'blur' }],
|
||||
name: [{ required: true, message: this.$t('i18n.5ca6c1b6c7'), trigger: 'blur' }],
|
||||
|
||||
tag: [
|
||||
{ required: true, message: this.$t('pages.docker.swarm.list.226cdc3a'), trigger: 'blur' },
|
||||
{ pattern: /^\w{1,10}$/, message: this.$t('pages.docker.swarm.list.9976c029') }
|
||||
{ required: true, message: this.$t('i18n.3b9418269c'), trigger: 'blur' },
|
||||
{ pattern: /^\w{1,10}$/, message: this.$t('i18n.89944d6ccb') }
|
||||
]
|
||||
},
|
||||
confirmLoading: false
|
||||
@ -341,11 +341,11 @@ export default {
|
||||
// 删除
|
||||
handleDelete(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.docker.swarm.list.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.docker.swarm.list.987c2cd6'),
|
||||
okText: this.$t('pages.docker.swarm.list.e8e9db25'),
|
||||
cancelText: this.$t('pages.docker.swarm.list.b12468e9'),
|
||||
content: this.$t('i18n.1593dc4920'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return delSwarm({
|
||||
id: record.id
|
||||
|
@ -20,7 +20,7 @@
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['nodeName']"
|
||||
:placeholder="$t('pages.docker.swarm.node.bb769c1d')"
|
||||
:placeholder="$t('i18n.d7ec2d3fea')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
@ -38,24 +38,24 @@
|
||||
}
|
||||
"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.docker.swarm.node.377e1844')"
|
||||
:placeholder="$t('i18n.464f3d4ea3')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option key="worker">{{ $t('pages.docker.swarm.node.e4035840') }}</a-select-option>
|
||||
<a-select-option key="manager">{{ $t('pages.docker.swarm.node.acf5e304') }}</a-select-option>
|
||||
<a-select-option key="worker">{{ $t('i18n.41e9f0c9c6') }}</a-select-option>
|
||||
<a-select-option key="manager">{{ $t('i18n.a6269ede6c') }}</a-select-option>
|
||||
</a-select>
|
||||
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.docker.swarm.node.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-statistic-countdown
|
||||
format="s"
|
||||
:title="$t('pages.docker.swarm.node.ae8f1e')"
|
||||
:title="$t('i18n.0f8403d07e')"
|
||||
:value="countdownTime"
|
||||
@finish="loadData"
|
||||
>
|
||||
<template #suffix>
|
||||
<div style="font-size: 12px">{{ $t('pages.docker.swarm.node.28cda8') }}</div>
|
||||
<div style="font-size: 12px">{{ $t('i18n.ee6ce96abb') }}</div>
|
||||
</template>
|
||||
</a-statistic-countdown>
|
||||
</a-space>
|
||||
@ -70,11 +70,11 @@
|
||||
<template v-else-if="column.dataIndex === 'hostname'">
|
||||
<a-popover
|
||||
placement="topLeft"
|
||||
:title="`${$t('pages.docker.swarm.node.7fb10499')}${record.description && record.description.hostname}`"
|
||||
:title="`${$t('i18n.07a0e44145')}${record.description && record.description.hostname}`"
|
||||
>
|
||||
<template #content>
|
||||
<p>
|
||||
{{ $t('pages.docker.swarm.node.ee50ba1c') }}: <a-tag>{{ record.id }}</a-tag>
|
||||
{{ $t('i18n.a472019766') }}: <a-tag>{{ record.id }}</a-tag>
|
||||
</p>
|
||||
<template v-if="record.description && record.description.resources">
|
||||
<p>
|
||||
@ -88,7 +88,7 @@
|
||||
</template>
|
||||
<template v-if="record.description && record.description.engine">
|
||||
<p>
|
||||
{{ $t('pages.docker.swarm.node.d826aba2') }}:
|
||||
{{ $t('i18n.fe2df04a16') }}:
|
||||
<a-tag>{{ record.description.engine.engineVersion }}</a-tag>
|
||||
</p>
|
||||
</template>
|
||||
@ -101,7 +101,7 @@
|
||||
<template v-else-if="column.dataIndex === 'state'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('pages.docker.swarm.node.87c09576')}${record.status && record.status.state} ${$t(
|
||||
:title="`${$t('i18n.9b3e947cc9')}${record.status && record.status.state} ${$t(
|
||||
'pages.docker.swarm.node.147fba6c'
|
||||
)}${record.spec ? record.spec.availability || '' : ''}`"
|
||||
>
|
||||
@ -123,9 +123,9 @@
|
||||
<template v-else-if="column.dataIndex === 'role'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('pages.docker.swarm.node.ec4b9b1')}${record.spec && record.spec.role} ${
|
||||
:title="`${$t('i18n.20f32e1979')}${record.spec && record.spec.role} ${
|
||||
record.managerStatus && record.managerStatus.reachability === 'REACHABLE'
|
||||
? $t('pages.docker.swarm.node.c1956a20') + record.managerStatus.reachability
|
||||
? $t('i18n.88c5680d0d') + record.managerStatus.reachability
|
||||
: ''
|
||||
}`"
|
||||
>
|
||||
@ -156,7 +156,7 @@
|
||||
<template v-else-if="column.dataIndex === 'updatedAt'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('pages.docker.swarm.node.a2b40316')}${text} ${$t('pages.docker.swarm.node.f5b90169')}${
|
||||
:title="`${$t('i18n.bf94b97d1a')}${text} ${$t('i18n.312f45014a')}${
|
||||
record.createdAt
|
||||
}`"
|
||||
>
|
||||
@ -170,20 +170,20 @@
|
||||
<a-space>
|
||||
<template v-if="record.managerStatus && record.managerStatus.leader">
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('pages.docker.swarm.node.e2f053aa')
|
||||
$t('i18n.8347a927c0')
|
||||
}}</a-button>
|
||||
<a-tooltip :title="$t('pages.docker.swarm.node.55ade145')">
|
||||
<a-tooltip :title="$t('i18n.28c1c35cd9')">
|
||||
<a-button size="small" type="primary" danger :disabled="true">{{
|
||||
$t('pages.docker.swarm.node.7d868663')
|
||||
$t('i18n.b3b1f709d4')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('pages.docker.swarm.node.e2f053aa')
|
||||
$t('i18n.8347a927c0')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" danger @click="handleLeava(record)">{{
|
||||
$t('pages.docker.swarm.node.7d868663')
|
||||
$t('i18n.b3b1f709d4')
|
||||
}}</a-button>
|
||||
</template>
|
||||
</a-space>
|
||||
@ -196,22 +196,22 @@
|
||||
v-model:open="editVisible"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.docker.swarm.node.9fa2f20c')"
|
||||
:title="$t('i18n.61e7fa1227')"
|
||||
:mask-closable="false"
|
||||
@ok="handleEditOk"
|
||||
>
|
||||
<a-form ref="editForm" :rules="rules" :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 18 }">
|
||||
<a-form-item :label="$t('pages.docker.swarm.node.377e1844')" name="role">
|
||||
<a-form-item :label="$t('i18n.464f3d4ea3')" name="role">
|
||||
<a-radio-group v-model:value="temp.role" name="role" :disabled="temp.leader">
|
||||
<a-radio value="WORKER"> {{ $t('pages.docker.swarm.node.e4035840') }}</a-radio>
|
||||
<a-radio value="MANAGER"> {{ $t('pages.docker.swarm.node.acf5e304') }} </a-radio>
|
||||
<a-radio value="WORKER"> {{ $t('i18n.41e9f0c9c6') }}</a-radio>
|
||||
<a-radio value="MANAGER"> {{ $t('i18n.a6269ede6c') }} </a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.node.6e06fe4f')" name="availability">
|
||||
<a-form-item :label="$t('i18n.3fea7ca76c')" name="availability">
|
||||
<a-radio-group v-model:value="temp.availability" name="availability">
|
||||
<a-radio value="ACTIVE"> {{ $t('pages.docker.swarm.node.ac2c5199') }}</a-radio>
|
||||
<a-radio value="PAUSE"> {{ $t('pages.docker.swarm.node.a183e300') }} </a-radio>
|
||||
<a-radio value="DRAIN"> {{ $t('pages.docker.swarm.node.312559de') }} </a-radio>
|
||||
<a-radio value="ACTIVE"> {{ $t('i18n.fe32def462') }}</a-radio>
|
||||
<a-radio value="PAUSE"> {{ $t('i18n.8d63ef388e') }} </a-radio>
|
||||
<a-radio value="DRAIN"> {{ $t('i18n.f113c10ade') }} </a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
@ -247,13 +247,13 @@ export default {
|
||||
editVisible: false,
|
||||
initSwarmVisible: false,
|
||||
rules: {
|
||||
role: [{ required: true, message: this.$t('pages.docker.swarm.node.b559696f'), trigger: 'blur' }],
|
||||
availability: [{ required: true, message: this.$t('pages.docker.swarm.node.3f74c0ab'), trigger: 'blur' }]
|
||||
role: [{ required: true, message: this.$t('i18n.9d7d471b77'), trigger: 'blur' }],
|
||||
availability: [{ required: true, message: this.$t('i18n.4c7c58b208'), trigger: 'blur' }]
|
||||
},
|
||||
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.node.72cebb96'),
|
||||
title: this.$t('i18n.faaadc447b'),
|
||||
width: 80,
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
@ -261,31 +261,31 @@ export default {
|
||||
},
|
||||
// { title: "节点Id", dataIndex: "id", ellipsis: true, },
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.node.2a72f1e6'),
|
||||
title: this.$t('i18n.6707667676'),
|
||||
dataIndex: 'hostname',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.node.a0d52737'),
|
||||
title: this.$t('i18n.c1786d9e11'),
|
||||
width: 150,
|
||||
dataIndex: 'address',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.node.6e06fe4f'),
|
||||
title: this.$t('i18n.3fea7ca76c'),
|
||||
width: 140,
|
||||
dataIndex: 'state',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.node.377e1844'),
|
||||
title: this.$t('i18n.464f3d4ea3'),
|
||||
width: 110,
|
||||
dataIndex: 'role',
|
||||
ellipsis: true
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.node.c4c0c00a'),
|
||||
title: this.$t('i18n.996dc32a98'),
|
||||
width: 140,
|
||||
align: 'center',
|
||||
dataIndex: 'os',
|
||||
@ -299,7 +299,7 @@ export default {
|
||||
// width: 170,
|
||||
// },
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.node.61164914'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'updatedAt',
|
||||
|
||||
ellipsis: true,
|
||||
@ -307,7 +307,7 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.node.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
fixed: 'right',
|
||||
align: 'center',
|
||||
@ -373,11 +373,11 @@ export default {
|
||||
//
|
||||
handleLeava(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.docker.swarm.node.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.docker.swarm.node.b35e191c'),
|
||||
okText: this.$t('pages.docker.swarm.node.e8e9db25'),
|
||||
cancelText: this.$t('pages.docker.swarm.node.b12468e9'),
|
||||
content: this.$t('i18n.f5399c620e'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return dockerSwarmNodeLeave({
|
||||
nodeId: record.id,
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<log-view
|
||||
:ref="`logView`"
|
||||
:title-name="$t('pages.docker.swarm.pull-log.3bbf92f2')"
|
||||
:title-name="$t('i18n.6a658517f3')"
|
||||
:visible="visible"
|
||||
@close="
|
||||
() => {
|
||||
@ -14,29 +14,29 @@
|
||||
<a-space>
|
||||
<a-input-number
|
||||
v-model:value="tail"
|
||||
:placeholder="$t('pages.docker.swarm.pull-log.2f7b59f')"
|
||||
:placeholder="$t('i18n.5734b2db4e')"
|
||||
style="width: 150px"
|
||||
>
|
||||
<template #addonBefore>
|
||||
<a-tooltip :title="$t('pages.docker.swarm.pull-log.7dcebde4')"
|
||||
>{{ $t('pages.docker.swarm.pull-log.b0482c76') }}
|
||||
<a-tooltip :title="$t('i18n.25b6c22d8a')"
|
||||
>{{ $t('i18n.87eb55155a') }}
|
||||
</a-tooltip>
|
||||
</template>
|
||||
</a-input-number>
|
||||
<div>
|
||||
{{ $t('pages.docker.swarm.pull-log.87ee22ec') }}
|
||||
{{ $t('i18n.d731dc9325') }}
|
||||
<a-switch
|
||||
v-model:checked="timestamps"
|
||||
:checked-children="$t('pages.docker.swarm.pull-log.d75b3b1a')"
|
||||
:un-checked-children="$t('pages.docker.swarm.pull-log.41cc2930')"
|
||||
:checked-children="$t('i18n.4d775d4cd7')"
|
||||
:un-checked-children="$t('i18n.2064fc6808')"
|
||||
/>
|
||||
</div>
|
||||
<a-button type="primary" size="small" @click="init"
|
||||
><ReloadOutlined /> {{ $t('pages.docker.swarm.pull-log.7bbd89a') }}
|
||||
><ReloadOutlined /> {{ $t('i18n.694fc5efa9') }}
|
||||
</a-button>
|
||||
|
|
||||
<a-button type="primary" :disabled="!logId" size="small" @click="download">
|
||||
<DownloadOutlined /> {{ $t('pages.docker.swarm.pull-log.42c8e9c6') }}
|
||||
<DownloadOutlined /> {{ $t('i18n.f26ef91424') }}
|
||||
</a-button>
|
||||
|
|
||||
</a-space>
|
||||
|
@ -20,23 +20,16 @@
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['serviceName']"
|
||||
:placeholder="$t('pages.docker.swarm.service.3e34ec28')"
|
||||
:placeholder="$t('i18n.d7ec2d3fea')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.docker.swarm.service.53c2763c')
|
||||
}}</a-button>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('pages.docker.swarm.service.68e44d60') }}</a-button>
|
||||
<a-statistic-countdown
|
||||
format="s"
|
||||
:title="$t('pages.docker.swarm.service.ae8f1e')"
|
||||
:value="countdownTime"
|
||||
@finish="loadData"
|
||||
>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.d9ac9228e8') }}</a-button>
|
||||
<a-statistic-countdown format="s" :title="$t('i18n.0f8403d07e')" :value="countdownTime" @finish="loadData">
|
||||
<template #suffix>
|
||||
<div style="font-size: 12px">{{ $t('pages.docker.swarm.service.48ec7187') }}</div>
|
||||
<div style="font-size: 12px">{{ $t('i18n.ee6ce96abb') }}</div>
|
||||
</template>
|
||||
</a-statistic-countdown>
|
||||
</a-space>
|
||||
@ -58,7 +51,7 @@
|
||||
<template v-else-if="column.dataIndex === 'status'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('pages.docker.swarm.service.87c09576')}${text} ${$t('pages.docker.swarm.service.147fba6c')}${
|
||||
:title="`${$t('i18n.9b3e947cc9')}${text} ${$t('i18n.fb91527ce5')}${
|
||||
record.spec ? record.spec.availability || '' : ''
|
||||
}`"
|
||||
>
|
||||
@ -72,9 +65,9 @@
|
||||
<template v-else-if="column.dataIndex === 'role'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('pages.docker.swarm.service.b23c6871')}${text} ${
|
||||
:title="`${$t('i18n.20f32e1979')}${text} ${
|
||||
record.managerStatus && record.managerStatus.reachability === 'REACHABLE'
|
||||
? $t('pages.docker.swarm.service.c1956a20') + record.managerStatus.reachability
|
||||
? $t('i18n.88c5680d0d') + record.managerStatus.reachability
|
||||
: ''
|
||||
}`"
|
||||
>
|
||||
@ -107,19 +100,14 @@
|
||||
<template v-else-if="column.dataIndex === 'updatedAt'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('pages.docker.swarm.service.fd921623')}${text} ${$t('pages.docker.swarm.service.f06e8846')}${
|
||||
record.createdAt
|
||||
}`"
|
||||
:title="`${$t('i18n.bf94b97d1a')}${text} ${$t('i18n.312f45014a')}${record.createdAt}`"
|
||||
>
|
||||
{{ text }}
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.replicas">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('pages.docker.swarm.service.e46bd813')},${$t('pages.docker.swarm.service.b002f60b')}`"
|
||||
>
|
||||
<a-tooltip placement="topLeft" :title="`${$t('i18n.ce07501354')},${$t('i18n.c0e498a259')}`">
|
||||
<a-tag @click="handleTask(record, 'RUNNING')">{{ text }}</a-tag>
|
||||
|
||||
<ReadOutlined @click="handleTask(record)" />
|
||||
@ -128,11 +116,9 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('pages.docker.swarm.service.10c46562')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{ $t('i18n.8347a927c0') }}</a-button>
|
||||
<a-button size="small" type="primary" danger @click="handleDel(record)">{{
|
||||
$t('pages.docker.swarm.service.dd20d11c')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -144,48 +130,48 @@
|
||||
v-model:open="editVisible"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.docker.swarm.service.d6997835')"
|
||||
:title="$t('i18n.cc51f34aa4')"
|
||||
width="70vw"
|
||||
:mask-closable="false"
|
||||
@ok="handleEditOk"
|
||||
>
|
||||
<a-form ref="editForm" :rules="rules" :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 18 }">
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.b7e0f2ad')" name="name">
|
||||
<a-form-item :label="$t('i18n.8f3747c057')" name="name">
|
||||
<template #help
|
||||
><span v-if="!temp.serviceId">{{ $t('pages.docker.swarm.service.5a97fa84') }}</span></template
|
||||
><span v-if="!temp.serviceId">{{ $t('i18n.9ee9d48699') }}</span></template
|
||||
>
|
||||
<a-input
|
||||
v-model:value="temp.name"
|
||||
:disabled="temp.serviceId ? true : false"
|
||||
:placeholder="$t('pages.docker.swarm.service.b7e0f2ad')"
|
||||
:placeholder="$t('i18n.8f3747c057')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.7fbd7a7e')" name="mode">
|
||||
<a-form-item :label="$t('i18n.44c4aaa1d9')" name="mode">
|
||||
<template #help
|
||||
><span v-if="!temp.serviceId">{{ $t('pages.docker.swarm.service.5a97fa84') }}</span></template
|
||||
><span v-if="!temp.serviceId">{{ $t('i18n.9ee9d48699') }}</span></template
|
||||
>
|
||||
<a-radio-group v-model:value="temp.mode" name="mode" :disabled="temp.serviceId ? true : false">
|
||||
<a-radio value="REPLICATED">{{ $t('pages.docker.swarm.service.86be616d') }}</a-radio>
|
||||
<a-radio value="GLOBAL">{{ $t('pages.docker.swarm.service.3f66dc7c') }} </a-radio>
|
||||
<a-radio value="REPLICATED">{{ $t('i18n.0428b36ab1') }}</a-radio>
|
||||
<a-radio value="GLOBAL">{{ $t('i18n.0c1de8295a') }} </a-radio>
|
||||
</a-radio-group>
|
||||
<a-form-item-rest>
|
||||
<template v-if="temp.mode === 'REPLICATED'">
|
||||
{{ $t('pages.docker.swarm.service.f91beb25') }}:
|
||||
{{ $t('i18n.532495b65b') }}:
|
||||
<a-input-number v-model:value="temp.replicas" :min="1" />
|
||||
</template>
|
||||
</a-form-item-rest>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.febc7e89')" name="image">
|
||||
<a-input v-model:value="temp.image" :placeholder="$t('pages.docker.swarm.service.febc7e89')" />
|
||||
<a-form-item :label="$t('i18n.bbf2775521')" name="image">
|
||||
<a-input v-model:value="temp.image" :placeholder="$t('i18n.bbf2775521')" />
|
||||
</a-form-item>
|
||||
<a-form-item label="hostname" name="hostname">
|
||||
<a-input v-model:value="temp.hostname" :placeholder="$t('pages.docker.swarm.service.df83aba7')" />
|
||||
<a-input v-model:value="temp.hostname" :placeholder="$t('i18n.f9361945f3')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.e555c583')" name="">
|
||||
<a-form-item :label="$t('i18n.38aa9dc2a0')" name="">
|
||||
<a-form-item-rest>
|
||||
<a-tabs>
|
||||
<a-tab-pane key="port" :tab="$t('pages.docker.swarm.service.2386cfe2')">
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.9f66cc86')" name="endpointResolutionMode">
|
||||
<a-tab-pane key="port" :tab="$t('i18n.c76cfefe72')">
|
||||
<a-form-item :label="$t('i18n.d9435aa802')" name="endpointResolutionMode">
|
||||
<a-radio-group
|
||||
v-model:value="temp.endpointResolutionMode"
|
||||
name="endpointResolutionMode"
|
||||
@ -212,34 +198,27 @@
|
||||
<a-col :span="7">
|
||||
<a-radio-group v-model:value="item.publishMode" name="publishMode">
|
||||
<a-radio value="ingress" :disabled="temp.endpointResolutionMode === 'DNSRR'">{{
|
||||
$t('pages.docker.swarm.service.c2c2c19b')
|
||||
$t('i18n.75fc7de737')
|
||||
}}</a-radio>
|
||||
<a-radio value="host">{{ $t('pages.docker.swarm.service.2a72f1e6') }}</a-radio>
|
||||
<a-radio value="host">{{ $t('i18n.652273694e') }}</a-radio>
|
||||
</a-radio-group>
|
||||
</a-col>
|
||||
<a-col :span="7">
|
||||
<a-input
|
||||
v-model:value="item.publishedPort"
|
||||
:addon-before="$t('pages.docker.swarm.service.2386cfe2')"
|
||||
:placeholder="$t('pages.docker.swarm.service.2386cfe2')"
|
||||
:addon-before="$t('i18n.c76cfefe72')"
|
||||
:placeholder="$t('i18n.c76cfefe72')"
|
||||
>
|
||||
</a-input>
|
||||
</a-col>
|
||||
<a-col :span="8" :offset="1">
|
||||
<a-input
|
||||
v-model:value="item.targetPort"
|
||||
:addon-before="$t('pages.docker.swarm.service.d28e8a03')"
|
||||
:placeholder="
|
||||
$t('pages.docker.swarm.service.577b1501', {
|
||||
slot1: $t('pages.docker.swarm.service.d28e8a03')
|
||||
})
|
||||
"
|
||||
:addon-before="$t('i18n.22c799040a')"
|
||||
:placeholder="$t('i18n.31691a647c', { slot1: $t('i18n.22c799040a') })"
|
||||
>
|
||||
<template #addonAfter>
|
||||
<a-select
|
||||
v-model:value="item.protocol"
|
||||
:placeholder="$t('pages.docker.swarm.service.9e4da8c2')"
|
||||
>
|
||||
<a-select v-model:value="item.protocol" :placeholder="$t('i18n.0739b9551d')">
|
||||
<a-select-option value="TCP">TCP</a-select-option>
|
||||
<a-select-option value="UDP">UDP</a-select-option>
|
||||
<a-select-option value="SCTP">SCTP</a-select-option>
|
||||
@ -277,7 +256,7 @@
|
||||
</a-form-item>
|
||||
</a-tab-pane>
|
||||
|
||||
<a-tab-pane key="volumes" :tab="$t('pages.docker.swarm.service.6f7e66db')">
|
||||
<a-tab-pane key="volumes" :tab="$t('i18n.640374b7ae')">
|
||||
<a-form-item>
|
||||
<a-row v-for="(item, index) in temp.volumes" :key="index">
|
||||
<a-col :span="21">
|
||||
@ -292,23 +271,15 @@
|
||||
<a-col :span="7">
|
||||
<a-input
|
||||
v-model:value="item.source"
|
||||
:addon-before="$t('pages.docker.swarm.service.289b437c')"
|
||||
:placeholder="
|
||||
$t('pages.docker.swarm.service.f791ed7d', {
|
||||
slot1: $t('pages.docker.swarm.service.289b437c')
|
||||
})
|
||||
"
|
||||
:addon-before="$t('i18n.ad4b4a5b3b')"
|
||||
:placeholder="$t('i18n.ec537c957a', { slot1: $t('i18n.ad4b4a5b3b') })"
|
||||
/>
|
||||
</a-col>
|
||||
<a-col :span="8" :offset="1">
|
||||
<a-input
|
||||
v-model:value="item.target"
|
||||
:addon-before="$t('pages.docker.swarm.service.d28e8a03')"
|
||||
:placeholder="
|
||||
$t('pages.docker.swarm.service.6c2c0b0a', {
|
||||
slot1: $t('pages.docker.swarm.service.d28e8a03')
|
||||
})
|
||||
"
|
||||
:addon-before="$t('i18n.22c799040a')"
|
||||
:placeholder="$t('i18n.368ffad051', { slot1: $t('i18n.22c799040a') })"
|
||||
/>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -338,14 +309,14 @@
|
||||
</a-form-item>
|
||||
</a-tab-pane>
|
||||
|
||||
<a-tab-pane key="args" :tab="$t('pages.docker.swarm.service.6e6cc3c2')">
|
||||
<a-tab-pane key="args" :tab="$t('i18n.3d0a2df9ec')">
|
||||
<a-form-item>
|
||||
<a-row v-for="(item, index) in temp.args" :key="index">
|
||||
<a-col :span="20">
|
||||
<a-input
|
||||
v-model:value="item.value"
|
||||
:addon-before="$t('pages.docker.swarm.service.a94da34e')"
|
||||
:placeholder="$t('pages.docker.swarm.service.4dba58d9')"
|
||||
:addon-before="$t('i18n.bfed4943c5')"
|
||||
:placeholder="$t('i18n.d65d977f1d')"
|
||||
/>
|
||||
</a-col>
|
||||
|
||||
@ -372,14 +343,14 @@
|
||||
</a-row>
|
||||
</a-form-item>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="command" :tab="$t('pages.docker.swarm.service.e9f092b5')">
|
||||
<a-tab-pane key="command" :tab="$t('i18n.ddf7d2a5ce')">
|
||||
<a-form-item>
|
||||
<a-row v-for="(item, index) in temp.commands" :key="index">
|
||||
<a-col :span="20">
|
||||
<a-input
|
||||
v-model:value="item.value"
|
||||
:addon-before="$t('pages.docker.swarm.service.29a0e20e')"
|
||||
:placeholder="$t('pages.docker.swarm.service.dbba7ee')"
|
||||
:addon-before="$t('i18n.579a6d0d92')"
|
||||
:placeholder="$t('i18n.2a6a516f9d')"
|
||||
/>
|
||||
</a-col>
|
||||
|
||||
@ -405,21 +376,21 @@
|
||||
</a-row>
|
||||
</a-form-item>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="env" :tab="$t('pages.docker.swarm.service.c81b2c2e')">
|
||||
<a-tab-pane key="env" :tab="$t('i18n.3867e350eb')">
|
||||
<a-form-item>
|
||||
<a-row v-for="(item, index) in temp.envs" :key="index">
|
||||
<a-col :span="10">
|
||||
<a-input
|
||||
v-model:value="item.name"
|
||||
:addon-before="$t('pages.docker.swarm.service.3e34ec28')"
|
||||
:placeholder="$t('pages.docker.swarm.service.dbc446a0')"
|
||||
:addon-before="$t('i18n.d7ec2d3fea')"
|
||||
:placeholder="$t('i18n.7cb8d163bb')"
|
||||
/>
|
||||
</a-col>
|
||||
<a-col :span="10" :offset="1">
|
||||
<a-input
|
||||
v-model:value="item.value"
|
||||
:addon-before="$t('pages.docker.swarm.service.77584ce7')"
|
||||
:placeholder="$t('pages.docker.swarm.service.77584ce7')"
|
||||
:addon-before="$t('i18n.9a2ee7044f')"
|
||||
:placeholder="$t('i18n.9a2ee7044f')"
|
||||
/>
|
||||
</a-col>
|
||||
<a-col :span="2" :offset="1">
|
||||
@ -445,143 +416,139 @@
|
||||
</a-row>
|
||||
</a-form-item>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane v-if="temp.update" :tab="$t('pages.docker.swarm.service.291377dc')">
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.2c4b1076')" name="parallelism">
|
||||
<a-tab-pane v-if="temp.update" :tab="$t('i18n.a84a45b352')">
|
||||
<a-form-item :label="$t('i18n.07a828310b')" name="parallelism">
|
||||
<a-input-number
|
||||
v-model:value="temp.update.parallelism"
|
||||
style="width: 80%"
|
||||
:min="0"
|
||||
:placeholder="$t('pages.docker.swarm.service.e9736343')"
|
||||
:placeholder="$t('i18n.31eb055c9c')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.6e2c9ac6')" name="delay">
|
||||
<a-form-item :label="$t('i18n.db732ecb48')" name="delay">
|
||||
<template #help>
|
||||
<span style="padding-left: 20%">{{ $t('pages.docker.swarm.service.4c100860') }}</span>
|
||||
<span style="padding-left: 20%">{{ $t('i18n.e2adcc679a') }}</span>
|
||||
</template>
|
||||
<a-input-number
|
||||
v-model:value="temp.update.delay"
|
||||
style="width: 80%"
|
||||
:min="1"
|
||||
:placeholder="$t('pages.docker.swarm.service.2493ddfa')"
|
||||
:placeholder="$t('i18n.85ec12ccd3')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.4b7fadaa')" name="maxFailureRatio">
|
||||
<a-form-item :label="$t('i18n.b3fe677b5f')" name="maxFailureRatio">
|
||||
<a-input-number
|
||||
v-model:value="temp.update.maxFailureRatio"
|
||||
style="width: 80%"
|
||||
:min="0"
|
||||
:placeholder="`${$t('pages.docker.swarm.service.4b7fadaa')}${$t(
|
||||
'pages.docker.swarm.service.5609c1e1'
|
||||
)}`"
|
||||
:placeholder="`${$t('i18n.b3fe677b5f')}${$t('i18n.c7c4e4632f')}`"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.e82ae9bd')" name="failureAction">
|
||||
<a-form-item :label="$t('i18n.fa2f7a8927')" name="failureAction">
|
||||
<a-radio-group v-model:value="temp.update.failureAction" name="failureAction">
|
||||
<a-radio value="PAUSE">{{ $t('pages.docker.swarm.service.b2c88b0') }}</a-radio>
|
||||
<a-radio value="CONTINUE">{{ $t('pages.docker.swarm.service.75c74bf3') }}</a-radio>
|
||||
<a-radio value="ROLLBACK">{{ $t('pages.docker.swarm.service.6f9c6f93') }}</a-radio>
|
||||
<a-radio value="PAUSE">{{ $t('i18n.8d63ef388e') }}</a-radio>
|
||||
<a-radio value="CONTINUE">{{ $t('i18n.27ca568be2') }}</a-radio>
|
||||
<a-radio value="ROLLBACK">{{ $t('i18n.d00b485b26') }}</a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.c78b8f75')" name="order">
|
||||
<a-form-item :label="$t('i18n.d5c68a926e')" name="order">
|
||||
<a-radio-group v-model:value="temp.update.order" name="order">
|
||||
<a-radio value="STOP_FIRST">{{ $t('pages.docker.swarm.service.f15f154f') }}</a-radio>
|
||||
<a-radio value="START_FIRST">{{ $t('pages.docker.swarm.service.225568ba') }}</a-radio>
|
||||
<a-radio value="STOP_FIRST">{{ $t('i18n.0647b5fc26') }}</a-radio>
|
||||
<a-radio value="START_FIRST">{{ $t('i18n.42fd64c157') }}</a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.a936236d')" name="monitor">
|
||||
<a-form-item :label="$t('i18n.9aff624153')" name="monitor">
|
||||
<a-input-number
|
||||
v-model:value="temp.update.monitor"
|
||||
style="width: 80%"
|
||||
:min="1"
|
||||
:placeholder="$t('pages.docker.swarm.service.c29d2732')"
|
||||
:placeholder="$t('i18n.f6d6ab219d')"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane v-if="temp.rollback" :tab="$t('pages.docker.swarm.service.84221f7b')">
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.2c4b1076')" name="parallelism">
|
||||
<a-tab-pane v-if="temp.rollback" :tab="$t('i18n.ad780debbc')">
|
||||
<a-form-item :label="$t('i18n.07a828310b')" name="parallelism">
|
||||
<a-input-number
|
||||
v-model:value="temp.rollback.parallelism"
|
||||
style="width: 80%"
|
||||
:min="0"
|
||||
:placeholder="$t('pages.docker.swarm.service.e9736343')"
|
||||
:placeholder="$t('i18n.31eb055c9c')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.6e2c9ac6')" name="delay">
|
||||
<a-form-item :label="$t('i18n.db732ecb48')" name="delay">
|
||||
<template #help>
|
||||
<span style="padding-left: 20%">{{ $t('pages.docker.swarm.service.4c100860') }}</span>
|
||||
<span style="padding-left: 20%">{{ $t('i18n.e2adcc679a') }}</span>
|
||||
</template>
|
||||
<a-input-number
|
||||
v-model:value="temp.rollback.delay"
|
||||
style="width: 80%"
|
||||
:min="1"
|
||||
:placeholder="$t('pages.docker.swarm.service.89a2b55d')"
|
||||
:placeholder="$t('i18n.6a66d4cdf3')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.4b7fadaa')" name="maxFailureRatio">
|
||||
<a-form-item :label="$t('i18n.b3fe677b5f')" name="maxFailureRatio">
|
||||
<a-input-number
|
||||
v-model:value="temp.rollback.maxFailureRatio"
|
||||
style="width: 80%"
|
||||
:min="0"
|
||||
:placeholder="`${$t('pages.docker.swarm.service.4b7fadaa')}${$t(
|
||||
'pages.docker.swarm.service.5609c1e1'
|
||||
)}`"
|
||||
:placeholder="`${$t('i18n.b3fe677b5f')}${$t('i18n.c7c4e4632f')}`"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.e82ae9bd')" name="failureAction">
|
||||
<a-form-item :label="$t('i18n.fa2f7a8927')" name="failureAction">
|
||||
<a-radio-group v-model:value="temp.rollback.failureAction" name="failureAction">
|
||||
<a-radio value="PAUSE">{{ $t('pages.docker.swarm.service.b2c88b0') }}</a-radio>
|
||||
<a-radio value="CONTINUE">{{ $t('pages.docker.swarm.service.75c74bf3') }}</a-radio>
|
||||
<a-radio value="ROLLBACK">{{ $t('pages.docker.swarm.service.6f9c6f93') }}</a-radio>
|
||||
<a-radio value="PAUSE">{{ $t('i18n.8d63ef388e') }}</a-radio>
|
||||
<a-radio value="CONTINUE">{{ $t('i18n.27ca568be2') }}</a-radio>
|
||||
<a-radio value="ROLLBACK">{{ $t('i18n.d00b485b26') }}</a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.c78b8f75')" name="order">
|
||||
<a-form-item :label="$t('i18n.d5c68a926e')" name="order">
|
||||
<a-radio-group v-model:value="temp.rollback.order" name="order">
|
||||
<a-radio value="STOP_FIRST">{{ $t('pages.docker.swarm.service.f15f154f') }}</a-radio>
|
||||
<a-radio value="START_FIRST">{{ $t('pages.docker.swarm.service.225568ba') }}</a-radio>
|
||||
<a-radio value="STOP_FIRST">{{ $t('i18n.0647b5fc26') }}</a-radio>
|
||||
<a-radio value="START_FIRST">{{ $t('i18n.42fd64c157') }}</a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.a936236d')" name="monitor">
|
||||
<a-form-item :label="$t('i18n.9aff624153')" name="monitor">
|
||||
<a-input-number
|
||||
v-model:value="temp.rollback.monitor"
|
||||
style="width: 80%"
|
||||
:min="1"
|
||||
:placeholder="$t('pages.docker.swarm.service.c29d2732')"
|
||||
:placeholder="$t('i18n.f6d6ab219d')"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane v-if="temp.resources" :tab="$t('pages.docker.swarm.service.cd5e2f7c')">
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.699fe73')">
|
||||
<a-tab-pane v-if="temp.resources" :tab="$t('i18n.eee83a9211')">
|
||||
<a-form-item :label="$t('i18n.3711cbf638')">
|
||||
<a-row>
|
||||
<a-col :span="8">
|
||||
<a-input
|
||||
v-model:value="temp.resources.reservations.nanoCPUs"
|
||||
addon-before="CPUs"
|
||||
:placeholder="$t('pages.docker.swarm.service.b988a5ae')"
|
||||
:placeholder="$t('i18n.9e6b699597')"
|
||||
/>
|
||||
</a-col>
|
||||
<a-col :span="8" :offset="1">
|
||||
<a-input
|
||||
v-model:value="temp.resources.reservations.memoryBytes"
|
||||
addon-before="memory"
|
||||
:placeholder="$t('pages.docker.swarm.service.ff6baf66')"
|
||||
:placeholder="$t('i18n.18eb76c8a0')"
|
||||
/>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.docker.swarm.service.907d8d0f')">
|
||||
<a-form-item :label="$t('i18n.87db69bd44')">
|
||||
<a-row>
|
||||
<a-col :span="8">
|
||||
<a-input
|
||||
v-model:value="temp.resources.limits.nanoCPUs"
|
||||
addon-before="CPUs"
|
||||
:placeholder="$t('pages.docker.swarm.service.b988a5ae')"
|
||||
:placeholder="$t('i18n.9e6b699597')"
|
||||
/>
|
||||
</a-col>
|
||||
<a-col :span="8" :offset="1">
|
||||
<a-input
|
||||
v-model:value="temp.resources.limits.memoryBytes"
|
||||
addon-before="memory"
|
||||
:placeholder="$t('pages.docker.swarm.service.ff6baf66')"
|
||||
:placeholder="$t('i18n.18eb76c8a0')"
|
||||
/>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -597,7 +564,7 @@
|
||||
v-if="taskVisible"
|
||||
v-model:open="taskVisible"
|
||||
destroy-on-close
|
||||
:title="$t('pages.docker.swarm.service.103e3206')"
|
||||
:title="$t('i18n.13f931c5d9')"
|
||||
width="80vw"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
@ -665,32 +632,32 @@ export default {
|
||||
logVisible: 0,
|
||||
confirmLoading: false,
|
||||
rules: {
|
||||
name: [{ required: true, message: this.$t('pages.docker.swarm.service.5f1d417b'), trigger: 'blur' }],
|
||||
mode: [{ required: true, message: this.$t('pages.docker.swarm.service.74477dc8'), trigger: 'blur' }],
|
||||
image: [{ required: true, message: this.$t('pages.docker.swarm.service.c3d67249'), trigger: 'blur' }]
|
||||
name: [{ required: true, message: this.$t('i18n.4e7e04b15d'), trigger: 'blur' }],
|
||||
mode: [{ required: true, message: this.$t('i18n.922b76febd'), trigger: 'blur' }],
|
||||
image: [{ required: true, message: this.$t('i18n.b9af769752'), trigger: 'blur' }]
|
||||
},
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.service.72cebb96'),
|
||||
title: this.$t('i18n.faaadc447b'),
|
||||
width: 80,
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
customRender: ({ index }) => `${index + 1}`
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.service.ab51bb7a'),
|
||||
title: this.$t('i18n.a75b96584d'),
|
||||
dataIndex: 'id',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.service.3e34ec28'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: ['spec', 'name'],
|
||||
ellipsis: true,
|
||||
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.service.7fbd7a7e'),
|
||||
title: this.$t('i18n.44c4aaa1d9'),
|
||||
dataIndex: ['spec', 'mode', 'mode'],
|
||||
ellipsis: true,
|
||||
width: 120,
|
||||
@ -698,7 +665,7 @@ export default {
|
||||
},
|
||||
// { title: "网络模式", dataIndex: "spec.endpointSpec.mode", ellipsis: true, width: 120, },
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.service.f91beb25'),
|
||||
title: this.$t('i18n.532495b65b'),
|
||||
dataIndex: ['spec', 'mode', 'replicated', 'replicas'],
|
||||
align: 'center',
|
||||
width: 90,
|
||||
@ -706,7 +673,7 @@ export default {
|
||||
replicas: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.service.9f66cc86'),
|
||||
title: this.$t('i18n.d9435aa802'),
|
||||
dataIndex: ['spec', 'endpointSpec', 'mode'],
|
||||
ellipsis: true,
|
||||
width: 100,
|
||||
@ -714,7 +681,7 @@ export default {
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.service.61164914'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'updatedAt',
|
||||
|
||||
ellipsis: true,
|
||||
@ -722,7 +689,7 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.service.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
fixed: 'right',
|
||||
align: 'center',
|
||||
@ -802,7 +769,7 @@ export default {
|
||||
const spec = record.spec
|
||||
if (!spec) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.docker.swarm.service.262ca705')
|
||||
message: this.$t('i18n.534115e981')
|
||||
})
|
||||
return
|
||||
}
|
||||
@ -931,11 +898,11 @@ export default {
|
||||
// 删除
|
||||
handleDel(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.docker.swarm.service.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.docker.swarm.service.bd1a6f5b'),
|
||||
okText: this.$t('pages.docker.swarm.service.e8e9db25'),
|
||||
cancelText: this.$t('pages.docker.swarm.service.b12468e9'),
|
||||
content: this.$t('i18n.a4266aea79'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return dockerSwarmServicesDel(this.urlPrefix, {
|
||||
serviceId: record.id,
|
||||
|
@ -15,25 +15,25 @@
|
||||
<a-input
|
||||
v-if="!serviceId"
|
||||
v-model:value="listQuery['serviceId']"
|
||||
:placeholder="$t('pages.docker.swarm.task.ee51b4c9')"
|
||||
:placeholder="$t('i18n.dbb166cf29')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['taskName']"
|
||||
:placeholder="$t('pages.docker.swarm.task.e62a5bf3')"
|
||||
:placeholder="$t('i18n.78caf7115c')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['taskId']"
|
||||
:placeholder="$t('pages.docker.swarm.task.744d5016')"
|
||||
:placeholder="$t('i18n.ac0158db83')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['taskNode']"
|
||||
:placeholder="$t('pages.docker.swarm.task.a3c2349d')"
|
||||
:placeholder="$t('i18n.c90a1f37ce')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
@ -53,24 +53,24 @@
|
||||
}
|
||||
"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.docker.swarm.task.6e06fe4f')"
|
||||
:placeholder="$t('i18n.3fea7ca76c')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="(item, key) in TASK_STATE" :key="key">{{ item }}- {{ key }}</a-select-option>
|
||||
<a-select-option value="">{{ $t('pages.docker.swarm.task.6e06fe4f') }}</a-select-option>
|
||||
<a-select-option value="">{{ $t('i18n.3fea7ca76c') }}</a-select-option>
|
||||
</a-select>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.docker.swarm.task.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-statistic-countdown
|
||||
format="s"
|
||||
:title="$t('pages.docker.swarm.task.ae8f1e')"
|
||||
:title="$t('i18n.0f8403d07e')"
|
||||
:value="countdownTime"
|
||||
@finish="loadData"
|
||||
>
|
||||
<template #suffix>
|
||||
<div style="font-size: 12px">{{ $t('pages.docker.swarm.task.48ec7187') }}</div>
|
||||
<div style="font-size: 12px">{{ $t('i18n.ee6ce96abb') }}</div>
|
||||
</template>
|
||||
</a-statistic-countdown>
|
||||
</a-space>
|
||||
@ -91,23 +91,23 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'desiredState'">
|
||||
<a-popover :title="`${$t('pages.docker.swarm.task.90405c0d')}${TASK_STATE[text]}`" placement="topLeft">
|
||||
<a-popover :title="`${$t('i18n.ec989813ed')}${TASK_STATE[text]}`" placement="topLeft">
|
||||
<template #content>
|
||||
<p>
|
||||
{{ $t('pages.docker.swarm.task.8a8e4923') }}<a-tag>{{ text }}-{{ TASK_STATE[text] }}</a-tag>
|
||||
{{ $t('i18n.e703c7367c') }}<a-tag>{{ text }}-{{ TASK_STATE[text] }}</a-tag>
|
||||
</p>
|
||||
<p v-if="record.status && record.status.err">
|
||||
{{ $t('pages.docker.swarm.task.9c95b60f') }}{{ record.status.err }}
|
||||
{{ $t('i18n.f66335b5bf') }}{{ record.status.err }}
|
||||
</p>
|
||||
<p v-if="record.status && record.status.state">
|
||||
{{ $t('pages.docker.swarm.task.29134ef5') }}<a-tag>{{ record.status.state }}</a-tag>
|
||||
{{ $t('i18n.bec98b4d6a') }}<a-tag>{{ record.status.state }}</a-tag>
|
||||
</p>
|
||||
|
||||
<p v-if="record.status && record.status.message">
|
||||
{{ $t('pages.docker.swarm.task.2edcd34c') }}<a-tag>{{ record.status.message }} </a-tag>
|
||||
{{ $t('i18n.a90cf0796b') }}<a-tag>{{ record.status.message }} </a-tag>
|
||||
</p>
|
||||
<p v-if="record.status && record.status.timestamp">
|
||||
{{ $t('pages.docker.swarm.task.3d55d8de') }}<a-tag>{{ parseTime(record.status.timestamp) }} </a-tag>
|
||||
{{ $t('i18n.780fb9f3d0') }}<a-tag>{{ parseTime(record.status.timestamp) }} </a-tag>
|
||||
</p>
|
||||
</template>
|
||||
|
||||
@ -131,7 +131,7 @@
|
||||
<template v-else-if="column.dataIndex === 'updatedAt'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('pages.docker.swarm.task.a2b40316')}${text} ${$t('pages.docker.swarm.task.f5b90169')}${
|
||||
:title="`${$t('i18n.bf94b97d1a')}${text} ${$t('i18n.312f45014a')}${
|
||||
record.createdAt
|
||||
}`"
|
||||
>
|
||||
@ -144,7 +144,7 @@
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="handleLog(record)">{{
|
||||
$t('pages.docker.swarm.task.f637e08')
|
||||
$t('i18n.456d29ef8b')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -206,37 +206,37 @@ export default {
|
||||
autoUpdateTime: null,
|
||||
logVisible: 0,
|
||||
rules: {
|
||||
role: [{ required: true, message: this.$t('pages.docker.swarm.task.b559696f'), trigger: 'blur' }],
|
||||
availability: [{ required: true, message: this.$t('pages.docker.swarm.task.3f74c0ab'), trigger: 'blur' }]
|
||||
role: [{ required: true, message: this.$t('i18n.9d7d471b77'), trigger: 'blur' }],
|
||||
availability: [{ required: true, message: this.$t('i18n.4c7c58b208'), trigger: 'blur' }]
|
||||
},
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.task.72cebb96'),
|
||||
title: this.$t('i18n.faaadc447b'),
|
||||
width: '80px',
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
customRender: ({ index }) => `${index + 1}`
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.task.347d67ac'),
|
||||
title: this.$t('i18n.6da242ea50'),
|
||||
dataIndex: 'id',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.task.ee50ba1c'),
|
||||
title: this.$t('i18n.a472019766'),
|
||||
dataIndex: 'nodeId',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.task.ab51bb7a'),
|
||||
title: this.$t('i18n.b7ec1d09c4'),
|
||||
dataIndex: 'serviceId',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.task.4fbd9851'),
|
||||
title: this.$t('i18n.3477228591'),
|
||||
dataIndex: ['spec', 'containerSpec', 'image'],
|
||||
ellipsis: true,
|
||||
width: 120,
|
||||
@ -246,13 +246,13 @@ export default {
|
||||
// { title: "端点", dataIndex: "spec.endpointSpec.mode", ellipsis: true, width: 100, },
|
||||
// { title: "节点地址", width: 150, dataIndex: "status.address", ellipsis: true, },
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.task.6e06fe4f'),
|
||||
title: this.$t('i18n.3fea7ca76c'),
|
||||
width: 140,
|
||||
dataIndex: 'desiredState',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.task.77080c2d'),
|
||||
title: this.$t('i18n.4604d50234'),
|
||||
width: 150,
|
||||
dataIndex: ['status', 'err'],
|
||||
ellipsis: true,
|
||||
@ -276,7 +276,7 @@ export default {
|
||||
// width: 170,
|
||||
// },
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.task.d3b29478'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'updatedAt',
|
||||
ellipsis: true,
|
||||
|
||||
@ -286,7 +286,7 @@ export default {
|
||||
width: '180px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.swarm.task.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
fixed: 'right',
|
||||
align: 'center',
|
||||
|
@ -13,22 +13,22 @@
|
||||
<a-space>
|
||||
<a-input
|
||||
v-model:value="listQuery['name']"
|
||||
:placeholder="$t('pages.docker.volumes.3e34ec28')"
|
||||
:placeholder="$t('i18n.d7ec2d3fea')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
|
||||
<div>
|
||||
{{ $t('pages.docker.volumes.a8ad56bd') }}
|
||||
{{ $t('i18n.a09375d96c') }}
|
||||
<a-switch
|
||||
v-model:checked="listQuery['dangling']"
|
||||
:checked-children="$t('pages.docker.volumes.f5bb2364')"
|
||||
:un-checked-children="$t('pages.docker.volumes.5edb2e8a')"
|
||||
:checked-children="$t('i18n.0a60ac8f02')"
|
||||
:un-checked-children="$t('i18n.c9744f45e7')"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.docker.volumes.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -40,7 +40,7 @@
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'name'">
|
||||
<a-popover v-if="record.labels" :title="$t('pages.docker.volumes.970023d4')">
|
||||
<a-popover v-if="record.labels" :title="$t('i18n.3a3ff2c936')">
|
||||
<template #content>
|
||||
<p v-for="(value, key) in record.labels" :key="key">{{ key }}<ArrowRightOutlined />{{ value }}</p>
|
||||
</template>
|
||||
@ -65,7 +65,7 @@
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-tooltip :title="$t('pages.docker.volumes.dd20d11c')">
|
||||
<a-tooltip :title="$t('i18n.2f4aaddde3')">
|
||||
<a-button size="small" type="link" @click="doAction(record, 'remove')"><DeleteOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
@ -101,32 +101,32 @@ export default {
|
||||
renderSize,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.docker.volumes.72cebb96'),
|
||||
title: this.$t('i18n.faaadc447b'),
|
||||
width: 80,
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
customRender: ({ index }) => `${index + 1}`
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.volumes.3e34ec28'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: 'name',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.volumes.337aee59'),
|
||||
title: this.$t('i18n.1c61dfb86f'),
|
||||
dataIndex: 'mountpoint',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.volumes.698bb532'),
|
||||
title: this.$t('i18n.226b091218'),
|
||||
dataIndex: 'driver',
|
||||
ellipsis: true,
|
||||
width: 80,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.volumes.f06e8846'),
|
||||
title: this.$t('i18n.eca37cb072'),
|
||||
dataIndex: 'CreatedAt',
|
||||
ellipsis: true,
|
||||
width: 180,
|
||||
@ -135,7 +135,7 @@ export default {
|
||||
defaultSortOrder: 'descend'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.docker.volumes.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
fixed: 'right',
|
||||
width: '80px'
|
||||
@ -144,7 +144,7 @@ export default {
|
||||
|
||||
action: {
|
||||
remove: {
|
||||
msg: this.$t('pages.docker.volumes.9e6ac7fa'),
|
||||
msg: this.$t('i18n.022b6ea624'),
|
||||
api: dockerVolumesRemove
|
||||
}
|
||||
}
|
||||
@ -178,11 +178,11 @@ export default {
|
||||
return
|
||||
}
|
||||
$confirm({
|
||||
title: this.$t('pages.docker.volumes.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
content: action.msg,
|
||||
zIndex: 1009,
|
||||
okText: this.$t('pages.docker.volumes.e8e9db25'),
|
||||
cancelText: this.$t('pages.docker.volumes.b12468e9'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return action
|
||||
.api(this.urlPrefix, {
|
||||
|
@ -24,38 +24,38 @@
|
||||
<a-space>
|
||||
<a-input
|
||||
v-model:value="listQuery['%name%']"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.list.a6eb2ded')"
|
||||
:placeholder="$t('i18n.d2e2560089')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['%aliasCode%']"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.list.aaee5dc9')"
|
||||
:placeholder="$t('i18n.2f5e828ecd')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['extName']"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.list.52822a45')"
|
||||
:placeholder="$t('i18n.ae809e0295')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['id']"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.list.48f7e53e')"
|
||||
:placeholder="$t('i18n.2168394b82')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-tooltip :title="$t('pages.file-manager.fileStorage.list.cb5a8131')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.file-manager.fileStorage.list.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleUpload">{{
|
||||
$t('pages.file-manager.fileStorage.list.487993f7')
|
||||
$t('i18n.a6fc9e3ae6')
|
||||
}}</a-button>
|
||||
<a-button type="primary" @click="handleRemoteDownload">{{
|
||||
$t('pages.file-manager.fileStorage.list.367f115c')
|
||||
$t('i18n.bd7043cae3')
|
||||
}}</a-button>
|
||||
<a-button
|
||||
type="primary"
|
||||
@ -63,7 +63,7 @@
|
||||
:disabled="!tableSelections || tableSelections.length <= 0"
|
||||
@click="handleBatchDelete"
|
||||
>
|
||||
{{ $t('pages.file-manager.fileStorage.list.b5139d46') }}
|
||||
{{ $t('i18n.7fb62b3011') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -80,16 +80,16 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'name'">
|
||||
<a-popover :title="$t('pages.file-manager.fileStorage.list.334162bc')">
|
||||
<a-popover :title="$t('i18n.73485331c2')">
|
||||
<template #content>
|
||||
<p>{{ $t('pages.file-manager.fileStorage.list.6a721706') }}{{ text }}</p>
|
||||
<p>{{ $t('pages.file-manager.fileStorage.list.7cee55c0') }}{{ record.description }}</p>
|
||||
<p>{{ $t('i18n.b9c52d9a85') }}{{ text }}</p>
|
||||
<p>{{ $t('i18n.46a04cdc9c') }}{{ record.description }}</p>
|
||||
<p v-if="record.status !== undefined">
|
||||
{{ $t('pages.file-manager.fileStorage.list.5e3ea76a')
|
||||
}}{{ statusMap[record.status] || $t('pages.file-manager.fileStorage.list.5f51a112') }}
|
||||
{{ $t('i18n.53365c29c8')
|
||||
}}{{ statusMap[record.status] || $t('i18n.1622dc9b6b') }}
|
||||
</p>
|
||||
<p v-if="record.progressDesc">
|
||||
{{ $t('pages.file-manager.fileStorage.list.a622e852') }}{{ record.progressDesc }}
|
||||
{{ $t('i18n.fb3a2241bb') }}{{ record.progressDesc }}
|
||||
</p>
|
||||
</template>
|
||||
<!-- {{ text }} -->
|
||||
@ -105,31 +105,31 @@
|
||||
<template v-else-if="column.dataIndex === 'source'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="sourceMap[text] || $t('pages.file-manager.fileStorage.list.5f51a112')"
|
||||
:title="sourceMap[text] || $t('i18n.1622dc9b6b')"
|
||||
>
|
||||
<span>{{ sourceMap[text] || $t('pages.file-manager.fileStorage.list.5f51a112') }}</span>
|
||||
<span>{{ sourceMap[text] || $t('i18n.1622dc9b6b') }}</span>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'exists'">
|
||||
<a-tag v-if="text" color="green">{{ $t('pages.file-manager.fileStorage.list.a78774e2') }}</a-tag>
|
||||
<a-tag v-else color="red">{{ $t('pages.file-manager.fileStorage.list.a51066b1') }}</a-tag>
|
||||
<a-tag v-if="text" color="green">{{ $t('i18n.df9497ea98') }}</a-tag>
|
||||
<a-tag v-else color="red">{{ $t('i18n.162e219f6d') }}</a-tag>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'workspaceId'">
|
||||
<a-tag v-if="text === 'GLOBAL'">{{ $t('pages.file-manager.fileStorage.list.fd0310d0') }}</a-tag>
|
||||
<a-tag v-else>{{ $t('pages.file-manager.fileStorage.list.afacc4cb') }}</a-tag>
|
||||
<a-tag v-if="text === 'GLOBAL'">{{ $t('i18n.2be75b1044') }}</a-tag>
|
||||
<a-tag v-else>{{ $t('i18n.98d69f8b62') }}</a-tag>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<!-- <a-button type="primary" size="small" @click="handleEdit(record)">编辑</a-button> -->
|
||||
<a-button size="small" :disabled="!record.exists" type="primary" @click="handleDownloadUrl(record)">{{
|
||||
$t('pages.file-manager.fileStorage.list.42c8e9c6')
|
||||
$t('i18n.f26ef91424')
|
||||
}}</a-button>
|
||||
<a-button size="small" :disabled="!record.exists" type="primary" @click="handleReleaseFile(record)">{{
|
||||
$t('pages.file-manager.fileStorage.list.f97d7b7c')
|
||||
$t('i18n.83611abd5f')
|
||||
}}</a-button>
|
||||
<a-button type="primary" danger size="small" @click="handleDelete(record)">{{
|
||||
$t('pages.file-manager.fileStorage.list.dd20d11c')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -144,18 +144,18 @@
|
||||
:closable="!uploading"
|
||||
:footer="uploading ? null : undefined"
|
||||
:keyboard="false"
|
||||
:title="`${$t('pages.file-manager.fileStorage.list.487993f7')}`"
|
||||
:title="`${$t('i18n.a6fc9e3ae6')}`"
|
||||
:mask-closable="false"
|
||||
@ok="handleUploadOk"
|
||||
>
|
||||
<a-form ref="form" :rules="rules" :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.list.2a688d49')" name="file">
|
||||
<a-form-item :label="$t('i18n.fd7e0c997d')" name="file">
|
||||
<a-progress v-if="percentage" :percent="percentage">
|
||||
<template #format="percent">
|
||||
{{ percent }}%
|
||||
<template v-if="percentageInfo.total"> ({{ renderSize(percentageInfo.total) }}) </template>
|
||||
<template v-if="percentageInfo.duration">
|
||||
{{ $t('pages.file-manager.fileStorage.list.dbdaa87c') }}:{{ formatDuration(percentageInfo.duration) }}
|
||||
{{ $t('i18n.e710da3487') }}:{{ formatDuration(percentageInfo.duration) }}
|
||||
</template>
|
||||
</template>
|
||||
</a-progress>
|
||||
@ -179,33 +179,33 @@
|
||||
>
|
||||
<LoadingOutlined v-if="percentage" />
|
||||
<a-button v-else type="primary"
|
||||
><UploadOutlined />{{ $t('pages.file-manager.fileStorage.list.2a688d49') }}</a-button
|
||||
><UploadOutlined />{{ $t('i18n.fd7e0c997d') }}</a-button
|
||||
>
|
||||
</a-upload>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.list.86a4093a')" name="keepDay">
|
||||
<a-form-item :label="$t('i18n.824607be6b')" name="keepDay">
|
||||
<a-input-number
|
||||
v-model:value="temp.keepDay"
|
||||
:min="1"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.list.4915fce1')"
|
||||
:placeholder="$t('i18n.e9ea1e7c02')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.list.ef32cc33')" name="global">
|
||||
<a-form-item :label="$t('i18n.3a6970ac26')" name="global">
|
||||
<a-radio-group v-model:value="temp.global">
|
||||
<a-radio :value="true"> {{ $t('pages.file-manager.fileStorage.list.fd0310d0') }} </a-radio>
|
||||
<a-radio :value="false"> {{ $t('pages.file-manager.fileStorage.list.55b7e6b6') }} </a-radio>
|
||||
<a-radio :value="true"> {{ $t('i18n.2be75b1044') }} </a-radio>
|
||||
<a-radio :value="false"> {{ $t('i18n.691b11e443') }} </a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
:label="$t('pages.file-manager.fileStorage.list.aaee5dc9')"
|
||||
:label="$t('i18n.2f5e828ecd')"
|
||||
name="aliasCode"
|
||||
:help="$t('pages.file-manager.fileStorage.list.b88f3e29')"
|
||||
:help="$t('i18n.41638b0a48')"
|
||||
>
|
||||
<a-input-search
|
||||
v-model:value="temp.aliasCode"
|
||||
:max-length="50"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.list.4aa61be9')"
|
||||
:placeholder="$t('i18n.8fbcdbc785')"
|
||||
@search="
|
||||
() => {
|
||||
temp = { ...temp, aliasCode: randomStr(6) }
|
||||
@ -213,14 +213,14 @@
|
||||
"
|
||||
>
|
||||
<template #enterButton>
|
||||
<a-button type="primary"> {{ $t('pages.file-manager.fileStorage.list.8a1c9dde') }} </a-button>
|
||||
<a-button type="primary"> {{ $t('i18n.6709f4548f') }} </a-button>
|
||||
</template>
|
||||
</a-input-search>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.list.38259739')" name="description">
|
||||
<a-form-item :label="$t('i18n.8d6f38b4b1')" name="description">
|
||||
<a-textarea
|
||||
v-model:value="temp.description"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.list.1f789f94')"
|
||||
:placeholder="$t('i18n.411672c954')"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
@ -231,37 +231,37 @@
|
||||
v-model:open="editVisible"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="`${$t('pages.file-manager.fileStorage.list.41bfad43')}`"
|
||||
:title="`${$t('i18n.5c3b53e66c')}`"
|
||||
:mask-closable="false"
|
||||
@ok="handleEditOk"
|
||||
>
|
||||
<a-form ref="editForm" :rules="rules" :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.list.94c193de')" name="name">
|
||||
<a-input v-model:value="temp.name" :placeholder="$t('pages.file-manager.fileStorage.list.94c193de')" />
|
||||
<a-form-item :label="$t('i18n.29139c2a1a')" name="name">
|
||||
<a-input v-model:value="temp.name" :placeholder="$t('i18n.29139c2a1a')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.list.86a4093a')" name="keepDay">
|
||||
<a-form-item :label="$t('i18n.824607be6b')" name="keepDay">
|
||||
<a-input-number
|
||||
v-model:value="temp.keepDay"
|
||||
:min="1"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.list.4915fce1')"
|
||||
:placeholder="$t('i18n.e9ea1e7c02')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.list.ef32cc33')" name="global">
|
||||
<a-form-item :label="$t('i18n.3a6970ac26')" name="global">
|
||||
<a-radio-group v-model:value="temp.global">
|
||||
<a-radio :value="true"> {{ $t('pages.file-manager.fileStorage.list.fd0310d0') }} </a-radio>
|
||||
<a-radio :value="false"> {{ $t('pages.file-manager.fileStorage.list.55b7e6b6') }} </a-radio>
|
||||
<a-radio :value="true"> {{ $t('i18n.2be75b1044') }} </a-radio>
|
||||
<a-radio :value="false"> {{ $t('i18n.691b11e443') }} </a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
:label="$t('pages.file-manager.fileStorage.list.aaee5dc9')"
|
||||
:label="$t('i18n.2f5e828ecd')"
|
||||
name="aliasCode"
|
||||
:help="$t('pages.file-manager.fileStorage.list.b88f3e29')"
|
||||
:help="$t('i18n.41638b0a48')"
|
||||
>
|
||||
<a-input-search
|
||||
v-model:value="temp.aliasCode"
|
||||
:max-length="50"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.list.4aa61be9')"
|
||||
:placeholder="$t('i18n.8fbcdbc785')"
|
||||
@search="
|
||||
() => {
|
||||
temp = { ...temp, aliasCode: randomStr(6) }
|
||||
@ -269,14 +269,14 @@
|
||||
"
|
||||
>
|
||||
<template #enterButton>
|
||||
<a-button type="primary"> {{ $t('pages.file-manager.fileStorage.list.8a1c9dde') }} </a-button>
|
||||
<a-button type="primary"> {{ $t('i18n.6709f4548f') }} </a-button>
|
||||
</template>
|
||||
</a-input-search>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.list.38259739')" name="description">
|
||||
<a-form-item :label="$t('i18n.8d6f38b4b1')" name="description">
|
||||
<a-textarea
|
||||
v-model:value="temp.description"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.list.1f789f94')"
|
||||
:placeholder="$t('i18n.411672c954')"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
@ -286,38 +286,38 @@
|
||||
v-if="uploadRemoteFileVisible"
|
||||
v-model:open="uploadRemoteFileVisible"
|
||||
destroy-on-close
|
||||
:title="$t('pages.file-manager.fileStorage.list.d78f10d3')"
|
||||
:title="$t('i18n.5d488af335')"
|
||||
:mask-closable="false"
|
||||
:confirm-loading="confirmLoading"
|
||||
@ok="handleRemoteUpload"
|
||||
>
|
||||
<a-form ref="remoteForm" :model="temp" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" :rules="rules">
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.list.3afe9b11')" name="url">
|
||||
<a-input v-model:value="temp.url" :placeholder="$t('pages.file-manager.fileStorage.list.40ced483')" />
|
||||
<a-form-item :label="$t('i18n.a66fff7541')" name="url">
|
||||
<a-input v-model:value="temp.url" :placeholder="$t('i18n.7457228a61')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.list.86a4093a')" name="keepDay">
|
||||
<a-form-item :label="$t('i18n.824607be6b')" name="keepDay">
|
||||
<a-input-number
|
||||
v-model:value="temp.keepDay"
|
||||
:min="1"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.list.4915fce1')"
|
||||
:placeholder="$t('i18n.e9ea1e7c02')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.list.ef32cc33')" name="global">
|
||||
<a-form-item :label="$t('i18n.3a6970ac26')" name="global">
|
||||
<a-radio-group v-model:value="temp.global">
|
||||
<a-radio :value="true"> {{ $t('pages.file-manager.fileStorage.list.fd0310d0') }} </a-radio>
|
||||
<a-radio :value="false"> {{ $t('pages.file-manager.fileStorage.list.55b7e6b6') }} </a-radio>
|
||||
<a-radio :value="true"> {{ $t('i18n.2be75b1044') }} </a-radio>
|
||||
<a-radio :value="false"> {{ $t('i18n.691b11e443') }} </a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
:label="$t('pages.file-manager.fileStorage.list.aaee5dc9')"
|
||||
:label="$t('i18n.2f5e828ecd')"
|
||||
name="aliasCode"
|
||||
:help="$t('pages.file-manager.fileStorage.list.b88f3e29')"
|
||||
:help="$t('i18n.41638b0a48')"
|
||||
>
|
||||
<a-input-search
|
||||
v-model:value="temp.aliasCode"
|
||||
:max-length="50"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.list.4aa61be9')"
|
||||
:placeholder="$t('i18n.8fbcdbc785')"
|
||||
@search="
|
||||
() => {
|
||||
temp = { ...temp, aliasCode: randomStr(6) }
|
||||
@ -325,14 +325,14 @@
|
||||
"
|
||||
>
|
||||
<template #enterButton>
|
||||
<a-button type="primary"> {{ $t('pages.file-manager.fileStorage.list.8a1c9dde') }} </a-button>
|
||||
<a-button type="primary"> {{ $t('i18n.6709f4548f') }} </a-button>
|
||||
</template>
|
||||
</a-input-search>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.list.38259739')" name="description">
|
||||
<a-form-item :label="$t('i18n.8d6f38b4b1')" name="description">
|
||||
<a-textarea
|
||||
v-model:value="temp.description"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.list.1f789f94')"
|
||||
:placeholder="$t('i18n.411672c954')"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
@ -342,7 +342,7 @@
|
||||
v-if="triggerVisible"
|
||||
v-model:open="triggerVisible"
|
||||
destroy-on-close
|
||||
:title="$t('pages.file-manager.fileStorage.list.a7210bdc')"
|
||||
:title="$t('i18n.e7e8d4c1fb')"
|
||||
width="50%"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
@ -350,17 +350,17 @@
|
||||
<a-form ref="editTriggerForm" :model="temp" :label-col="{ span: 6 }" :wrapper-col="{ span: 16 }">
|
||||
<a-tabs default-active-key="1">
|
||||
<template #rightExtra>
|
||||
<a-tooltip :title="$t('pages.file-manager.fileStorage.list.27e4eccc')">
|
||||
<a-tooltip :title="$t('i18n.84415a6bb1')">
|
||||
<a-button type="primary" size="small" @click="resetTrigger">{{
|
||||
$t('pages.file-manager.fileStorage.list.da1d2343')
|
||||
$t('i18n.4b9c3271dc')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-tab-pane key="1" :tab="$t('pages.file-manager.fileStorage.list.12b6d613')">
|
||||
<a-tab-pane key="1" :tab="$t('i18n.0b58866c3e')">
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('pages.file-manager.fileStorage.list.f0c647b3')}(${$t(
|
||||
:message="`${$t('i18n.d911cffcd5')}(${$t(
|
||||
'pages.file-manager.fileStorage.list.a5873c3e'
|
||||
)})`"
|
||||
>
|
||||
@ -373,29 +373,29 @@
|
||||
</a-alert>
|
||||
<a :href="temp.triggerDownloadUrl" target="_blank">
|
||||
<a-button size="small" type="primary"
|
||||
><DownloadOutlined />{{ $t('pages.file-manager.fileStorage.list.255cc40a') }}</a-button
|
||||
><DownloadOutlined />{{ $t('i18n.2a813bc3eb') }}</a-button
|
||||
>
|
||||
</a>
|
||||
</a-space>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane v-if="temp.triggerAliasDownloadUrl" :tab="$t('pages.file-manager.fileStorage.list.c28d3bfb')">
|
||||
<a-tab-pane v-if="temp.triggerAliasDownloadUrl" :tab="$t('i18n.d61af4e686')">
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-alert :message="$t('pages.file-manager.fileStorage.list.46d9b29')" type="warning">
|
||||
<a-alert :message="$t('i18n.947d983961')" type="warning">
|
||||
<template #description>
|
||||
<ul>
|
||||
<li>
|
||||
{{ $t('pages.file-manager.fileStorage.list.9568db65') }}=createTimeMillis:desc
|
||||
{{ $t('i18n.ac762710a5') }}=createTimeMillis:desc
|
||||
|
||||
<p>{{ $t('pages.file-manager.fileStorage.list.c0aa2813') }}</p>
|
||||
<p>{{ $t('i18n.35fbad84cb') }}</p>
|
||||
</li>
|
||||
<li>{{ $t('pages.file-manager.fileStorage.list.ce130623') }}</li>
|
||||
<li>{{ $t('pages.file-manager.fileStorage.list.7d507a40') }}</li>
|
||||
<li>{{ $t('i18n.c83752739f') }}</li>
|
||||
<li>{{ $t('i18n.4055a1ee9c') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('pages.file-manager.fileStorage.list.f0c647b3')}(${$t(
|
||||
:message="`${$t('i18n.d911cffcd5')}(${$t(
|
||||
'pages.file-manager.fileStorage.list.a5873c3e'
|
||||
)})`"
|
||||
>
|
||||
@ -408,7 +408,7 @@
|
||||
</a-alert>
|
||||
<a :href="temp.triggerAliasDownloadUrl" target="_blank">
|
||||
<a-button size="small" type="primary"
|
||||
><DownloadOutlined />{{ $t('pages.file-manager.fileStorage.list.255cc40a') }}</a-button
|
||||
><DownloadOutlined />{{ $t('i18n.2a813bc3eb') }}</a-button
|
||||
>
|
||||
</a>
|
||||
</a-space>
|
||||
@ -422,7 +422,7 @@
|
||||
v-model:open="releaseFileVisible"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.file-manager.fileStorage.list.b104cb8')"
|
||||
:title="$t('i18n.7e930b95ef')"
|
||||
width="70%"
|
||||
:mask-closable="false"
|
||||
@ok="releaseFileOk()"
|
||||
@ -453,10 +453,10 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.file-manager.fileStorage.list.43105e21') }}
|
||||
{{ $t('i18n.625fb26b4b') }}
|
||||
</a-button>
|
||||
<a-button type="primary" @click="handerConfirm">
|
||||
{{ $t('pages.file-manager.fileStorage.list.e8e9db25') }}
|
||||
{{ $t('i18n.38cf16f220') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</div>
|
||||
@ -510,26 +510,26 @@ export default {
|
||||
list: [],
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.d7154d9e'),
|
||||
title: this.$t('i18n.c11eb9deff'),
|
||||
dataIndex: 'id',
|
||||
ellipsis: true,
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.bb769c1d'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: 'name',
|
||||
ellipsis: true,
|
||||
width: 150
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.aaee5dc9'),
|
||||
title: this.$t('i18n.2f5e828ecd'),
|
||||
dataIndex: 'aliasCode',
|
||||
ellipsis: true,
|
||||
width: 100,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.1295c671'),
|
||||
title: this.$t('i18n.58f9666705'),
|
||||
dataIndex: 'size',
|
||||
sorter: true,
|
||||
ellipsis: true,
|
||||
@ -537,28 +537,28 @@ export default {
|
||||
width: '100px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.be38837'),
|
||||
title: this.$t('i18n.242d641eab'),
|
||||
dataIndex: 'extName',
|
||||
ellipsis: true,
|
||||
tooltip: true,
|
||||
width: '80px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.f4be5920'),
|
||||
title: this.$t('i18n.fffd3ce745'),
|
||||
dataIndex: 'workspaceId',
|
||||
ellipsis: true,
|
||||
|
||||
width: '90px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.b8b8d2e8'),
|
||||
title: this.$t('i18n.26ca20b161'),
|
||||
dataIndex: 'source',
|
||||
ellipsis: true,
|
||||
|
||||
width: '80px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.38140da6'),
|
||||
title: this.$t('i18n.eaa5d7cb9b'),
|
||||
dataIndex: 'validUntil',
|
||||
sorter: true,
|
||||
customRender: ({ text }) => {
|
||||
@ -570,42 +570,42 @@ export default {
|
||||
width: '100px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.34e8b7bd'),
|
||||
title: this.$t('i18n.a3d0154996'),
|
||||
dataIndex: 'exists',
|
||||
ellipsis: true,
|
||||
|
||||
width: '80px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.db3c9202'),
|
||||
title: this.$t('i18n.95a43eaa59'),
|
||||
dataIndex: 'createUser',
|
||||
ellipsis: true,
|
||||
tooltip: true,
|
||||
width: '120px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.916db24b'),
|
||||
title: this.$t('i18n.9baca0054e'),
|
||||
dataIndex: 'modifyUser',
|
||||
ellipsis: true,
|
||||
tooltip: true,
|
||||
width: '120px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.f06e8846'),
|
||||
title: this.$t('i18n.eca37cb072'),
|
||||
dataIndex: 'createTimeMillis',
|
||||
sorter: true,
|
||||
customRender: ({ text }) => parseTime(text),
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.61164914'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'modifyTimeMillis',
|
||||
sorter: true,
|
||||
customRender: ({ text }) => parseTime(text),
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.fileStorage.list.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
@ -616,8 +616,8 @@ export default {
|
||||
],
|
||||
|
||||
rules: {
|
||||
name: [{ required: true, message: this.$t('pages.file-manager.fileStorage.list.20c02197'), trigger: 'blur' }],
|
||||
url: [{ required: true, message: this.$t('pages.file-manager.fileStorage.list.cc2bc679'), trigger: 'blur' }]
|
||||
name: [{ required: true, message: this.$t('i18n.7aa81d1573'), trigger: 'blur' }],
|
||||
url: [{ required: true, message: this.$t('i18n.f4dd45fca9'), trigger: 'blur' }]
|
||||
},
|
||||
|
||||
temp: {},
|
||||
@ -686,7 +686,7 @@ export default {
|
||||
// 判断文件
|
||||
if (this.fileList.length === 0) {
|
||||
$notification.success({
|
||||
message: this.$t('pages.file-manager.fileStorage.list.25d31749')
|
||||
message: this.$t('i18n.9febf31146')
|
||||
})
|
||||
return false
|
||||
}
|
||||
@ -714,12 +714,12 @@ export default {
|
||||
if (res.data) {
|
||||
//
|
||||
$notification.warning({
|
||||
message: `${this.$t('pages.file-manager.fileStorage.list.67888d26')},${this.$t(
|
||||
message: `${this.$t('i18n.a17b5ab021')},${this.$t(
|
||||
'pages.file-manager.fileStorage.list.6a721706'
|
||||
)}${res.data.name} ,${this.$t('pages.file-manager.fileStorage.list.e83695d7')}${
|
||||
)}${res.data.name} ,${this.$t('i18n.ee992d9744')}${
|
||||
res.data.workspaceId === 'GLOBAL'
|
||||
? this.$t('pages.file-manager.fileStorage.list.f5bb2364')
|
||||
: this.$t('pages.file-manager.fileStorage.list.5edb2e8a')
|
||||
? this.$t('i18n.0a60ac8f02')
|
||||
: this.$t('i18n.c9744f45e7')
|
||||
}`
|
||||
})
|
||||
//
|
||||
@ -824,11 +824,11 @@ export default {
|
||||
// 删除文件
|
||||
handleDelete(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.file-manager.fileStorage.list.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.file-manager.fileStorage.list.533f191c') + record.name,
|
||||
okText: this.$t('pages.file-manager.fileStorage.list.7da4a591'),
|
||||
cancelText: this.$t('pages.file-manager.fileStorage.list.43105e21'),
|
||||
content: this.$t('i18n.3787283bf4') + record.name,
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return delFile({
|
||||
id: record.id
|
||||
@ -847,16 +847,16 @@ export default {
|
||||
handleBatchDelete() {
|
||||
if (!this.tableSelections || this.tableSelections.length <= 0) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.file-manager.fileStorage.list.2ad67cae')
|
||||
message: this.$t('i18n.5d817c403e')
|
||||
})
|
||||
return
|
||||
}
|
||||
$confirm({
|
||||
title: this.$t('pages.file-manager.fileStorage.list.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.file-manager.fileStorage.list.8cb13ac8'),
|
||||
okText: this.$t('pages.file-manager.fileStorage.list.7da4a591'),
|
||||
cancelText: this.$t('pages.file-manager.fileStorage.list.43105e21'),
|
||||
content: this.$t('i18n.52d24791ab'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return delFile({ ids: this.tableSelections.join(',') }).then((res) => {
|
||||
if (res.code === 200) {
|
||||
@ -970,7 +970,7 @@ export default {
|
||||
handerConfirm() {
|
||||
if (!this.tableSelections.length) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.file-manager.fileStorage.list.e1f69633')
|
||||
message: this.$t('i18n.8d62b202d9')
|
||||
})
|
||||
return
|
||||
}
|
||||
@ -979,7 +979,7 @@ export default {
|
||||
})
|
||||
if (!selectData.length) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.file-manager.fileStorage.list.e1f69633')
|
||||
message: this.$t('i18n.8d62b202d9')
|
||||
})
|
||||
return
|
||||
}
|
||||
|
@ -7,22 +7,22 @@
|
||||
:label-col="{ span: 4 }"
|
||||
:wrapper-col="{ span: 20 }"
|
||||
>
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.releaseFile.e62a5bf3')" name="name">
|
||||
<a-form-item :label="$t('i18n.ce23a42b47')" name="name">
|
||||
<a-input
|
||||
v-model:value="temp.name"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.releaseFile.70cf48dc')"
|
||||
:placeholder="$t('i18n.5f4c724e61')"
|
||||
:max-length="50"
|
||||
/>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.file-manager.fileStorage.releaseFile.73754f45')" name="taskType">
|
||||
<a-form-item :label="$t('i18n.f98994f7ec')" name="taskType">
|
||||
<a-radio-group v-model:value="temp.taskType" @change="taskTypeChange">
|
||||
<a-radio :value="0"> SSH </a-radio>
|
||||
<a-radio :value="1"> {{ $t('pages.file-manager.fileStorage.releaseFile.602a0a5e') }} </a-radio>
|
||||
<a-radio :value="1"> {{ $t('i18n.3bf3c0a8d6') }} </a-radio>
|
||||
</a-radio-group>
|
||||
<template #help>
|
||||
<template v-if="temp.taskType === 0"
|
||||
>{{ $t('pages.file-manager.fileStorage.releaseFile.469af1fa') }}
|
||||
>{{ $t('i18n.28bf369f34') }}
|
||||
</template>
|
||||
</template>
|
||||
</a-form-item>
|
||||
@ -30,7 +30,7 @@
|
||||
<a-form-item
|
||||
v-if="temp.taskType === 0"
|
||||
name="taskDataIds"
|
||||
:label="$t('pages.file-manager.fileStorage.releaseFile.6ed1da89')"
|
||||
:label="$t('i18n.b188393ea7')"
|
||||
>
|
||||
<a-row>
|
||||
<a-col :span="22">
|
||||
@ -48,7 +48,7 @@
|
||||
}
|
||||
"
|
||||
mode="multiple"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.releaseFile.f1f8e3bc')"
|
||||
:placeholder="$t('i18n.260a3234f2')"
|
||||
>
|
||||
<a-select-option v-for="ssh in sshList" :key="ssh.id">
|
||||
<a-tooltip :title="ssh.name"> {{ ssh.name }}</a-tooltip>
|
||||
@ -63,7 +63,7 @@
|
||||
<a-form-item
|
||||
v-else-if="temp.taskType === 1"
|
||||
name="taskDataIds"
|
||||
:label="$t('pages.file-manager.fileStorage.releaseFile.61c0e0ab')"
|
||||
:label="$t('i18n.473badc394')"
|
||||
>
|
||||
<a-row>
|
||||
<a-col :span="22">
|
||||
@ -81,7 +81,7 @@
|
||||
}
|
||||
"
|
||||
mode="multiple"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.releaseFile.89a4deb8')"
|
||||
:placeholder="$t('i18n.f8a613d247')"
|
||||
>
|
||||
<a-select-option v-for="ssh in nodeList" :key="ssh.id">
|
||||
<a-tooltip :title="ssh.name"> {{ ssh.name }}</a-tooltip>
|
||||
@ -94,9 +94,9 @@
|
||||
</a-row>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item name="releasePathParent" :label="$t('pages.file-manager.fileStorage.releaseFile.b6c9f9c')">
|
||||
<a-form-item name="releasePathParent" :label="$t('i18n.dbb2df00cf')">
|
||||
<template #help>
|
||||
<a-tooltip :title="$t('pages.file-manager.fileStorage.releaseFile.61fec7a9')"
|
||||
<a-tooltip :title="$t('i18n.bfe8fab5cd')"
|
||||
><a-button
|
||||
size="small"
|
||||
type="link"
|
||||
@ -106,7 +106,7 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
<InfoCircleOutlined />{{ $t('pages.file-manager.fileStorage.releaseFile.31f003d') }}
|
||||
<InfoCircleOutlined />{{ $t('i18n.1e5533c401') }}
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
@ -116,7 +116,7 @@
|
||||
show-search
|
||||
allow-clear
|
||||
style="width: 30%"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.releaseFile.fda0ef21')"
|
||||
:placeholder="$t('i18n.edd716f524')"
|
||||
>
|
||||
<a-select-option v-for="item in accessList" :key="item">
|
||||
<a-tooltip :title="item">{{ item }}</a-tooltip>
|
||||
@ -129,7 +129,7 @@
|
||||
<a-input
|
||||
v-model:value="temp.releasePathSecondary"
|
||||
style="width: 70%"
|
||||
:placeholder="$t('pages.file-manager.fileStorage.releaseFile.a6ba1641')"
|
||||
:placeholder="$t('i18n.dc0d06f9c7')"
|
||||
/>
|
||||
</a-form-item-rest>
|
||||
</a-input-group>
|
||||
@ -137,27 +137,27 @@
|
||||
|
||||
<a-form-item name="releaseBeforeCommand">
|
||||
<template #label>
|
||||
{{ $t('pages.file-manager.fileStorage.releaseFile.1cf6b640') }}
|
||||
{{ $t('i18n.cfb00269fd') }}
|
||||
<a-tooltip>
|
||||
<template #title>
|
||||
<ul>
|
||||
<li>{{ $t('pages.file-manager.fileStorage.releaseFile.9bab648c') }}</li>
|
||||
<li>{{ $t('pages.file-manager.fileStorage.releaseFile.52373158') }}</li>
|
||||
<li>{{ $t('pages.file-manager.fileStorage.releaseFile.6fcc2557') }}</li>
|
||||
<li>{{ $t('i18n.799ac8bf40') }}</li>
|
||||
<li>{{ $t('i18n.5fbde027e3') }}</li>
|
||||
<li>{{ $t('i18n.a9c999e0bd') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template #help>
|
||||
<div v-if="scriptTabKey === 'before'">{{ $t('pages.file-manager.fileStorage.releaseFile.5fcb4809') }}</div>
|
||||
<div v-if="scriptTabKey === 'before'">{{ $t('i18n.00de0ae1da') }}</div>
|
||||
<div v-else-if="scriptTabKey === 'after'">
|
||||
{{ $t('pages.file-manager.fileStorage.releaseFile.3fcb1a9a') }}
|
||||
{{ $t('i18n.08ac1eace7') }}
|
||||
</div>
|
||||
</template>
|
||||
<a-form-item-rest>
|
||||
<a-tabs v-model:activeKey="scriptTabKey" tab-position="right" type="card">
|
||||
<a-tab-pane key="before" :tab="$t('pages.file-manager.fileStorage.releaseFile.cb2367c')">
|
||||
<a-tab-pane key="before" :tab="$t('i18n.d0c879f900')">
|
||||
<code-editor
|
||||
v-model:content="temp.beforeScript"
|
||||
height="40vh"
|
||||
@ -169,8 +169,8 @@
|
||||
<template #tool_before>
|
||||
<a-space>
|
||||
<a-tag>
|
||||
<b>{{ $t('pages.file-manager.fileStorage.releaseFile.cb2367c') }}</b>
|
||||
{{ $t('pages.file-manager.fileStorage.releaseFile.985968bf') }}
|
||||
<b>{{ $t('i18n.d0c879f900') }}</b>
|
||||
{{ $t('i18n.1a6aa24e76') }}
|
||||
</a-tag>
|
||||
<a-button
|
||||
type="link"
|
||||
@ -179,13 +179,13 @@
|
||||
chooseScriptVisible = 1
|
||||
}
|
||||
"
|
||||
>{{ $t('pages.file-manager.fileStorage.releaseFile.d236a971') }}</a-button
|
||||
>{{ $t('i18n.54f271cd41') }}</a-button
|
||||
>
|
||||
</a-space>
|
||||
</template>
|
||||
</code-editor>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="after" :tab="$t('pages.file-manager.fileStorage.releaseFile.e643b0a1')">
|
||||
<a-tab-pane key="after" :tab="$t('i18n.9b1c5264a0')">
|
||||
<code-editor
|
||||
v-model:content="temp.afterScript"
|
||||
height="40vh"
|
||||
@ -196,7 +196,7 @@
|
||||
>
|
||||
<template #tool_before>
|
||||
<a-space>
|
||||
<a-tag>{{ $t('pages.file-manager.fileStorage.releaseFile.278fde90') }}</a-tag>
|
||||
<a-tag>{{ $t('i18n.e7ffc33d05') }}</a-tag>
|
||||
<a-button
|
||||
type="link"
|
||||
@click="
|
||||
@ -204,7 +204,7 @@
|
||||
chooseScriptVisible = 2
|
||||
}
|
||||
"
|
||||
>{{ $t('pages.file-manager.fileStorage.releaseFile.d236a971') }}</a-button
|
||||
>{{ $t('i18n.54f271cd41') }}</a-button
|
||||
>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -219,7 +219,7 @@
|
||||
v-if="configDir"
|
||||
v-model:open="configDir"
|
||||
destroy-on-close
|
||||
:title="`${$t('pages.file-manager.fileStorage.releaseFile.6978ea2b')}`"
|
||||
:title="`${$t('i18n.eee6510292')}`"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
@cancel="
|
||||
@ -242,7 +242,7 @@
|
||||
<CustomDrawer
|
||||
v-if="chooseScriptVisible != 0"
|
||||
destroy-on-close
|
||||
:title="$t('pages.file-manager.fileStorage.releaseFile.952117a8')"
|
||||
:title="$t('i18n.a056d9c4b3')"
|
||||
placement="right"
|
||||
:open="chooseScriptVisible != 0"
|
||||
width="70vw"
|
||||
@ -291,7 +291,7 @@
|
||||
chooseScriptVisible = false
|
||||
}
|
||||
"
|
||||
>{{ $t('pages.file-manager.fileStorage.releaseFile.a0451c97') }}</a-button
|
||||
>{{ $t('i18n.625fb26b4b') }}</a-button
|
||||
>
|
||||
<a-button
|
||||
type="primary"
|
||||
@ -300,7 +300,7 @@
|
||||
$refs['scriptPage'].handerConfirm()
|
||||
}
|
||||
"
|
||||
>{{ $t('pages.file-manager.fileStorage.releaseFile.1cbe2507') }}</a-button
|
||||
>{{ $t('i18n.e83a256e4f') }}</a-button
|
||||
>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -326,23 +326,23 @@ export default {
|
||||
temp: {},
|
||||
releaseFileRules: {
|
||||
name: [
|
||||
{ required: true, message: this.$t('pages.file-manager.fileStorage.releaseFile.378f28a1'), trigger: 'blur' }
|
||||
{ required: true, message: this.$t('i18n.89d18c88a3'), trigger: 'blur' }
|
||||
],
|
||||
|
||||
taskType: [
|
||||
{ required: true, message: this.$t('pages.file-manager.fileStorage.releaseFile.c33e3d16'), trigger: 'blur' }
|
||||
{ required: true, message: this.$t('i18n.29b48a76be'), trigger: 'blur' }
|
||||
],
|
||||
|
||||
releasePath: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('pages.file-manager.fileStorage.releaseFile.8092e55'),
|
||||
message: this.$t('i18n.be28f10eb6'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
|
||||
taskDataIds: [
|
||||
{ required: true, message: this.$t('pages.file-manager.fileStorage.releaseFile.6a05f5c8'), trigger: 'blur' }
|
||||
{ required: true, message: this.$t('i18n.3e51d1bc9c'), trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
sshList: [],
|
||||
|
@ -1,37 +1,37 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-form :model="temp" :label-col="{ span: 2 }" :wrapper-col="{ span: 20 }">
|
||||
<a-form-item :label="$t('pages.file-manager.release-task.details.e62a5bf3')" name="name">
|
||||
<a-form-item :label="$t('i18n.ce23a42b47')" name="name">
|
||||
<a-input
|
||||
:placeholder="$t('pages.file-manager.release-task.details.2ab36118')"
|
||||
:placeholder="$t('i18n.5f4c724e61')"
|
||||
:disabled="true"
|
||||
:value="temp.taskData && temp.taskData.name"
|
||||
/>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.file-manager.release-task.details.907f888f')" name="taskType">
|
||||
<a-form-item :label="$t('i18n.f98994f7ec')" name="taskType">
|
||||
<a-radio-group :value="temp.taskData && temp.taskData.taskType" :disabled="true">
|
||||
<a-radio :value="0"> SSH </a-radio>
|
||||
<a-radio :value="1"> {{ $t('pages.file-manager.release-task.details.602a0a5e') }} </a-radio>
|
||||
<a-radio :value="1"> {{ $t('i18n.3bf3c0a8d6') }} </a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item name="releasePath" :label="$t('pages.file-manager.release-task.details.b6c9f9c')">
|
||||
<a-form-item name="releasePath" :label="$t('i18n.dbb2df00cf')">
|
||||
<a-input
|
||||
:placeholder="$t('pages.file-manager.release-task.details.2ab36118')"
|
||||
:placeholder="$t('i18n.5f4c724e61')"
|
||||
:disabled="true"
|
||||
:value="temp.taskData && temp.taskData.releasePath"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
name="releasePath"
|
||||
:label="$t('pages.file-manager.release-task.details.9c32c887')"
|
||||
:label="$t('i18n.3fea7ca76c')"
|
||||
:help="temp.taskData && temp.taskData.statusMsg"
|
||||
>
|
||||
{{ statusMap[temp.taskData && temp.taskData.status] || $t('pages.file-manager.release-task.details.ca1cdfa6') }}
|
||||
{{ statusMap[temp.taskData && temp.taskData.status] || $t('i18n.1622dc9b6b') }}
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.file-manager.release-task.details.8fb8f5f9')">
|
||||
<a-form-item :label="$t('i18n.c84ddfe8a6')">
|
||||
<a-tabs :active-key="activeKey" @change="tabCallback">
|
||||
<a-tab-pane v-for="item in temp.taskList" :key="item.id">
|
||||
<template #tab>
|
||||
@ -62,9 +62,9 @@
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.file-manager.release-task.details.86c3791a')" name="releaseBeforeCommand">
|
||||
<a-form-item :label="$t('i18n.cfb00269fd')" name="releaseBeforeCommand">
|
||||
<a-tabs tab-position="right">
|
||||
<a-tab-pane key="before" :tab="$t('pages.file-manager.release-task.details.5eadc84d')">
|
||||
<a-tab-pane key="before" :tab="$t('i18n.d0c879f900')">
|
||||
<code-editor
|
||||
height="40vh"
|
||||
:content="temp.taskData && temp.taskData.beforeScript"
|
||||
@ -74,7 +74,7 @@
|
||||
}"
|
||||
></code-editor>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="after" :tab="$t('pages.file-manager.release-task.details.e643b0a1')">
|
||||
<a-tab-pane key="after" :tab="$t('i18n.9b1c5264a0')">
|
||||
<code-editor
|
||||
height="40vh"
|
||||
:content="temp.taskData && temp.taskData.afterScript"
|
||||
|
@ -21,7 +21,7 @@
|
||||
<a-space wrap class="search-box">
|
||||
<a-input
|
||||
v-model:value="listQuery['%name%']"
|
||||
:placeholder="$t('pages.file-manager.release-task.list.2ab36118')"
|
||||
:placeholder="$t('i18n.ce23a42b47')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
@ -39,7 +39,7 @@
|
||||
}
|
||||
"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.file-manager.release-task.list.6e06fe4f')"
|
||||
:placeholder="$t('i18n.3fea7ca76c')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="(val, key) in statusMap" :key="key">{{ val }}</a-select-option>
|
||||
@ -58,14 +58,14 @@
|
||||
}
|
||||
"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.file-manager.release-task.list.68615fc7')"
|
||||
:placeholder="$t('i18n.8aa25f5fbe')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="(val, key) in taskTypeMap" :key="key">{{ val }}</a-select-option>
|
||||
</a-select>
|
||||
<a-tooltip :title="$t('pages.file-manager.release-task.list.249b5548')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.file-manager.release-task.list.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
@ -87,35 +87,35 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'status'">
|
||||
<a-tag v-if="text === 2" color="green">{{
|
||||
statusMap[text] || $t('pages.file-manager.release-task.list.5f51a112')
|
||||
statusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else-if="text === 0 || text === 1" color="orange">{{
|
||||
statusMap[text] || $t('pages.file-manager.release-task.list.5f51a112')
|
||||
statusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else-if="text === 4" color="blue">
|
||||
{{ statusMap[text] || $t('pages.file-manager.release-task.list.5f51a112') }}
|
||||
{{ statusMap[text] || $t('i18n.1622dc9b6b') }}
|
||||
</a-tag>
|
||||
<a-tag v-else-if="text === 3" color="red">{{
|
||||
statusMap[text] || $t('pages.file-manager.release-task.list.5f51a112')
|
||||
statusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else>{{ statusMap[text] || $t('pages.file-manager.release-task.list.5f51a112') }}</a-tag>
|
||||
<a-tag v-else>{{ statusMap[text] || $t('i18n.1622dc9b6b') }}</a-tag>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'taskType'">
|
||||
<span>{{ taskTypeMap[text] || $t('pages.file-manager.release-task.list.5f51a112') }}</span>
|
||||
<span>{{ taskTypeMap[text] || $t('i18n.1622dc9b6b') }}</span>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'fileType'">
|
||||
<span v-if="text == 2">{{ $t('pages.file-manager.release-task.list.c3a20e28') }}</span>
|
||||
<span v-else>{{ $t('pages.file-manager.release-task.list.f183985') }}</span>
|
||||
<span v-if="text == 2">{{ $t('i18n.28f6e7a67b') }}</span>
|
||||
<span v-else>{{ $t('i18n.26183c99bf') }}</span>
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button type="primary" size="small" @click="handleView(record)">{{
|
||||
$t('pages.file-manager.release-task.list.1ba84995')
|
||||
$t('i18n.607e7a4f37')
|
||||
}}</a-button>
|
||||
|
||||
<a-button type="primary" size="small" @click="handleRetask(record)">{{
|
||||
$t('pages.file-manager.release-task.list.a21afd32')
|
||||
$t('i18n.9e09315960')
|
||||
}}</a-button>
|
||||
<a-button
|
||||
type="primary"
|
||||
@ -123,7 +123,7 @@
|
||||
size="small"
|
||||
:disabled="!(record.status === 0 || record.status === 1)"
|
||||
@click="handleCancelTask(record)"
|
||||
>{{ $t('pages.file-manager.release-task.list.43105e21') }}</a-button
|
||||
>{{ $t('i18n.625fb26b4b') }}</a-button
|
||||
>
|
||||
<a-button
|
||||
type="primary"
|
||||
@ -131,7 +131,7 @@
|
||||
size="small"
|
||||
:disabled="record.status === 0 || record.status === 1"
|
||||
@click="handleDelete(record)"
|
||||
>{{ $t('pages.file-manager.release-task.list.dd20d11c') }}</a-button
|
||||
>{{ $t('i18n.2f4aaddde3') }}</a-button
|
||||
>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -140,7 +140,7 @@
|
||||
<!-- 任务详情 -->
|
||||
<CustomDrawer
|
||||
v-if="detailsVisible"
|
||||
:title="$t('pages.file-manager.release-task.list.cc90625')"
|
||||
:title="$t('i18n.4a98bf0c68')"
|
||||
placement="right"
|
||||
:width="'80vw'"
|
||||
:open="detailsVisible"
|
||||
@ -158,7 +158,7 @@
|
||||
v-model:open="releaseFileVisible"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.file-manager.release-task.list.68203efe')"
|
||||
:title="$t('i18n.7e930b95ef')"
|
||||
width="70%"
|
||||
:mask-closable="false"
|
||||
@ok="handleReCrateTask"
|
||||
@ -170,25 +170,25 @@
|
||||
:label-col="{ span: 4 }"
|
||||
:wrapper-col="{ span: 20 }"
|
||||
>
|
||||
<a-form-item :label="$t('pages.file-manager.release-task.list.2ab36118')" name="name">
|
||||
<a-form-item :label="$t('i18n.ce23a42b47')" name="name">
|
||||
<a-input
|
||||
v-model:value="temp.name"
|
||||
:placeholder="$t('pages.file-manager.release-task.list.1ed66592')"
|
||||
:placeholder="$t('i18n.5f4c724e61')"
|
||||
:max-length="50"
|
||||
/>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.file-manager.release-task.list.4a07d135')" name="taskType">
|
||||
<a-form-item :label="$t('i18n.f98994f7ec')" name="taskType">
|
||||
<a-radio-group v-model:value="temp.taskType" :disabled="true">
|
||||
<a-radio :value="0"> SSH </a-radio>
|
||||
<a-radio :value="1"> {{ $t('pages.file-manager.release-task.list.602a0a5e') }} </a-radio>
|
||||
<a-radio :value="1"> {{ $t('i18n.3bf3c0a8d6') }} </a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item
|
||||
v-if="temp.taskType === 0"
|
||||
name="taskDataIds"
|
||||
:label="$t('pages.file-manager.release-task.list.5f4a29c8')"
|
||||
:label="$t('i18n.b188393ea7')"
|
||||
>
|
||||
<a-row>
|
||||
<a-col :span="22">
|
||||
@ -206,7 +206,7 @@
|
||||
}
|
||||
"
|
||||
mode="multiple"
|
||||
:placeholder="$t('pages.file-manager.release-task.list.1e02c6a8')"
|
||||
:placeholder="$t('i18n.260a3234f2')"
|
||||
>
|
||||
<a-select-option v-for="ssh in sshList" :key="ssh.id">
|
||||
<a-tooltip :title="ssh.name"> {{ ssh.name }}</a-tooltip>
|
||||
@ -221,7 +221,7 @@
|
||||
<a-form-item
|
||||
v-else-if="temp.taskType === 1"
|
||||
name="taskDataIds"
|
||||
:label="$t('pages.file-manager.release-task.list.61c0e0ab')"
|
||||
:label="$t('i18n.473badc394')"
|
||||
>
|
||||
<a-row>
|
||||
<a-col :span="22">
|
||||
@ -239,7 +239,7 @@
|
||||
}
|
||||
"
|
||||
mode="multiple"
|
||||
:placeholder="$t('pages.file-manager.release-task.list.2c33c91c')"
|
||||
:placeholder="$t('i18n.f8a613d247')"
|
||||
>
|
||||
<a-select-option v-for="ssh in nodeList" :key="ssh.id">
|
||||
<a-tooltip :title="ssh.name"> {{ ssh.name }}</a-tooltip>
|
||||
@ -252,22 +252,22 @@
|
||||
</a-row>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item name="releasePathParent" :label="$t('pages.file-manager.release-task.list.70eaa090')">
|
||||
<a-form-item name="releasePathParent" :label="$t('i18n.dbb2df00cf')">
|
||||
<a-input
|
||||
v-model:value="temp.releasePath"
|
||||
:placeholder="$t('pages.file-manager.release-task.list.b6eb202d')"
|
||||
:placeholder="$t('i18n.ee9a51488f')"
|
||||
:disabled="true"
|
||||
/>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item name="releasePathParent" :label="$t('pages.file-manager.release-task.list.6e720a66')">
|
||||
<a-input v-model:value="temp.fileId" :placeholder="$t('pages.file-manager.release-task.list.b5feca24')" />
|
||||
<a-form-item name="releasePathParent" :label="$t('i18n.a91ce167c1')">
|
||||
<a-input v-model:value="temp.fileId" :placeholder="$t('i18n.ea8a79546f')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.file-manager.release-task.list.1cf6b640')" name="releaseBeforeCommand">
|
||||
<a-form-item :label="$t('i18n.cfb00269fd')" name="releaseBeforeCommand">
|
||||
<a-form-item-rest>
|
||||
<a-tabs tab-position="right">
|
||||
<a-tab-pane key="before" :tab="$t('pages.file-manager.release-task.list.5eadc84d')">
|
||||
<a-tab-pane key="before" :tab="$t('i18n.d0c879f900')">
|
||||
<code-editor
|
||||
v-model:content="temp.beforeScript"
|
||||
height="40vh"
|
||||
@ -276,9 +276,9 @@
|
||||
}"
|
||||
></code-editor>
|
||||
|
||||
<div style="margin-top: 10px">{{ $t('pages.file-manager.release-task.list.a8adfac6') }}</div>
|
||||
<div style="margin-top: 10px">{{ $t('i18n.00de0ae1da') }}</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="after" :tab="$t('pages.file-manager.release-task.list.e643b0a1')">
|
||||
<a-tab-pane key="after" :tab="$t('i18n.9b1c5264a0')">
|
||||
<code-editor
|
||||
v-model:content="temp.afterScript"
|
||||
height="40vh"
|
||||
@ -287,7 +287,7 @@
|
||||
}"
|
||||
></code-editor>
|
||||
|
||||
<div style="margin-top: 10px">{{ $t('pages.file-manager.release-task.list.fd641392') }}</div>
|
||||
<div style="margin-top: 10px">{{ $t('i18n.08ac1eace7') }}</div>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</a-form-item-rest>
|
||||
@ -299,35 +299,35 @@
|
||||
v-if="viewFileVisible"
|
||||
v-model:open="viewFileVisible"
|
||||
destroy-on-close
|
||||
:title="`${$t('pages.file-manager.release-task.list.35c3c1fa')}`"
|
||||
:title="`${$t('i18n.9de72a79fe')}`"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
>
|
||||
<a-form :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
|
||||
<a-form-item :label="$t('pages.file-manager.release-task.list.a6eb2ded')" name="name">
|
||||
<a-form-item :label="$t('i18n.29139c2a1a')" name="name">
|
||||
{{ temp.name }}
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.file-manager.release-task.list.bac3d3f6')" name="name">
|
||||
<a-form-item :label="$t('i18n.0ff425e276')" name="name">
|
||||
{{ temp.id }}
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.file-manager.release-task.list.f087781')" name="size">
|
||||
<a-form-item :label="$t('i18n.396b7d3f91')" name="size">
|
||||
{{ renderSize(temp.size) }}
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="temp.validUntil"
|
||||
:label="$t('pages.file-manager.release-task.list.bc646985')"
|
||||
:label="$t('i18n.1fa23f4daa')"
|
||||
name="validUntil"
|
||||
>
|
||||
{{ parseTime(temp.validUntil) }}
|
||||
</a-form-item>
|
||||
<a-form-item v-if="temp.workspaceId" :label="$t('pages.file-manager.release-task.list.d8266ef9')" name="global">
|
||||
<a-form-item v-if="temp.workspaceId" :label="$t('i18n.3a6970ac26')" name="global">
|
||||
{{
|
||||
temp.workspaceId === 'GLOBAL'
|
||||
? $t('pages.file-manager.release-task.list.f372618')
|
||||
: $t('pages.file-manager.release-task.list.afacc4cb')
|
||||
? $t('i18n.2be75b1044')
|
||||
: $t('i18n.98d69f8b62')
|
||||
}}
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.file-manager.release-task.list.7cee55c0')" name="description">
|
||||
<a-form-item :label="$t('i18n.8d6f38b4b1')" name="description">
|
||||
{{ temp.description }}
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
@ -368,59 +368,59 @@ export default {
|
||||
confirmLoading: false,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.file-manager.release-task.list.e62a5bf3'),
|
||||
title: this.$t('i18n.78caf7115c'),
|
||||
dataIndex: 'name',
|
||||
ellipsis: true,
|
||||
width: 150,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.release-task.list.b578d6a7'),
|
||||
title: this.$t('i18n.9e2e02ef08'),
|
||||
dataIndex: 'taskType',
|
||||
width: '100px',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.release-task.list.1062add2'),
|
||||
title: this.$t('i18n.9d577fe51b'),
|
||||
dataIndex: 'fileType',
|
||||
width: '100px',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.release-task.list.6e06fe4f'),
|
||||
title: this.$t('i18n.3fea7ca76c'),
|
||||
dataIndex: 'status',
|
||||
width: '100px',
|
||||
ellipsis: true
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.file-manager.release-task.list.a622e852'),
|
||||
title: this.$t('i18n.920f05031b'),
|
||||
dataIndex: 'statusMsg',
|
||||
ellipsis: true,
|
||||
width: 200,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.release-task.list.bac3d3f6'),
|
||||
title: this.$t('i18n.0ff425e276'),
|
||||
dataIndex: 'fileId',
|
||||
ellipsis: true,
|
||||
width: 150
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.release-task.list.70eaa090'),
|
||||
title: this.$t('i18n.dbb2df00cf'),
|
||||
dataIndex: 'releasePath',
|
||||
width: '100px',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.release-task.list.cda0e062'),
|
||||
title: this.$t('i18n.a497562c8e'),
|
||||
dataIndex: 'modifyUser',
|
||||
width: '120px',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.release-task.list.d79dbdb0'),
|
||||
title: this.$t('i18n.b341f9a861'),
|
||||
dataIndex: 'createTimeMillis',
|
||||
sorter: true,
|
||||
ellipsis: true,
|
||||
@ -428,7 +428,7 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.release-task.list.af919b1e'),
|
||||
title: this.$t('i18n.4871f7722d'),
|
||||
dataIndex: 'modifyTimeMillis',
|
||||
sorter: true,
|
||||
ellipsis: true,
|
||||
@ -437,7 +437,7 @@ export default {
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.file-manager.release-task.list.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
align: 'center',
|
||||
|
||||
@ -450,10 +450,10 @@ export default {
|
||||
nodeList: [],
|
||||
releaseFileVisible: false,
|
||||
releaseFileRules: {
|
||||
name: [{ required: true, message: this.$t('pages.file-manager.release-task.list.a539cd9e'), trigger: 'blur' }],
|
||||
name: [{ required: true, message: this.$t('i18n.89d18c88a3'), trigger: 'blur' }],
|
||||
|
||||
taskDataIds: [
|
||||
{ required: true, message: this.$t('pages.file-manager.release-task.list.e7fe7c15'), trigger: 'blur' }
|
||||
{ required: true, message: this.$t('i18n.3e51d1bc9c'), trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
viewFileVisible: false
|
||||
@ -492,11 +492,11 @@ export default {
|
||||
// 删除命令
|
||||
handleDelete(row) {
|
||||
$confirm({
|
||||
title: this.$t('pages.file-manager.release-task.list.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.file-manager.release-task.list.21b52dcb'),
|
||||
okText: this.$t('pages.file-manager.release-task.list.7da4a591'),
|
||||
cancelText: this.$t('pages.file-manager.release-task.list.43105e21'),
|
||||
content: this.$t('i18n.50fe3400c7'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return deleteReleaseTask({
|
||||
id: row.id
|
||||
@ -585,11 +585,11 @@ export default {
|
||||
// 取消
|
||||
handleCancelTask(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.file-manager.release-task.list.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.file-manager.release-task.list.537ede69'),
|
||||
okText: this.$t('pages.file-manager.release-task.list.7da4a591'),
|
||||
cancelText: this.$t('pages.file-manager.release-task.list.43105e21'),
|
||||
content: this.$t('i18n.7824ed010c'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
oonOk: () => {
|
||||
return cancelReleaseTask({ id: record.id }).then((res) => {
|
||||
if (res.code === 200) {
|
||||
@ -615,7 +615,7 @@ export default {
|
||||
this.viewFileVisible = true
|
||||
} else {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.file-manager.release-task.list.a2f846c1')
|
||||
message: this.$t('i18n.3e445d03aa')
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -630,7 +630,7 @@ export default {
|
||||
this.viewFileVisible = true
|
||||
} else {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.file-manager.release-task.list.a2f846c1')
|
||||
message: this.$t('i18n.3e445d03aa')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -24,31 +24,31 @@
|
||||
<a-space>
|
||||
<a-input
|
||||
v-model:value="listQuery['%name%']"
|
||||
:placeholder="$t('pages.file-manager.staticFileStorage.list.a6eb2ded')"
|
||||
:placeholder="$t('i18n.d2e2560089')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
|
||||
<a-input
|
||||
v-model:value="listQuery['extName']"
|
||||
:placeholder="$t('pages.file-manager.staticFileStorage.list.4fd0f685')"
|
||||
:placeholder="$t('i18n.ae809e0295')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="listQuery['id']"
|
||||
:placeholder="$t('pages.file-manager.staticFileStorage.list.8200285')"
|
||||
:placeholder="$t('i18n.2168394b82')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-tooltip :title="$t('pages.file-manager.staticFileStorage.list.cb5a8131')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.file-manager.staticFileStorage.list.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
<!-- <a-button type="primary" @click="handleUpload">上传文件</a-button> -->
|
||||
<a-button type="primary" @click="reScanner">{{
|
||||
$t('pages.file-manager.staticFileStorage.list.21e651b5')
|
||||
$t('i18n.56525d62ac')
|
||||
}}</a-button>
|
||||
|
||||
<a-button
|
||||
@ -57,7 +57,7 @@
|
||||
:disabled="!tableSelections || tableSelections.length <= 0"
|
||||
@click="handleBatchDelete"
|
||||
>
|
||||
{{ $t('pages.file-manager.staticFileStorage.list.b5139d46') }}
|
||||
{{ $t('i18n.7fb62b3011') }}
|
||||
</a-button>
|
||||
<a-button
|
||||
size="small"
|
||||
@ -68,7 +68,7 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
<InfoCircleOutlined /> {{ $t('pages.file-manager.staticFileStorage.list.1ab4dc38') }}
|
||||
<InfoCircleOutlined /> {{ $t('i18n.1e5533c401') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -85,11 +85,11 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'name'">
|
||||
<a-popover :title="$t('pages.file-manager.staticFileStorage.list.334162bc')">
|
||||
<a-popover :title="$t('i18n.73485331c2')">
|
||||
<template #content>
|
||||
<p>{{ $t('pages.file-manager.staticFileStorage.list.48f7e53e') }}{{ record.id }}</p>
|
||||
<p>{{ $t('pages.file-manager.staticFileStorage.list.10902f4f') }}{{ text }}</p>
|
||||
<p>{{ $t('pages.file-manager.staticFileStorage.list.fa56a3f7') }}{{ record.description }}</p>
|
||||
<p>{{ $t('i18n.f37f8407ec') }}{{ record.id }}</p>
|
||||
<p>{{ $t('i18n.b9c52d9a85') }}{{ text }}</p>
|
||||
<p>{{ $t('i18n.46a04cdc9c') }}{{ record.description }}</p>
|
||||
</template>
|
||||
<!-- {{ text }} -->
|
||||
<a-button type="link" style="padding: 0" size="small" @click="handleEdit(record)">{{ text }}</a-button>
|
||||
@ -104,22 +104,22 @@
|
||||
<template v-else-if="column.dataIndex === 'source'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${sourceMap[text] || $t('pages.file-manager.staticFileStorage.list.da636096')}`"
|
||||
:title="`${sourceMap[text] || $t('i18n.1622dc9b6b')}`"
|
||||
>
|
||||
<span>{{ sourceMap[text] || $t('pages.file-manager.staticFileStorage.list.da636096') }}</span>
|
||||
<span>{{ sourceMap[text] || $t('i18n.1622dc9b6b') }}</span>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'status'">
|
||||
<a-tag v-if="text === 1" color="green">{{
|
||||
$t('pages.file-manager.staticFileStorage.list.a78774e2')
|
||||
$t('i18n.df9497ea98')
|
||||
}}</a-tag>
|
||||
<a-tag v-else color="red">{{ $t('pages.file-manager.staticFileStorage.list.979a03b8') }}</a-tag>
|
||||
<a-tag v-else color="red">{{ $t('i18n.162e219f6d') }}</a-tag>
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'type'">
|
||||
<a-tag v-if="text === 1">{{ $t('pages.file-manager.staticFileStorage.list.69cad40b') }}</a-tag>
|
||||
<a-tag v-else>{{ $t('pages.file-manager.staticFileStorage.list.b90a456') }}</a-tag>
|
||||
<a-tag v-if="text === 1">{{ $t('i18n.2a0c4740f1') }}</a-tag>
|
||||
<a-tag v-else>{{ $t('i18n.1f4c1042ed') }}</a-tag>
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
@ -131,17 +131,17 @@
|
||||
type="primary"
|
||||
@click="handleDownloadUrl(record)"
|
||||
>
|
||||
{{ $t('pages.file-manager.staticFileStorage.list.42c8e9c6') }}</a-button
|
||||
{{ $t('i18n.f26ef91424') }}</a-button
|
||||
>
|
||||
<a-button
|
||||
size="small"
|
||||
:disabled="!(record.status === 1 && record.type === 1)"
|
||||
type="primary"
|
||||
@click="handleReleaseFile(record)"
|
||||
>{{ $t('pages.file-manager.staticFileStorage.list.dfaeb420') }}</a-button
|
||||
>{{ $t('i18n.83611abd5f') }}</a-button
|
||||
>
|
||||
<a-button type="primary" danger size="small" @click="handleDelete(record)">{{
|
||||
$t('pages.file-manager.staticFileStorage.list.d7cfa4c5')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -153,24 +153,24 @@
|
||||
v-if="editVisible"
|
||||
v-model:open="editVisible"
|
||||
destroy-on-close
|
||||
:title="`${$t('pages.file-manager.staticFileStorage.list.41bfad43')}`"
|
||||
:title="`${$t('i18n.5c3b53e66c')}`"
|
||||
:confirm-loading="confirmLoading"
|
||||
:mask-closable="false"
|
||||
@ok="handleEditOk"
|
||||
>
|
||||
<a-form ref="editForm" :rules="rules" :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
|
||||
<a-form-item :label="$t('pages.file-manager.staticFileStorage.list.6a721706')" name="name">
|
||||
<a-form-item :label="$t('i18n.29139c2a1a')" name="name">
|
||||
<a-input
|
||||
v-model:value="temp.name"
|
||||
:placeholder="$t('pages.file-manager.staticFileStorage.list.6a721706')"
|
||||
:placeholder="$t('i18n.29139c2a1a')"
|
||||
:disabled="true"
|
||||
/>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.file-manager.staticFileStorage.list.7cee55c0')" name="description">
|
||||
<a-form-item :label="$t('i18n.8d6f38b4b1')" name="description">
|
||||
<a-textarea
|
||||
v-model:value="temp.description"
|
||||
:placeholder="$t('pages.file-manager.staticFileStorage.list.3d17ed2c')"
|
||||
:placeholder="$t('i18n.411672c954')"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
@ -181,7 +181,7 @@
|
||||
v-if="triggerVisible"
|
||||
v-model:open="triggerVisible"
|
||||
destroy-on-close
|
||||
:title="$t('pages.file-manager.staticFileStorage.list.b1634db3')"
|
||||
:title="$t('i18n.e7e8d4c1fb')"
|
||||
width="50%"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
@ -189,17 +189,17 @@
|
||||
<a-form ref="editTriggerForm" :model="temp" :label-col="{ span: 6 }" :wrapper-col="{ span: 16 }">
|
||||
<a-tabs default-active-key="1">
|
||||
<template #rightExtra>
|
||||
<a-tooltip :title="$t('pages.file-manager.staticFileStorage.list.27e4eccc')">
|
||||
<a-tooltip :title="$t('i18n.84415a6bb1')">
|
||||
<a-button type="primary" size="small" @click="resetTrigger">{{
|
||||
$t('pages.file-manager.staticFileStorage.list.da1d2343')
|
||||
$t('i18n.4b9c3271dc')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-tab-pane key="1" :tab="$t('pages.file-manager.staticFileStorage.list.f0649f07')">
|
||||
<a-tab-pane key="1" :tab="$t('i18n.0b58866c3e')">
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('pages.file-manager.staticFileStorage.list.f0c647b3')}(${$t(
|
||||
:message="`${$t('i18n.d911cffcd5')}(${$t(
|
||||
'pages.file-manager.staticFileStorage.list.4c8d1a3b'
|
||||
)})`"
|
||||
>
|
||||
@ -212,32 +212,32 @@
|
||||
</a-alert>
|
||||
<a :href="temp.triggerDownloadUrl" target="_blank">
|
||||
<a-button size="small" type="primary"
|
||||
><DownloadOutlined />{{ $t('pages.file-manager.staticFileStorage.list.2fadc8ac') }}</a-button
|
||||
><DownloadOutlined />{{ $t('i18n.2a813bc3eb') }}</a-button
|
||||
>
|
||||
</a>
|
||||
</a-space>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane
|
||||
v-if="temp.triggerAliasDownloadUrl"
|
||||
:tab="$t('pages.file-manager.staticFileStorage.list.81630ff')"
|
||||
:tab="$t('i18n.d61af4e686')"
|
||||
>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-alert :message="$t('pages.file-manager.staticFileStorage.list.46d9b29')" type="warning">
|
||||
<a-alert :message="$t('i18n.947d983961')" type="warning">
|
||||
<template #description>
|
||||
<ul>
|
||||
<li>
|
||||
{{ $t('pages.file-manager.staticFileStorage.list.9568db65') }}=createTimeMillis:desc
|
||||
{{ $t('i18n.ac762710a5') }}=createTimeMillis:desc
|
||||
|
||||
<p>{{ $t('pages.file-manager.staticFileStorage.list.8c75e50e') }}</p>
|
||||
<p>{{ $t('i18n.35fbad84cb') }}</p>
|
||||
</li>
|
||||
<li>{{ $t('pages.file-manager.staticFileStorage.list.ce130623') }}</li>
|
||||
<li>{{ $t('pages.file-manager.staticFileStorage.list.7d507a40') }}</li>
|
||||
<li>{{ $t('i18n.c83752739f') }}</li>
|
||||
<li>{{ $t('i18n.4055a1ee9c') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('pages.file-manager.staticFileStorage.list.f0c647b3')}(${$t(
|
||||
:message="`${$t('i18n.d911cffcd5')}(${$t(
|
||||
'pages.file-manager.staticFileStorage.list.4c8d1a3b'
|
||||
)})`"
|
||||
>
|
||||
@ -250,7 +250,7 @@
|
||||
</a-alert>
|
||||
<a :href="temp.triggerAliasDownloadUrl" target="_blank">
|
||||
<a-button size="small" type="primary"
|
||||
><DownloadOutlined />{{ $t('pages.file-manager.staticFileStorage.list.2fadc8ac') }}</a-button
|
||||
><DownloadOutlined />{{ $t('i18n.2a813bc3eb') }}</a-button
|
||||
>
|
||||
</a>
|
||||
</a-space>
|
||||
@ -263,7 +263,7 @@
|
||||
v-if="releaseFileVisible"
|
||||
v-model:open="releaseFileVisible"
|
||||
destroy-on-close
|
||||
:title="$t('pages.file-manager.staticFileStorage.list.68203efe')"
|
||||
:title="$t('i18n.7e930b95ef')"
|
||||
width="70%"
|
||||
:mask-closable="false"
|
||||
:confirm-loading="confirmLoading"
|
||||
@ -278,7 +278,7 @@
|
||||
v-if="configDir"
|
||||
v-model:open="configDir"
|
||||
destroy-on-close
|
||||
:title="`${$t('pages.file-manager.staticFileStorage.list.4457e1f9')}`"
|
||||
:title="`${$t('i18n.eee6510292')}`"
|
||||
:footer="null"
|
||||
width="50vw"
|
||||
:mask-closable="false"
|
||||
@ -336,27 +336,27 @@ export default {
|
||||
list: [],
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.file-manager.staticFileStorage.list.bb769c1d'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: 'name',
|
||||
ellipsis: true,
|
||||
width: 150
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.staticFileStorage.list.eee04e4f'),
|
||||
title: this.$t('i18n.3bdd08adab'),
|
||||
dataIndex: 'description',
|
||||
ellipsis: true,
|
||||
width: 150,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.staticFileStorage.list.ee016914'),
|
||||
title: this.$t('i18n.4f35e80da6'),
|
||||
dataIndex: 'absolutePath',
|
||||
ellipsis: true,
|
||||
width: 150,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.staticFileStorage.list.1295c671'),
|
||||
title: this.$t('i18n.58f9666705'),
|
||||
dataIndex: 'size',
|
||||
sorter: true,
|
||||
ellipsis: true,
|
||||
@ -364,7 +364,7 @@ export default {
|
||||
width: '100px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.staticFileStorage.list.52822a45'),
|
||||
title: this.$t('i18n.242d641eab'),
|
||||
dataIndex: 'extName',
|
||||
ellipsis: true,
|
||||
|
||||
@ -372,14 +372,14 @@ export default {
|
||||
width: '80px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.staticFileStorage.list.698bb532'),
|
||||
title: this.$t('i18n.226b091218'),
|
||||
dataIndex: 'type',
|
||||
ellipsis: true,
|
||||
|
||||
width: '80px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.file-manager.staticFileStorage.list.34e8b7bd'),
|
||||
title: this.$t('i18n.a3d0154996'),
|
||||
dataIndex: 'status',
|
||||
ellipsis: true,
|
||||
|
||||
@ -387,7 +387,7 @@ export default {
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.file-manager.staticFileStorage.list.c15532f1'),
|
||||
title: this.$t('i18n.e06caa0060'),
|
||||
dataIndex: 'lastModified',
|
||||
sorter: true,
|
||||
customRender: ({ text }) => parseTime(text),
|
||||
@ -395,7 +395,7 @@ export default {
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.file-manager.staticFileStorage.list.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
@ -407,11 +407,11 @@ export default {
|
||||
|
||||
rules: {
|
||||
name: [
|
||||
{ required: true, message: this.$t('pages.file-manager.staticFileStorage.list.20c02197'), trigger: 'blur' }
|
||||
{ required: true, message: this.$t('i18n.7aa81d1573'), trigger: 'blur' }
|
||||
],
|
||||
|
||||
url: [
|
||||
{ required: true, message: this.$t('pages.file-manager.staticFileStorage.list.cc2bc679'), trigger: 'blur' }
|
||||
{ required: true, message: this.$t('i18n.f4dd45fca9'), trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
|
||||
@ -500,11 +500,11 @@ export default {
|
||||
// 删除文件
|
||||
handleDelete(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.file-manager.staticFileStorage.list.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.file-manager.staticFileStorage.list.639bed63') + record.name,
|
||||
okText: this.$t('pages.file-manager.staticFileStorage.list.7da4a591'),
|
||||
cancelText: this.$t('pages.file-manager.staticFileStorage.list.43105e21'),
|
||||
content: this.$t('i18n.3787283bf4') + record.name,
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return delFile({
|
||||
id: record.id,
|
||||
@ -524,16 +524,16 @@ export default {
|
||||
handleBatchDelete() {
|
||||
if (!this.tableSelections || this.tableSelections.length <= 0) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.file-manager.staticFileStorage.list.2ad67cae')
|
||||
message: this.$t('i18n.5d817c403e')
|
||||
})
|
||||
return
|
||||
}
|
||||
$confirm({
|
||||
title: this.$t('pages.file-manager.staticFileStorage.list.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.file-manager.staticFileStorage.list.cfd66404'),
|
||||
okText: this.$t('pages.file-manager.staticFileStorage.list.7da4a591'),
|
||||
cancelText: this.$t('pages.file-manager.staticFileStorage.list.43105e21'),
|
||||
content: this.$t('i18n.52d24791ab'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return delFile({
|
||||
ids: this.tableSelections.join(','),
|
||||
@ -621,7 +621,7 @@ export default {
|
||||
handerConfirm() {
|
||||
if (!this.tableSelections.length) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.file-manager.staticFileStorage.list.e1f69633')
|
||||
message: this.$t('i18n.8d62b202d9')
|
||||
})
|
||||
return
|
||||
}
|
||||
@ -630,7 +630,7 @@ export default {
|
||||
})
|
||||
if (!selectData.length) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.file-manager.staticFileStorage.list.e1f69633')
|
||||
message: this.$t('i18n.8d62b202d9')
|
||||
})
|
||||
return
|
||||
}
|
||||
|
@ -6,54 +6,54 @@
|
||||
<a-space>
|
||||
<template #split> <a-divider type="vertical" /> </template>
|
||||
<a href="https://jpom.top/pages/legal-risk/" target="_blank"
|
||||
>{{ $t('pages.layout.about.6175e15d') }}<LinkOutlined />
|
||||
>{{ $t('i18n.9f01272a10') }}<LinkOutlined />
|
||||
</a>
|
||||
<a href="https://jpom.top" target="_blank">{{ $t('pages.layout.about.b31c18fd') }}<LinkOutlined /> </a>
|
||||
<a href="https://jpom.top" target="_blank">{{ $t('i18n.19fa0be4d2') }}<LinkOutlined /> </a>
|
||||
</a-space>
|
||||
</template>
|
||||
<template #description>
|
||||
<ul>
|
||||
<li>
|
||||
<div>
|
||||
<b style="color: red">{{ $t('pages.layout.about.bcb3c132') }}</b
|
||||
>,{{ $t('pages.layout.about.eb71aee8') }} <b>logo{{ $t('pages.layout.about.6065956f') }}</b
|
||||
>,{{ $t('pages.layout.about.c3cc824c') }}
|
||||
<div>{{ $t('pages.layout.about.7ab34d72') }}</div>
|
||||
<b style="color: red">{{ $t('i18n.f3947e6581') }}</b
|
||||
>,{{ $t('i18n.f30f1859ba') }} <b>logo{{ $t('i18n.cbcc87b3d4') }}</b
|
||||
>,{{ $t('i18n.2bb1967887') }}
|
||||
<div>{{ $t('i18n.c12ba6ff43') }}</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div>
|
||||
<b style="color: red">{{ $t('pages.layout.about.a09aa05') }}</b
|
||||
>,{{ $t('pages.layout.about.d88b276') }}
|
||||
<b style="color: red">{{ $t('i18n.c26e6aaabb') }}</b
|
||||
>,{{ $t('i18n.0b9d5ba772') }}
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-tabs>
|
||||
<a-tab-pane key="0" :tab="$t('pages.layout.about.2f2bcf9')">
|
||||
<h2>Jpom {{ $t('pages.layout.about.8989ace2') }}</h2>
|
||||
<a-tab-pane key="0" :tab="$t('i18n.6f6ee88ec4')">
|
||||
<h2>Jpom {{ $t('i18n.a1c4a75c2d') }}</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
Star {{ $t('pages.layout.about.72cb28ed') }}
|
||||
Star {{ $t('i18n.80198317ff') }}
|
||||
<a href="https://gitee.com/dromara/Jpom" target="_blank">Gitee</a> /
|
||||
<a href="https://github.com/dromara/Jpom" target="_blank">Github</a>
|
||||
</li>
|
||||
<li>{{ $t('pages.layout.about.37d4a17e') }}</li>
|
||||
<li>{{ $t('pages.layout.about.322ed3e') }}</li>
|
||||
<li>{{ $t('i18n.49a9d6c7e6') }}</li>
|
||||
<li>{{ $t('i18n.de4cf8bdfa') }}</li>
|
||||
<li>
|
||||
{{ $t('pages.layout.about.35cdb498')
|
||||
{{ $t('i18n.7a93e0a6ae')
|
||||
}}<a href="https://jpom.top/pages/enterprise-service/" target="_blank">{{
|
||||
$t('pages.layout.about.412de998')
|
||||
$t('i18n.da89135649')
|
||||
}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div></div>
|
||||
<a-card style="text-align: center">
|
||||
<template #title> {{ $t('pages.layout.about.537239f8') }} </template>
|
||||
<template #title> {{ $t('i18n.aeb44d34e6') }} </template>
|
||||
<template #extra>
|
||||
<a href="https://jpom.top/pages/praise/" target="_blank">{{ $t('pages.layout.about.30cf73d6') }}</a>
|
||||
<a href="https://jpom.top/pages/praise/" target="_blank">{{ $t('i18n.ef734bf850') }}</a>
|
||||
</template>
|
||||
<a-row :gutter="[16, 16]">
|
||||
<a-col :span="6" />
|
||||
@ -74,8 +74,8 @@
|
||||
<edit-outlined key="edit" />
|
||||
<ellipsis-outlined key="ellipsis" /> -->
|
||||
<a-card-meta
|
||||
:title="$t('pages.layout.about.14728ef9')"
|
||||
:description="$t('pages.layout.about.255688b0')"
|
||||
:title="$t('i18n.55f01e138a')"
|
||||
:description="$t('i18n.0ee3ca5e88')"
|
||||
>
|
||||
</a-card-meta>
|
||||
</template>
|
||||
@ -96,8 +96,8 @@
|
||||
</template>
|
||||
<template #actions>
|
||||
<a-card-meta
|
||||
:title="$t('pages.layout.about.266cd308')"
|
||||
:description="$t('pages.layout.about.2d4c1548')"
|
||||
:title="$t('i18n.a1da57ab69')"
|
||||
:description="$t('i18n.2331a990aa')"
|
||||
>
|
||||
</a-card-meta>
|
||||
|
||||
@ -111,19 +111,19 @@
|
||||
</a-row>
|
||||
</a-card>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="3" :tab="$t('pages.layout.about.33d7e86e')">
|
||||
<a-tab-pane key="3" :tab="$t('i18n.0cbf83cc07')">
|
||||
<div>
|
||||
<h2 style="display: inline">{{ $t('pages.layout.about.b9dcb92c') }}</h2>
|
||||
{{ $t('pages.layout.about.6fb79158') }}<a-tag>{{ $t('pages.layout.about.527e7279') }}</a-tag
|
||||
><a-tag>{{ $t('pages.layout.about.8f01b872') }}</a-tag
|
||||
><a-tag>{{ $t('pages.layout.about.7f261d74') }}</a-tag
|
||||
><a-tag>{{ $t('pages.layout.about.3748fe06') }}</a-tag>
|
||||
<a-tag>{{ $t('pages.layout.about.d8c2cd8b') }}</a-tag>
|
||||
<h2 style="display: inline">{{ $t('i18n.a952ba273f') }}</h2>
|
||||
{{ $t('i18n.f712d3d040') }}<a-tag>{{ $t('i18n.0ce54ecc25') }}</a-tag
|
||||
><a-tag>{{ $t('i18n.da89135649') }}</a-tag
|
||||
><a-tag>{{ $t('i18n.92dde4c02b') }}</a-tag
|
||||
><a-tag>{{ $t('i18n.712cdd7984') }}</a-tag>
|
||||
<a-tag>{{ $t('i18n.73f798a129') }}</a-tag>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
{{ $t('pages.layout.about.6d12e07a')
|
||||
{{ $t('i18n.da4495b1b4')
|
||||
}}<a-typography-paragraph
|
||||
style="display: inline"
|
||||
:copyable="{ tooltip: false, text: 'bwcx_jzy@dromara.org' }"
|
||||
@ -132,14 +132,14 @@
|
||||
</a-typography-paragraph>
|
||||
</li>
|
||||
<li>
|
||||
{{ $t('pages.layout.about.55dce4ca')
|
||||
{{ $t('i18n.da671a4d16')
|
||||
}}<a-typography-paragraph style="display: inline" :copyable="{ tooltip: false, text: 'jpom66' }">
|
||||
<a href="https://jpom.top/pages/praise/join/" target="_blank"> jpom66</a>
|
||||
</a-typography-paragraph>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<a-card :title="$t('pages.layout.about.a9721057')">
|
||||
<a-card :title="$t('i18n.bdd87b63a6')">
|
||||
<div style="text-align: center">
|
||||
<a-image width="400px" :src="weixQrcodeJpom66" :preview="true"> </a-image>
|
||||
</div>
|
||||
@ -152,11 +152,11 @@
|
||||
/> -->
|
||||
</a-card>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="1" :tab="$t('pages.layout.about.d1403674')">
|
||||
<a-tab-pane key="1" :tab="$t('i18n.21dd8f23b4')">
|
||||
<pre style="white-space: pre-wrap">{{ licenseText }}</pre>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" :tab="$t('pages.layout.about.9497520b')">
|
||||
<h1>Jpom {{ $t('pages.layout.about.f5dd8a86') }}</h1>
|
||||
<a-tab-pane key="2" :tab="$t('i18n.7fb5bdb690')">
|
||||
<h1>Jpom {{ $t('i18n.4dc781596b') }}</h1>
|
||||
<a-list size="small" bordered :data-source="thankDependency">
|
||||
<template #renderItem="{ item }">
|
||||
<a-list-item>
|
||||
@ -178,10 +178,10 @@
|
||||
</a-list-item>
|
||||
</template>
|
||||
<template #header>
|
||||
<div>{{ $t('pages.layout.about.f2e1f6d3') }}</div>
|
||||
<div>{{ $t('i18n.791b6d0e62') }}</div>
|
||||
</template>
|
||||
<template #footer>
|
||||
<div>{{ $t('pages.layout.about.77ac5b13') }}</div>
|
||||
<div>{{ $t('i18n.ce1ecd8a5b') }}</div>
|
||||
</template>
|
||||
</a-list></a-tab-pane
|
||||
>
|
||||
|
@ -14,7 +14,7 @@
|
||||
"
|
||||
>
|
||||
<a-button type="link" :disabled="tabList.length <= 1">{{
|
||||
$t('pages.layout.content-tab.a8318e00')
|
||||
$t('i18n.6816da19f3')
|
||||
}}</a-button>
|
||||
</a-menu-item>
|
||||
<a-menu-item
|
||||
@ -26,7 +26,7 @@
|
||||
"
|
||||
>
|
||||
<a-button type="link" :disabled="tabList.length <= 1 || index === 0">{{
|
||||
$t('pages.layout.content-tab.7c10f4fd')
|
||||
$t('i18n.e9290eaaae')
|
||||
}}</a-button>
|
||||
</a-menu-item>
|
||||
<a-menu-item
|
||||
@ -38,7 +38,7 @@
|
||||
"
|
||||
>
|
||||
<a-button type="link" :disabled="tabList.length <= 1 || index === tabList.length - 1"
|
||||
>{{ $t('pages.layout.content-tab.34a965cc') }}
|
||||
>{{ $t('i18n.649d90ab3c') }}
|
||||
</a-button>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
@ -92,7 +92,7 @@ const onEdit = (key: string, action: 'remove') => {
|
||||
if (action === 'remove') {
|
||||
if (tabList.value.length === 1) {
|
||||
$notification.warn({
|
||||
message: $t('pages.layout.content-tab.1bfc6f2e')
|
||||
message: $t('i18n.b953d1a8f1')
|
||||
})
|
||||
return
|
||||
}
|
||||
@ -105,7 +105,7 @@ const onEdit = (key: string, action: 'remove') => {
|
||||
// 关闭 tabs
|
||||
const closeTabs = (data: any) => {
|
||||
$notification.success({
|
||||
message: $t('pages.layout.content-tab.94162f3')
|
||||
message: $t('i18n.33130f5c46')
|
||||
})
|
||||
menuStore.clearTabs(props.mode, data).then(() => {
|
||||
activeTab()
|
||||
|
@ -7,7 +7,7 @@
|
||||
<template #title>
|
||||
{{ subTitle }}
|
||||
<div> </div>
|
||||
<div>{{ $t('pages.layout.default-index.f29dfeb9') }}</div>
|
||||
<div>{{ $t('i18n.7548ea6316') }}</div>
|
||||
</template>
|
||||
<div
|
||||
class="logo text-overflow-hidden"
|
||||
@ -144,7 +144,7 @@ watch(
|
||||
)
|
||||
|
||||
const collapsed = ref(false)
|
||||
const subTitle = ref($t('pages.layout.default-index.cf628a26'))
|
||||
const subTitle = ref($t('i18n.03d9de2834'))
|
||||
const logoUrl = ref('')
|
||||
|
||||
const _appStore = appStore()
|
||||
|
@ -4,9 +4,9 @@
|
||||
<a-card hoverable class="card">
|
||||
<a-card-meta>
|
||||
<template #description>
|
||||
<a-result status="error" :title="$t('pages.layout.ipAccess.af7fa63c')">
|
||||
<a-result status="error" :title="$t('i18n.2245cf01a3')">
|
||||
<template #extra>
|
||||
<a-button> {{ $t('pages.layout.ipAccess.3676f786') }} </a-button>
|
||||
<a-button> {{ $t('i18n.bb9ef827bf') }} </a-button>
|
||||
</template>
|
||||
</a-result>
|
||||
</template>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<a-row type="flex" justify="center">
|
||||
<a-col :span="18">
|
||||
<a-card :title="$t('pages.layout.my-workspace.8d20cb3f')" :bordered="true">
|
||||
<a-card :title="$t('i18n.74bdccbb5d')" :bordered="true">
|
||||
<Container drag-handle-selector=".move" orientation="vertical" @drop="onDrop">
|
||||
<Draggable v-for="(element, index) in myWorkspaceList" :key="index">
|
||||
<a-row class="item-row">
|
||||
@ -10,13 +10,13 @@
|
||||
<template v-if="element.edit">
|
||||
<a-input-search
|
||||
v-model:value="element.name"
|
||||
:placeholder="$t('pages.layout.my-workspace.1cbe4f2d')"
|
||||
:enter-button="$t('pages.layout.my-workspace.e8e9db25')"
|
||||
:placeholder="$t('i18n.6f32b1077d')"
|
||||
:enter-button="$t('i18n.38cf16f220')"
|
||||
@search="editOk(element)"
|
||||
/>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-tooltip :title="`${$t('pages.layout.my-workspace.cf2692e4')}${element.originalName}`">
|
||||
<a-tooltip :title="`${$t('i18n.bd4e9d0ee2')}${element.originalName}`">
|
||||
{{ element.name || element.originalName }}
|
||||
</a-tooltip>
|
||||
</template>
|
||||
@ -27,7 +27,7 @@
|
||||
<a-button :disabled="element.edit" type="primary" size="small" @click="edit(element)">
|
||||
<template #icon><EditOutlined /></template>
|
||||
</a-button>
|
||||
<a-tooltip placement="left" :title="`${$t('pages.layout.my-workspace.a65a292c')}`" class="move">
|
||||
<a-tooltip placement="left" :title="`${$t('i18n.181e1ad17d')}`" class="move">
|
||||
<MenuOutlined />
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
@ -37,9 +37,9 @@
|
||||
</Container>
|
||||
<a-col style="margin-top: 10px">
|
||||
<a-space>
|
||||
<a-button type="primary" @click="save"> {{ $t('pages.layout.my-workspace.b033d8c5') }} </a-button>
|
||||
<a-button type="primary" @click="save"> {{ $t('i18n.be5fbbe34c') }} </a-button>
|
||||
<a-button type="primary" @click="resetDefaultName">
|
||||
{{ $t('pages.layout.my-workspace.d4d18984') }}
|
||||
{{ $t('i18n.b650acd50b') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</a-col>
|
||||
|
@ -2,22 +2,22 @@
|
||||
<div>
|
||||
<a-page-header :back-icon="false">
|
||||
<template #title>
|
||||
{{ $t('pages.layout.overview.50f119d2') }}{{ getUserInfo.name
|
||||
}}{{ $t('pages.layout.overview.72c43195') }}</template
|
||||
{{ $t('i18n.57d9738dfe') }}{{ getUserInfo.name
|
||||
}}{{ $t('i18n.cd7d67d588') }}</template
|
||||
>
|
||||
<template #subTitle>
|
||||
{{ $t('pages.layout.overview.306f3e5e', { count: (myWorkspaceList && myWorkspaceList.length) || 0 }) }}
|
||||
{{ $t('i18n.5195c0d198', { count: (myWorkspaceList && myWorkspaceList.length) || 0 }) }}
|
||||
</template>
|
||||
<template #tags>
|
||||
<a-tag color="blue">
|
||||
<template v-if="getUserInfo.demoUser">{{ $t('pages.layout.overview.18437ccc') }}</template>
|
||||
<template v-else-if="getUserInfo.superSystemUser">{{ $t('pages.layout.overview.723b44a0') }}</template>
|
||||
<template v-else-if="getUserInfo.systemUser">{{ $t('pages.layout.overview.28e9178') }}</template>
|
||||
<template v-else>{{ $t('pages.layout.overview.501ac2ec') }}</template>
|
||||
<template v-if="getUserInfo.demoUser">{{ $t('i18n.20c8dc0346') }}</template>
|
||||
<template v-else-if="getUserInfo.superSystemUser">{{ $t('i18n.302ff00ddb') }}</template>
|
||||
<template v-else-if="getUserInfo.systemUser">{{ $t('i18n.b1dae9bc5c') }}</template>
|
||||
<template v-else>{{ $t('i18n.7527da8954') }}</template>
|
||||
</a-tag>
|
||||
</template>
|
||||
<template #extra>
|
||||
<a-tooltip :title="$t('pages.layout.overview.c5f3dbc5')">
|
||||
<a-tooltip :title="$t('i18n.498519d1af')">
|
||||
<a-button @click="init">
|
||||
<template #icon><ReloadOutlined /></template>
|
||||
</a-button>
|
||||
@ -25,7 +25,7 @@
|
||||
<!-- // 擅自修改或者删除版权信息有法律风险,请尊重开源协议,不要擅自修改版本信息,否则可能承担法律责任。 -->
|
||||
<a-tooltip
|
||||
v-if="getUserInfo && (getUserInfo.systemUser || getUserInfo.demoUser)"
|
||||
:title="$t('pages.layout.overview.8397a674')"
|
||||
:title="$t('i18n.e166aa424d')"
|
||||
>
|
||||
<a-button @click="showAbout">
|
||||
<template #icon><ExclamationCircleOutlined /></template>
|
||||
@ -39,8 +39,8 @@
|
||||
<a-col :span="6">
|
||||
<a-card size="small">
|
||||
<template #title>
|
||||
{{ $t('pages.layout.overview.e86dceb9') }}
|
||||
<a-tooltip :title="$t('pages.layout.overview.930f07d8')"><QuestionCircleOutlined /></a-tooltip>
|
||||
{{ $t('i18n.1b7cba289a') }}
|
||||
<a-tooltip :title="$t('i18n.fb1f3b5125')"><QuestionCircleOutlined /></a-tooltip>
|
||||
</template>
|
||||
<a-list :data-source="statNames">
|
||||
<template #renderItem="{ item }">
|
||||
@ -52,8 +52,8 @@
|
||||
<a-col :span="6">
|
||||
<a-card size="small">
|
||||
<template #title>
|
||||
{{ $t('pages.layout.overview.fc20bf28') }}
|
||||
<a-tooltip :title="$t('pages.layout.overview.3318ecb')"><QuestionCircleOutlined /></a-tooltip>
|
||||
{{ $t('i18n.7c0ee78130') }}
|
||||
<a-tooltip :title="$t('i18n.031020489f')"><QuestionCircleOutlined /></a-tooltip>
|
||||
</template>
|
||||
<a-timeline v-if="buildLog && buildLog.length">
|
||||
<a-timeline-item v-for="item in buildLog" :key="item.id" :color="statusColor[item.status]">
|
||||
@ -74,10 +74,10 @@
|
||||
</a-col>
|
||||
<a-col>
|
||||
<a-tooltip
|
||||
:title="item.statusMsg || statusMap[item.status] || $t('pages.layout.overview.5f51a112')"
|
||||
:title="item.statusMsg || statusMap[item.status] || $t('i18n.1622dc9b6b')"
|
||||
>
|
||||
<a-tag :color="statusColor[item.status]" @click="handleBuildLog(item)">
|
||||
{{ statusMap[item.status] || $t('pages.layout.overview.5f51a112') }}
|
||||
{{ statusMap[item.status] || $t('i18n.1622dc9b6b') }}
|
||||
</a-tag>
|
||||
</a-tooltip>
|
||||
</a-col>
|
||||
@ -85,37 +85,37 @@
|
||||
</a-space>
|
||||
</a-timeline-item>
|
||||
</a-timeline>
|
||||
<a-empty v-else :image="Empty.PRESENTED_IMAGE_SIMPLE" :description="$t('pages.layout.overview.6f21bc24')" />
|
||||
<a-empty v-else :image="Empty.PRESENTED_IMAGE_SIMPLE" :description="$t('i18n.a918bde61d')" />
|
||||
</a-card>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-card size="small">
|
||||
<template #title> {{ $t('pages.layout.overview.b75360fe') }} </template>
|
||||
<template #title> {{ $t('i18n.3fb2e5ec7b') }} </template>
|
||||
<template #extra>
|
||||
<a href="#" @click="handleUserlog(2)">{{ $t('pages.layout.overview.3081870c') }}</a>
|
||||
<a href="#" @click="handleUserlog(2)">{{ $t('i18n.0ec9eaf9c3') }}</a>
|
||||
</template>
|
||||
<a-timeline v-if="loginLog && loginLog.length">
|
||||
<a-timeline-item v-for="(item, index) in loginLog" :key="index" :color="item.success ? 'green' : 'red'">
|
||||
<a-space direction="vertical" :size="1">
|
||||
<div>{{ parseTime(item.createTimeMillis) }}</div>
|
||||
<a-space>
|
||||
<a-tag> {{ operateCodeMap[item.operateCode] || $t('pages.layout.overview.5f51a112') }}</a-tag>
|
||||
<a-tag> {{ operateCodeMap[item.operateCode] || $t('i18n.1622dc9b6b') }}</a-tag>
|
||||
<span> IP:{{ item.ip }}</span>
|
||||
</a-space>
|
||||
</a-space>
|
||||
</a-timeline-item>
|
||||
</a-timeline>
|
||||
<a-empty v-else :image="Empty.PRESENTED_IMAGE_SIMPLE" :description="$t('pages.layout.overview.7328ac6d')" />
|
||||
<a-empty v-else :image="Empty.PRESENTED_IMAGE_SIMPLE" :description="$t('i18n.0aa60d1169')" />
|
||||
</a-card>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-card size="small">
|
||||
<template #title>
|
||||
{{ $t('pages.layout.overview.86d58c89') }}
|
||||
<a-tooltip :title="$t('pages.layout.overview.a53992b3')"><QuestionCircleOutlined /></a-tooltip>
|
||||
{{ $t('i18n.cda84be2f6') }}
|
||||
<a-tooltip :title="$t('i18n.05510a85b0')"><QuestionCircleOutlined /></a-tooltip>
|
||||
</template>
|
||||
<template #extra>
|
||||
<a href="#" @click="handleUserlog(1)">{{ $t('pages.layout.overview.3081870c') }}</a>
|
||||
<a href="#" @click="handleUserlog(1)">{{ $t('i18n.0ec9eaf9c3') }}</a>
|
||||
</template>
|
||||
<a-timeline v-if="operateLog && operateLog.length">
|
||||
<a-timeline-item
|
||||
@ -132,7 +132,7 @@
|
||||
</a-space>
|
||||
</a-timeline-item>
|
||||
</a-timeline>
|
||||
<a-empty v-else :image="Empty.PRESENTED_IMAGE_SIMPLE" :description="$t('pages.layout.overview.6b286e33')" />
|
||||
<a-empty v-else :image="Empty.PRESENTED_IMAGE_SIMPLE" :description="$t('i18n.935b06789f')" />
|
||||
</a-card>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -142,7 +142,7 @@
|
||||
destroy-on-close
|
||||
:open="viewLogVisible > 0"
|
||||
:width="'90vw'"
|
||||
:title="$t('pages.layout.overview.86d58c89')"
|
||||
:title="$t('i18n.cda84be2f6')"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
@cancel="viewLogVisible = 0"
|
||||
@ -157,7 +157,7 @@
|
||||
destroy-on-close
|
||||
:open="aboutVisible > 0"
|
||||
:width="'90vw'"
|
||||
:title="$t('pages.layout.overview.5f76d6ae')"
|
||||
:title="$t('i18n.541e8ce00c')"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
@cancel="aboutVisible = 0"
|
||||
@ -202,16 +202,16 @@ export default {
|
||||
viewLogVisible: 0,
|
||||
// "逻辑节点", "节点项目", "节点脚本", "项目分发", "SSH终端", "SSH命令", "本地脚本", "Docker节点", "动态文件", "静态文件"
|
||||
statNames: [
|
||||
{ name: this.$t('pages.layout.overview.ccdca9d8'), field: 'nodeCount' },
|
||||
{ name: this.$t('pages.layout.overview.82289858'), field: 'projectCount' },
|
||||
{ name: this.$t('pages.layout.overview.e0417750'), field: 'nodeScriptCount' },
|
||||
{ name: this.$t('pages.layout.overview.9acec431'), field: 'outGivingCount' },
|
||||
{ name: `SSH${this.$t('pages.layout.overview.b5a97ef7')}`, field: 'sshCount' },
|
||||
{ name: `SSH${this.$t('pages.layout.overview.fbb32aa1')}`, field: 'sshCommandCount' },
|
||||
{ name: this.$t('pages.layout.overview.a1f47198'), field: 'scriptCount' },
|
||||
{ name: `Docker${this.$t('pages.layout.overview.602a0a5e')}`, field: 'dockerCount' },
|
||||
{ name: `Docker${this.$t('pages.layout.overview.82ff11f5')}`, field: 'dockerSwarmCount' },
|
||||
{ name: this.$t('pages.layout.overview.30d0bb03'), field: 'fileCount' }
|
||||
{ name: this.$t('i18n.add91bb395'), field: 'nodeCount' },
|
||||
{ name: this.$t('i18n.5488c40573'), field: 'projectCount' },
|
||||
{ name: this.$t('i18n.e0ba3b9145'), field: 'nodeScriptCount' },
|
||||
{ name: this.$t('i18n.429b8dfb98'), field: 'outGivingCount' },
|
||||
{ name: `SSH${this.$t('i18n.4722bc0c56')}`, field: 'sshCount' },
|
||||
{ name: `SSH${this.$t('i18n.ba311d8a6a')}`, field: 'sshCommandCount' },
|
||||
{ name: this.$t('i18n.3eab0eb8a9'), field: 'scriptCount' },
|
||||
{ name: `Docker${this.$t('i18n.3bf3c0a8d6')}`, field: 'dockerCount' },
|
||||
{ name: `Docker${this.$t('i18n.85fe5099f6')}`, field: 'dockerSwarmCount' },
|
||||
{ name: this.$t('i18n.0a056b0d5a'), field: 'fileCount' }
|
||||
// { name: "静态文件", field: "staticFileCount" },
|
||||
],
|
||||
statData: {},
|
||||
|
@ -11,17 +11,17 @@
|
||||
>
|
||||
<a-menu-item key="admin-manager">
|
||||
<template v-if="mode === 'normal'">
|
||||
<a-tooltip :title="$t('pages.layout.side-menu.73d81eb7')" color="cyan">
|
||||
<a-tooltip :title="$t('i18n.4d85ac1250')" color="cyan">
|
||||
<SettingOutlined :style="{ fontSize: '18px' }" />
|
||||
|
||||
<span>{{ $t('pages.layout.side-menu.73d81eb7') }}</span>
|
||||
<span>{{ $t('i18n.4d85ac1250') }}</span>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-if="mode === 'management'">
|
||||
<a-tooltip :title="$t('pages.layout.side-menu.c49bfeed')" color="cyan">
|
||||
<a-tooltip :title="$t('i18n.d9c28e376c')" color="cyan">
|
||||
<DesktopOutlined :style="{ fontSize: '18px' }" />
|
||||
|
||||
<span>{{ $t('pages.layout.side-menu.c49bfeed') }}</span>
|
||||
<span>{{ $t('i18n.d9c28e376c') }}</span>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
</a-menu-item>
|
||||
@ -142,7 +142,7 @@ export default {
|
||||
// 如果路由不存在
|
||||
if (!subMenu.path) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.layout.side-menu.424b3794')
|
||||
message: this.$t('i18n.130318a2a1')
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
@ -5,9 +5,9 @@
|
||||
<a-button v-if="mode === 'normal'" type="dashed" class="workspace jpom-workspace btn-group-item">
|
||||
<div class="workspace-name">
|
||||
<a-tooltip
|
||||
:title="`${$t('pages.layout.user-header.8d20cb3f')}${selectWorkspace.name} ${$t(
|
||||
:title="`${$t('i18n.8f36f2ede7')}${selectWorkspace.name} ${$t(
|
||||
'pages.layout.user-header.12d0e469'
|
||||
)}${selectWorkspace.group || $t('pages.layout.user-header.50acc5d6')}${$t(
|
||||
)}${selectWorkspace.group || $t('i18n.71dc8feb59')}${$t(
|
||||
'pages.layout.user-header.26e6628f'
|
||||
)}`"
|
||||
placement="bottom"
|
||||
@ -34,7 +34,7 @@
|
||||
<a-button v-if="mode === 'management'" type="dashed">
|
||||
<div class="workspace-name">
|
||||
<a-tooltip
|
||||
:title="`${$t('pages.layout.user-header.c2dfe194')}${selectCluster && selectCluster.name}`"
|
||||
:title="`${$t('i18n.f668c8c881')}${selectCluster && selectCluster.name}`"
|
||||
placement="bottom"
|
||||
>
|
||||
<ClusterOutlined />
|
||||
@ -55,7 +55,7 @@
|
||||
<template v-if="mode === 'normal'">
|
||||
<a-sub-menu>
|
||||
<template #title>
|
||||
<a-button type="link"><RetweetOutlined />{{ $t('pages.layout.user-header.4e2553dc') }}</a-button>
|
||||
<a-button type="link"><RetweetOutlined />{{ $t('i18n.ccb2fdd838') }}</a-button>
|
||||
</template>
|
||||
<template v-if="myWorkspaceList.length == 1">
|
||||
<template v-for="(item, index) in myWorkspaceList[0].children">
|
||||
@ -66,9 +66,9 @@
|
||||
@click="handleWorkspaceChange(item)"
|
||||
>
|
||||
<a-button type="link" :disabled="item.id === selectWorkspace.id">
|
||||
{{ item.name || $t('pages.layout.user-header.50acc5d6') }}
|
||||
{{ item.name || $t('i18n.71dc8feb59') }}
|
||||
<template v-if="myClusterList.length > 1 && item.clusterInfoId">
|
||||
{{ $t('pages.layout.user-header.84fee7a4')
|
||||
{{ $t('i18n.0341329b1d')
|
||||
}}{{
|
||||
myClusterList.find((item2) => {
|
||||
return item2.id === item.clusterInfoId
|
||||
@ -76,7 +76,7 @@
|
||||
myClusterList.find((item2) => {
|
||||
return item2.id === item.clusterInfoId
|
||||
}).name
|
||||
}}{{ $t('pages.layout.user-header.26e6628f') }}
|
||||
}}{{ $t('i18n.5942e7ebd0') }}
|
||||
</template>
|
||||
</a-button>
|
||||
</a-menu-item>
|
||||
@ -88,7 +88,7 @@
|
||||
<a-sub-menu>
|
||||
<template #title>
|
||||
<a-button type="link">
|
||||
{{ item1.value || $t('pages.layout.user-header.50acc5d6') }}
|
||||
{{ item1.value || $t('i18n.71dc8feb59') }}
|
||||
</a-button>
|
||||
</template>
|
||||
<template v-for="(item, index) in item1.children">
|
||||
@ -101,7 +101,7 @@
|
||||
<a-button type="link" :disabled="item.id === selectWorkspace.id">
|
||||
{{ item.name }}
|
||||
<template v-if="myClusterList.length > 1 && item.clusterInfoId">
|
||||
{{ $t('pages.layout.user-header.84fee7a4')
|
||||
{{ $t('i18n.0341329b1d')
|
||||
}}{{
|
||||
myClusterList.find((item2) => {
|
||||
return item2.id === item.clusterInfoId
|
||||
@ -109,7 +109,7 @@
|
||||
myClusterList.find((item2) => {
|
||||
return item2.id === item.clusterInfoId
|
||||
}).name
|
||||
}}{{ $t('pages.layout.user-header.26e6628f') }}
|
||||
}}{{ $t('i18n.5942e7ebd0') }}
|
||||
</template>
|
||||
</a-button>
|
||||
</a-menu-item>
|
||||
@ -126,7 +126,7 @@
|
||||
<template v-if="mode === 'management'">
|
||||
<a-sub-menu>
|
||||
<template #title>
|
||||
<a-button type="link"><RetweetOutlined />{{ $t('pages.layout.user-header.85538864') }}</a-button>
|
||||
<a-button type="link"><RetweetOutlined />{{ $t('i18n.d61b8fde35') }}</a-button>
|
||||
</template>
|
||||
<template v-for="(item, index) in myClusterList">
|
||||
<a-menu-item
|
||||
@ -144,31 +144,31 @@
|
||||
</a-sub-menu>
|
||||
</template>
|
||||
<a-menu-item @click="handleUpdatePwd">
|
||||
<a-button type="link"> <lock-outlined />{{ $t('pages.layout.user-header.3bab6668') }} </a-button>
|
||||
<a-button type="link"> <lock-outlined />{{ $t('i18n.629a6ad325') }} </a-button>
|
||||
</a-menu-item>
|
||||
<a-menu-divider />
|
||||
<a-menu-item @click="handleUpdateUser">
|
||||
<a-button type="link"><profile-outlined /> {{ $t('pages.layout.user-header.fd8cec21') }} </a-button>
|
||||
<a-button type="link"><profile-outlined /> {{ $t('i18n.d7cc44bc02') }} </a-button>
|
||||
</a-menu-item>
|
||||
<a-menu-divider />
|
||||
<a-menu-item @click="handleUserlog">
|
||||
<a-button type="link"><bars-outlined /> {{ $t('pages.layout.user-header.86d58c89') }} </a-button>
|
||||
<a-button type="link"><bars-outlined /> {{ $t('i18n.cda84be2f6') }} </a-button>
|
||||
</a-menu-item>
|
||||
<a-menu-divider />
|
||||
<a-menu-item @click="customize">
|
||||
<a-button type="link"><skin-outlined /> {{ $t('pages.layout.user-header.dca6da91') }} </a-button>
|
||||
<a-button type="link"><skin-outlined /> {{ $t('i18n.b4fd7afd31') }} </a-button>
|
||||
</a-menu-item>
|
||||
<a-menu-divider />
|
||||
<a-menu-item @click="logOut">
|
||||
<a-button type="link"> <logout-outlined />{{ $t('pages.layout.user-header.d2fe58b4') }} </a-button>
|
||||
<a-button type="link"> <logout-outlined />{{ $t('i18n.44efd179aa') }} </a-button>
|
||||
</a-menu-item>
|
||||
<a-menu-divider />
|
||||
<a-menu-item @click="logOutSwap">
|
||||
<a-button type="link"> <SwapOutlined />{{ $t('pages.layout.user-header.1da0b754') }} </a-button>
|
||||
<a-button type="link"> <SwapOutlined />{{ $t('i18n.86c1eb397d') }} </a-button>
|
||||
</a-menu-item>
|
||||
<a-menu-divider />
|
||||
<a-menu-item @click="logOutAll">
|
||||
<a-button type="link"><RestOutlined /> {{ $t('pages.layout.user-header.6892c9ac') }} </a-button>
|
||||
<a-button type="link"><RestOutlined /> {{ $t('i18n.a795fa52cd') }} </a-button>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
@ -181,12 +181,12 @@
|
||||
v-model:open="updateNameVisible"
|
||||
destroy-on-close
|
||||
:width="'60vw'"
|
||||
:title="$t('pages.layout.user-header.3bab6668')"
|
||||
:title="$t('i18n.629a6ad325')"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
>
|
||||
<a-tabs v-model:active-key="temp.tabActiveKey" @change="tabChange">
|
||||
<a-tab-pane :key="1" :tab="$t('pages.layout.user-header.cf2bc037')">
|
||||
<a-tab-pane :key="1" :tab="$t('i18n.7fc88aeeda')">
|
||||
<a-spin tip="Loading..." :spinning="confirmLoading">
|
||||
<a-form
|
||||
ref="pwdForm"
|
||||
@ -196,23 +196,23 @@
|
||||
:wrapper-col="{ span: 14 }"
|
||||
@finish="handleUpdatePwdOk"
|
||||
>
|
||||
<a-form-item :label="$t('pages.layout.user-header.1333b135')" name="oldPwd">
|
||||
<a-input-password v-model:value="temp.oldPwd" :placeholder="$t('pages.layout.user-header.eda355b6')" />
|
||||
<a-form-item :label="$t('i18n.01e94436d1')" name="oldPwd">
|
||||
<a-input-password v-model:value="temp.oldPwd" :placeholder="$t('i18n.9c19a424dc')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.layout.user-header.4cb8151c')" name="newPwd">
|
||||
<a-input-password v-model:value="temp.newPwd" :placeholder="$t('pages.layout.user-header.4575df08')" />
|
||||
<a-form-item :label="$t('i18n.bf7da0bf02')" name="newPwd">
|
||||
<a-input-password v-model:value="temp.newPwd" :placeholder="$t('i18n.abdd7ea830')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.layout.user-header.fd09d95a')" name="confirmPwd">
|
||||
<a-form-item :label="$t('i18n.3fbdde139c')" name="confirmPwd">
|
||||
<a-input-password
|
||||
v-model:value="temp.confirmPwd"
|
||||
:placeholder="$t('pages.layout.user-header.b9c21ba3')"
|
||||
:placeholder="$t('i18n.a7a9a2156a')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item>
|
||||
<a-row type="flex" justify="center">
|
||||
<a-col :span="2">
|
||||
<a-button type="primary" html-type="submit" :loading="confirmLoading">{{
|
||||
$t('pages.layout.user-header.59bc9c6e')
|
||||
$t('i18n.80cfc33cbe')
|
||||
}}</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -220,15 +220,15 @@
|
||||
</a-form>
|
||||
</a-spin>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane :key="2" :tab="$t('pages.layout.user-header.80647404')">
|
||||
<a-tab-pane :key="2" :tab="$t('i18n.dbad1e89f7')">
|
||||
<a-row>
|
||||
<a-col :span="24">
|
||||
<a-alert v-if="temp.needVerify" type="warning">
|
||||
<template #message> {{ $t('pages.layout.user-header.85ddc1a3') }} </template>
|
||||
<template #message> {{ $t('i18n.02d9819dda') }} </template>
|
||||
<template #description>
|
||||
<ul style="color: red">
|
||||
<li>{{ $t('pages.layout.user-header.3aee366c') }}</li>
|
||||
<li>{{ $t('pages.layout.user-header.dc59d40') }}</li>
|
||||
<li>{{ $t('i18n.0ac9e3e675') }}</li>
|
||||
<li>{{ $t('i18n.8c24b5e19c') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
@ -242,16 +242,16 @@
|
||||
:wrapper-col="{ span: 14 }"
|
||||
@finish="handleBindMfa"
|
||||
>
|
||||
<a-form-item :label="$t('pages.layout.user-header.8a8e4923')" name="status">
|
||||
<a-form-item :label="$t('i18n.6bf1f392c0')" name="status">
|
||||
<a-switch
|
||||
v-model:checked="temp.status"
|
||||
:checked-children="$t('pages.layout.user-header.690faca2')"
|
||||
:checked-children="$t('i18n.4fb95949e5')"
|
||||
disabled
|
||||
:un-checked-children="$t('pages.layout.user-header.327893d5')"
|
||||
:un-checked-children="$t('i18n.4f52df6e44')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<template v-if="temp.needVerify">
|
||||
<a-form-item :label="$t('pages.layout.user-header.e3ff2149')">
|
||||
<a-form-item :label="$t('i18n.22b03c024d')">
|
||||
<a-row>
|
||||
<a-col :span="14">
|
||||
<a-qrcode :value="temp.url" :status="temp.url ? 'active' : 'loading'" />
|
||||
@ -271,18 +271,18 @@
|
||||
</a-form-item>
|
||||
</template>
|
||||
<!-- 不能使用 template 包裹 否则验证不能正常启用 -->
|
||||
<a-form-item v-if="temp.needVerify" :label="$t('pages.layout.user-header.f8317f5c')" name="twoCode">
|
||||
<a-form-item v-if="temp.needVerify" :label="$t('i18n.983f59c9d4')" name="twoCode">
|
||||
<a-input
|
||||
ref="twoCode"
|
||||
v-model:value="temp.twoCode"
|
||||
:placeholder="$t('pages.layout.user-header.8a6e74c3')"
|
||||
:placeholder="$t('i18n.3f18d14961')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item v-if="temp.needVerify">
|
||||
<a-row type="flex" justify="center">
|
||||
<a-col :span="2">
|
||||
<a-button type="primary" html-type="submit">{{
|
||||
$t('pages.layout.user-header.d1a3fb5f')
|
||||
$t('i18n.b7cfa07d78')
|
||||
}}</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -290,20 +290,20 @@
|
||||
<!-- 不能使用 template 包裹 否则验证不能正常启用 -->
|
||||
<a-form-item
|
||||
v-if="!temp.needVerify && temp.status"
|
||||
:label="$t('pages.layout.user-header.f8317f5c')"
|
||||
:label="$t('i18n.983f59c9d4')"
|
||||
name="twoCode"
|
||||
>
|
||||
<a-input
|
||||
ref="twoCode"
|
||||
v-model:value="temp.twoCode"
|
||||
:placeholder="$t('pages.layout.user-header.8a6e74c3')"
|
||||
:placeholder="$t('i18n.3f18d14961')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item v-if="!temp.needVerify && temp.status">
|
||||
<a-row type="flex" justify="center">
|
||||
<a-col :span="2">
|
||||
<a-button type="primary" html-type="submit">{{
|
||||
$t('pages.layout.user-header.1a20a2e7')
|
||||
$t('i18n.e8e3bfbbfe')
|
||||
}}</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -313,7 +313,7 @@
|
||||
<a-row type="flex" justify="center">
|
||||
<a-col :span="2">
|
||||
<a-button type="primary" @click="openMfaFn">{{
|
||||
$t('pages.layout.user-header.f0d95575')
|
||||
$t('i18n.1b8fff7308')
|
||||
}}</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -321,7 +321,7 @@
|
||||
</a-form>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<h3 :id="$t('pages.layout.user-header.d0d351d5')">{{ $t('pages.layout.user-header.d0d351d5') }}</h3>
|
||||
<h3 :id="$t('i18n.ceffe5d643')">{{ $t('i18n.ceffe5d643') }}</h3>
|
||||
<p v-for="(html, index) in MFA_APP_TIP_ARRAY" :key="index" v-html="html" />
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -334,12 +334,12 @@
|
||||
v-model:open="updateUserVisible"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.layout.user-header.ef947269')"
|
||||
:title="$t('i18n.ed367abd1a')"
|
||||
:mask-closable="false"
|
||||
@ok="handleUpdateUserOk"
|
||||
>
|
||||
<a-form ref="userForm" :rules="rules" :model="temp" :label-col="{ span: 8 }" :wrapper-col="{ span: 15 }">
|
||||
<a-form-item :label="$t('pages.layout.user-header.135d4403')" name="token">
|
||||
<a-form-item :label="$t('i18n.e0f937d57f')" name="token">
|
||||
<a-input v-model:value="temp.token" disabled placeholder="Token">
|
||||
<template #suffix>
|
||||
<a-typography-paragraph style="margin-bottom: 0" :copyable="{ tooltip: true, text: temp.token }">
|
||||
@ -347,7 +347,7 @@
|
||||
</template>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.layout.user-header.dd885a11')" name="md5Token">
|
||||
<a-form-item :label="$t('i18n.e6bf31e8e6')" name="md5Token">
|
||||
<a-input v-model:value="temp.md5Token" disabled placeholder="Token">
|
||||
<template #suffix>
|
||||
<a-typography-paragraph style="margin-bottom: 0" :copyable="{ tooltip: true, text: temp.md5Token }">
|
||||
@ -355,29 +355,29 @@
|
||||
</template>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.layout.user-header.57c3af39')" name="name">
|
||||
<a-input v-model:value="temp.name" :placeholder="$t('pages.layout.user-header.57c3af39')" />
|
||||
<a-form-item :label="$t('i18n.23eb0e6024')" name="name">
|
||||
<a-input v-model:value="temp.name" :placeholder="$t('i18n.23eb0e6024')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.layout.user-header.55103071')" name="email">
|
||||
<a-input v-model:value="temp.email" :placeholder="$t('pages.layout.user-header.55103071')" />
|
||||
<a-form-item :label="$t('i18n.6ab78fa2c4')" name="email">
|
||||
<a-input v-model:value="temp.email" :placeholder="$t('i18n.6ab78fa2c4')" />
|
||||
</a-form-item>
|
||||
<a-form-item v-show="showCode" :label="$t('pages.layout.user-header.989c1e9a')" name="code">
|
||||
<a-form-item v-show="showCode" :label="$t('i18n.e3cf0abd35')" name="code">
|
||||
<a-row :gutter="8">
|
||||
<a-col :span="15">
|
||||
<a-input v-model:value="temp.code" :placeholder="$t('pages.layout.user-header.989c1e9a')" />
|
||||
<a-input v-model:value="temp.code" :placeholder="$t('i18n.e3cf0abd35')" />
|
||||
</a-col>
|
||||
<a-col :span="4">
|
||||
<a-button type="primary" :disabled="!temp.email" @click="sendEmailCode">{{
|
||||
$t('pages.layout.user-header.26b1dc93')
|
||||
$t('i18n.c5c3583bfc')
|
||||
}}</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.layout.user-header.dd43783d')" name="dingDing">
|
||||
<a-input v-model:value="temp.dingDing" :placeholder="$t('pages.layout.user-header.dd43783d')" />
|
||||
<a-form-item :label="$t('i18n.55e99f5106')" name="dingDing">
|
||||
<a-input v-model:value="temp.dingDing" :placeholder="$t('i18n.55e99f5106')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.layout.user-header.a3bfcd9e')" name="workWx">
|
||||
<a-input v-model:value="temp.workWx" :placeholder="$t('pages.layout.user-header.a3bfcd9e')" />
|
||||
<a-form-item :label="$t('i18n.2246d128cb')" name="workWx">
|
||||
<a-input v-model:value="temp.workWx" :placeholder="$t('i18n.2246d128cb')" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</CustomModal>
|
||||
@ -386,7 +386,7 @@
|
||||
v-if="customizeVisible"
|
||||
v-model:open="customizeVisible"
|
||||
destroy-on-close
|
||||
:title="$t('pages.layout.user-header.3d14e1fe')"
|
||||
:title="$t('i18n.cb09b98416')"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
width="50%"
|
||||
@ -394,7 +394,7 @@
|
||||
<a-form :model="temp" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }">
|
||||
<a-alert banner>
|
||||
<template #message>
|
||||
{{ $t('pages.layout.user-header.321ca5ab') }},{{ $t('pages.layout.user-header.681d0c4d') }}
|
||||
{{ $t('i18n.bf93517805') }},{{ $t('i18n.52b526ab9e') }}
|
||||
</template>
|
||||
</a-alert>
|
||||
<!-- <a-form-item label="页面导航">
|
||||
@ -413,13 +413,13 @@
|
||||
</div>
|
||||
</a-space>
|
||||
</a-form-item> -->
|
||||
<a-form-item :label="$t('pages.layout.user-header.a04d6e8d')">
|
||||
<template #help>{{ $t('pages.layout.user-header.158342fd') }}</template>
|
||||
<a-form-item :label="$t('i18n.156af3b3d1')">
|
||||
<template #help>{{ $t('i18n.ecdf9093d0') }}</template>
|
||||
|
||||
<a-switch
|
||||
:checked-children="$t('pages.layout.user-header.f5bb2364')"
|
||||
:checked-children="$t('i18n.0a60ac8f02')"
|
||||
:checked="menuMultipleFlag"
|
||||
:un-checked-children="$t('pages.layout.user-header.5edb2e8a')"
|
||||
:un-checked-children="$t('i18n.c9744f45e7')"
|
||||
@click="toggleMenuMultiple"
|
||||
/>
|
||||
</a-form-item>
|
||||
@ -445,44 +445,44 @@
|
||||
/>
|
||||
</a-space>
|
||||
</a-form-item> -->
|
||||
<a-form-item :label="$t('pages.layout.user-header.a0f7ed4f')">
|
||||
<template #help>{{ $t('pages.layout.user-header.378c8cf6') }}</template>
|
||||
<a-form-item :label="$t('i18n.0113fc41fc')">
|
||||
<template #help>{{ $t('i18n.b5fdd886b6') }}</template>
|
||||
|
||||
<a-switch
|
||||
:checked-children="$t('pages.layout.user-header.4fc84727')"
|
||||
:checked-children="$t('i18n.185926bf98')"
|
||||
:checked="fullscreenViewLog"
|
||||
:un-checked-children="$t('pages.layout.user-header.bcb85748')"
|
||||
:un-checked-children="$t('i18n.c5a2c23d89')"
|
||||
@click="toggleFullscreenViewLog"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.layout.user-header.cf6a1e7a')">
|
||||
<a-form-item :label="$t('i18n.5d9c139f38')">
|
||||
<a-radio-group v-model:value="themeView" button-style="solid">
|
||||
<a-radio-button v-for="item in getSupportThemes" :key="item.value" :value="item.value">
|
||||
{{ item.label }}
|
||||
</a-radio-button>
|
||||
</a-radio-group>
|
||||
|
||||
<template #help>{{ $t('pages.layout.user-header.ad301071') }}</template>
|
||||
<template #help>{{ $t('i18n.2b4bb321d7') }}</template>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.layout.user-header.e1e68c8b')">
|
||||
<a-form-item :label="$t('i18n.593e04dfad')">
|
||||
<a-radio-group v-model:value="menuThemeView" button-style="solid">
|
||||
<a-radio-button value="light">{{ $t('pages.layout.user-header.a9bad4a1') }}</a-radio-button>
|
||||
<a-radio-button value="dark">{{ $t('pages.layout.user-header.67b903b1') }}</a-radio-button>
|
||||
<a-radio-button value="light">{{ $t('i18n.48d0a09bdd') }}</a-radio-button>
|
||||
<a-radio-button value="dark">{{ $t('i18n.41e8e8b993') }}</a-radio-button>
|
||||
</a-radio-group>
|
||||
|
||||
<template #help>{{ $t('pages.layout.user-header.1c0c4705') }}</template>
|
||||
<template #help>{{ $t('i18n.fbfeb76b33') }}</template>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.layout.user-header.15692164')">
|
||||
<a-form-item :label="$t('i18n.4f50cd2a5e')">
|
||||
<a-switch
|
||||
:checked-children="$t('pages.layout.user-header.e39a73de')"
|
||||
:checked-children="$t('i18n.03e59bb33c')"
|
||||
:checked="compactView"
|
||||
:un-checked-children="$t('pages.layout.user-header.96425f5')"
|
||||
:un-checked-children="$t('i18n.43e534acf9')"
|
||||
@click="toggleCompactView"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.layout.user-header.ee091a03')">
|
||||
<template #help>{{ $t('pages.layout.user-header.8263b5e7') }}</template>
|
||||
<a-form-item :label="$t('i18n.295bb704f5')">
|
||||
<template #help>{{ $t('i18n.9030cebe31') }}</template>
|
||||
<a-radio-group v-model:value="locale" button-style="solid">
|
||||
<a-radio-button v-for="item in supportLang" :key="item.value" :value="item.value">{{
|
||||
item.label
|
||||
@ -496,7 +496,7 @@
|
||||
v-if="bindMfaTip"
|
||||
v-model:open="bindMfaTip"
|
||||
destroy-on-close
|
||||
:title="$t('pages.layout.user-header.49889c30')"
|
||||
:title="$t('i18n.84777ebf8b')"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
:closable="false"
|
||||
@ -504,13 +504,13 @@
|
||||
>
|
||||
<a-space direction="vertical">
|
||||
<a-alert
|
||||
:message="$t('pages.layout.user-header.49889c30')"
|
||||
:description="$t('pages.layout.user-header.e805efb')"
|
||||
:message="$t('i18n.84777ebf8b')"
|
||||
:description="$t('i18n.4af980516d')"
|
||||
type="error"
|
||||
:closable="false"
|
||||
/>
|
||||
<a-row align="middle" type="flex" justify="center">
|
||||
<a-button type="danger" @click="toBindMfa"> {{ $t('pages.layout.user-header.c8507450') }} </a-button>
|
||||
<a-button type="danger" @click="toBindMfa"> {{ $t('i18n.97a19328a8') }} </a-button>
|
||||
</a-row>
|
||||
</a-space>
|
||||
</CustomModal>
|
||||
@ -520,7 +520,7 @@
|
||||
v-model:open="viewLogVisible"
|
||||
destroy-on-close
|
||||
:width="'90vw'"
|
||||
:title="$t('pages.layout.user-header.86d58c89')"
|
||||
:title="$t('i18n.cda84be2f6')"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
>
|
||||
@ -580,35 +580,35 @@ export default {
|
||||
// 表单校验规则
|
||||
rules: {
|
||||
name: [
|
||||
{ required: true, message: this.$t('pages.layout.user-header.9b5a95d2'), trigger: 'blur' },
|
||||
{ max: 10, message: this.$t('pages.layout.user-header.dad8bc7b'), trigger: 'blur' },
|
||||
{ min: 2, message: this.$t('pages.layout.user-header.dad8bc7b'), trigger: 'blur' }
|
||||
{ required: true, message: this.$t('i18n.916ff9eddd'), trigger: 'blur' },
|
||||
{ max: 10, message: this.$t('i18n.6446b6c707'), trigger: 'blur' },
|
||||
{ min: 2, message: this.$t('i18n.6446b6c707'), trigger: 'blur' }
|
||||
],
|
||||
|
||||
oldPwd: [
|
||||
{ required: true, message: this.$t('pages.layout.user-header.eda355b6'), trigger: 'blur' },
|
||||
{ max: 20, message: this.$t('pages.layout.user-header.254a970b'), trigger: 'blur' },
|
||||
{ min: 6, message: this.$t('pages.layout.user-header.254a970b'), trigger: 'blur' }
|
||||
{ required: true, message: this.$t('i18n.9c19a424dc'), trigger: 'blur' },
|
||||
{ max: 20, message: this.$t('i18n.f4b7c18635'), trigger: 'blur' },
|
||||
{ min: 6, message: this.$t('i18n.f4b7c18635'), trigger: 'blur' }
|
||||
],
|
||||
|
||||
newPwd: [
|
||||
{ required: true, message: this.$t('pages.layout.user-header.4575df08'), trigger: 'blur' },
|
||||
{ max: 20, message: this.$t('pages.layout.user-header.254a970b'), trigger: 'blur' },
|
||||
{ min: 6, message: this.$t('pages.layout.user-header.254a970b'), trigger: 'blur' }
|
||||
{ required: true, message: this.$t('i18n.abdd7ea830'), trigger: 'blur' },
|
||||
{ max: 20, message: this.$t('i18n.f4b7c18635'), trigger: 'blur' },
|
||||
{ min: 6, message: this.$t('i18n.f4b7c18635'), trigger: 'blur' }
|
||||
],
|
||||
|
||||
confirmPwd: [
|
||||
{ required: true, message: this.$t('pages.layout.user-header.b9c21ba3'), trigger: 'blur' },
|
||||
{ max: 20, message: this.$t('pages.layout.user-header.254a970b'), trigger: 'blur' },
|
||||
{ min: 6, message: this.$t('pages.layout.user-header.254a970b'), trigger: 'blur' }
|
||||
{ required: true, message: this.$t('i18n.a7a9a2156a'), trigger: 'blur' },
|
||||
{ max: 20, message: this.$t('i18n.f4b7c18635'), trigger: 'blur' },
|
||||
{ min: 6, message: this.$t('i18n.f4b7c18635'), trigger: 'blur' }
|
||||
],
|
||||
|
||||
email: [
|
||||
// { required: true, message: "请输入邮箱", trigger: "blur" }
|
||||
],
|
||||
twoCode: [
|
||||
{ required: true, message: this.$t('pages.layout.user-header.e794e5fe'), trigger: ['change', 'blur'] },
|
||||
{ pattern: /^\d{6}$/, message: this.$t('pages.layout.user-header.cf89eb17'), trigger: ['change', 'blur'] }
|
||||
{ required: true, message: this.$t('i18n.7e866fece6'), trigger: ['change', 'blur'] },
|
||||
{ pattern: /^\d{6}$/, message: this.$t('i18n.da1abf0865'), trigger: ['change', 'blur'] }
|
||||
]
|
||||
},
|
||||
MFA_APP_TIP_ARRAY,
|
||||
@ -753,11 +753,11 @@ export default {
|
||||
.then((flag) => {
|
||||
if (flag) {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.e805511')
|
||||
message: this.$t('i18n.fe231ff92f')
|
||||
})
|
||||
} else {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.8e6ecbdf')
|
||||
message: this.$t('i18n.c75d0beca8')
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -769,11 +769,11 @@ export default {
|
||||
.then((flag) => {
|
||||
if (flag) {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.8ef644a1')
|
||||
message: this.$t('i18n.63c9d63eeb')
|
||||
})
|
||||
} else {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.38360e9e')
|
||||
message: this.$t('i18n.1498557b2d')
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -785,11 +785,11 @@ export default {
|
||||
.then((flag) => {
|
||||
if (flag) {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.cf4f7e81')
|
||||
message: this.$t('i18n.ef28d3bff2')
|
||||
})
|
||||
} else {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.1f597ac0')
|
||||
message: this.$t('i18n.ba6ea3d480')
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -801,11 +801,11 @@ export default {
|
||||
.then((flag) => {
|
||||
if (flag) {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.c688eb3d')
|
||||
message: this.$t('i18n.af51211a73')
|
||||
})
|
||||
} else {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.d0b833a')
|
||||
message: this.$t('i18n.1afdb4a364')
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -817,11 +817,11 @@ export default {
|
||||
.then((fullscreenViewLog) => {
|
||||
if (fullscreenViewLog) {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.401a5b70')
|
||||
message: this.$t('i18n.82b89bd049')
|
||||
})
|
||||
} else {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.17b81d98')
|
||||
message: this.$t('i18n.57978c11d1')
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -832,11 +832,11 @@ export default {
|
||||
.then((compact) => {
|
||||
if (compact) {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.60dcf8ca')
|
||||
message: this.$t('i18n.6e60d2fc75')
|
||||
})
|
||||
} else {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.c08b9c0c')
|
||||
message: this.$t('i18n.702430b89d')
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -846,24 +846,24 @@ export default {
|
||||
.restGuide()
|
||||
.then(() => {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.3ea6d68c')
|
||||
message: this.$t('i18n.dddf944f5f')
|
||||
})
|
||||
})
|
||||
},
|
||||
// 彻底退出登录
|
||||
logOutAll() {
|
||||
$confirm({
|
||||
title: this.$t('pages.layout.user-header.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.layout.user-header.f63ebe16'),
|
||||
okText: this.$t('pages.layout.user-header.7da4a591'),
|
||||
cancelText: this.$t('pages.layout.user-header.43105e21'),
|
||||
content: this.$t('i18n.8e38d55231'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return useUserStore()
|
||||
.logOut()
|
||||
.then(() => {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.ba1c6d1f')
|
||||
message: this.$t('i18n.499f058a0b')
|
||||
})
|
||||
localStorage.clear()
|
||||
this.$router.replace({
|
||||
@ -877,17 +877,17 @@ export default {
|
||||
// 切换账号登录
|
||||
logOutSwap() {
|
||||
$confirm({
|
||||
title: this.$t('pages.layout.user-header.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.layout.user-header.ed166c40'),
|
||||
okText: this.$t('pages.layout.user-header.7da4a591'),
|
||||
cancelText: this.$t('pages.layout.user-header.43105e21'),
|
||||
content: this.$t('i18n.ac783bca36'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return useUserStore()
|
||||
.logOut()
|
||||
.then(() => {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.ba1c6d1f')
|
||||
message: this.$t('i18n.499f058a0b')
|
||||
})
|
||||
useAppStore().changeWorkspace('')
|
||||
this.$router.replace({
|
||||
@ -901,17 +901,17 @@ export default {
|
||||
// 退出登录
|
||||
logOut() {
|
||||
$confirm({
|
||||
title: this.$t('pages.layout.user-header.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.layout.user-header.9f940811'),
|
||||
okText: this.$t('pages.layout.user-header.7da4a591'),
|
||||
cancelText: this.$t('pages.layout.user-header.43105e21'),
|
||||
content: this.$t('i18n.70b9a2c450'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return useUserStore()
|
||||
.logOut()
|
||||
.then(() => {
|
||||
$notification.success({
|
||||
message: this.$t('pages.layout.user-header.ba1c6d1f')
|
||||
message: this.$t('i18n.499f058a0b')
|
||||
})
|
||||
const query = Object.assign({}, this.$route.query)
|
||||
this.$router.replace({
|
||||
@ -932,7 +932,7 @@ export default {
|
||||
// 判断两次新密码是否一致
|
||||
if (this.temp.newPwd !== this.temp.confirmPwd) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.layout.user-header.12d0b15b')
|
||||
message: this.$t('i18n.6f15f0beea')
|
||||
})
|
||||
return
|
||||
}
|
||||
@ -979,7 +979,7 @@ export default {
|
||||
sendEmailCode() {
|
||||
if (!this.temp.email) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.layout.user-header.4fc329c6')
|
||||
message: this.$t('i18n.2ba4c81587')
|
||||
})
|
||||
return
|
||||
}
|
||||
@ -1049,7 +1049,7 @@ export default {
|
||||
location.href = url
|
||||
} else {
|
||||
$notification.error({
|
||||
message: this.$t('pages.layout.user-header.b29d1268')
|
||||
message: this.$t('i18n.db2d99ed33')
|
||||
})
|
||||
}
|
||||
},
|
||||
@ -1088,7 +1088,7 @@ export default {
|
||||
|
||||
$notification.info({
|
||||
// placement: "",
|
||||
message: this.$t('pages.layout.user-header.ee23f800')
|
||||
message: this.$t('i18n.d1b8eaaa9e')
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -1109,11 +1109,11 @@ export default {
|
||||
})
|
||||
} else {
|
||||
$confirm({
|
||||
title: this.$t('pages.layout.user-header.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.layout.user-header.b34c9126'),
|
||||
okText: this.$t('pages.layout.user-header.7da4a591'),
|
||||
cancelText: this.$t('pages.layout.user-header.43105e21'),
|
||||
content: this.$t('i18n.2b21998b7b'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return closeMfa({
|
||||
code: this.temp.twoCode
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-tabs v-model:activeKey="tabKey">
|
||||
<a-tab-pane :key="1" :tab="$t('pages.layout.user-log.9c06953e')">
|
||||
<a-tab-pane :key="1" :tab="$t('i18n.cda84be2f6')">
|
||||
<!-- 数据表格 -->
|
||||
<a-table
|
||||
size="middle"
|
||||
@ -36,7 +36,7 @@
|
||||
}
|
||||
"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.layout.user-log.3ce54760')"
|
||||
:placeholder="$t('i18n.8432a98819')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="item in classFeature" :key="item.value">{{ item.title }}</a-select-option>
|
||||
@ -55,7 +55,7 @@
|
||||
}
|
||||
"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.layout.user-log.4b5fa133')"
|
||||
:placeholder="$t('i18n.a9de52acb0')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="item in methodFeature" :key="item.value">{{ item.title }}</a-select-option>
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
"
|
||||
/>
|
||||
<a-tooltip :title="$t('pages.layout.user-log.d8b36ec1')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="operateloading" @click="operaterloadData">{{
|
||||
$t('pages.layout.user-log.a1f640f4')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
@ -97,7 +97,7 @@
|
||||
<template v-else-if="column.dataIndex === 'optStatus'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('pages.layout.user-log.f8c26fc9')},${$t('pages.layout.user-log.c0820e90')},${$t(
|
||||
:title="`${$t('i18n.be4b9241ec')},${$t('i18n.69056f4792')},${$t(
|
||||
'pages.layout.user-log.819da0e0'
|
||||
)}`"
|
||||
>
|
||||
@ -112,7 +112,7 @@
|
||||
</template>
|
||||
</a-table>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane :key="2" :tab="$t('pages.layout.user-log.b75360fe')">
|
||||
<a-tab-pane :key="2" :tab="$t('i18n.3fb2e5ec7b')">
|
||||
<a-table
|
||||
size="middle"
|
||||
:data-source="loginlist"
|
||||
@ -134,13 +134,13 @@
|
||||
<a-space>
|
||||
<a-input
|
||||
v-model:value="loginlistQuery['%username%']"
|
||||
:placeholder="$t('pages.layout.user-log.c28c6dc1')"
|
||||
:placeholder="$t('i18n.819767ada1')"
|
||||
class="search-input-item"
|
||||
@press-enter="loginloadData"
|
||||
/>
|
||||
<a-input
|
||||
v-model:value="loginlistQuery['%ip%']"
|
||||
:placeholder="$t('pages.layout.user-log.11294c8f')"
|
||||
:placeholder="$t('i18n.b38d6077d6')"
|
||||
class="search-input-item"
|
||||
@press-enter="loginloadData"
|
||||
/>
|
||||
@ -153,9 +153,9 @@
|
||||
}
|
||||
"
|
||||
/>
|
||||
<a-tooltip :title="$t('pages.layout.user-log.d8b36ec1')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loginloading" @click="loginloadData">{{
|
||||
$t('pages.layout.user-log.a1f640f4')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
@ -164,18 +164,18 @@
|
||||
<template v-if="column.dataIndex === 'success'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="text ? $t('pages.layout.user-log.9d77d967') : $t('pages.layout.user-log.d3ec0514')"
|
||||
:title="text ? $t('i18n.330363dfc5') : $t('i18n.acd5cb847a')"
|
||||
>
|
||||
<a-tag v-if="text" color="green">{{ $t('pages.layout.user-log.9d77d967') }}</a-tag>
|
||||
<a-tag v-else color="pink">{{ $t('pages.layout.user-log.d3ec0514') }}</a-tag>
|
||||
<a-tag v-if="text" color="green">{{ $t('i18n.330363dfc5') }}</a-tag>
|
||||
<a-tag v-else color="pink">{{ $t('i18n.acd5cb847a') }}</a-tag>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'useMfa'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="text ? $t('pages.layout.user-log.c5d442d') : $t('pages.layout.user-log.812ad3aa')"
|
||||
:title="text ? $t('i18n.ecff77a8d4') : $t('i18n.869ec83e33')"
|
||||
>
|
||||
<a-tag>{{ text ? $t('pages.layout.user-log.c5d442d') : $t('pages.layout.user-log.812ad3aa') }}</a-tag>
|
||||
<a-tag>{{ text ? $t('i18n.ecff77a8d4') : $t('i18n.869ec83e33') }}</a-tag>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
@ -186,8 +186,8 @@
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operateCode'">
|
||||
<a-tooltip placement="topLeft" :title="operateCode[text] || $t('pages.layout.user-log.5f51a112')">
|
||||
{{ operateCode[text] || $t('pages.layout.user-log.5f51a112') }}
|
||||
<a-tooltip placement="topLeft" :title="operateCode[text] || $t('i18n.1622dc9b6b')">
|
||||
{{ operateCode[text] || $t('i18n.1622dc9b6b') }}
|
||||
</a-tooltip>
|
||||
</template>
|
||||
</template>
|
||||
@ -219,26 +219,26 @@ export default {
|
||||
classFeatureMap: {},
|
||||
operatecolumns: [
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.ed74cc37'),
|
||||
title: this.$t('i18n.6b0bc6432d'),
|
||||
dataIndex: 'username',
|
||||
ellipsis: true
|
||||
},
|
||||
{ title: 'IP', dataIndex: 'ip', ellipsis: true, width: '130px' },
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.602a0a5e'),
|
||||
title: this.$t('i18n.3bf3c0a8d6'),
|
||||
dataIndex: 'nodeId',
|
||||
width: 120,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.cd2442c1'),
|
||||
title: this.$t('i18n.5a1419b7a2'),
|
||||
dataIndex: 'dataName',
|
||||
/*width: 240,*/
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.8d20cb3f'),
|
||||
title: this.$t('i18n.4524ed750d'),
|
||||
dataIndex: 'workspaceName',
|
||||
/*width: 240,*/
|
||||
ellipsis: true,
|
||||
@ -246,24 +246,24 @@ export default {
|
||||
},
|
||||
// { title: "数据 ID", dataIndex: "dataId", /*width: 240,*/ ellipsis: true,},
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.3ce54760'),
|
||||
title: this.$t('i18n.8432a98819'),
|
||||
dataIndex: 'classFeature',
|
||||
/*width: 240,*/
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.4b5fa133'),
|
||||
title: this.$t('i18n.a9de52acb0'),
|
||||
dataIndex: 'methodFeature',
|
||||
/*width: 240,*/
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.2cdc5dc2'),
|
||||
title: this.$t('i18n.771d897d9a'),
|
||||
dataIndex: 'optStatus',
|
||||
width: 90
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.45e88a2c'),
|
||||
title: this.$t('i18n.7e951d56d9'),
|
||||
dataIndex: 'createTimeMillis',
|
||||
sorter: true,
|
||||
customRender: ({ text, item }) => {
|
||||
@ -279,13 +279,13 @@ export default {
|
||||
loginlistQuery: Object.assign({}, PAGE_DEFAULT_LIST_QUERY),
|
||||
logincolumns: [
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.8384e057'),
|
||||
title: this.$t('i18n.30acd20d6e'),
|
||||
dataIndex: 'modifyUser',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.62bec2ff'),
|
||||
title: this.$t('i18n.dfb8d511c7'),
|
||||
dataIndex: 'username',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
@ -297,31 +297,31 @@ export default {
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.bd29775b'),
|
||||
title: this.$t('i18n.912302cb02'),
|
||||
dataIndex: 'userAgent',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.b2624f7d'),
|
||||
title: this.$t('i18n.5e9f2dedca'),
|
||||
dataIndex: 'success',
|
||||
ellipsis: true,
|
||||
width: '100px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.e8d822fc'),
|
||||
title: this.$t('i18n.ae0d608495'),
|
||||
dataIndex: 'useMfa',
|
||||
ellipsis: true,
|
||||
width: '130px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.5f2a060b'),
|
||||
title: this.$t('i18n.64c083c0a9'),
|
||||
dataIndex: 'operateCode',
|
||||
/*width: 240,*/ ellipsis: true
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.layout.user-log.dea71d69'),
|
||||
title: this.$t('i18n.9fca7c455f'),
|
||||
dataIndex: 'createTimeMillis',
|
||||
sorter: true,
|
||||
customRender: ({ text, item }) => {
|
||||
|
@ -6,28 +6,28 @@
|
||||
<br />
|
||||
<template v-if="action === 'login'">
|
||||
<a-form :model="loginForm" :label-col="{ span: 0 }" :wrapper-col="{ span: 24 }" @finish="handleLogin">
|
||||
<a-form-item name="loginName" :rules="[{ required: true, message: $t('pages.login.index.ebf15c4e') }]">
|
||||
<a-form-item name="loginName" :rules="[{ required: true, message: $t('i18n.08b1fa1304') }]">
|
||||
<a-input
|
||||
v-model:value="loginForm.loginName"
|
||||
autocomplete="true"
|
||||
:placeholder="$t('pages.login.index.c28c6dc1')"
|
||||
:placeholder="$t('i18n.819767ada1')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item name="userPwd" :rules="[{ required: true, message: $t('pages.login.index.8937efed') }]">
|
||||
<a-form-item name="userPwd" :rules="[{ required: true, message: $t('i18n.e39ffe99e9') }]">
|
||||
<a-input-password
|
||||
v-model:value="loginForm.userPwd"
|
||||
autocomplete="true"
|
||||
:placeholder="$t('pages.login.index.f102d63')"
|
||||
:placeholder="$t('i18n.a810520460')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="!disabledCaptcha"
|
||||
name="code"
|
||||
:rules="[{ required: true, message: $t('pages.login.index.6bd117e2') }]"
|
||||
:rules="[{ required: true, message: $t('i18n.d0c06a0df1') }]"
|
||||
>
|
||||
<a-row>
|
||||
<a-col :span="14">
|
||||
<a-input v-model:value="loginForm.code" :placeholder="$t('pages.login.index.1702a2b6')" />
|
||||
<a-input v-model:value="loginForm.code" :placeholder="$t('i18n.983f59c9d4')" />
|
||||
</a-col>
|
||||
<a-col :offset="2" :span="8">
|
||||
<div class="rand-code">
|
||||
@ -39,11 +39,11 @@
|
||||
</a-form-item>
|
||||
<a-form-item :wrapper-col="{ span: 24 }">
|
||||
<a-button type="primary" html-type="submit" class="btn-login" :loading="loading">
|
||||
{{ $t('pages.login.index.6d273eca') }}
|
||||
{{ $t('i18n.402d19e50f') }}
|
||||
</a-button>
|
||||
</a-form-item>
|
||||
<template v-if="enabledOauth2Provides.length">
|
||||
<a-divider>{{ $t('pages.login.index.8dc088d5') }}</a-divider>
|
||||
<a-divider>{{ $t('i18n.0f004c4cf7') }}</a-divider>
|
||||
<a-form-item :wrapper-col="{ span: 24 }">
|
||||
<a-space :size="20" wrap>
|
||||
<template v-for="(item, index) in oauth2AllProvides">
|
||||
@ -92,19 +92,19 @@
|
||||
@finish="handleMfa"
|
||||
>
|
||||
<a-form-item
|
||||
:label="$t('pages.login.index.1702a2b6')"
|
||||
:label="$t('i18n.983f59c9d4')"
|
||||
name="mfaCode"
|
||||
:help="$t('pages.login.index.34ee1039')"
|
||||
:help="$t('i18n.5c4d3c836f')"
|
||||
:rules="[
|
||||
{ required: true, message: $t('pages.login.index.6763395b') },
|
||||
{ pattern: /^\d{6}$/, message: $t('pages.login.index.1a850509') }
|
||||
{ required: true, message: $t('i18n.7e866fece6') },
|
||||
{ pattern: /^\d{6}$/, message: $t('i18n.da1abf0865') }
|
||||
]"
|
||||
>
|
||||
<a-input v-model:value="mfaData.mfaCode" :placeholder="$t('pages.login.index.9cab783a')" />
|
||||
<a-input v-model:value="mfaData.mfaCode" :placeholder="$t('i18n.674e7808b5')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-button type="primary" html-type="submit" class="btn-login">
|
||||
{{ $t('pages.login.index.e89ab2fa') }}
|
||||
{{ $t('i18n.e83a256e4f') }}
|
||||
</a-button>
|
||||
</a-form>
|
||||
</template>
|
||||
@ -133,37 +133,37 @@ const { t: $t } = useI18n()
|
||||
|
||||
const oauth2AllProvides = ref([
|
||||
{
|
||||
name: $t('pages.login.index.af984888'),
|
||||
name: $t('i18n.4ba304e77a'),
|
||||
key: 'dingtalk',
|
||||
img: dingtalkImg
|
||||
},
|
||||
{
|
||||
name: $t('pages.login.index.576d8dda'),
|
||||
name: $t('i18n.5516b3130c'),
|
||||
key: 'feishu',
|
||||
img: feishuImg
|
||||
},
|
||||
{
|
||||
name: $t('pages.login.index.578df5ac'),
|
||||
name: $t('i18n.af3a9b6303'),
|
||||
key: 'wechat_enterprise',
|
||||
img: qyWeixinImg
|
||||
},
|
||||
{
|
||||
name: `gitee ${$t('pages.login.index.76bed14d')}`,
|
||||
name: `gitee ${$t('i18n.efae7764ac')}`,
|
||||
key: 'gitee',
|
||||
img: giteeImg
|
||||
},
|
||||
{
|
||||
name: `maxkey ${$t('pages.login.index.6ae041b2')}`,
|
||||
name: `maxkey ${$t('i18n.b6e8fb4106')}`,
|
||||
key: 'maxkey',
|
||||
img: maxkeyImg
|
||||
},
|
||||
{
|
||||
name: `github ${$t('pages.login.index.76bed14d')}`,
|
||||
name: `github ${$t('i18n.efae7764ac')}`,
|
||||
key: 'github',
|
||||
img: githubImg
|
||||
},
|
||||
{
|
||||
name: $t('pages.login.index.ff8043c5'),
|
||||
name: $t('i18n.ab13dd3381'),
|
||||
key: 'mygitlab',
|
||||
img: gitlabImg
|
||||
}
|
||||
@ -183,7 +183,7 @@ const theme = computed(() => {
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
|
||||
const loginTitle = ref($t('pages.login.index.c5537957'))
|
||||
const loginTitle = ref($t('i18n.0de68f5626'))
|
||||
const loginForm = reactive<IFormState>({
|
||||
loginName: '',
|
||||
userPwd: '',
|
||||
@ -237,7 +237,7 @@ const getLoginConfig = () => {
|
||||
const demo = res.data.demo
|
||||
const p = h('p', { innerHTML: demo.msg }, [])
|
||||
$notification.info({
|
||||
message: $t('pages.login.index.c8dfae81'),
|
||||
message: $t('i18n.947d983961'),
|
||||
description: h('div', {}, [p]),
|
||||
key: login_tip_key,
|
||||
duration: null
|
||||
@ -305,7 +305,7 @@ const checkOauth2 = () => {
|
||||
const toOauth2Url = (provide: string) => {
|
||||
oauth2Url({ provide: provide }).then((res) => {
|
||||
if (res.code === 200 && res.data) {
|
||||
$message.loading({ content: $t('pages.login.index.38f1354b'), key: 'oauth2', duration: 0 })
|
||||
$message.loading({ content: $t('i18n.4c83203419'), key: 'oauth2', duration: 0 })
|
||||
location.href = res.data.toUrl
|
||||
}
|
||||
})
|
||||
@ -387,14 +387,14 @@ const checkHasLoginInfo = () => {
|
||||
const p = h(
|
||||
'p',
|
||||
{
|
||||
innerHTML: `${$t('pages.login.index.cba1f5b5')}<b>${useUserStore.userInfo.name || ''}</b> ${$t(
|
||||
innerHTML: `${$t('i18n.cfbb3341d5')}<b>${useUserStore.userInfo.name || ''}</b> ${$t(
|
||||
'pages.login.index.6dee1b92'
|
||||
)}`
|
||||
},
|
||||
[]
|
||||
)
|
||||
$notification.open({
|
||||
message: $t('pages.login.index.87221de'),
|
||||
message: $t('i18n.697d60299e'),
|
||||
description: h('div', {}, [p]),
|
||||
btn: () =>
|
||||
h(
|
||||
@ -407,7 +407,7 @@ const checkHasLoginInfo = () => {
|
||||
router.push({ path: '/' })
|
||||
}
|
||||
},
|
||||
{ default: () => $t('pages.login.index.f9def59d') }
|
||||
{ default: () => $t('i18n.7653297de3') }
|
||||
),
|
||||
key: tip_has_login_key,
|
||||
duration: null
|
||||
|
@ -3,20 +3,20 @@
|
||||
<template #content>
|
||||
<a-card v-if="canInstall" :style="`${setpCurrent === 1 ? 'width: 60vw' : 'width: 550px'}`" hoverable>
|
||||
<template #title>
|
||||
{{ $t('pages.login.install.cd8e34c0') }}
|
||||
<a href="https://jpom.top" target="_blank">{{ $t('pages.login.install.10496d2') }}</a>
|
||||
{{ $t('i18n.c2f11fde3a') }}
|
||||
<a href="https://jpom.top" target="_blank">{{ $t('i18n.620efec150') }}</a>
|
||||
</template>
|
||||
<a-steps :current="setpCurrent">
|
||||
<a-step
|
||||
:title="$t('pages.login.install.9a866c70')"
|
||||
:title="$t('i18n.b5c291805e')"
|
||||
status="process"
|
||||
:description="$t('pages.login.install.ed09be07')"
|
||||
:description="$t('i18n.3904bfe0db')"
|
||||
>
|
||||
<template #icon>
|
||||
<user-outlined />
|
||||
</template>
|
||||
</a-step>
|
||||
<a-step :title="$t('pages.login.install.431078ce')" :description="$t('pages.login.install.496c5eb5')">
|
||||
<a-step :title="$t('i18n.6f9193ac80')" :description="$t('i18n.f0db5d58cb')">
|
||||
<template #icon>
|
||||
<solution-outlined />
|
||||
</template>
|
||||
@ -24,14 +24,14 @@
|
||||
</a-steps>
|
||||
<a-row type="flex" justify="center">
|
||||
<a-col v-if="setpCurrent === 0" :span="16">
|
||||
<a-card-meta :title="$t('pages.login.install.51094d43')">
|
||||
<a-card-meta :title="$t('i18n.08ab230290')">
|
||||
<template #description>
|
||||
<ol>
|
||||
<li>{{ $t('pages.login.install.cf24b73a') }}</li>
|
||||
<li>{{ $t('i18n.2953a9bb97') }}</li>
|
||||
<li style="color: red">
|
||||
{{ $t('pages.login.install.56e34e7') }}
|
||||
<b>admin{{ $t('pages.login.install.dfd58d9d') }}</b
|
||||
>{{ $t('pages.login.install.70a1f38a') }}
|
||||
{{ $t('i18n.e09d0d8c41') }}
|
||||
<b>admin{{ $t('i18n.cb93a1f4a5') }}</b
|
||||
>{{ $t('i18n.2b788a077e') }}
|
||||
</li>
|
||||
</ol>
|
||||
</template>
|
||||
@ -48,26 +48,26 @@
|
||||
<a-form-item
|
||||
class="init-user-name"
|
||||
name="userName"
|
||||
:rules="[{ required: true, message: $t('pages.login.install.fee12658') }]"
|
||||
:rules="[{ required: true, message: $t('i18n.ea7fbabfa1') }]"
|
||||
>
|
||||
<a-input v-model:value="loginForm.userName" :placeholder="$t('pages.login.install.dc861290')" />
|
||||
<a-input v-model:value="loginForm.userName" :placeholder="$t('i18n.fec6151b49')" />
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
class="init-user-password"
|
||||
name="userPwd"
|
||||
:rules="[
|
||||
{ required: true, message: $t('pages.login.install.75eeeeaf') },
|
||||
{ required: true, message: $t('i18n.e39ffe99e9') },
|
||||
{
|
||||
pattern: /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,18}$/,
|
||||
message: $t('pages.login.install.5f2f73f9')
|
||||
message: $t('i18n.974be6600d')
|
||||
}
|
||||
]"
|
||||
>
|
||||
<a-input-password v-model:value="loginForm.userPwd" :placeholder="$t('pages.login.install.3562f10a')" />
|
||||
<a-input-password v-model:value="loginForm.userPwd" :placeholder="$t('i18n.efafd0cbd4')" />
|
||||
</a-form-item>
|
||||
<a-form-item>
|
||||
<a-button type="primary" html-type="submit" block :loading="loading">
|
||||
{{ $t('pages.login.install.a93d849c') }}
|
||||
{{ $t('i18n.94d4fcca1b') }}
|
||||
</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
@ -76,9 +76,9 @@
|
||||
<a-alert banner>
|
||||
<template #message>
|
||||
<ul class="maf-tips">
|
||||
<li>{{ $t('pages.login.install.73ca3cd9') }}</li>
|
||||
<li>{{ $t('pages.login.install.1dc0b420') }}</li>
|
||||
<li>{{ $t('pages.login.install.94e139a1') }}</li>
|
||||
<li>{{ $t('i18n.449fa9722b') }}</li>
|
||||
<li>{{ $t('i18n.0ac9e3e675') }}</li>
|
||||
<li>{{ $t('i18n.8c24b5e19c') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
@ -86,7 +86,7 @@
|
||||
<a-row>
|
||||
<a-col :span="12">
|
||||
<a-form-item>
|
||||
<h3 :id="$t('pages.login.install.f907f6d7')">{{ $t('pages.login.install.f907f6d7') }}</h3>
|
||||
<h3 :id="$t('i18n.ceffe5d643')">{{ $t('i18n.ceffe5d643') }}</h3>
|
||||
<p v-for="(html, index) in MFA_APP_TIP_ARRAY" :key="index" v-html="html" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@ -98,7 +98,7 @@
|
||||
class="init-form"
|
||||
@finish="handleMfaSure"
|
||||
>
|
||||
<a-form-item :label="$t('pages.login.install.e3ff2149')">
|
||||
<a-form-item :label="$t('i18n.22b03c024d')">
|
||||
<a-qrcode :value="qrCode.value" :status="qrCode.value ? 'active' : 'loading'" />
|
||||
</a-form-item>
|
||||
<a-form-item label="MFA key" name="mfa">
|
||||
@ -111,14 +111,14 @@
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item
|
||||
:label="$t('pages.login.install.3c14fe26')"
|
||||
:label="$t('i18n.983f59c9d4')"
|
||||
name="twoCode"
|
||||
:rules="[
|
||||
{ required: true, message: $t('pages.login.install.e789cea') },
|
||||
{ pattern: /^\d{6}$/, message: $t('pages.login.install.389e70c5') }
|
||||
{ required: true, message: $t('i18n.7e866fece6') },
|
||||
{ pattern: /^\d{6}$/, message: $t('i18n.da1abf0865') }
|
||||
]"
|
||||
>
|
||||
<a-input v-model:value="mfaForm.twoCode" :placeholder="$t('pages.login.install.2cef177e')" />
|
||||
<a-input v-model:value="mfaForm.twoCode" :placeholder="$t('i18n.3f18d14961')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item>
|
||||
@ -126,10 +126,10 @@
|
||||
<a-col :span="10">
|
||||
<a-space>
|
||||
<a-button type="primary" html-type="submit" class="btn" :loading="loading">
|
||||
{{ $t('pages.login.install.4f983817') }}
|
||||
{{ $t('i18n.b7cfa07d78') }}
|
||||
</a-button>
|
||||
<a-button type="dashed" @click="handleIgnoreBindMfa">
|
||||
{{ $t('pages.login.install.674bd7aa') }}
|
||||
{{ $t('i18n.c0d5d68f5f') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</a-col>
|
||||
@ -144,11 +144,11 @@
|
||||
<div v-else>
|
||||
<a-result
|
||||
status="warning"
|
||||
:title="$t('pages.login.install.56a72339')"
|
||||
:sub-title="$t('pages.login.install.e16a0388')"
|
||||
:title="$t('i18n.65cf4248a8')"
|
||||
:sub-title="$t('i18n.70a6bc1e94')"
|
||||
>
|
||||
<template #extra>
|
||||
<a-button type="primary" @click="goHome"> {{ $t('pages.login.install.97f5410c') }} </a-button>
|
||||
<a-button type="primary" @click="goHome"> {{ $t('i18n.0bbc7458b4') }} </a-button>
|
||||
</template>
|
||||
</a-result>
|
||||
</div>
|
||||
@ -241,10 +241,10 @@ const handleMfaSure = () => {
|
||||
// 忽略 mfa
|
||||
const handleIgnoreBindMfa = () => {
|
||||
$confirm({
|
||||
title: $t('pages.login.install.b22d55a0'),
|
||||
content: $t('pages.login.install.250da8d7'),
|
||||
okText: $t('pages.login.install.e5a2dcc3'),
|
||||
cancelText: $t('pages.login.install.33a5532c'),
|
||||
title: $t('i18n.c4535759ee'),
|
||||
content: $t('i18n.dc39b183ea'),
|
||||
okText: $t('i18n.e83a256e4f'),
|
||||
cancelText: $t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
router.push({ path: '/' })
|
||||
}
|
||||
|
@ -16,43 +16,43 @@
|
||||
<a-space wrap class="search-box">
|
||||
<a-input
|
||||
v-model:value="listQuery['%name%']"
|
||||
:placeholder="$t('pages.monitor.list.102669ac')"
|
||||
:placeholder="$t('i18n.f976e8fcf4')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-select
|
||||
v-model:value="listQuery.status"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.monitor.list.ae501880')"
|
||||
:placeholder="$t('i18n.a4f5cae8d2')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option :value="1">{{ $t('pages.monitor.list.c467118a') }}</a-select-option>
|
||||
<a-select-option :value="0">{{ $t('pages.monitor.list.cfb79b99') }}</a-select-option>
|
||||
<a-select-option :value="1">{{ $t('i18n.cc42dd3170') }}</a-select-option>
|
||||
<a-select-option :value="0">{{ $t('i18n.b15d91274e') }}</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
v-model:value="listQuery.autoRestart"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.monitor.list.dddb1bfb')"
|
||||
:placeholder="$t('i18n.75528c19c7')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option :value="1">{{ $t('pages.monitor.list.d2fbce36') }}</a-select-option>
|
||||
<a-select-option :value="0">{{ $t('pages.monitor.list.1c77d6fb') }}</a-select-option>
|
||||
<a-select-option :value="1">{{ $t('i18n.0a60ac8f02') }}</a-select-option>
|
||||
<a-select-option :value="0">{{ $t('i18n.c9744f45e7') }}</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
v-model:value="listQuery.alarm"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.monitor.list.95aeba54')"
|
||||
:placeholder="$t('i18n.db4470d98d')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option :value="1">{{ $t('pages.monitor.list.25660a73') }}</a-select-option>
|
||||
<a-select-option :value="0">{{ $t('pages.monitor.list.8d356eff') }}</a-select-option>
|
||||
<a-select-option :value="1">{{ $t('i18n.11957d12e4') }}</a-select-option>
|
||||
<a-select-option :value="0">{{ $t('i18n.bb667fdb2a') }}</a-select-option>
|
||||
</a-select>
|
||||
<a-tooltip :title="$t('pages.monitor.list.2c53fa4f')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.monitor.list.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('pages.monitor.list.7d46652a') }}</a-button>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
<template #bodyCell="{ column, text, record }">
|
||||
@ -66,8 +66,8 @@
|
||||
size="small"
|
||||
:checked="text"
|
||||
disabled
|
||||
:checked-children="$t('pages.monitor.list.c467118a')"
|
||||
:un-checked-children="$t('pages.monitor.list.cfb79b99')"
|
||||
:checked-children="$t('i18n.cc42dd3170')"
|
||||
:un-checked-children="$t('i18n.b15d91274e')"
|
||||
/>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'autoRestart'">
|
||||
@ -75,8 +75,8 @@
|
||||
size="small"
|
||||
:checked="text"
|
||||
disabled
|
||||
:checked-children="$t('pages.monitor.list.d2fbce36')"
|
||||
:un-checked-children="$t('pages.monitor.list.1c77d6fb')"
|
||||
:checked-children="$t('i18n.0a60ac8f02')"
|
||||
:un-checked-children="$t('i18n.c9744f45e7')"
|
||||
/>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'alarm'">
|
||||
@ -84,18 +84,18 @@
|
||||
size="small"
|
||||
:checked="text"
|
||||
disabled
|
||||
:checked-children="$t('pages.monitor.list.25660a73')"
|
||||
:un-checked-children="$t('pages.monitor.list.8d356eff')"
|
||||
:checked-children="$t('i18n.11957d12e4')"
|
||||
:un-checked-children="$t('i18n.bb667fdb2a')"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button type="primary" size="small" @click="handleEdit(record)">{{
|
||||
$t('pages.monitor.list.64603c01')
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<a-button type="primary" danger size="small" @click="handleDelete(record)">{{
|
||||
$t('pages.monitor.list.dd20d11c')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -108,29 +108,29 @@
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
width="60%"
|
||||
:title="$t('pages.monitor.list.d6117b62')"
|
||||
:title="$t('i18n.ebc2a1956b')"
|
||||
:mask-closable="false"
|
||||
@ok="handleEditMonitorOk"
|
||||
>
|
||||
<a-form ref="editMonitorForm" :rules="rules" :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 18 }">
|
||||
<a-form-item :label="$t('pages.monitor.list.102669ac')" name="name">
|
||||
<a-input v-model:value="temp.name" :max-length="50" :placeholder="$t('pages.monitor.list.102669ac')" />
|
||||
<a-form-item :label="$t('i18n.f976e8fcf4')" name="name">
|
||||
<a-input v-model:value="temp.name" :max-length="50" :placeholder="$t('i18n.f976e8fcf4')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.monitor.list.ae501880')" name="status">
|
||||
<a-form-item :label="$t('i18n.a4f5cae8d2')" name="status">
|
||||
<a-space size="large">
|
||||
<a-switch
|
||||
v-model:checked="temp.status"
|
||||
:checked-children="$t('pages.monitor.list.726bd72c')"
|
||||
:un-checked-children="$t('pages.monitor.list.8ca0a6dc')"
|
||||
:checked-children="$t('i18n.8493205602')"
|
||||
:un-checked-children="$t('i18n.d58a55bcee')"
|
||||
/>
|
||||
<div>
|
||||
{{ $t('pages.monitor.list.dddb1bfb') }}:
|
||||
{{ $t('i18n.75528c19c7') }}:
|
||||
<a-form-item-rest>
|
||||
<a-switch
|
||||
v-model:checked="temp.autoRestart"
|
||||
:checked-children="$t('pages.monitor.list.726bd72c')"
|
||||
:un-checked-children="$t('pages.monitor.list.8ca0a6dc')"
|
||||
:checked-children="$t('i18n.8493205602')"
|
||||
:un-checked-children="$t('i18n.d58a55bcee')"
|
||||
/>
|
||||
</a-form-item-rest>
|
||||
</div>
|
||||
@ -150,21 +150,21 @@
|
||||
</a-radio-group>
|
||||
</a-form-item> -->
|
||||
|
||||
<a-form-item :label="$t('pages.monitor.list.1283816f')" name="execCron">
|
||||
<a-form-item :label="$t('i18n.67e7f9e541')" name="execCron">
|
||||
<a-auto-complete
|
||||
v-model:value="temp.execCron"
|
||||
:placeholder="$t('pages.monitor.list.c2df5e27')"
|
||||
:placeholder="$t('i18n.5dff0d31d0')"
|
||||
:options="CRON_DATA_SOURCE"
|
||||
>
|
||||
<template #option="item"> {{ item.title }} {{ item.value }} </template>
|
||||
</a-auto-complete>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.monitor.list.58d3f8a0')" name="projects">
|
||||
<a-form-item :label="$t('i18n.0e55a594fd')" name="projects">
|
||||
<a-select
|
||||
v-model:value="projectKeys"
|
||||
option-label-prop="label"
|
||||
mode="multiple"
|
||||
:placeholder="$t('pages.monitor.list.93944349')"
|
||||
:placeholder="$t('i18n.ac5f3bfa5b')"
|
||||
show-search
|
||||
:filter-option="
|
||||
(input, option) => {
|
||||
@ -188,7 +188,7 @@
|
||||
:label="`${project.name} - ${project.runMode}`"
|
||||
:disabled="!noFileModes.includes(project.runMode)"
|
||||
>
|
||||
{{ $t('pages.monitor.list.3d3c5ee3') }}{{ project.nodeName }}{{ $t('pages.monitor.list.7ee15942')
|
||||
{{ $t('i18n.0341329b1d') }}{{ project.nodeName }}{{ $t('i18n.5942e7ebd0')
|
||||
}}{{ project.name }} -
|
||||
{{ project.runMode }}
|
||||
</a-select-option>
|
||||
@ -198,15 +198,15 @@
|
||||
<a-form-item name="notifyUser" class="jpom-notify">
|
||||
<template #label>
|
||||
<a-tooltip>
|
||||
{{ $t('pages.monitor.list.4c669a42') }}
|
||||
<template #title> {{ $t('pages.monitor.list.e2db3920') }} </template>
|
||||
{{ $t('i18n.52409da520') }}
|
||||
<template #title> {{ $t('i18n.067eb0fa04') }} </template>
|
||||
<QuestionCircleOutlined v-show="!temp.id" />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-transfer
|
||||
:data-source="userList"
|
||||
:lazy="false"
|
||||
:titles="[$t('pages.monitor.list.b3ef02d8'), $t('pages.monitor.list.a27bd430')]"
|
||||
:titles="[$t('i18n.43d229617a'), $t('i18n.f08afd1f82')]"
|
||||
show-search
|
||||
:list-style="{
|
||||
width: '18vw'
|
||||
@ -217,7 +217,7 @@
|
||||
>
|
||||
<template #render="item">
|
||||
<template v-if="item.disabled">
|
||||
<a-tooltip :title="$t('pages.monitor.list.1bb4f680')">
|
||||
<a-tooltip :title="$t('i18n.44876fc0e7')">
|
||||
<WarningTwoTone />
|
||||
{{ item.name }}
|
||||
</a-tooltip>
|
||||
@ -234,18 +234,18 @@
|
||||
WebHooks
|
||||
<template #title>
|
||||
<ul>
|
||||
<li>{{ $t('pages.monitor.list.59adf155') }}</li>
|
||||
<li>{{ $t('pages.monitor.list.68ad1baf') }}</li>
|
||||
<li>{{ $t('i18n.74dd7594fc') }}</li>
|
||||
<li>{{ $t('i18n.d1f56b0a7e') }}</li>
|
||||
<li>
|
||||
runStatus {{ $t('pages.monitor.list.481bf10e') }}({{ $t('pages.monitor.list.6af45b93') }}),false
|
||||
{{ $t('pages.monitor.list.926b691b') }}({{ $t('pages.monitor.list.cfdf8071') }})
|
||||
runStatus {{ $t('i18n.808c18d2bb') }}({{ $t('i18n.ad9788b17d') }}),false
|
||||
{{ $t('i18n.22e4da4998') }}({{ $t('i18n.2b52fa609c') }})
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
<QuestionCircleOutlined v-show="!temp.id" />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input v-model:value="temp.webhook" :placeholder="$t('pages.monitor.list.76e16851')" />
|
||||
<a-input v-model:value="temp.webhook" :placeholder="$t('i18n.77373db7d8')" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</CustomModal>
|
||||
@ -279,38 +279,38 @@ export default {
|
||||
editMonitorVisible: false,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.monitor.list.bb769c1d'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: 'name',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.list.1283816f'),
|
||||
title: this.$t('i18n.67e7f9e541'),
|
||||
dataIndex: 'execCron',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.list.ae501880'),
|
||||
title: this.$t('i18n.a4f5cae8d2'),
|
||||
dataIndex: 'status',
|
||||
ellipsis: true,
|
||||
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.list.dddb1bfb'),
|
||||
title: this.$t('i18n.75528c19c7'),
|
||||
dataIndex: 'autoRestart',
|
||||
ellipsis: true,
|
||||
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.list.95aeba54'),
|
||||
title: this.$t('i18n.db4470d98d'),
|
||||
dataIndex: 'alarm',
|
||||
ellipsis: true,
|
||||
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.list.916db24b'),
|
||||
title: this.$t('i18n.9baca0054e'),
|
||||
dataIndex: 'modifyUser',
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
@ -318,7 +318,7 @@ export default {
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.list.fd921623'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'modifyTimeMillis',
|
||||
sorter: true,
|
||||
customRender: ({ text }) => {
|
||||
@ -330,7 +330,7 @@ export default {
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.list.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
ellipsis: true,
|
||||
fixed: 'right',
|
||||
@ -342,7 +342,7 @@ export default {
|
||||
name: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('pages.monitor.list.4084f8f4'),
|
||||
message: this.$t('i18n.c68dc88c51'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
]
|
||||
@ -400,7 +400,7 @@ export default {
|
||||
|
||||
this.nodeProjectList = res.data.map((item) => {
|
||||
let nodeInfo = res1.data.filter((nodeItem) => nodeItem.id === item.nodeId)
|
||||
item.nodeName = nodeInfo.length > 0 ? nodeInfo[0].name : this.$t('pages.monitor.list.ca1cdfa6')
|
||||
item.nodeName = nodeInfo.length > 0 ? nodeInfo[0].name : this.$t('i18n.1622dc9b6b')
|
||||
return item
|
||||
})
|
||||
this.nodeProjectGroupList = itemGroupBy(this.nodeProjectList, 'nodeId', 'node', 'projects')
|
||||
@ -481,7 +481,7 @@ export default {
|
||||
|
||||
if (targetKeysTemp.length <= 0 && !this.temp.webhook) {
|
||||
$notification.warn({
|
||||
message: this.$t('pages.monitor.list.4f5685c5')
|
||||
message: this.$t('i18n.6c24533675')
|
||||
})
|
||||
return false
|
||||
}
|
||||
@ -514,11 +514,11 @@ export default {
|
||||
// 删除
|
||||
handleDelete(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.monitor.list.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.monitor.list.6a11a0dd'),
|
||||
okText: this.$t('pages.monitor.list.e8e9db25'),
|
||||
cancelText: this.$t('pages.monitor.list.b12468e9'),
|
||||
content: this.$t('i18n.20e0b90021'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return deleteMonitor(record.id).then((res) => {
|
||||
if (res.code === 200) {
|
||||
|
@ -17,7 +17,7 @@
|
||||
<a-select
|
||||
v-model:value="listQuery.nodeId"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.monitor.log.2c33c91c')"
|
||||
:placeholder="$t('i18n.f8a613d247')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="(nodeName, key) in nodeMap" :key="key">{{ nodeName }}</a-select-option>
|
||||
@ -25,25 +25,25 @@
|
||||
<a-select
|
||||
v-model:value="listQuery.status"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.monitor.log.95aeba54')"
|
||||
:placeholder="$t('i18n.db4470d98d')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option :value="1">{{ $t('pages.monitor.log.3483f3b7') }}</a-select-option>
|
||||
<a-select-option :value="0">{{ $t('pages.monitor.log.346ba9a') }}</a-select-option>
|
||||
<a-select-option :value="1">{{ $t('i18n.fd6e80f1e0') }}</a-select-option>
|
||||
<a-select-option :value="0">{{ $t('i18n.c195df6308') }}</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
v-model:value="listQuery.notifyStatus"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.monitor.log.6abae0da')"
|
||||
:placeholder="$t('i18n.8023baf064')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option :value="1">{{ $t('pages.monitor.log.9d77d967') }}</a-select-option>
|
||||
<a-select-option :value="0">{{ $t('pages.monitor.log.d3ec0514') }}</a-select-option>
|
||||
<a-select-option :value="1">{{ $t('i18n.330363dfc5') }}</a-select-option>
|
||||
<a-select-option :value="0">{{ $t('i18n.acd5cb847a') }}</a-select-option>
|
||||
</a-select>
|
||||
<a-range-picker :show-time="{ format: 'HH:mm:ss' }" format="YYYY-MM-DD HH:mm:ss" @change="onchangeTime" />
|
||||
<a-tooltip :title="$t('pages.monitor.log.767472f6')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{
|
||||
$t('pages.monitor.log.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
@ -60,17 +60,17 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'status'">
|
||||
<span>{{ text ? $t('pages.monitor.log.3483f3b7') : $t('pages.monitor.log.346ba9a') }}</span>
|
||||
<span>{{ text ? $t('i18n.fd6e80f1e0') : $t('i18n.c195df6308') }}</span>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'notifyStyle'">
|
||||
{{ notifyStyle[text] || $t('pages.monitor.log.ca1cdfa6') }}
|
||||
{{ notifyStyle[text] || $t('i18n.1622dc9b6b') }}
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'notifyStatus'">
|
||||
<span>{{ text ? $t('pages.monitor.log.9d77d967') : $t('pages.monitor.log.d3ec0514') }}</span>
|
||||
<span>{{ text ? $t('i18n.330363dfc5') : $t('i18n.acd5cb847a') }}</span>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-button size="small" type="primary" @click="handleDetail(record)">{{
|
||||
$t('pages.monitor.log.151c73eb')
|
||||
$t('i18n.f26225bde6')
|
||||
}}</a-button>
|
||||
</template>
|
||||
</template>
|
||||
@ -81,7 +81,7 @@
|
||||
v-model:open="detailVisible"
|
||||
destroy-on-close
|
||||
width="600px"
|
||||
:title="$t('pages.monitor.log.7990de3b')"
|
||||
:title="$t('i18n.3032257aa3')"
|
||||
:footer="null"
|
||||
>
|
||||
<a-list item-layout="horizontal" :data-source="detailData">
|
||||
@ -116,40 +116,40 @@ export default {
|
||||
detailData: [],
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.monitor.log.f00e2365'),
|
||||
title: this.$t('i18n.36b3f3a2f6'),
|
||||
dataIndex: 'title',
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.log.fa8d810f'),
|
||||
title: this.$t('i18n.b1785ef01e'),
|
||||
dataIndex: 'nodeId',
|
||||
width: 100,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.log.4eaba425'),
|
||||
title: this.$t('i18n.4fdd2213b5'),
|
||||
dataIndex: 'projectId',
|
||||
width: 100,
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.log.95aeba54'),
|
||||
title: this.$t('i18n.db4470d98d'),
|
||||
dataIndex: 'status',
|
||||
width: 100,
|
||||
align: 'center',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.log.b93a2f3c'),
|
||||
title: this.$t('i18n.52eedb4a12'),
|
||||
dataIndex: 'notifyStyle',
|
||||
width: 100,
|
||||
align: 'center',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.log.ec06406f'),
|
||||
title: this.$t('i18n.4741e596ac'),
|
||||
dataIndex: 'createTime',
|
||||
customRender: ({ text }) => {
|
||||
return parseTime(text)
|
||||
@ -157,13 +157,13 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.log.6abae0da'),
|
||||
title: this.$t('i18n.8023baf064'),
|
||||
dataIndex: 'notifyStatus',
|
||||
width: 100,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.log.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
align: 'center',
|
||||
fixed: 'right',
|
||||
@ -227,15 +227,15 @@ export default {
|
||||
this.detailData = []
|
||||
this.detailVisible = true
|
||||
this.temp = Object.assign({}, record)
|
||||
this.detailData.push({ title: this.$t('pages.monitor.log.a1b6e465'), description: this.temp.title })
|
||||
this.detailData.push({ title: this.$t('pages.monitor.log.99ff48c8'), description: this.temp.content })
|
||||
this.detailData.push({ title: this.$t('i18n.32c65d8d74'), description: this.temp.title })
|
||||
this.detailData.push({ title: this.$t('i18n.2d711b09bd'), description: this.temp.content })
|
||||
this.detailData.push({
|
||||
title: this.$t('pages.monitor.log.18ba4cd5'),
|
||||
title: this.$t('i18n.59c75681b4'),
|
||||
description: this.temp.notifyObject
|
||||
})
|
||||
if (!this.temp.notifyStatus) {
|
||||
this.detailData.push({
|
||||
title: this.$t('pages.monitor.log.65f01a1b'),
|
||||
title: this.$t('i18n.fcb4c2610a'),
|
||||
description: this.temp.notifyError
|
||||
})
|
||||
}
|
||||
|
@ -16,25 +16,25 @@
|
||||
<a-space wrap class="search-box">
|
||||
<a-input
|
||||
v-model:value="listQuery['%name%']"
|
||||
:placeholder="$t('pages.monitor.operate-log.102669ac')"
|
||||
:placeholder="$t('i18n.f976e8fcf4')"
|
||||
class="search-input-item"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-select
|
||||
v-model:value="listQuery.status"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.monitor.operate-log.6e06fe4f')"
|
||||
:placeholder="$t('i18n.a4f5cae8d2')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option :value="1">{{ $t('pages.monitor.operate-log.726bd72c') }}</a-select-option>
|
||||
<a-select-option :value="0">{{ $t('pages.monitor.operate-log.8ca0a6dc') }}</a-select-option>
|
||||
<a-select-option :value="1">{{ $t('i18n.cc42dd3170') }}</a-select-option>
|
||||
<a-select-option :value="0">{{ $t('i18n.b15d91274e') }}</a-select-option>
|
||||
</a-select>
|
||||
<a-tooltip :title="$t('pages.monitor.operate-log.5da9e22d')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.monitor.operate-log.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('pages.monitor.operate-log.7d46652a') }}</a-button>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
<template #bodyCell="{ column, text, record }">
|
||||
@ -47,18 +47,18 @@
|
||||
<a-switch
|
||||
size="small"
|
||||
:checked="text"
|
||||
:checked-children="$t('pages.monitor.operate-log.726bd72c')"
|
||||
:un-checked-children="$t('pages.monitor.operate-log.8ca0a6dc')"
|
||||
:checked-children="$t('i18n.cc42dd3170')"
|
||||
:un-checked-children="$t('i18n.b15d91274e')"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('pages.monitor.operate-log.64603c01')
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('pages.monitor.operate-log.dd20d11c')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -71,22 +71,22 @@
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
width="50vw"
|
||||
:title="$t('pages.monitor.operate-log.d6117b62')"
|
||||
:title="$t('i18n.ebc2a1956b')"
|
||||
:mask-closable="false"
|
||||
@ok="handleEditOperateMonitorOk"
|
||||
>
|
||||
<a-form ref="editMonitorForm" :rules="rules" :model="temp" :label-col="{ span: 5 }" :wrapper-col="{ span: 17 }">
|
||||
<a-form-item :label="$t('pages.monitor.operate-log.102669ac')" name="name">
|
||||
<a-input v-model:value="temp.name" :max-length="50" :placeholder="$t('pages.monitor.operate-log.102669ac')" />
|
||||
<a-form-item :label="$t('i18n.f976e8fcf4')" name="name">
|
||||
<a-input v-model:value="temp.name" :max-length="50" :placeholder="$t('i18n.f976e8fcf4')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.monitor.operate-log.6e06fe4f')" name="status">
|
||||
<a-form-item :label="$t('i18n.a4f5cae8d2')" name="status">
|
||||
<a-switch
|
||||
v-model:checked="temp.start"
|
||||
:checked-children="$t('pages.monitor.operate-log.412561bf')"
|
||||
:un-checked-children="$t('pages.monitor.operate-log.99811dca')"
|
||||
:checked-children="$t('i18n.8493205602')"
|
||||
:un-checked-children="$t('i18n.d58a55bcee')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.monitor.operate-log.ca5b0bf7')" name="monitorUser">
|
||||
<a-form-item :label="$t('i18n.5e46f842d8')" name="monitorUser">
|
||||
<a-transfer
|
||||
:data-source="monitorUserList"
|
||||
:lazy="false"
|
||||
@ -100,7 +100,7 @@
|
||||
</template>
|
||||
</a-transfer>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.monitor.operate-log.59c90082')" name="monitorOpt">
|
||||
<a-form-item :label="$t('i18n.5cb39287a8')" name="monitorOpt">
|
||||
<a-transfer
|
||||
:data-source="classFeature"
|
||||
:lazy="false"
|
||||
@ -114,7 +114,7 @@
|
||||
</template>
|
||||
</a-transfer>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.monitor.operate-log.42cc6f66')" name="monitorOpt">
|
||||
<a-form-item :label="$t('i18n.3e7ef69c98')" name="monitorOpt">
|
||||
<a-transfer
|
||||
:data-source="methodFeature"
|
||||
:lazy="false"
|
||||
@ -131,8 +131,8 @@
|
||||
<a-form-item name="notifyUser" class="jpom-monitor-notify">
|
||||
<template #label>
|
||||
<a-tooltip>
|
||||
{{ $t('pages.monitor.operate-log.2e5898f2') }}
|
||||
<template #title> {{ $t('pages.monitor.operate-log.4bff4306') }} </template>
|
||||
{{ $t('i18n.09723d428d') }}
|
||||
<template #title> {{ $t('i18n.067eb0fa04') }} </template>
|
||||
<QuestionCircleOutlined v-show="!temp.id" />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
@ -182,19 +182,19 @@ export default {
|
||||
editOperateMonitorVisible: false,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.monitor.operate-log.bb769c1d'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: 'name'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.operate-log.6e06fe4f'),
|
||||
title: this.$t('i18n.a4f5cae8d2'),
|
||||
dataIndex: 'status'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.operate-log.916db24b'),
|
||||
title: this.$t('i18n.9baca0054e'),
|
||||
dataIndex: 'modifyUser'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.operate-log.fd921623'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'modifyTimeMillis',
|
||||
sorter: true,
|
||||
customRender: ({ text }) => {
|
||||
@ -206,7 +206,7 @@ export default {
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.monitor.operate-log.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
align: 'center',
|
||||
fixed: 'right',
|
||||
@ -218,7 +218,7 @@ export default {
|
||||
name: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('pages.monitor.operate-log.a530a71d'),
|
||||
message: this.$t('i18n.c68dc88c51'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
]
|
||||
@ -333,25 +333,25 @@ export default {
|
||||
this.$refs['editMonitorForm'].validate().then(() => {
|
||||
if (this.monitorUserKeys.length === 0) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.monitor.operate-log.328111cb')
|
||||
message: this.$t('i18n.83c61f7f9e')
|
||||
})
|
||||
return false
|
||||
}
|
||||
if (this.methodFeatureKeys.length === 0) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.monitor.operate-log.45c25649')
|
||||
message: this.$t('i18n.fabc07a4f1')
|
||||
})
|
||||
return false
|
||||
}
|
||||
if (this.classFeatureKeys.length === 0) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.monitor.operate-log.3a343686')
|
||||
message: this.$t('i18n.c6e4cddba0')
|
||||
})
|
||||
return false
|
||||
}
|
||||
if (this.notifyUserKeys.length === 0) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.monitor.operate-log.1cf3e6f')
|
||||
message: this.$t('i18n.d02a9a85df')
|
||||
})
|
||||
return false
|
||||
}
|
||||
@ -382,11 +382,11 @@ export default {
|
||||
// 删除
|
||||
handleDelete(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.monitor.operate-log.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.monitor.operate-log.987c2cd6'),
|
||||
okText: this.$t('pages.monitor.operate-log.e8e9db25'),
|
||||
cancelText: this.$t('pages.monitor.operate-log.b12468e9'),
|
||||
content: this.$t('i18n.b63c057330'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return deleteMonitorOperate(record.id).then((res) => {
|
||||
if (res.code === 200) {
|
||||
|
@ -2,44 +2,44 @@
|
||||
<div>
|
||||
<div v-if="fastInstallInfo">
|
||||
<a-collapse v-model:activeKey="fastInstallActiveKey">
|
||||
<a-collapse-panel key="1" :header="$t('pages.node.fast-install.d5e02e8a')">
|
||||
<a-collapse-panel key="1" :header="$t('i18n.947d983961')">
|
||||
<a-alert message="" type="warning" show-icon>
|
||||
<template #description>
|
||||
<ul>
|
||||
<li>
|
||||
{{ $t('pages.node.fast-install.32fdd87c') }}<b>{{ $t('pages.node.fast-install.10b5da87') }}</b
|
||||
>,<b>{{ $t('pages.node.fast-install.c80b813d') }}</b
|
||||
>{{ $t('pages.node.fast-install.c390a968') }}
|
||||
{{ $t('i18n.e2be9bab6b') }}<b>{{ $t('i18n.0f59fe5338') }}</b
|
||||
>,<b>{{ $t('i18n.baafe06808') }}</b
|
||||
>{{ $t('i18n.c5c69827c5') }}
|
||||
</li>
|
||||
<li>{{ $t('pages.node.fast-install.72ca71a6') }}<b>2123</b></li>
|
||||
<li>{{ $t('i18n.b4e2b132cf') }}<b>2123</b></li>
|
||||
<li>
|
||||
{{ $t('pages.node.fast-install.39badef3') }}<b>{{ $t('pages.node.fast-install.d6480653') }}</b>
|
||||
{{ $t('i18n.e222f4b9ad') }}<b>{{ $t('i18n.57cadc4cf3') }}</b>
|
||||
</li>
|
||||
<li>{{ $t('pages.node.fast-install.3f82fca3') }}</li>
|
||||
<li style="color: red">{{ $t('pages.node.fast-install.bea26ef8') }}</li>
|
||||
<li>{{ $t('i18n.d19bae9fe0') }}</li>
|
||||
<li style="color: red">{{ $t('i18n.282c8cda1f') }}</li>
|
||||
<li>
|
||||
{{ $t('pages.node.fast-install.ba5049eb') }}<b>{{ $t('pages.node.fast-install.8716288a') }}</b
|
||||
>,{{ $t('pages.node.fast-install.4e2553dc') }}
|
||||
{{ $t('i18n.88c85a2506') }}<b>{{ $t('i18n.310c809904') }}</b
|
||||
>,{{ $t('i18n.f7596f3159') }}
|
||||
</li>
|
||||
<li>
|
||||
{{ $t('pages.node.fast-install.5056e934') }}<b>{{ $t('pages.node.fast-install.6703099') }}</b
|
||||
>,{{ $t('pages.node.fast-install.fa70b3c9') }}
|
||||
{{ $t('i18n.38da533413') }}<b>{{ $t('i18n.0bac3db71c') }}</b
|
||||
>,{{ $t('i18n.0e052223a4') }}
|
||||
</li>
|
||||
<li>
|
||||
{{ $t('pages.node.fast-install.5b7c9ba') }}<b>networkName</b
|
||||
{{ $t('i18n.a50fbc5a52') }}<b>networkName</b
|
||||
>{{
|
||||
$t('pages.node.fast-install.32ef99d')
|
||||
$t('i18n.9971192b6a')
|
||||
}}://192.168.31.175:2122/api/node/receive_push?token=xxx&workspaceId=xxx&networkName=en0
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
</a-collapse-panel>
|
||||
<a-collapse-panel key="2" :header="$t('pages.node.fast-install.fa50cb40')">
|
||||
<a-collapse-panel key="2" :header="$t('i18n.70b5b45591')">
|
||||
<a-tabs :default-active-key="0">
|
||||
<a-tab-pane v-for="(item, index) in fastInstallInfo.shUrls" :key="index" :tab="item.name">
|
||||
<div>
|
||||
<a-alert type="info" :message="`${$t('pages.node.fast-install.f0d88095')}`">
|
||||
<a-alert type="info" :message="`${$t('i18n.ccb91317c5')}`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: item.allText }">
|
||||
<span>{{ item.allText }} </span>
|
||||
@ -50,10 +50,10 @@
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</a-collapse-panel>
|
||||
<a-collapse-panel key="3" :header="$t('pages.node.fast-install.7e4f29f1')">
|
||||
<a-collapse-panel key="3" :header="$t('i18n.dab864ab72')">
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('pages.node.fast-install.f0d88095')}(${$t('pages.node.fast-install.bce891f2')})`"
|
||||
:message="`${$t('i18n.ccb91317c5')}(${$t('i18n.a8920fbfad')})`"
|
||||
>
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: fastInstallInfo.bindCommand }">
|
||||
@ -62,14 +62,14 @@
|
||||
</template>
|
||||
</a-alert>
|
||||
</a-collapse-panel>
|
||||
<a-collapse-panel key="4" :header="$t('pages.node.fast-install.89283f33')">
|
||||
<a-collapse-panel key="4" :header="$t('i18n.adaf94c06b')">
|
||||
<div v-if="!pullFastInstallResultData || !pullFastInstallResultData.length">
|
||||
{{ $t('pages.node.fast-install.b01ed3b7') }}
|
||||
{{ $t('i18n.f4fb0cbecf') }}
|
||||
</div>
|
||||
<a-alert
|
||||
v-for="(item, index) in pullFastInstallResultData"
|
||||
:key="`${index}-${new Date().getTime()}`"
|
||||
:message="`${$t('pages.node.fast-install.a3aba05c')} ${index + 1} ${$t(
|
||||
:message="`${$t('i18n.ac00774608')} ${index + 1} ${$t(
|
||||
'pages.node.fast-install.d6f154c5'
|
||||
)}`"
|
||||
:type="`${item.type === 'success' ? 'success' : item.type === 'exists' ? 'error' : 'warning'}`"
|
||||
@ -79,23 +79,23 @@
|
||||
<template #description>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<div v-if="item.type === 'canUseIpEmpty'">
|
||||
<a-tag color="orange">{{ $t('pages.node.fast-install.3d731c66') }}</a-tag>
|
||||
<a-tag color="orange">{{ $t('i18n.5d803afb8d') }}</a-tag>
|
||||
</div>
|
||||
<div v-if="item.type === 'multiIp'">
|
||||
<a-tag color="green">{{ $t('pages.node.fast-install.ece41c2a') }}</a-tag>
|
||||
<a-tag color="green">{{ $t('i18n.d9569a5d3b') }}</a-tag>
|
||||
</div>
|
||||
<div v-if="item.type === 'exists'">
|
||||
<a-tag color="orange">{{ $t('pages.node.fast-install.1d8067db') }}</a-tag>
|
||||
<a-tag color="orange">{{ $t('i18n.9bd451c4e9') }}</a-tag>
|
||||
</div>
|
||||
<div v-if="item.type === 'success'">
|
||||
<a-tag color="orange">{{ $t('pages.node.fast-install.9c1bff84') }}</a-tag>
|
||||
<a-tag color="orange">{{ $t('i18n.1974fe5349') }}</a-tag>
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('pages.node.fast-install.2112ed0f')
|
||||
{{ $t('i18n.8cd628f495')
|
||||
}}<a-tag v-for="(itemIp, indexIp) in item.allIp" :key="indexIp">{{ itemIp }}:{{ item.port }}</a-tag>
|
||||
</div>
|
||||
<div v-if="item.type === 'multiIp'">
|
||||
{{ $t('pages.node.fast-install.a38eb00c') }}({{ $t('pages.node.fast-install.a7e9d227') }}):
|
||||
{{ $t('i18n.78a4b837e3') }}({{ $t('i18n.c5de93f9c7') }}):
|
||||
<a-tag
|
||||
v-for="(itemIp, indexIp) in item.canUseIp"
|
||||
:key="indexIp"
|
||||
@ -104,7 +104,7 @@
|
||||
/></a-tag>
|
||||
</div>
|
||||
<div v-if="item.type === 'success' || item.type === 'exists'">
|
||||
{{ $t('pages.node.fast-install.f48a6e61') }}:
|
||||
{{ $t('i18n.69c743de70') }}:
|
||||
<a-tag v-for="(itemIp, indexIp) in item.canUseIp" :key="indexIp">{{ itemIp }}:{{ item.port }}</a-tag>
|
||||
</div>
|
||||
</a-space>
|
||||
|
@ -1,19 +1,19 @@
|
||||
<template>
|
||||
<div class="">
|
||||
<template v-if="useSuggestions">
|
||||
<a-result :title="$t('pages.node.list.2788c13d')">
|
||||
<template #subTitle> {{ $t('pages.node.list.b48f7ec3') }} </template>
|
||||
<a-result :title="$t('i18n.79698c57a2')">
|
||||
<template #subTitle> {{ $t('i18n.0373ba5502') }} </template>
|
||||
<template #extra>
|
||||
<a-button type="primary" @click="fastInstallNodeShow">{{ $t('pages.node.list.e083d2f7') }} </a-button>
|
||||
<a-button type="primary" @click="fastInstallNodeShow">{{ $t('i18n.70b5b45591') }} </a-button>
|
||||
<router-link to="/system/assets/machine-list">
|
||||
<a-button key="console" type="primary">{{ $t('pages.node.list.2f070f1') }}</a-button></router-link
|
||||
<a-button key="console" type="primary">{{ $t('i18n.c494fbec77') }}</a-button></router-link
|
||||
>
|
||||
</template>
|
||||
<a-alert :message="$t('pages.node.list.a5e1426d')" type="info" show-icon>
|
||||
<a-alert :message="$t('i18n.81c1dff69c')" type="info" show-icon>
|
||||
<template #description>
|
||||
<ol>
|
||||
<li>{{ $t('pages.node.list.c716210a') }}</li>
|
||||
<li>{{ $t('pages.node.list.1ef2234b') }}</li>
|
||||
<li>{{ $t('i18n.da317c3682') }}</li>
|
||||
<li>{{ $t('i18n.9c3a5e1dad') }}</li>
|
||||
</ol>
|
||||
</template>
|
||||
</a-alert>
|
||||
@ -27,7 +27,7 @@
|
||||
:auto-refresh-time="30"
|
||||
:active-page="activePage"
|
||||
table-name="nodeSearch"
|
||||
:empty-description="$t('pages.node.list.c2a3f0cd')"
|
||||
:empty-description="$t('i18n.17b4c9c631')"
|
||||
:columns="columns"
|
||||
:data-source="list"
|
||||
bordered
|
||||
@ -62,7 +62,7 @@
|
||||
<a-space>
|
||||
<a-input
|
||||
v-model:value="listQuery['%name%']"
|
||||
:placeholder="$t('pages.node.list.3614bbe4')"
|
||||
:placeholder="$t('i18n.b1785ef01e')"
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
|
||||
@ -80,14 +80,14 @@
|
||||
}
|
||||
"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.node.list.3228ecae')"
|
||||
:placeholder="$t('i18n.829abe5a8d')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="item in groupList" :key="item">{{ item }}</a-select-option>
|
||||
</a-select>
|
||||
<a-tooltip :title="$t('pages.node.list.767472f6')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{
|
||||
$t('pages.node.list.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button
|
||||
@ -97,18 +97,18 @@
|
||||
fastInstallNode = true
|
||||
}
|
||||
"
|
||||
>{{ $t('pages.node.list.e083d2f7') }}
|
||||
>{{ $t('i18n.70b5b45591') }}
|
||||
</a-button>
|
||||
<a-dropdown v-if="layoutType === 'table'">
|
||||
<a-button
|
||||
type="primary"
|
||||
:disabled="!tableSelections || !tableSelections.length"
|
||||
@click="syncToWorkspaceShow"
|
||||
>{{ $t('pages.node.list.aa37b575') }}</a-button
|
||||
>{{ $t('i18n.398ce396cd') }}</a-button
|
||||
>
|
||||
</a-dropdown>
|
||||
<a-tooltip v-else :title="$t('pages.node.list.11795378')">
|
||||
<a-button :disabled="true" type="primary"> {{ $t('pages.node.list.aa37b575') }} </a-button>
|
||||
<a-tooltip v-else :title="$t('i18n.68af00bedb')">
|
||||
<a-button :disabled="true" type="primary"> {{ $t('i18n.398ce396cd') }} </a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -117,11 +117,11 @@
|
||||
<template #title>
|
||||
<div>
|
||||
<ul>
|
||||
<li>{{ $t('pages.node.list.43ace0d9') }}</li>
|
||||
<li>{{ $t('pages.node.list.8b8c076') }}</li>
|
||||
<li>{{ $t('pages.node.list.36616e52') }}</li>
|
||||
<li>{{ $t('pages.node.list.6a4a7d4') }}</li>
|
||||
<li>{{ $t('pages.node.list.62be4cf2') }}</li>
|
||||
<li>{{ $t('i18n.c75b14a04e') }}</li>
|
||||
<li>{{ $t('i18n.8b6e758e4c') }}</li>
|
||||
<li>{{ $t('i18n.4642113bba') }}</li>
|
||||
<li>{{ $t('i18n.2213206d43') }}</li>
|
||||
<li>{{ $t('i18n.ee4fac2f3c') }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
@ -144,7 +144,7 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-tooltip :title="`${text} ${$t('pages.node.list.546159c')}`" @click="handleNode(record)">
|
||||
<a-tooltip :title="`${text} ${$t('i18n.8a4dbe88b8')}`" @click="handleNode(record)">
|
||||
<a-button type="link" style="padding: 0" size="small">
|
||||
<FullscreenOutlined /><span>{{ text }}</span>
|
||||
</a-button>
|
||||
@ -155,7 +155,7 @@
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${
|
||||
statusMap[record.machineNodeData && record.machineNodeData.status] || $t('pages.node.list.5f51a112')
|
||||
statusMap[record.machineNodeData && record.machineNodeData.status] || $t('i18n.1622dc9b6b')
|
||||
} ${record.machineNodeData && record.machineNodeData.statusMsg}`"
|
||||
>
|
||||
<template v-if="record.openStatus === 1">
|
||||
@ -164,11 +164,11 @@
|
||||
style="margin-right: 0"
|
||||
>
|
||||
{{
|
||||
statusMap[record.machineNodeData && record.machineNodeData.status] || $t('pages.node.list.5f51a112')
|
||||
statusMap[record.machineNodeData && record.machineNodeData.status] || $t('i18n.1622dc9b6b')
|
||||
}}
|
||||
</a-tag>
|
||||
</template>
|
||||
<a-tag v-else>{{ $t('pages.node.list.edb35bf0') }}</a-tag>
|
||||
<a-tag v-else>{{ $t('i18n.4637765b0a') }}</a-tag>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'osName'">
|
||||
@ -184,9 +184,9 @@
|
||||
<template v-else-if="column.dataIndex === 'jvmInfo'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('pages.node.list.56e59e5')}${renderSize(
|
||||
:title="`${$t('i18n.3574d38d3e')}${renderSize(
|
||||
record.machineNodeData && record.machineNodeData.jvmFreeMemory
|
||||
)} ${$t('pages.node.list.8b8cc8a1')}${renderSize(
|
||||
)} ${$t('i18n.a0a3d583b9')}${renderSize(
|
||||
record.machineNodeData && record.machineNodeData.jvmTotalMemory
|
||||
)}`"
|
||||
>
|
||||
@ -211,9 +211,9 @@
|
||||
<a-tooltip placement="topLeft">
|
||||
<template #title>
|
||||
<ul>
|
||||
<li>{{ $t('pages.node.list.a3b72d82') }}{{ text || 0 }}</li>
|
||||
<li>{{ $t('pages.node.list.44708423') }}{{ record.machineNodeData.jpomProjectCount }}</li>
|
||||
<li>{{ $t('pages.node.list.a1d9a917') }}</li>
|
||||
<li>{{ $t('i18n.56d9d84bff') }}{{ text || 0 }}</li>
|
||||
<li>{{ $t('i18n.af98c31607') }}{{ record.machineNodeData.jpomProjectCount }}</li>
|
||||
<li>{{ $t('i18n.143bfbc3a1') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
<a-tag>{{ text || 0 }} </a-tag>
|
||||
@ -227,9 +227,9 @@
|
||||
<a-tooltip placement="topLeft">
|
||||
<template #title>
|
||||
<ul>
|
||||
<li>{{ $t('pages.node.list.e27607ad') }}{{ text || 0 }}</li>
|
||||
<li>{{ $t('pages.node.list.ae871dd1') }}{{ record.machineNodeData.jpomScriptCount }}</li>
|
||||
<li>{{ $t('pages.node.list.c3ba1425') }}</li>
|
||||
<li>{{ $t('i18n.cc5dccd757') }}{{ text || 0 }}</li>
|
||||
<li>{{ $t('i18n.375118fad1') }}{{ record.machineNodeData.jpomScriptCount }}</li>
|
||||
<li>{{ $t('i18n.5baaef6996') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
<a-tag>{{ text || 0 }} </a-tag>
|
||||
@ -241,41 +241,41 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-tooltip :title="$t('pages.node.list.68b2a086')">
|
||||
<a-tooltip :title="$t('i18n.e96705ead1')">
|
||||
<a-button size="small" type="primary" :disabled="record.openStatus !== 1" @click="handleNode(record)">{{
|
||||
$t('pages.node.list.63b11e73')
|
||||
$t('i18n.08b55fea3c')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.node.list.423745e3')">
|
||||
<a-tooltip :title="$t('i18n.7f0abcf48d')">
|
||||
<a-button size="small" type="primary" :disabled="!record.sshId" @click="handleTerminal(record)"
|
||||
><CodeOutlined />{{ $t('pages.node.list.b5a97ef7') }}</a-button
|
||||
><CodeOutlined />{{ $t('i18n.4722bc0c56') }}</a-button
|
||||
>
|
||||
</a-tooltip>
|
||||
|
||||
<a-dropdown>
|
||||
<a @click="(e) => e.preventDefault()">
|
||||
{{ $t('pages.node.list.6e071067') }}
|
||||
{{ $t('i18n.0ec9eaf9c3') }}
|
||||
<DownOutlined />
|
||||
</a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('pages.node.list.64603c01')
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
</a-menu-item>
|
||||
|
||||
<a-menu-item>
|
||||
<a-tooltip placement="leftBottom" :title="$t('pages.node.list.d24d9b6d')">
|
||||
<a-tooltip placement="leftBottom" :title="$t('i18n.58e998a751')">
|
||||
<a-button size="small" type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('pages.node.list.dd20d11c')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
<a-tooltip placement="leftBottom" :title="$t('pages.node.list.ca6be4de')">
|
||||
<a-tooltip placement="leftBottom" :title="$t('i18n.88e6615734')">
|
||||
<a-button size="small" type="primary" danger @click="handleUnbind(record)">{{
|
||||
$t('pages.node.list.4c957529')
|
||||
$t('i18n.663393986e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</a-menu-item>
|
||||
@ -286,7 +286,7 @@
|
||||
type="primary"
|
||||
:disabled="(listQuery.page - 1) * listQuery.limit + (index + 1) <= 1"
|
||||
@click="sortItemHander(record, index, 'top')"
|
||||
>{{ $t('pages.node.list.9e850907') }}</a-button
|
||||
>{{ $t('i18n.3d43ff1199') }}</a-button
|
||||
>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
@ -295,7 +295,7 @@
|
||||
type="primary"
|
||||
:disabled="(listQuery.page - 1) * listQuery.limit + (index + 1) <= 1"
|
||||
@click="sortItemHander(record, index, 'up')"
|
||||
>{{ $t('pages.node.list.6e79de86') }}</a-button
|
||||
>{{ $t('i18n.315eacd193') }}</a-button
|
||||
>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
@ -305,7 +305,7 @@
|
||||
:disabled="(listQuery.page - 1) * listQuery.limit + (index + 1) === listQuery.total"
|
||||
@click="sortItemHander(record, index, 'down')"
|
||||
>
|
||||
{{ $t('pages.node.list.78c0cb41') }}
|
||||
{{ $t('i18n.17acd250da') }}
|
||||
</a-button>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
@ -321,9 +321,9 @@
|
||||
<a-col :span="17" style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap">
|
||||
<a-tooltip>
|
||||
<template #title>
|
||||
{{ $t('pages.node.list.546159c') }}
|
||||
<div>{{ $t('pages.node.list.fa8d810f') }}{{ item.name }}</div>
|
||||
<div>{{ $t('pages.node.list.a0d52737') }}{{ item.url }}</div>
|
||||
{{ $t('i18n.8a4dbe88b8') }}
|
||||
<div>{{ $t('i18n.5d83794cfa') }}{{ item.name }}</div>
|
||||
<div>{{ $t('i18n.cab7517cb4') }}{{ item.url }}</div>
|
||||
</template>
|
||||
|
||||
<a-button type="link" style="padding: 0" size="small" @click="handleNode(item)">
|
||||
@ -335,11 +335,11 @@
|
||||
<a-tooltip>
|
||||
<template #title>
|
||||
<div>
|
||||
{{ $t('pages.node.list.10775be3')
|
||||
{{ $t('i18n.e703c7367c')
|
||||
}}{{ statusMap[item.machineNodeData && item.machineNodeData.status] }}
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('pages.node.list.a622e852')
|
||||
{{ $t('i18n.fb3a2241bb')
|
||||
}}{{ (item.machineNodeData && item.machineNodeData.statusMsg) || '' }}
|
||||
</div>
|
||||
</template>
|
||||
@ -357,7 +357,7 @@
|
||||
<a-row :gutter="[8, 8]">
|
||||
<a-col :span="8" style="text-align: center">
|
||||
<a-tooltip
|
||||
:title="`CPU ${$t('pages.node.list.6b3a1f7c')}${item.occupyCpu}%`"
|
||||
:title="`CPU ${$t('i18n.b0fa44acbb')}${item.occupyCpu}%`"
|
||||
@click="handleHistory(item, 'nodeTop')"
|
||||
>
|
||||
<a-progress
|
||||
@ -375,7 +375,7 @@
|
||||
</a-col>
|
||||
<a-col :span="8" style="text-align: center">
|
||||
<a-tooltip
|
||||
:title="`${$t('pages.node.list.d98a95f3')}${item.occupyDisk}%`"
|
||||
:title="`${$t('i18n.570eb1c04f')}${item.occupyDisk}%`"
|
||||
@click="handleHistory(item, 'nodeTop')"
|
||||
>
|
||||
<a-progress
|
||||
@ -393,7 +393,7 @@
|
||||
</a-col>
|
||||
<a-col :span="8" style="text-align: center">
|
||||
<a-tooltip
|
||||
:title="`${$t('pages.node.list.7da0f839')}${item.occupyMemory}%`"
|
||||
:title="`${$t('i18n.09e7d24952')}${item.occupyMemory}%`"
|
||||
@click="handleHistory(item, 'nodeTop')"
|
||||
>
|
||||
<a-progress
|
||||
@ -415,14 +415,14 @@
|
||||
<a-col :span="8">
|
||||
<a-tooltip
|
||||
:title="`${
|
||||
$t('pages.node.list.6e2c9ac6') +
|
||||
$t('i18n.db732ecb48') +
|
||||
(formatDuration(item.machineNodeData && item.machineNodeData.networkDelay, '', 2) || '-') +
|
||||
$t('pages.node.list.4db198af')
|
||||
$t('i18n.69384c9d71')
|
||||
}`"
|
||||
@click="handleHistory(item, 'networkDelay')"
|
||||
>
|
||||
<a-statistic
|
||||
:title="$t('pages.node.list.6e2c9ac6')"
|
||||
:title="$t('i18n.db732ecb48')"
|
||||
:value="item.machineNodeData && item.machineNodeData.networkDelay"
|
||||
:value-style="statValueStyle"
|
||||
:formatter="
|
||||
@ -438,7 +438,7 @@
|
||||
:title="formatDuration(item.machineNodeData && item.machineNodeData.jpomUptime, '', 1) || '-'"
|
||||
>
|
||||
<a-statistic
|
||||
:title="$t('pages.node.list.4a4e5b97')"
|
||||
:title="$t('i18n.9f70e40e04')"
|
||||
:value-style="statValueStyle"
|
||||
:formatter="
|
||||
(v) => {
|
||||
@ -451,7 +451,7 @@
|
||||
<a-col :span="8">
|
||||
<a-tooltip :title="`${parseTime(item.machineNodeData && item.machineNodeData.modifyTimeMillis)}`">
|
||||
<a-statistic
|
||||
:title="$t('pages.node.list.3d55d8de')"
|
||||
:title="$t('i18n.a001a226fd')"
|
||||
:value-style="statValueStyle"
|
||||
:formatter="
|
||||
(v) => {
|
||||
@ -516,30 +516,30 @@
|
||||
v-model:open="editNodeVisible"
|
||||
destroy-on-close
|
||||
width="50%"
|
||||
:title="$t('pages.node.list.9fa2f20c')"
|
||||
:title="$t('i18n.61e7fa1227')"
|
||||
:confirm-loading="confirmLoading"
|
||||
:mask-closable="false"
|
||||
@ok="handleEditNodeOk"
|
||||
>
|
||||
<a-form ref="editNodeForm" :rules="rules" :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 19 }">
|
||||
<a-form-item :label="$t('pages.node.list.3614bbe4')" name="name">
|
||||
<a-input v-model:value="temp.name" :max-length="50" :placeholder="$t('pages.node.list.3614bbe4')" />
|
||||
<a-form-item :label="$t('i18n.b1785ef01e')" name="name">
|
||||
<a-input v-model:value="temp.name" :max-length="50" :placeholder="$t('i18n.b1785ef01e')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.node.list.12d0e469')" name="group">
|
||||
<a-form-item :label="$t('i18n.1014b33d22')" name="group">
|
||||
<custom-select
|
||||
v-model:value="temp.group"
|
||||
:data="groupList"
|
||||
:input-placeholder="$t('pages.node.list.c50ead9c')"
|
||||
:select-placeholder="$t('pages.node.list.c385f859')"
|
||||
:input-placeholder="$t('i18n.bd0362bed3')"
|
||||
:select-placeholder="$t('i18n.9cac799f2f')"
|
||||
>
|
||||
</custom-select>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.node.list.87c09576')" name="openStatus">
|
||||
<a-form-item :label="$t('i18n.b86224e030')" name="openStatus">
|
||||
<a-switch
|
||||
:checked="temp.openStatus == 1"
|
||||
:checked-children="$t('pages.node.list.149265a9')"
|
||||
:un-checked-children="$t('pages.node.list.287f3530')"
|
||||
:checked-children="$t('i18n.7854b52a88')"
|
||||
:un-checked-children="$t('i18n.5c56a88945')"
|
||||
default-checked
|
||||
@change="
|
||||
(checked) => {
|
||||
@ -548,7 +548,7 @@
|
||||
"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.node.list.72435e8f')" name="sshId">
|
||||
<a-form-item :label="$t('i18n.c5aae76124')" name="sshId">
|
||||
<a-select
|
||||
v-model:value="temp.sshId"
|
||||
show-search
|
||||
@ -562,9 +562,9 @@
|
||||
)
|
||||
}
|
||||
"
|
||||
:placeholder="$t('pages.node.list.9275502b')"
|
||||
:placeholder="$t('i18n.260a3234f2')"
|
||||
>
|
||||
<a-select-option value="">{{ $t('pages.node.list.33711dff') }}</a-select-option>
|
||||
<a-select-option value="">{{ $t('i18n.a9b50d245b') }}</a-select-option>
|
||||
<a-select-option v-for="ssh in sshList" :key="ssh.id" :disabled="ssh.disabled">{{
|
||||
ssh.name
|
||||
}}</a-select-option>
|
||||
@ -598,7 +598,7 @@
|
||||
v-model:open="fastInstallNode"
|
||||
destroy-on-close
|
||||
width="80%"
|
||||
:title="$t('pages.node.list.c0108a0')"
|
||||
:title="$t('i18n.8f7a163ee9')"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
@cancel="
|
||||
@ -616,22 +616,22 @@
|
||||
v-model:open="syncToWorkspaceVisible"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.node.list.d3b55aa0')"
|
||||
:title="$t('i18n.1a44b9e2f7')"
|
||||
:mask-closable="false"
|
||||
@ok="handleSyncToWorkspace"
|
||||
>
|
||||
<a-alert :message="$t('pages.node.list.d5e02e8a')" type="warning">
|
||||
<a-alert :message="$t('i18n.947d983961')" type="warning">
|
||||
<template #description>
|
||||
<ul>
|
||||
<li>{{ $t('pages.node.list.b74cd503') }}</li>
|
||||
<li>{{ $t('pages.node.list.852c00af') }}</li>
|
||||
<li>{{ $t('pages.node.list.c79623c0') }}</li>
|
||||
<li>{{ $t('i18n.6a4a0f2b3b') }}</li>
|
||||
<li>{{ $t('i18n.2611dd8703') }}</li>
|
||||
<li>{{ $t('i18n.cd998f12fa') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-form :model="temp" :label-col="{ span: 6 }" :wrapper-col="{ span: 14 }">
|
||||
<a-form-item> </a-form-item>
|
||||
<a-form-item :label="$t('pages.node.list.7ef9d8fb')" name="workspaceId">
|
||||
<a-form-item :label="$t('i18n.b4a8c78284')" name="workspaceId">
|
||||
<a-select
|
||||
v-model:value="temp.workspaceId"
|
||||
show-search
|
||||
@ -645,7 +645,7 @@
|
||||
)
|
||||
}
|
||||
"
|
||||
:placeholder="$t('pages.node.list.3a321a02')"
|
||||
:placeholder="$t('i18n.b3bda9bf9e')"
|
||||
>
|
||||
<a-select-option v-for="item in workspaceList" :key="item.id" :disabled="getWorkspaceId() === item.id">{{
|
||||
item.name
|
||||
@ -660,7 +660,7 @@
|
||||
v-model:open="monitorVisible"
|
||||
destroy-on-close
|
||||
width="75%"
|
||||
:title="`${temp.name}${$t('pages.node.list.d298e120')}`"
|
||||
:title="`${temp.name}${$t('i18n.5068552b18')}`"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
>
|
||||
@ -735,7 +735,7 @@ export default {
|
||||
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.node.list.3614bbe4'),
|
||||
title: this.$t('i18n.b1785ef01e'),
|
||||
dataIndex: 'name',
|
||||
width: 200,
|
||||
sorter: true,
|
||||
@ -743,34 +743,34 @@ export default {
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.list.969229b3'),
|
||||
title: this.$t('i18n.3fea7ca76c'),
|
||||
dataIndex: 'status',
|
||||
width: '100px',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.list.f48a6e61'),
|
||||
title: this.$t('i18n.c1786d9e11'),
|
||||
dataIndex: 'url',
|
||||
key: 'url',
|
||||
width: '190px',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.list.163de925'),
|
||||
title: this.$t('i18n.cdc478d90c'),
|
||||
dataIndex: 'osName',
|
||||
key: 'osName',
|
||||
width: '100px',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: `JDK ${this.$t('pages.node.list.d826aba2')}`,
|
||||
title: `JDK ${this.$t('i18n.fe2df04a16')}`,
|
||||
dataIndex: 'javaVersion',
|
||||
width: 100,
|
||||
key: 'javaVersion',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: `JVM ${this.$t('pages.node.list.2edcd34c')}`,
|
||||
title: `JVM ${this.$t('i18n.d8c7e04c8e')}`,
|
||||
dataIndex: 'jvmInfo',
|
||||
width: 100,
|
||||
ellipsis: true
|
||||
@ -778,25 +778,25 @@ export default {
|
||||
// { title: "JVM 剩余内存", dataIndex: "machineNodeData.jvmFreeMemory", ellipsis: true, },
|
||||
|
||||
{
|
||||
title: this.$t('pages.node.list.293598cd'),
|
||||
title: this.$t('i18n.607558dbd4'),
|
||||
dataIndex: 'jpomProjectCount',
|
||||
width: '90px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.list.f680ea25'),
|
||||
title: this.$t('i18n.e39f4a69f4'),
|
||||
dataIndex: 'jpomScriptCount',
|
||||
width: '90px'
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.node.list.b4c3a25d'),
|
||||
title: this.$t('i18n.5fffcb255d'),
|
||||
dataIndex: 'runTime',
|
||||
width: '100px',
|
||||
key: 'runTime',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.list.f5b90169'),
|
||||
title: this.$t('i18n.eca37cb072'),
|
||||
dataIndex: 'createTimeMillis',
|
||||
ellipsis: true,
|
||||
sorter: true,
|
||||
@ -804,7 +804,7 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.list.a2b40316'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'modifyTimeMillis',
|
||||
ellipsis: true,
|
||||
sorter: true,
|
||||
@ -812,13 +812,13 @@ export default {
|
||||
width: '170px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.list.f5049383'),
|
||||
title: this.$t('i18n.c35c1a1330'),
|
||||
dataIndex: 'sortValue',
|
||||
sorter: true,
|
||||
width: '80px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.list.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
key: 'operation',
|
||||
fixed: 'right',
|
||||
@ -829,7 +829,7 @@ export default {
|
||||
],
|
||||
|
||||
rules: {
|
||||
name: [{ required: true, message: this.$t('pages.node.list.807342c3'), trigger: 'blur' }]
|
||||
name: [{ required: true, message: this.$t('i18n.32cb0ec70e'), trigger: 'blur' }]
|
||||
},
|
||||
workspaceList: [],
|
||||
tableSelections: [],
|
||||
@ -987,11 +987,11 @@ export default {
|
||||
},
|
||||
handleDelete(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.node.list.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.node.list.6a7b3336'),
|
||||
okText: this.$t('pages.node.list.7da4a591'),
|
||||
cancelText: this.$t('pages.node.list.43105e21'),
|
||||
content: this.$t('i18n.6636793319'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return deleteNode(record.id).then((res) => {
|
||||
if (res.code === 200) {
|
||||
@ -1007,22 +1007,22 @@ export default {
|
||||
// 解绑
|
||||
handleUnbind(record) {
|
||||
const html = `
|
||||
<b style='font-size: 20px;'>${this.$t('pages.node.list.6d453736')}</b>
|
||||
<b style='font-size: 20px;'>${this.$t('i18n.db5cafdc67')}</b>
|
||||
<ul style='font-size: 20px;color:red;font-weight: bold;'>
|
||||
<li>${this.$t('pages.node.list.95f857c5')}</li>
|
||||
<li>${this.$t('pages.node.list.260e16bd')}</li>
|
||||
<li>${this.$t('pages.node.list.f9775b85')}</li>
|
||||
<li>${this.$t('i18n.eeef8ced69')}</li>
|
||||
<li>${this.$t('i18n.5c93055d9c')}</li>
|
||||
<li>${this.$t('i18n.27d0c8772c')}</li>
|
||||
</ul>
|
||||
|
||||
`
|
||||
$confirm({
|
||||
title: this.$t('pages.node.list.cd503941'),
|
||||
title: this.$t('i18n.9362e6ddf8'),
|
||||
zIndex: 1009,
|
||||
content: h('div', null, [h('p', { innerHTML: html }, null)]),
|
||||
okButtonProps: { size: 'small', danger: true, type: 'primary' },
|
||||
cancelButtonProps: { type: 'primary' },
|
||||
okText: this.$t('pages.node.list.7da4a591'),
|
||||
cancelText: this.$t('pages.node.list.43105e21'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return unbind(record.id).then((res) => {
|
||||
if (res.code === 200) {
|
||||
@ -1099,7 +1099,7 @@ export default {
|
||||
handleSyncToWorkspace() {
|
||||
if (!this.temp.workspaceId) {
|
||||
$notification.warn({
|
||||
message: this.$t('pages.node.list.3a321a02')
|
||||
message: this.$t('i18n.b3bda9bf9e')
|
||||
})
|
||||
return false
|
||||
}
|
||||
@ -1126,24 +1126,24 @@ export default {
|
||||
// 排序
|
||||
sortItemHander(record, index, method) {
|
||||
const msgData = {
|
||||
top: this.$t('pages.node.list.a3089bc1'),
|
||||
up: this.$t('pages.node.list.2b25234c'),
|
||||
down: this.$t('pages.node.list.8ad93f78')
|
||||
top: this.$t('i18n.0079d91f95'),
|
||||
up: this.$t('i18n.b166a66d67'),
|
||||
down: this.$t('i18n.7a7e25e9eb')
|
||||
}
|
||||
let msg = msgData[method] || this.$t('pages.node.list.644ef343')
|
||||
let msg = msgData[method] || this.$t('i18n.49574eee58')
|
||||
if (!record.sortValue) {
|
||||
msg += `${this.$t('pages.node.list.8a8e4923')},${this.$t('pages.node.list.4deb73b2')},${this.$t(
|
||||
msg += `${this.$t('i18n.57c0a41ec6')},${this.$t('i18n.066f903d75')},${this.$t(
|
||||
'pages.node.list.d9c5971d'
|
||||
)}`
|
||||
}
|
||||
// console.log(this.list, index, this.list[method === "top" ? index : method === "up" ? index - 1 : index + 1]);
|
||||
const compareId = this.list[method === 'top' ? index : method === 'up' ? index - 1 : index + 1].id
|
||||
$confirm({
|
||||
title: this.$t('pages.node.list.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: msg,
|
||||
okText: this.$t('pages.node.list.7da4a591'),
|
||||
cancelText: this.$t('pages.node.list.43105e21'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return sortItem({
|
||||
id: record.id,
|
||||
|
@ -29,17 +29,17 @@
|
||||
<a-tab-pane
|
||||
v-if="tabs.includes('project')"
|
||||
key="project"
|
||||
:tab="$t('pages.node.node-func.37f14108')"
|
||||
:tab="$t('i18n.436367b066')"
|
||||
></a-tab-pane>
|
||||
<a-tab-pane
|
||||
v-if="tabs.includes('scripct')"
|
||||
key="scripct"
|
||||
:tab="$t('pages.node.node-func.2b56402a')"
|
||||
:tab="$t('i18n.a1fb7f1606')"
|
||||
></a-tab-pane>
|
||||
<a-tab-pane
|
||||
v-if="tabs.includes('scripct-log')"
|
||||
key="scripct-log"
|
||||
:tab="$t('pages.node.node-func.52cb3797')"
|
||||
:tab="$t('i18n.7370bdf0d2')"
|
||||
></a-tab-pane>
|
||||
</a-tabs>
|
||||
</div>
|
||||
|
@ -5,9 +5,9 @@
|
||||
<a-range-picker
|
||||
v-model:value="timeRange"
|
||||
:presets="[
|
||||
{ label: $t('pages.node.node-layout.node-top.39543acb'), value: [dayjs().startOf('day'), dayjs()] },
|
||||
{ label: $t('i18n.800dfdd902'), value: [dayjs().startOf('day'), dayjs()] },
|
||||
{
|
||||
label: $t('pages.node.node-layout.node-top.c70ceee4'),
|
||||
label: $t('i18n.2f8d6f1584'),
|
||||
value: [dayjs().add(-1, 'days').startOf('day'), dayjs().add(-1, 'days').endOf('day')]
|
||||
}
|
||||
]"
|
||||
@ -21,15 +21,15 @@
|
||||
format="YYYY-MM-DD HH:mm:ss"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
/>
|
||||
<a-button type="primary" @click="handleFilter">{{ $t('pages.node.node-layout.node-top.53c2763c') }}</a-button>
|
||||
<a-button type="primary" @click="handleFilter">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
<a-tooltip>
|
||||
<template #title>
|
||||
<div>
|
||||
<ul>
|
||||
<li>{{ $t('pages.node.node-layout.node-top.cc1356') }}</li>
|
||||
<li>{{ $t('pages.node.node-layout.node-top.419c88f7') }}</li>
|
||||
<li>{{ $t('pages.node.node-layout.node-top.9bf77b59') }}</li>
|
||||
<li>{{ $t('pages.node.node-layout.node-top.546feb81') }}</li>
|
||||
<li>{{ $t('i18n.b11b0c93fa') }}</li>
|
||||
<li>{{ $t('i18n.413f20d47f') }}</li>
|
||||
<li>{{ $t('i18n.7617455241') }}</li>
|
||||
<li>{{ $t('i18n.c8b2aabc07') }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
@ -41,7 +41,7 @@
|
||||
<a-empty
|
||||
v-else-if="nodeMonitorLoadStatus == -1"
|
||||
:image="Empty.PRESENTED_IMAGE_SIMPLE"
|
||||
:description="$t('pages.node.node-layout.node-top.751309a5')"
|
||||
:description="$t('i18n.85be08c99a')"
|
||||
>
|
||||
</a-empty>
|
||||
<a-skeleton v-else />
|
||||
|
@ -9,10 +9,10 @@
|
||||
<template #before>
|
||||
<a-space>
|
||||
<a-button size="small" :loading="btnLoading" :disabled="scriptStatus !== 0" type="primary" @click="start">{{
|
||||
$t('pages.node.node-layout.other.script-console.985968bf')
|
||||
$t('i18n.1a6aa24e76')
|
||||
}}</a-button>
|
||||
<a-button size="small" :loading="btnLoading" :disabled="scriptStatus !== 1" type="primary" @click="stop">{{
|
||||
$t('pages.node.node-layout.other.script-console.5c03f4ad')
|
||||
$t('i18n.095e938e2a')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -25,24 +25,24 @@
|
||||
v-model:open="editArgs"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.node.node-layout.other.script-console.b7d5eb0d')"
|
||||
:title="$t('i18n.43886d7ac3')"
|
||||
:mask-closable="false"
|
||||
@ok="startExecution"
|
||||
>
|
||||
<a-form ref="ruleForm" :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
|
||||
<a-form-item
|
||||
:label="$t('pages.node.node-layout.other.script-console.af78e8cb')"
|
||||
:help="`${commandParams.length ? $t('pages.node.node-layout.other.script-console.8fb2b0cc') : ''}`"
|
||||
:label="$t('i18n.abba4775e1')"
|
||||
:help="`${commandParams.length ? $t('i18n.916cde39c4') : ''}`"
|
||||
>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-row v-for="(item, index) in commandParams" :key="item.key">
|
||||
<a-col :span="22">
|
||||
<a-input
|
||||
v-model:value="item.value"
|
||||
:addon-before="`${$t('pages.node.node-layout.other.script-console.6e6cc3c2')}${index + 1}${$t(
|
||||
:addon-before="`${$t('i18n.3d0a2df9ec')}${index + 1}${$t(
|
||||
'pages.node.node-layout.other.script-console.97f7c43a'
|
||||
)}`"
|
||||
:placeholder="`${$t('pages.node.node-layout.other.script-console.6e6cc3c2')}${$t(
|
||||
:placeholder="`${$t('i18n.3d0a2df9ec')}${$t(
|
||||
'pages.node.node-layout.other.script-console.97f7c43a'
|
||||
)} ${item.desc ? ',' + item.desc : ''}`"
|
||||
>
|
||||
@ -63,7 +63,7 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-button type="primary" size="small" @click="() => commandParams.push({})">{{
|
||||
$t('pages.node.node-layout.other.script-console.c8569157')
|
||||
$t('i18n.4c0eead6ff')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
@ -161,7 +161,7 @@ export default {
|
||||
this.socket.onerror = (err) => {
|
||||
console.error(err)
|
||||
$notification.error({
|
||||
message: `web socket ${this.$t('pages.node.node-layout.other.script-console.d75d207f')},${this.$t(
|
||||
message: `web socket ${this.$t('i18n.7030ff6470')},${this.$t(
|
||||
'pages.node.node-layout.other.script-console.763330b'
|
||||
)}`
|
||||
})
|
||||
@ -173,7 +173,7 @@ export default {
|
||||
console.error(err)
|
||||
clearInterval(this.heart)
|
||||
this.btnLoading = true
|
||||
$message.warning(this.$t('pages.node.node-layout.other.script-console.8a2aae09'))
|
||||
$message.warning(this.$t('i18n.5fafcadc2d'))
|
||||
}
|
||||
this.socket.onmessage = (msg) => {
|
||||
if (msg.data.indexOf('JPOM_MSG') > -1 && msg.data.indexOf('op') > -1) {
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<log-view1
|
||||
:ref="`logView`"
|
||||
:title-name="$t('pages.node.node-layout.other.script-log-view.8fb8f5f9')"
|
||||
:title-name="$t('i18n.c84ddfe8a6')"
|
||||
:visible="visible"
|
||||
@close="
|
||||
() => {
|
||||
|
@ -17,7 +17,7 @@
|
||||
<a-space wrap class="search-box">
|
||||
<a-input
|
||||
v-model:value="listQuery['%name%']"
|
||||
:placeholder="$t('pages.node.node-layout.other.script-log.bb769c1d')"
|
||||
:placeholder="$t('i18n.d7ec2d3fea')"
|
||||
allow-clear
|
||||
class="search-input-item"
|
||||
/>
|
||||
@ -35,7 +35,7 @@
|
||||
}
|
||||
"
|
||||
allow-clear
|
||||
:placeholder="$t('pages.node.node-layout.other.script-log.4abba04f')"
|
||||
:placeholder="$t('i18n.ff9814bf6b')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select-option v-for="(val, key) in triggerExecTypeMap" :key="key">{{ val }}</a-select-option>
|
||||
@ -45,8 +45,8 @@
|
||||
input-read-only
|
||||
:show-time="{ format: 'HH:mm:ss' }"
|
||||
:placeholder="[
|
||||
$t('pages.node.node-layout.other.script-log.ac9ef5f5'),
|
||||
$t('pages.node.node-layout.other.script-log.9376939d')
|
||||
$t('i18n.7fbc0f9aae'),
|
||||
$t('i18n.cbc44b5663')
|
||||
]"
|
||||
format="YYYY-MM-DD HH:mm:ss"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
@ -60,17 +60,17 @@
|
||||
}
|
||||
"
|
||||
/>
|
||||
<a-tooltip :title="$t('pages.node.node-layout.other.script-log.c2e3463f')">
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('pages.node.node-layout.other.script-log.53c2763c')
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip>
|
||||
<template #title>
|
||||
<div>{{ $t('pages.node.node-layout.other.script-log.66889710') }}</div>
|
||||
<div>{{ $t('i18n.52b6b488e2') }}</div>
|
||||
<div>
|
||||
<ul>
|
||||
<li>{{ $t('pages.node.node-layout.other.script-log.b709d0b4') }}</li>
|
||||
<li>{{ $t('i18n.47bb635a5c') }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
@ -91,11 +91,11 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'triggerExecType'">
|
||||
<span>{{ triggerExecTypeMap[text] || $t('pages.node.node-layout.other.script-log.ca1cdfa6') }}</span>
|
||||
<span>{{ triggerExecTypeMap[text] || $t('i18n.1622dc9b6b') }}</span>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'workspaceId'">
|
||||
<a-tag v-if="text === 'GLOBAL'">{{ $t('pages.node.node-layout.other.script-log.8a2fc9dd') }}</a-tag>
|
||||
<a-tag v-else>{{ $t('pages.node.node-layout.other.script-log.afacc4cb') }}</a-tag>
|
||||
<a-tag v-if="text === 'GLOBAL'">{{ $t('i18n.2be75b1044') }}</a-tag>
|
||||
<a-tag v-else>{{ $t('i18n.98d69f8b62') }}</a-tag>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'createTimeMillis'">
|
||||
<a-tooltip :title="`${parseTime(record.createTimeMillis)}`">
|
||||
@ -105,11 +105,11 @@
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="viewLog(record)">{{
|
||||
$t('pages.node.node-layout.other.script-log.b51c8bb3')
|
||||
$t('i18n.0ea78e4279')
|
||||
}}</a-button>
|
||||
|
||||
<a-button size="small" type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('pages.node.node-layout.other.script-log.a58214f0')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -164,38 +164,38 @@ export default {
|
||||
logVisible: 0,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.other.script-log.bb769c1d'),
|
||||
title: this.$t('i18n.d7ec2d3fea'),
|
||||
dataIndex: 'scriptName',
|
||||
ellipsis: true,
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.other.script-log.40fb635f'),
|
||||
title: this.$t('i18n.70b3635aa3'),
|
||||
dataIndex: 'createTimeMillis',
|
||||
ellipsis: true,
|
||||
width: '160px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.other.script-log.4abba04f'),
|
||||
title: this.$t('i18n.ff9814bf6b'),
|
||||
dataIndex: 'triggerExecType',
|
||||
width: 100,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.other.script-log.3debe02b'),
|
||||
title: this.$t('i18n.2a0bea27c4'),
|
||||
dataIndex: 'workspaceId',
|
||||
ellipsis: true,
|
||||
|
||||
width: '90px'
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.other.script-log.cda0e062'),
|
||||
title: this.$t('i18n.a497562c8e'),
|
||||
dataIndex: 'modifyUser',
|
||||
ellipsis: true,
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.other.script-log.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
align: 'center',
|
||||
|
||||
@ -236,11 +236,11 @@ export default {
|
||||
},
|
||||
handleDelete(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.node.node-layout.other.script-log.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.node.node-layout.other.script-log.2c8deda8'),
|
||||
okText: this.$t('pages.node.node-layout.other.script-log.e8e9db25'),
|
||||
cancelText: this.$t('pages.node.node-layout.other.script-log.b12468e9'),
|
||||
content: this.$t('i18n.7b8e7d4abc'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return scriptDel({
|
||||
nodeId: this.nodeId,
|
||||
|
@ -5,7 +5,7 @@
|
||||
<template #before>
|
||||
<a-space>
|
||||
<a-button size="small" :disabled="project.status" :loading="optButtonLoading" type="primary" @click="start">{{
|
||||
$t('pages.node.node-layout.project.project-console.15f9c981')
|
||||
$t('i18n.8e54ddfe24')
|
||||
}}</a-button>
|
||||
<a-button
|
||||
size="small"
|
||||
@ -14,7 +14,7 @@
|
||||
type="primary"
|
||||
danger
|
||||
@click="restart"
|
||||
>{{ $t('pages.node.node-layout.project.project-console.80c35a66') }}</a-button
|
||||
>{{ $t('i18n.01b4e06f39') }}</a-button
|
||||
>
|
||||
<a-button
|
||||
size="small"
|
||||
@ -23,40 +23,40 @@
|
||||
type="primary"
|
||||
danger
|
||||
@click="stop"
|
||||
>{{ $t('pages.node.node-layout.project.project-console.5c03f4ad') }}</a-button
|
||||
>{{ $t('i18n.095e938e2a') }}</a-button
|
||||
>
|
||||
<template v-if="project.runMode === 'Dsl'">
|
||||
<template v-if="canReload">
|
||||
<a-popover :title="$t('pages.node.node-layout.project.project-console.376f2896')">
|
||||
<a-popover :title="$t('i18n.8b2e274414')">
|
||||
<template #content>
|
||||
<template v-if="project.lastReloadResult">
|
||||
<p>
|
||||
<a-tag v-if="project.lastReloadResult.success" color="green">{{
|
||||
$t('pages.node.node-layout.project.project-console.6e06fe4f')
|
||||
$t('i18n.330363dfc5')
|
||||
}}</a-tag>
|
||||
<a-tag v-else color="green">{{
|
||||
$t('pages.node.node-layout.project.project-console.6e06fe4f')
|
||||
$t('i18n.330363dfc5')
|
||||
}}</a-tag>
|
||||
</p>
|
||||
<p v-for="(item, index) in project.lastReloadResult.msgs" :key="index">
|
||||
{{ item }}
|
||||
</p>
|
||||
</template>
|
||||
<template v-else>{{ $t('pages.node.node-layout.project.project-console.fdc695b2') }}</template>
|
||||
<template v-else>{{ $t('i18n.14dcfcc4fa') }}</template>
|
||||
</template>
|
||||
<a-button size="small" :loading="optButtonLoading" type="primary" @click="reload">{{
|
||||
$t('pages.node.node-layout.project.project-console.b7be5506')
|
||||
$t('i18n.aaeb54633e')
|
||||
}}</a-button>
|
||||
</a-popover>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-button size="small" :disabled="true" :loading="optButtonLoading" type="primary">{{
|
||||
$t('pages.node.node-layout.project.project-console.b7be5506')
|
||||
$t('i18n.aaeb54633e')
|
||||
}}</a-button>
|
||||
</template>
|
||||
</template>
|
||||
<a-button size="small" type="primary" @click="goFile">{{
|
||||
$t('pages.node.node-layout.project.project-console.502f94')
|
||||
$t('i18n.8780e6b3d1')
|
||||
}}</a-button>
|
||||
<a-dropdown v-if="project.dslProcessInfo">
|
||||
<template #overlay>
|
||||
@ -67,7 +67,7 @@
|
||||
{{ item.process }}
|
||||
</a-tag>
|
||||
<template v-if="item.type === 'file'"
|
||||
>{{ $t('pages.node.node-layout.project.project-console.dcbad93b') }}{{ item.scriptId }}
|
||||
>{{ $t('i18n.4df483b9c7') }}{{ item.scriptId }}
|
||||
</template>
|
||||
<template v-else-if="item.type === 'script'">
|
||||
<a-button
|
||||
@ -80,12 +80,12 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
<EditOutlined /> {{ $t('pages.node.node-layout.project.project-console.e0417750') }}
|
||||
<EditOutlined /> {{ $t('i18n.e0ba3b9145') }}
|
||||
</a-button>
|
||||
</template>
|
||||
<template v-else-if="item.type === 'library'">
|
||||
<a-button type="link" size="small" disabled=""
|
||||
>{{ $t('pages.node.node-layout.project.project-console.bbbe8e9b')
|
||||
>{{ $t('i18n.91a10b8776')
|
||||
}}{{ item.scriptId }}</a-button
|
||||
>
|
||||
</template>
|
||||
@ -104,7 +104,7 @@
|
||||
</a-menu>
|
||||
</template>
|
||||
<a-button size="small" type="primary">
|
||||
{{ $t('pages.node.node-layout.project.project-console.5453aa0b') }} <DownOutlined />
|
||||
{{ $t('i18n.ce40cd6390') }} <DownOutlined />
|
||||
</a-button>
|
||||
</a-dropdown>
|
||||
<a-button
|
||||
@ -117,7 +117,7 @@
|
||||
"
|
||||
>
|
||||
<!-- <a-tag> -->
|
||||
{{ $t('pages.node.node-layout.project.project-console.1246c314') }}: {{ project.logSize || '-' }}
|
||||
{{ $t('i18n.76aebf3cc6') }}: {{ project.logSize || '-' }}
|
||||
<!-- 更多 -->
|
||||
<FullscreenOutlined />
|
||||
<!-- </a-tag> -->
|
||||
@ -132,7 +132,7 @@
|
||||
v-if="lobbackVisible"
|
||||
v-model:open="lobbackVisible"
|
||||
destroy-on-close
|
||||
:title="$t('pages.node.node-layout.project.project-console.111eece')"
|
||||
:title="$t('i18n.15f01c43e8')"
|
||||
width="850px"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
@ -257,7 +257,7 @@ export default {
|
||||
this.socket.onerror = (err) => {
|
||||
console.error(err)
|
||||
$notification.error({
|
||||
message: `web socket ${this.$t('pages.node.node-layout.project.project-console.d75d207f')},${this.$t(
|
||||
message: `web socket ${this.$t('i18n.7030ff6470')},${this.$t(
|
||||
'pages.node.node-layout.project.project-console.763330b'
|
||||
)}`
|
||||
})
|
||||
@ -266,7 +266,7 @@ export default {
|
||||
this.socket.onclose = (err) => {
|
||||
//当客户端收到服务端发送的关闭连接请求时,触发onclose事件
|
||||
console.error(err)
|
||||
$message.warning(this.$t('pages.node.node-layout.project.project-console.8a2aae09'))
|
||||
$message.warning(this.$t('i18n.d6cdafe552'))
|
||||
clearInterval(this.heart)
|
||||
}
|
||||
this.socket.onmessage = (msg) => {
|
||||
@ -309,11 +309,11 @@ export default {
|
||||
}
|
||||
res.data.ports &&
|
||||
this.$refs.logView.appendLine(
|
||||
this.$t('pages.node.node-layout.project.project-console.a6c4bfd7') + res.data.ports
|
||||
this.$t('i18n.b6c9619081') + res.data.ports
|
||||
)
|
||||
res.data.pids &&
|
||||
this.$refs.logView.appendLine(
|
||||
this.$t('pages.node.node-layout.project.project-console.3cf2b4f7') + res.data.pids.join(',')
|
||||
this.$t('i18n.2b04210d33') + res.data.pids.join(',')
|
||||
)
|
||||
}
|
||||
this.$refs.logView.appendLine(res.op + ' ' + res.msg)
|
||||
@ -369,11 +369,11 @@ export default {
|
||||
// 重启
|
||||
restart() {
|
||||
$confirm({
|
||||
title: this.$t('pages.node.node-layout.project.project-console.1da61c06'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.node.node-layout.project.project-console.fb372d35'),
|
||||
okText: this.$t('pages.node.node-layout.project.project-console.7da4a591'),
|
||||
cancelText: this.$t('pages.node.node-layout.project.project-console.43105e21'),
|
||||
content: this.$t('i18n.989f1f2b61'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
this.sendMsg('restart')
|
||||
}
|
||||
@ -382,11 +382,11 @@ export default {
|
||||
// 停止
|
||||
stop() {
|
||||
$confirm({
|
||||
title: this.$t('pages.node.node-layout.project.project-console.1da61c06'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.node.node-layout.project.project-console.2e391eba'),
|
||||
okText: this.$t('pages.node.node-layout.project.project-console.7da4a591'),
|
||||
cancelText: this.$t('pages.node.node-layout.project.project-console.43105e21'),
|
||||
content: this.$t('i18n.010865ca50'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
this.sendMsg('stop')
|
||||
}
|
||||
|
@ -1,23 +1,23 @@
|
||||
<template>
|
||||
<div>
|
||||
<!-- 编辑区 -->
|
||||
<a-spin :tip="$t('pages.node.node-layout.project.project-edit.a5c1d44')" :spinning="loading">
|
||||
<a-spin :tip="$t('i18n.2770db3a99')" :spinning="loading">
|
||||
<a-form ref="editProjectForm" :rules="rules" :model="temp" :label-col="{ span: 4 }" :wrapper-col="{ span: 18 }">
|
||||
<a-form-item :label="$t('pages.node.node-layout.project.project-edit.4eaba425')" name="id">
|
||||
<template #help>{{ $t('pages.node.node-layout.project.project-edit.49427983') }}</template>
|
||||
<a-form-item :label="$t('i18n.4fdd2213b5')" name="id">
|
||||
<template #help>{{ $t('i18n.e2b0f27424') }}</template>
|
||||
|
||||
<a-input
|
||||
v-if="temp.type === 'edit'"
|
||||
v-model:value="temp.id"
|
||||
:max-length="50"
|
||||
:disabled="temp.type === 'edit'"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-edit.92ebd5f0')"
|
||||
:placeholder="$t('i18n.7ce511154f')"
|
||||
/>
|
||||
<template v-else>
|
||||
<a-input-search
|
||||
v-model:value="temp.id"
|
||||
:max-length="50"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-edit.92ebd5f0')"
|
||||
:placeholder="$t('i18n.7ce511154f')"
|
||||
@search="
|
||||
() => {
|
||||
temp = { ...temp, id: randomStr(6) }
|
||||
@ -25,32 +25,26 @@
|
||||
"
|
||||
>
|
||||
<template #enterButton>
|
||||
<a-button type="primary"> {{ $t('pages.node.node-layout.project.project-edit.45f317b2') }} </a-button>
|
||||
<a-button type="primary"> {{ $t('i18n.6709f4548f') }} </a-button>
|
||||
</template>
|
||||
</a-input-search>
|
||||
</template>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('pages.node.node-layout.project.project-edit.7cb5b39')" name="name">
|
||||
<a-form-item :label="$t('i18n.738a41f965')" name="name">
|
||||
<a-row>
|
||||
<a-col :span="10">
|
||||
<a-input
|
||||
v-model:value="temp.name"
|
||||
:max-length="50"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-edit.7cb5b39')"
|
||||
/>
|
||||
<a-input v-model:value="temp.name" :max-length="50" :placeholder="$t('i18n.738a41f965')" />
|
||||
</a-col>
|
||||
<a-col :span="4" style="text-align: right">{{
|
||||
$t('pages.node.node-layout.project.project-edit.12d0e469')
|
||||
}}</a-col>
|
||||
<a-col :span="4" style="text-align: right">{{ $t('i18n.1b973fc4d1') }}</a-col>
|
||||
<a-col :span="10">
|
||||
<a-form-item-rest>
|
||||
<custom-select
|
||||
v-model:value="temp.group"
|
||||
:max-length="50"
|
||||
:data="groupList"
|
||||
:input-placeholder="$t('pages.node.node-layout.project.project-edit.95c41d82')"
|
||||
:select-placeholder="$t('pages.node.node-layout.project.project-edit.761c903a')"
|
||||
:input-placeholder="$t('i18n.bd0362bed3')"
|
||||
:select-placeholder="$t('i18n.3e8c9c54ee')"
|
||||
>
|
||||
</custom-select>
|
||||
</a-form-item-rest>
|
||||
@ -60,39 +54,29 @@
|
||||
<a-form-item name="runMode">
|
||||
<template #label>
|
||||
<a-tooltip>
|
||||
{{ $t('pages.node.node-layout.project.project-edit.eaf004ca') }}
|
||||
{{ $t('i18n.17d444b642') }}
|
||||
<template #title>
|
||||
<ul>
|
||||
<li><b>Dsl</b> {{ $t('pages.node.node-layout.project.project-edit.64759ad3') }}</li>
|
||||
<li>
|
||||
<b>ClassPath</b> java -classpath xxx {{ $t('pages.node.node-layout.project.project-edit.788bfc') }}
|
||||
</li>
|
||||
<li><b>Jar</b> java -jar xxx {{ $t('pages.node.node-layout.project.project-edit.788bfc') }}</li>
|
||||
<li><b>Dsl</b> {{ $t('i18n.2356fe4af2') }}</li>
|
||||
<li><b>ClassPath</b> java -classpath xxx {{ $t('i18n.fa4aa1b93b') }}</li>
|
||||
<li><b>Jar</b> java -jar xxx {{ $t('i18n.fa4aa1b93b') }}</li>
|
||||
<li>
|
||||
<b>JarWar</b> java -jar Springboot war
|
||||
{{ $t('pages.node.node-layout.project.project-edit.788bfc') }}
|
||||
{{ $t('i18n.fa4aa1b93b') }}
|
||||
</li>
|
||||
<li>
|
||||
<b>JavaExtDirsCp</b> java -Djava.ext.dirs=lib -cp conf:run.jar $MAIN_CLASS
|
||||
{{ $t('pages.node.node-layout.project.project-edit.788bfc') }}
|
||||
</li>
|
||||
<li>
|
||||
<b>File</b> {{ $t('pages.node.node-layout.project.project-edit.d33f4295') }},{{
|
||||
$t('pages.node.node-layout.project.project-edit.35f7833f')
|
||||
}}
|
||||
{{ $t('i18n.fa4aa1b93b') }}
|
||||
</li>
|
||||
<li><b>File</b> {{ $t('i18n.5d6f47d670') }},{{ $t('i18n.61955b0e4b') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
<QuestionCircleOutlined v-show="temp.type !== 'edit'" />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-select
|
||||
v-model:value="temp.runMode"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-edit.9f508cc8')"
|
||||
@change="changeRunMode"
|
||||
>
|
||||
<a-select v-model:value="temp.runMode" :placeholder="$t('i18n.26a3378645')" @change="changeRunMode">
|
||||
<a-select-option v-for="item in runModeArray" :key="item.name">
|
||||
<template v-if="item.desc.indexOf($t('pages.node.node-layout.project.project-edit.ad7005ba')) > -1">
|
||||
<template v-if="item.desc.indexOf($t('i18n.888df7a89e')) > -1">
|
||||
<s>
|
||||
<b>[{{ item.name }}]</b> {{ item.desc }}
|
||||
</s>
|
||||
@ -104,12 +88,8 @@
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<template v-if="temp.runMode === 'Link'">
|
||||
<a-form-item :label="$t('pages.node.node-layout.project.project-edit.4b36f25f')" name="linkId">
|
||||
<a-select
|
||||
v-model:value="temp.linkId"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-edit.9ac42fe6')"
|
||||
@change="changeLinkId"
|
||||
>
|
||||
<a-form-item :label="$t('i18n.be166de983')" name="linkId">
|
||||
<a-select v-model:value="temp.linkId" :placeholder="$t('i18n.1ba141c9ac')" @change="changeLinkId">
|
||||
<a-select-option
|
||||
v-for="item in projectList"
|
||||
:key="item.projectId"
|
||||
@ -124,16 +104,14 @@
|
||||
<a-form-item name="whitelistDirectory">
|
||||
<template #label>
|
||||
<a-tooltip>
|
||||
{{ $t('pages.node.node-layout.project.project-edit.5b716424') }}
|
||||
{{ $t('i18n.aabdc3b7c0') }}
|
||||
<template #title>
|
||||
<ul>
|
||||
<li>{{ $t('pages.node.node-layout.project.project-edit.9d024ef5') }}</li>
|
||||
<li>{{ $t('pages.node.node-layout.project.project-edit.80b551d6') }}</li>
|
||||
<li>{{ $t('pages.node.node-layout.project.project-edit.28952768') }}</li>
|
||||
<li>{{ $t('i18n.f89cc4807e') }}</li>
|
||||
<li>{{ $t('i18n.94763baf5f') }}</li>
|
||||
<li>{{ $t('i18n.fe828cefd9') }}</li>
|
||||
<li>
|
||||
{{ $t('pages.node.node-layout.project.project-edit.528d80cb') }} <br /> <b>{{
|
||||
$t('pages.node.node-layout.project.project-edit.5ef24c2f')
|
||||
}}</b>
|
||||
{{ $t('i18n.556499017a') }} <br /> <b>{{ $t('i18n.67141abed6') }}</b>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
@ -142,7 +120,7 @@
|
||||
</template>
|
||||
<template #help>
|
||||
<div>
|
||||
{{ $t('pages.node.node-layout.project.project-edit.20f66fff') }}
|
||||
{{ $t('i18n.fde1b6fb37') }}
|
||||
<a-button
|
||||
type="link"
|
||||
size="small"
|
||||
@ -152,26 +130,18 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
<InfoCircleOutlined /> {{ $t('pages.node.node-layout.project.project-edit.2ebdf25e') }}
|
||||
<InfoCircleOutlined /> {{ $t('i18n.23b444d24c') }}
|
||||
</a-button>
|
||||
</div>
|
||||
</template>
|
||||
<a-input-group compact>
|
||||
<a-select
|
||||
v-model:value="temp.whitelistDirectory"
|
||||
style="width: 50%"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-edit.6fa628c8')"
|
||||
>
|
||||
<a-select v-model:value="temp.whitelistDirectory" style="width: 50%" :placeholder="$t('i18n.1d38b2b2bc')">
|
||||
<a-select-option v-for="access in accessList" :key="access">
|
||||
<a-tooltip :title="access">{{ access }}</a-tooltip>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-form-item-rest>
|
||||
<a-input
|
||||
v-model:value="temp.lib"
|
||||
style="width: 50%"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-edit.d4e69bd6')"
|
||||
/>
|
||||
<a-input v-model:value="temp.lib" style="width: 50%" :placeholder="$t('i18n.1dc518bddb')" />
|
||||
</a-form-item-rest>
|
||||
</a-input-group>
|
||||
<template #extra>
|
||||
@ -179,24 +149,23 @@
|
||||
</template>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item v-show="filePath !== ''" :label="$t('pages.node.node-layout.project.project-edit.2f9f87a5')">
|
||||
<a-form-item v-show="filePath !== ''" :label="$t('i18n.8283f063d7')">
|
||||
<a-alert :message="filePath" type="success" />
|
||||
</a-form-item>
|
||||
</template>
|
||||
<a-form-item v-show="temp.runMode === 'Dsl'" name="dslContent">
|
||||
<template #label>
|
||||
<a-tooltip>
|
||||
DSL {{ $t('pages.node.node-layout.project.project-edit.99ff48c8') }}
|
||||
DSL {{ $t('i18n.2d711b09bd') }}
|
||||
<template #title>
|
||||
<p>{{ $t('pages.node.node-layout.project.project-edit.e79a829d') }}</p>
|
||||
<p>{{ $t('pages.node.node-layout.project.project-edit.56b96c89') }}</p>
|
||||
<p>{{ $t('i18n.73d8160821') }}</p>
|
||||
<p>{{ $t('i18n.3517aa30c2') }}</p>
|
||||
<p>
|
||||
<b>status</b>
|
||||
{{ $t('pages.node.node-layout.project.project-edit.3cbddbbe') }}:$pid
|
||||
<b>$pid {{ $t('pages.node.node-layout.project.project-edit.3cf2b4f7') }}</b
|
||||
>{{ $t('pages.node.node-layout.project.project-edit.b76bdd94') }}
|
||||
{{ $t('i18n.ca69dad8fc') }}:$pid <b>$pid {{ $t('i18n.07a8af8c03') }}</b
|
||||
>{{ $t('i18n.d2f484ff7e') }}
|
||||
</p>
|
||||
<p>{{ $t('pages.node.node-layout.project.project-edit.f26fd1f1') }}</p>
|
||||
<p>{{ $t('i18n.9f52492fbc') }}</p>
|
||||
</template>
|
||||
<QuestionCircleOutlined v-show="temp.type !== 'edit'" />
|
||||
</a-tooltip>
|
||||
@ -207,7 +176,7 @@
|
||||
<a-divider type="vertical" />
|
||||
</template> -->
|
||||
<div>
|
||||
scriptId{{ $t('pages.node.node-layout.project.project-edit.2695c530') }}
|
||||
scriptId{{ $t('i18n.21da885538') }}
|
||||
<a-button
|
||||
type="link"
|
||||
size="small"
|
||||
@ -217,10 +186,10 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.node.node-layout.project.project-edit.41ceb72c') }}
|
||||
{{ $t('i18n.35134b6f94') }}
|
||||
</a-button>
|
||||
</div>
|
||||
<div>{{ $t('pages.node.node-layout.project.project-edit.f6a317f0') }}</div>
|
||||
<div>{{ $t('i18n.6a359e2ab3') }}</div>
|
||||
<!-- </a-space> -->
|
||||
</template>
|
||||
<a-form-item-rest>
|
||||
@ -230,14 +199,14 @@
|
||||
height="40vh"
|
||||
:show-tool="true"
|
||||
:options="{ mode: 'yaml', tabSize: 2 }"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-edit.89967495')"
|
||||
:placeholder="$t('i18n.1c8190b0eb')"
|
||||
>
|
||||
<template #tool_before>
|
||||
<a-segmented
|
||||
v-model:value="dslEditTabKey"
|
||||
:options="[
|
||||
{ label: `DSL ${$t('pages.node.node-layout.project.project-edit.28f9e270')}`, value: 'content' },
|
||||
{ label: $t('pages.node.node-layout.project.project-edit.a3186ee5'), value: 'demo' }
|
||||
{ label: `DSL ${$t('i18n.224e2ccda8')}`, value: 'content' },
|
||||
{ label: $t('i18n.da79c2ec32'), value: 'demo' }
|
||||
]"
|
||||
/>
|
||||
</template>
|
||||
@ -253,8 +222,8 @@
|
||||
<a-segmented
|
||||
v-model:value="dslEditTabKey"
|
||||
:options="[
|
||||
{ label: `DSL ${$t('pages.node.node-layout.project.project-edit.28f9e270')}`, value: 'content' },
|
||||
{ label: $t('pages.node.node-layout.project.project-edit.a3186ee5'), value: 'demo' }
|
||||
{ label: `DSL ${$t('i18n.224e2ccda8')}`, value: 'content' },
|
||||
{ label: $t('i18n.da79c2ec32'), value: 'demo' }
|
||||
]"
|
||||
/>
|
||||
</template>
|
||||
@ -264,24 +233,19 @@
|
||||
<a-form-item v-show="noFileModes.includes(temp.runMode) && temp.runMode !== 'Link'">
|
||||
<template #label>
|
||||
<a-tooltip>
|
||||
{{ $t('pages.node.node-layout.project.project-edit.e9f209dd') }}
|
||||
{{ $t('i18n.2ce44aba57') }}
|
||||
<template #title>
|
||||
<ul>
|
||||
<li>{{ $t('pages.node.node-layout.project.project-edit.8f348042') }}</li>
|
||||
<li>{{ $t('pages.node.node-layout.project.project-edit.1008ec50') }}</li>
|
||||
<li>{{ $t('pages.node.node-layout.project.project-edit.a3cf55e2') }}</li>
|
||||
<li>{{ $t('i18n.12934d1828') }}</li>
|
||||
<li>{{ $t('i18n.138776a1dc') }}</li>
|
||||
<li>{{ $t('i18n.95c5c939e4') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
<QuestionCircleOutlined v-show="temp.type !== 'edit'" />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-select
|
||||
v-model:value="temp.logPath"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-edit.6fa628c8')"
|
||||
>
|
||||
<a-select-option key="" value="">{{
|
||||
$t('pages.node.node-layout.project.project-edit.1008ec50')
|
||||
}}</a-select-option>
|
||||
<a-select v-model:value="temp.logPath" :placeholder="$t('i18n.1d38b2b2bc')">
|
||||
<a-select-option key="" value="">{{ $t('i18n.138776a1dc') }}</a-select-option>
|
||||
<a-select-option v-for="access in accessList" :key="access">{{ access }}</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
@ -294,10 +258,7 @@
|
||||
label="Main Class"
|
||||
name="mainClass"
|
||||
>
|
||||
<a-input
|
||||
v-model:value="temp.mainClass"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-edit.b324b030')"
|
||||
/>
|
||||
<a-input v-model:value="temp.mainClass" :placeholder="$t('i18n.ef800ed466')" />
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-show="
|
||||
@ -309,34 +270,29 @@
|
||||
>
|
||||
<a-input
|
||||
v-model:value="temp.javaExtDirsCp"
|
||||
:placeholder="`-Dext.dirs=xxx: -cp xx ${$t('pages.node.node-layout.project.project-edit.4241b582')}:xx】`"
|
||||
:placeholder="`-Dext.dirs=xxx: -cp xx ${$t('i18n.c53021f06d')}:xx】`"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-show="javaModes.includes(temp.runMode) || javaModes.includes(linkProjectData.runMode)"
|
||||
:label="$t('pages.node.node-layout.project.project-edit.19af9418')"
|
||||
:label="$t('i18n.497bc3532b')"
|
||||
name="jvm"
|
||||
>
|
||||
<a-textarea
|
||||
v-model:value="temp.jvm"
|
||||
:auto-size="{ minRows: 3, maxRows: 3 }"
|
||||
:placeholder="
|
||||
$t('pages.node.node-layout.project.project-edit.17924912', {
|
||||
slot1: $t('pages.node.node-layout.project.project-edit.6e6cc3c2'),
|
||||
slot2: $t('pages.node.node-layout.project.project-edit.a72cfae2')
|
||||
})
|
||||
"
|
||||
:placeholder="$t('i18n.eef3653e9a', { slot1: $t('i18n.3d0a2df9ec'), slot2: $t('i18n.eb5bab1c31') })"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-show="javaModes.includes(temp.runMode) || javaModes.includes(linkProjectData.runMode)"
|
||||
:label="$t('pages.node.node-layout.project.project-edit.c5feb1a')"
|
||||
:label="$t('i18n.e5098786d3')"
|
||||
name="args"
|
||||
>
|
||||
<a-textarea
|
||||
v-model:value="temp.args"
|
||||
:auto-size="{ minRows: 3, maxRows: 3 }"
|
||||
:placeholder="`Main ${$t('pages.node.node-layout.project.project-edit.ee6f8f43')}. ${$t(
|
||||
:placeholder="`Main ${$t('i18n.6a9231c3ba')}. ${$t(
|
||||
'pages.node.node-layout.project.project-edit.18629de'
|
||||
)}.port=8080`"
|
||||
/>
|
||||
@ -344,11 +300,11 @@
|
||||
<a-form-item
|
||||
v-if="temp.runMode === 'Dsl' || linkProjectData.runMode === 'Dsl'"
|
||||
name="dslEnv"
|
||||
:label="$t('pages.node.node-layout.project.project-edit.ede504be')"
|
||||
:label="$t('i18n.fba5f4f19a')"
|
||||
>
|
||||
<!-- <a-input
|
||||
v-model:value="temp.dslEnv"
|
||||
placeholder="DSL{{$t('pages.node.node-layout.project.project-edit.c81b2c2e')}},{{$t('pages.node.node-layout.project.project-edit.7e189322')}}=values1&keyvalue2"
|
||||
placeholder="DSL{{$t('i18n.3867e350eb')}},{{$t('i18n.9324290bfe')}}=values1&keyvalue2"
|
||||
/> -->
|
||||
<parameter-widget v-model:value="temp.dslEnv"></parameter-widget>
|
||||
</a-form-item>
|
||||
@ -356,40 +312,39 @@
|
||||
<a-form-item v-show="noFileModes.includes(temp.runMode)" name="autoStart">
|
||||
<template #label>
|
||||
<a-tooltip>
|
||||
{{ $t('pages.node.node-layout.project.project-edit.12861e4e') }}
|
||||
<template #title>{{ $t('pages.node.node-layout.project.project-edit.be7082a2') }}</template>
|
||||
{{ $t('i18n.8388c637f6') }}
|
||||
<template #title>{{ $t('i18n.d4e03f60a9') }}</template>
|
||||
<QuestionCircleOutlined v-show="temp.type !== 'edit'" />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template #help>
|
||||
<div>
|
||||
{{ $t('pages.node.node-layout.project.project-edit.b35cbffb')
|
||||
}}<b>{{ $t('pages.node.node-layout.project.project-edit.297af6c7') }}</b
|
||||
>{{ $t('pages.node.node-layout.project.project-edit.53c6c542') }}
|
||||
{{ $t('i18n.71584de972') }}<b>{{ $t('i18n.1e4a59829d') }}</b
|
||||
>{{ $t('i18n.0360fffb40') }}
|
||||
</div>
|
||||
</template>
|
||||
<div>
|
||||
<a-switch
|
||||
v-model:checked="temp.autoStart"
|
||||
:checked-children="$t('pages.node.node-layout.project.project-edit.c5f50974')"
|
||||
:un-checked-children="$t('pages.node.node-layout.project.project-edit.e9a7e1c4')"
|
||||
:checked-children="$t('i18n.8493205602')"
|
||||
:un-checked-children="$t('i18n.d58a55bcee')"
|
||||
/>
|
||||
{{ $t('pages.node.node-layout.project.project-edit.f32199a3') }}
|
||||
{{ $t('i18n.1022c545d1') }}
|
||||
</div>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item name="disableScanDir">
|
||||
<template #label>
|
||||
<a-tooltip> {{ $t('pages.node.node-layout.project.project-edit.217ba8f3') }} </a-tooltip>
|
||||
<a-tooltip> {{ $t('i18n.df59a2804d') }} </a-tooltip>
|
||||
</template>
|
||||
<template #help>
|
||||
<div>{{ $t('pages.node.node-layout.project.project-edit.3342e1c4') }}</div>
|
||||
<div>{{ $t('i18n.b7c139ed75') }}</div>
|
||||
</template>
|
||||
<div>
|
||||
<a-switch
|
||||
v-model:checked="temp.disableScanDir"
|
||||
:checked-children="$t('pages.node.node-layout.project.project-edit.f78bec3f')"
|
||||
:un-checked-children="$t('pages.node.node-layout.project.project-edit.fc6ab345')"
|
||||
:checked-children="$t('i18n.ced3d28cd1')"
|
||||
:un-checked-children="$t('i18n.56525d62ac')"
|
||||
/>
|
||||
</div>
|
||||
</a-form-item>
|
||||
@ -400,31 +355,25 @@
|
||||
WebHooks
|
||||
<template #title>
|
||||
<ul>
|
||||
<li>{{ $t('pages.node.node-layout.project.project-edit.5db82550') }}</li>
|
||||
<li>{{ $t('pages.node.node-layout.project.project-edit.316f78d0') }}</li>
|
||||
<li>type {{ $t('pages.node.node-layout.project.project-edit.84063ac5') }}</li>
|
||||
<li>DSL {{ $t('pages.node.node-layout.project.project-edit.d4d5dc62') }}</li>
|
||||
<li>{{ $t('i18n.a24d80c8fa') }}</li>
|
||||
<li>{{ $t('i18n.b91961bf0b') }}</li>
|
||||
<li>type {{ $t('i18n.5a63277941') }}</li>
|
||||
<li>DSL {{ $t('i18n.f8f456eb9a') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
<QuestionCircleOutlined v-show="temp.type !== 'edit'" />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input
|
||||
v-model:value="temp.token"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-edit.8b1eb070')"
|
||||
/>
|
||||
<a-input v-model:value="temp.token" :placeholder="$t('i18n.6c776e9d91')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item
|
||||
v-if="temp.runCommand"
|
||||
v-show="temp.type === 'edit' && javaModes.includes(temp.runMode)"
|
||||
:label="$t('pages.node.node-layout.project.project-edit.da878eca')"
|
||||
:label="$t('i18n.ce559ba296')"
|
||||
name="runCommand"
|
||||
>
|
||||
<a-alert
|
||||
:message="temp.runCommand || $t('pages.node.node-layout.project.project-edit.9ac5e2d4')"
|
||||
type="success"
|
||||
/>
|
||||
<a-alert :message="temp.runCommand || $t('i18n.d81bb206a8')" type="success" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-spin>
|
||||
@ -433,7 +382,7 @@
|
||||
v-if="configDir"
|
||||
v-model:open="configDir"
|
||||
destroy-on-close
|
||||
:title="`${$t('pages.node.node-layout.project.project-edit.277cb48f')}`"
|
||||
:title="`${$t('i18n.eee6510292')}`"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
@cancel="
|
||||
@ -457,7 +406,7 @@
|
||||
<NodeFunc
|
||||
v-if="drawerVisible"
|
||||
:id="nodeId"
|
||||
:name="$t('pages.node.node-layout.project.project-edit.41ceb72c')"
|
||||
:name="$t('i18n.35134b6f94')"
|
||||
:tabs="['scripct']"
|
||||
@close="
|
||||
() => {
|
||||
@ -518,25 +467,15 @@ export default {
|
||||
temp: {},
|
||||
drawerVisible: false,
|
||||
rules: {
|
||||
id: [
|
||||
{ required: true, message: this.$t('pages.node.node-layout.project.project-edit.6916e3ff'), trigger: 'blur' }
|
||||
],
|
||||
id: [{ required: true, message: this.$t('i18n.646a518953'), trigger: 'blur' }],
|
||||
|
||||
name: [
|
||||
{ required: true, message: this.$t('pages.node.node-layout.project.project-edit.bf4a219b'), trigger: 'blur' }
|
||||
],
|
||||
name: [{ required: true, message: this.$t('i18n.4371e2b426'), trigger: 'blur' }],
|
||||
|
||||
runMode: [
|
||||
{ required: true, message: this.$t('pages.node.node-layout.project.project-edit.4551702c'), trigger: 'blur' }
|
||||
],
|
||||
runMode: [{ required: true, message: this.$t('i18n.4310e9ed7d'), trigger: 'blur' }],
|
||||
|
||||
whitelistDirectory: [
|
||||
{ required: true, message: this.$t('pages.node.node-layout.project.project-edit.6fa628c8'), trigger: 'blur' }
|
||||
],
|
||||
whitelistDirectory: [{ required: true, message: this.$t('i18n.1d38b2b2bc'), trigger: 'blur' }],
|
||||
|
||||
lib: [
|
||||
{ required: true, message: this.$t('pages.node.node-layout.project.project-edit.b5d7203a'), trigger: 'blur' }
|
||||
]
|
||||
lib: [{ required: true, message: this.$t('i18n.d9657e2b5f'), trigger: 'blur' }]
|
||||
},
|
||||
linkProjectData: {},
|
||||
loading: true,
|
||||
@ -650,7 +589,7 @@ export default {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (this.temp.outGivingProject) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.node.node-layout.project.project-edit.d074a68')
|
||||
message: this.$t('i18n.869b506d66')
|
||||
})
|
||||
reject(false)
|
||||
return
|
||||
|
@ -13,7 +13,7 @@
|
||||
}"
|
||||
>
|
||||
<template v-if="backupListData.path" #title>
|
||||
{{ $t('pages.node.node-layout.project.project-file-backup.d0c9ff5d') }}{{ backupListData.path }}
|
||||
{{ $t('i18n.1b38c0bc86') }}{{ backupListData.path }}
|
||||
</template>
|
||||
|
||||
<template #bodyCell="{ column, text, record }">
|
||||
@ -35,10 +35,10 @@
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="handleBackupFile(record)">{{
|
||||
$t('pages.node.node-layout.project.project-file-backup.151c73eb')
|
||||
$t('i18n.f26225bde6')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" danger @click="handlBackupeDelete(record)">{{
|
||||
$t('pages.node.node-layout.project.project-file-backup.2f14e7d4')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -59,10 +59,10 @@
|
||||
viewList = true
|
||||
}
|
||||
"
|
||||
>{{ $t('pages.node.node-layout.project.project-file-backup.a21788bc') }}
|
||||
>{{ $t('i18n.adcd1dd701') }}
|
||||
</a-button>
|
||||
<a-button size="small" type="primary" @click="loadData">{{
|
||||
$t('pages.node.node-layout.project.project-file-backup.71bd4892')
|
||||
$t('i18n.90b5a467c1')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</div>
|
||||
@ -93,15 +93,15 @@
|
||||
<a-popconfirm
|
||||
:title="`${
|
||||
uploadPath
|
||||
? $t('pages.node.node-layout.project.project-file-backup.e1aa5b23') +
|
||||
? $t('i18n.bdd4cddd22') +
|
||||
uploadPath +
|
||||
$t('pages.node.node-layout.project.project-file-backup.7fa8492f')
|
||||
$t('i18n.dadd4907c2')
|
||||
: ''
|
||||
} ${$t('pages.node.node-layout.project.project-file-backup.2c42e7cd')},${$t(
|
||||
} ${$t('i18n.aefd8f9f27')},${$t(
|
||||
'pages.node.node-layout.project.project-file-backup.69fd8524'
|
||||
)}`"
|
||||
:ok-text="$t('pages.node.node-layout.project.project-file-backup.7f268593')"
|
||||
:cancel-text="$t('pages.node.node-layout.project.project-file-backup.2a382b54')"
|
||||
:ok-text="$t('i18n.587a63264b')"
|
||||
:cancel-text="$t('i18n.b1a09cee8e')"
|
||||
:ok-button-props="{
|
||||
loading: recoverLoading
|
||||
}"
|
||||
@ -113,13 +113,13 @@
|
||||
</template>
|
||||
<!-- @click="recoverPath(uploadPath)" -->
|
||||
<a-button size="small" type="primary">{{
|
||||
$t('pages.node.node-layout.project.project-file-backup.75a0292a')
|
||||
$t('i18n.69de8d7f40')
|
||||
}}</a-button>
|
||||
</a-popconfirm>
|
||||
|
||||
<a-space>
|
||||
<a-tag v-if="uploadPath" color="#2db7f5"
|
||||
>{{ $t('pages.node.node-layout.project.project-file-backup.5a7e230f') }}{{ uploadPath || '' }}</a-tag
|
||||
>{{ $t('i18n.2c8109fa0b') }}{{ uploadPath || '' }}</a-tag
|
||||
>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -135,8 +135,8 @@
|
||||
<a-tooltip placement="topLeft" :title="text">
|
||||
<span>{{
|
||||
text
|
||||
? $t('pages.node.node-layout.project.project-file-backup.64408008')
|
||||
: $t('pages.node.node-layout.project.project-file-backup.69cad40b')
|
||||
? $t('i18n.767fa455bb')
|
||||
: $t('i18n.2a0c4740f1')
|
||||
}}</span>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
@ -153,15 +153,15 @@
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<template v-if="record.isDirectory">
|
||||
<a-tooltip :title="$t('pages.node.node-layout.project.project-file-backup.88600d3e')">
|
||||
<a-tooltip :title="$t('i18n.6c14188ba0')">
|
||||
<a-button size="small" type="primary" :disabled="true">{{
|
||||
$t('pages.node.node-layout.project.project-file-backup.8e51d32d')
|
||||
$t('i18n.f26ef91424')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-button size="small" type="primary" @click="handleDownload(record)">{{
|
||||
$t('pages.node.node-layout.project.project-file-backup.8e51d32d')
|
||||
$t('i18n.f26ef91424')
|
||||
}}</a-button>
|
||||
</template>
|
||||
<template v-if="record.isDirectory">
|
||||
@ -169,15 +169,15 @@
|
||||
<a-popconfirm
|
||||
:title="`${
|
||||
record.filename
|
||||
? $t('pages.node.node-layout.project.project-file-backup.e1aa5b23') +
|
||||
? $t('i18n.bdd4cddd22') +
|
||||
record.filename +
|
||||
$t('pages.node.node-layout.project.project-file-backup.7fa8492f')
|
||||
$t('i18n.dadd4907c2')
|
||||
: ''
|
||||
} ${$t('pages.node.node-layout.project.project-file-backup.2c42e7cd')},${$t(
|
||||
} ${$t('i18n.aefd8f9f27')},${$t(
|
||||
'pages.node.node-layout.project.project-file-backup.69fd8524'
|
||||
)}`"
|
||||
:ok-text="$t('pages.node.node-layout.project.project-file-backup.7f268593')"
|
||||
:cancel-text="$t('pages.node.node-layout.project.project-file-backup.2a382b54')"
|
||||
:ok-text="$t('i18n.587a63264b')"
|
||||
:cancel-text="$t('i18n.b1a09cee8e')"
|
||||
:ok-button-props="{
|
||||
loading: recoverLoading
|
||||
}"
|
||||
@ -188,18 +188,18 @@
|
||||
<QuestionCircleOutlined style="color: red" />
|
||||
</template>
|
||||
<a-button size="small" type="primary">{{
|
||||
$t('pages.node.node-layout.project.project-file-backup.75a0292a')
|
||||
$t('i18n.69de8d7f40')
|
||||
}}</a-button>
|
||||
</a-popconfirm>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-button size="small" type="primary" :loading="recoverLoading" @click="recover(record)">{{
|
||||
$t('pages.node.node-layout.project.project-file-backup.75a0292a')
|
||||
$t('i18n.69de8d7f40')
|
||||
}}</a-button>
|
||||
</template>
|
||||
|
||||
<a-button size="small" type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('pages.node.node-layout.project.project-file-backup.2f14e7d4')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -255,25 +255,25 @@ export default {
|
||||
selectedKeys: [],
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file-backup.6a721706'),
|
||||
title: this.$t('i18n.d2e2560089'),
|
||||
dataIndex: 'filename',
|
||||
ellipsis: true
|
||||
},
|
||||
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file-backup.c3914d6a'),
|
||||
title: this.$t('i18n.396b7d3f91'),
|
||||
dataIndex: 'fileSizeLong',
|
||||
width: 120,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file-backup.e7410f94'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'modifyTimeLong',
|
||||
width: 180,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file-backup.cadc075'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
width: 180,
|
||||
align: 'center',
|
||||
@ -283,30 +283,30 @@ export default {
|
||||
|
||||
fileColumns: [
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file-backup.6a721706'),
|
||||
title: this.$t('i18n.d2e2560089'),
|
||||
dataIndex: 'filename',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file-backup.741604c2'),
|
||||
title: this.$t('i18n.28b988ce6a'),
|
||||
dataIndex: 'isDirectory',
|
||||
width: 100,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file-backup.c3914d6a'),
|
||||
title: this.$t('i18n.396b7d3f91'),
|
||||
dataIndex: 'fileSizeLong',
|
||||
width: 120,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file-backup.e7410f94'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'modifyTimeLong',
|
||||
width: 180,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file-backup.cadc075'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
width: 180,
|
||||
align: 'center',
|
||||
@ -361,7 +361,7 @@ export default {
|
||||
const key = 'root-' + new Date().getTime()
|
||||
this.treeList = [
|
||||
{
|
||||
filename: this.$t('pages.node.node-layout.project.project-file-backup.6344a175') + (this.temp.filename || ''),
|
||||
filename: this.$t('i18n.cfeff30d2c') + (this.temp.filename || ''),
|
||||
level: 1,
|
||||
isDirectory: true,
|
||||
key: key,
|
||||
@ -433,7 +433,7 @@ export default {
|
||||
loadFileList() {
|
||||
if (Object.keys(this.tempNode).length === 0) {
|
||||
$notification.warn({
|
||||
message: this.$t('pages.node.node-layout.project.project-file-backup.580e6c10')
|
||||
message: this.$t('i18n.bcaf69a038')
|
||||
})
|
||||
return false
|
||||
}
|
||||
@ -466,7 +466,7 @@ export default {
|
||||
// 下载
|
||||
handleDownload(record) {
|
||||
$notification.info({
|
||||
message: this.$t('pages.node.node-layout.project.project-file-backup.1fce73f8')
|
||||
message: this.$t('i18n.e4bf491a0d')
|
||||
})
|
||||
// 请求参数
|
||||
const params = {
|
||||
@ -482,18 +482,18 @@ export default {
|
||||
// 删除
|
||||
handleDelete(record) {
|
||||
const msg = record.isDirectory
|
||||
? this.$t('pages.node.node-layout.project.project-file-backup.b658d8ec') +
|
||||
? this.$t('i18n.3cc09369ad') +
|
||||
record.filename +
|
||||
this.$t('pages.node.node-layout.project.project-file-backup.1cad79c0')
|
||||
: this.$t('pages.node.node-layout.project.project-file-backup.b658d8ec') +
|
||||
this.$t('i18n.52a8df6678')
|
||||
: this.$t('i18n.3cc09369ad') +
|
||||
record.filename +
|
||||
this.$t('pages.node.node-layout.project.project-file-backup.194806c7')
|
||||
this.$t('i18n.48e79b3340')
|
||||
$confirm({
|
||||
title: this.$t('pages.node.node-layout.project.project-file-backup.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: msg,
|
||||
okText: this.$t('pages.node.node-layout.project.project-file-backup.7da4a591'),
|
||||
cancelText: this.$t('pages.node.node-layout.project.project-file-backup.43105e21'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return backupDeleteProjectFile({
|
||||
nodeId: this.nodeId,
|
||||
@ -516,15 +516,15 @@ export default {
|
||||
// 删除备份
|
||||
handlBackupeDelete(record) {
|
||||
const msg =
|
||||
this.$t('pages.node.node-layout.project.project-file-backup.b658d8ec') +
|
||||
this.$t('i18n.3cc09369ad') +
|
||||
record.filename +
|
||||
this.$t('pages.node.node-layout.project.project-file-backup.fe7b030a')
|
||||
this.$t('i18n.115cd58b5d')
|
||||
$confirm({
|
||||
title: this.$t('pages.node.node-layout.project.project-file-backup.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: msg,
|
||||
okText: this.$t('pages.node.node-layout.project.project-file-backup.7da4a591'),
|
||||
cancelText: this.$t('pages.node.node-layout.project.project-file-backup.43105e21'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return backupDeleteProjectFile({
|
||||
nodeId: this.nodeId,
|
||||
@ -554,14 +554,14 @@ export default {
|
||||
this.recoverPath(record.filename)
|
||||
} else {
|
||||
$confirm({
|
||||
title: this.$t('pages.node.node-layout.project.project-file-backup.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content:
|
||||
this.$t('pages.node.node-layout.project.project-file-backup.24fdeed2') +
|
||||
this.$t('i18n.d2cac1245d') +
|
||||
record.filename +
|
||||
this.$t('pages.node.node-layout.project.project-file-backup.f4ea8f84'),
|
||||
okText: this.$t('pages.node.node-layout.project.project-file-backup.7da4a591'),
|
||||
cancelText: this.$t('pages.node.node-layout.project.project-file-backup.43105e21'),
|
||||
this.$t('i18n.e039ffccc8'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk() {
|
||||
// // 请求参数
|
||||
this.recoverNet('', record.filename)
|
||||
|
@ -3,7 +3,7 @@
|
||||
<log-view1 :ref="`logView`" height="calc(100vh - 140px)">
|
||||
<template #before>
|
||||
<a-button type="primary" size="small" @click="goFile">{{
|
||||
$t('pages.node.node-layout.project.project-file-read.502f94')
|
||||
$t('i18n.8780e6b3d1')
|
||||
}}</a-button></template
|
||||
>
|
||||
</log-view1>
|
||||
@ -97,7 +97,7 @@ export default {
|
||||
this.socket.onerror = (err) => {
|
||||
console.error(err)
|
||||
$notification.error({
|
||||
message: `web socket ${this.$t('pages.node.node-layout.project.project-file-read.d75d207f')},${this.$t(
|
||||
message: `web socket ${this.$t('i18n.7030ff6470')},${this.$t(
|
||||
'pages.node.node-layout.project.project-file-read.763330b'
|
||||
)}`
|
||||
})
|
||||
@ -107,7 +107,7 @@ export default {
|
||||
//当客户端收到服务端发送的关闭连接请求时,触发onclose事件
|
||||
console.error(err)
|
||||
clearInterval(this.heart)
|
||||
$message.warning(this.$t('pages.node.node-layout.project.project-file-read.8a2aae09'))
|
||||
$message.warning(this.$t('i18n.9255f9c68f'))
|
||||
}
|
||||
this.socket.onmessage = (msg) => {
|
||||
this.$refs.logView?.appendLine(msg.data)
|
||||
|
@ -8,13 +8,13 @@
|
||||
<div class="dir-container">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="loadData">{{
|
||||
$t('pages.node.node-layout.project.project-file.673024c2')
|
||||
$t('i18n.90b5a467c1')
|
||||
}}</a-button>
|
||||
<a-button v-show="noFileModes.includes(runMode)" size="small" type="primary" @click="goConsole">
|
||||
{{ $t('pages.node.node-layout.project.project-file.5139b7d7') }}
|
||||
{{ $t('i18n.b5c3770699') }}
|
||||
</a-button>
|
||||
<a-button size="small" type="primary" @click="backupList">
|
||||
{{ $t('pages.node.node-layout.project.project-file.deafd62c') }}
|
||||
{{ $t('i18n.9014d6d289') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</div>
|
||||
@ -46,18 +46,18 @@
|
||||
<a-space>
|
||||
<a-dropdown :disabled="!Object.keys(tempNode).length">
|
||||
<a-button size="small" type="primary" @click="(e) => e.preventDefault()"
|
||||
><UploadOutlined />{{ $t('pages.node.node-layout.project.project-file.f08f4b84') }}</a-button
|
||||
><UploadOutlined />{{ $t('i18n.d5a73b0c7f') }}</a-button
|
||||
>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item @click="handleUpload">
|
||||
<a-space
|
||||
><FileOutlined />{{ $t('pages.node.node-layout.project.project-file.33ffacfb') }}</a-space
|
||||
><FileOutlined />{{ $t('i18n.a6fc9e3ae6') }}</a-space
|
||||
>
|
||||
</a-menu-item>
|
||||
<a-menu-item @click="handleZipUpload">
|
||||
<a-space
|
||||
><FileZipOutlined />{{ $t('pages.node.node-layout.project.project-file.6800b7c2') }}</a-space
|
||||
><FileZipOutlined />{{ $t('i18n.37f031338a') }}</a-space
|
||||
>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
@ -65,39 +65,39 @@
|
||||
</a-dropdown>
|
||||
<a-dropdown :disabled="!Object.keys(tempNode).length">
|
||||
<a-button size="small" type="primary" @click="(e) => e.preventDefault()"
|
||||
><PlusOutlined />{{ $t('pages.node.node-layout.project.project-file.68e44d60') }}</a-button
|
||||
><PlusOutlined />{{ $t('i18n.26bb841878') }}</a-button
|
||||
>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item @click="handleAddFile(1)">
|
||||
<a-space>
|
||||
<FolderAddOutlined />
|
||||
<a-space>{{ $t('pages.node.node-layout.project.project-file.be93e7e8') }}</a-space>
|
||||
<a-space>{{ $t('i18n.547ee197e5') }}</a-space>
|
||||
</a-space>
|
||||
</a-menu-item>
|
||||
<a-menu-item @click="handleAddFile(2)">
|
||||
<a-space>
|
||||
<FileAddOutlined />
|
||||
<a-space>{{ $t('pages.node.node-layout.project.project-file.d2d212a') }}</a-space>
|
||||
<a-space>{{ $t('i18n.497ddf508a') }}</a-space>
|
||||
</a-space>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
</a-dropdown>
|
||||
<a-tooltip :title="$t('pages.node.node-layout.project.project-file.2be4f3d2')">
|
||||
<a-tooltip :title="$t('i18n.9065a208e8')">
|
||||
<a-button size="small" type="primary" @click="openRemoteUpload"><CloudDownloadOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.node.node-layout.project.project-file.c9f489b3')">
|
||||
<a-tooltip :title="$t('i18n.5e32f72bbf')">
|
||||
<a-button size="small" type="primary" @click="loadFileList"><ReloadOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.node.node-layout.project.project-file.d7878f7')">
|
||||
<a-tooltip :title="$t('i18n.de6bc95d3b')">
|
||||
<a-button size="small" type="primary" danger @click="clearFile"><DeleteOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
|
||||
<a-tag v-if="uploadPath" color="#2db7f5"
|
||||
>{{ $t('pages.node.node-layout.project.project-file.79d208a0') }}{{ uploadPath || '' }}</a-tag
|
||||
>{{ $t('i18n.2c8109fa0b') }}{{ uploadPath || '' }}</a-tag
|
||||
>
|
||||
<div>{{ $t('pages.node.node-layout.project.project-file.aa19cb64') }}</div>
|
||||
<div>{{ $t('i18n.9e98fa5c0d') }}</div>
|
||||
</a-space>
|
||||
</template>
|
||||
|
||||
@ -110,24 +110,24 @@
|
||||
<a-menu>
|
||||
<a-menu-item key="1">
|
||||
<a-button :disabled="!record.textFileEdit" type="link" @click="goReadFile(record)">
|
||||
<BarsOutlined /> {{ $t('pages.node.node-layout.project.project-file.c7a1ee83') }}
|
||||
<BarsOutlined /> {{ $t('i18n.5854370b86') }}
|
||||
</a-button>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="2">
|
||||
<a-button type="link" @click="handleRenameFile(record)">
|
||||
<HighlightOutlined />{{ $t('pages.node.node-layout.project.project-file.cc9bcf1d') }}
|
||||
<HighlightOutlined />{{ $t('i18n.c8ce4b36cb') }}
|
||||
</a-button>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="3">
|
||||
<a-button type="link" @click="hannderCopy(record)"
|
||||
><CopyOutlined />{{ $t('pages.node.node-layout.project.project-file.8079a3d1') }}</a-button
|
||||
><CopyOutlined />{{ $t('i18n.7a811cc1e5') }}</a-button
|
||||
>
|
||||
</a-menu-item>
|
||||
<a-sub-menu key="4" :disabled="!record.isDirectory">
|
||||
<template #title>
|
||||
<a-button type="link"
|
||||
><CompressOutlined />{{
|
||||
$t('pages.node.node-layout.project.project-file.ed3ffb78')
|
||||
$t('i18n.072fa90836')
|
||||
}}</a-button
|
||||
>
|
||||
</template>
|
||||
@ -155,8 +155,8 @@
|
||||
<template v-else-if="column.dataIndex === 'isDirectory'">
|
||||
<span>{{
|
||||
text
|
||||
? $t('pages.node.node-layout.project.project-file.3af76cdd')
|
||||
: $t('pages.node.node-layout.project.project-file.69cad40b')
|
||||
? $t('i18n.767fa455bb')
|
||||
: $t('i18n.2a0c4740f1')
|
||||
}}</span>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'fileSizeLong'">
|
||||
@ -172,34 +172,34 @@
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<template v-if="record.isDirectory">
|
||||
<a-tooltip :title="$t('pages.node.node-layout.project.project-file.8ae46c33')">
|
||||
<a-tooltip :title="$t('i18n.c6f1c6e062')">
|
||||
<a-button size="small" type="primary" :disabled="true">{{
|
||||
$t('pages.node.node-layout.project.project-file.e1224c34')
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('pages.node.node-layout.project.project-file.c4f5f6e8')">
|
||||
<a-tooltip :title="$t('i18n.6c14188ba0')">
|
||||
<a-button size="small" type="primary" :disabled="true">{{
|
||||
$t('pages.node.node-layout.project.project-file.8e51d32d')
|
||||
$t('i18n.f26ef91424')
|
||||
}}</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-tooltip :title="$t('pages.node.node-layout.project.project-file.309603aa')">
|
||||
<a-tooltip :title="$t('i18n.17b5e684e5')">
|
||||
<a-button
|
||||
size="small"
|
||||
type="primary"
|
||||
:loading="editLoading"
|
||||
:disabled="!record.textFileEdit"
|
||||
@click="handleEditFile(record)"
|
||||
>{{ $t('pages.node.node-layout.project.project-file.e1224c34') }}</a-button
|
||||
>{{ $t('i18n.95b351c862') }}</a-button
|
||||
>
|
||||
</a-tooltip>
|
||||
<a-button size="small" type="primary" @click="handleDownload(record)">{{
|
||||
$t('pages.node.node-layout.project.project-file.8e51d32d')
|
||||
$t('i18n.f26ef91424')
|
||||
}}</a-button>
|
||||
</template>
|
||||
<a-button size="small" type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('pages.node.node-layout.project.project-file.dd20d11c')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -213,7 +213,7 @@
|
||||
:closable="!uploading"
|
||||
:keyboard="false"
|
||||
width="35vw"
|
||||
:title="$t('pages.node.node-layout.project.project-file.92c4b47e')"
|
||||
:title="$t('i18n.15c0ba2767')"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
>
|
||||
@ -244,7 +244,7 @@
|
||||
</template>
|
||||
|
||||
<a-button v-else
|
||||
><UploadOutlined />{{ $t('pages.node.node-layout.project.project-file.51eeb245') }}</a-button
|
||||
><UploadOutlined />{{ $t('i18n.fd7e0c997d') }}</a-button
|
||||
>
|
||||
</a-upload>
|
||||
|
||||
@ -256,14 +256,14 @@
|
||||
({{ renderSize(percentageInfo.total) }})
|
||||
</template>
|
||||
<template v-if="percentageInfo.duration">
|
||||
{{ $t('pages.node.node-layout.project.project-file.2860854d') }}:{{
|
||||
{{ $t('i18n.833249fb92') }}:{{
|
||||
formatDuration(percentageInfo.duration)
|
||||
}}
|
||||
</template>
|
||||
<template v-if="uploadFileList.length">
|
||||
{{ $t('pages.node.node-layout.project.project-file.b42c817e') }} {{ successSize }}
|
||||
{{ $t('pages.node.node-layout.project.project-file.ab314151') }}{{ uploadFileList.length
|
||||
}}{{ $t('pages.node.node-layout.project.project-file.596f5e3f') }}
|
||||
{{ $t('i18n.769d88e425') }} {{ successSize }}
|
||||
{{ $t('i18n.d047d84986') }}{{ uploadFileList.length
|
||||
}}{{ $t('i18n.930882bb0a') }}
|
||||
</template>
|
||||
</template>
|
||||
</a-progress>
|
||||
@ -271,7 +271,7 @@
|
||||
</a-row>
|
||||
|
||||
<a-button type="primary" :disabled="fileUploadDisabled" @click="startUpload">{{
|
||||
$t('pages.node.node-layout.project.project-file.c9b65c5c')
|
||||
$t('i18n.020f1ecd62')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</CustomModal>
|
||||
@ -283,7 +283,7 @@
|
||||
:closable="!uploading"
|
||||
:keyboard="false"
|
||||
width="35vw"
|
||||
:title="$t('pages.node.node-layout.project.project-file.6d1f9442')"
|
||||
:title="$t('i18n.e31ca72849')"
|
||||
:footer="null"
|
||||
:mask-closable="false"
|
||||
>
|
||||
@ -307,7 +307,7 @@
|
||||
>
|
||||
<LoadingOutlined v-if="percentage" />
|
||||
<a-button v-else
|
||||
><UploadOutlined />{{ $t('pages.node.node-layout.project.project-file.1c2e5817') }}</a-button
|
||||
><UploadOutlined />{{ $t('i18n.a17450a5ff') }}</a-button
|
||||
>
|
||||
</a-upload>
|
||||
<a-row v-if="percentage">
|
||||
@ -318,14 +318,14 @@
|
||||
({{ renderSize(percentageInfo.total) }})
|
||||
</template>
|
||||
<template v-if="percentageInfo.duration">
|
||||
{{ $t('pages.node.node-layout.project.project-file.2860854d') }}:{{
|
||||
{{ $t('i18n.833249fb92') }}:{{
|
||||
formatDuration(percentageInfo.duration)
|
||||
}}
|
||||
</template>
|
||||
<template v-if="uploadFileList.length">
|
||||
{{ $t('pages.node.node-layout.project.project-file.b42c817e') }} {{ successSize }}
|
||||
{{ $t('pages.node.node-layout.project.project-file.ab314151') }}{{ uploadFileList.length
|
||||
}}{{ $t('pages.node.node-layout.project.project-file.596f5e3f') }}
|
||||
{{ $t('i18n.769d88e425') }} {{ successSize }}
|
||||
{{ $t('i18n.d047d84986') }}{{ uploadFileList.length
|
||||
}}{{ $t('i18n.930882bb0a') }}
|
||||
</template>
|
||||
</template>
|
||||
</a-progress>
|
||||
@ -334,8 +334,8 @@
|
||||
|
||||
<a-switch
|
||||
v-model:checked="uploadData.checkBox"
|
||||
:checked-children="$t('pages.node.node-layout.project.project-file.9f944d4')"
|
||||
:un-checked-children="$t('pages.node.node-layout.project.project-file.2ea5aa10')"
|
||||
:checked-children="$t('i18n.164cf07e1c')"
|
||||
:un-checked-children="$t('i18n.fd7b461411')"
|
||||
style="margin-bottom: 10px"
|
||||
/>
|
||||
|
||||
@ -343,11 +343,11 @@
|
||||
v-model:value="uploadData.stripComponents"
|
||||
style="width: 100%"
|
||||
:min="0"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-file.cd9753f4')"
|
||||
:placeholder="$t('i18n.3f8b64991f')"
|
||||
/>
|
||||
|
||||
<a-button type="primary" :disabled="fileUploadDisabled" @click="startZipUpload">{{
|
||||
$t('pages.node.node-layout.project.project-file.c9b65c5c')
|
||||
$t('i18n.020f1ecd62')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</CustomModal>
|
||||
@ -357,7 +357,7 @@
|
||||
v-model:open="editFileVisible"
|
||||
destroy-on-close
|
||||
width="80vw"
|
||||
:title="`${$t('pages.node.node-layout.project.project-file.4d43d54d')} ${filename}`"
|
||||
:title="`${$t('i18n.47ff744ef6')} ${filename}`"
|
||||
:mask-closable="true"
|
||||
@cancel="handleCloseModal"
|
||||
>
|
||||
@ -378,10 +378,10 @@
|
||||
|
||||
<template #footer>
|
||||
<a-button @click="handleCloseModal">
|
||||
{{ $t('pages.node.node-layout.project.project-file.99811dca') }}
|
||||
{{ $t('i18n.b15d91274e') }}
|
||||
</a-button>
|
||||
<a-button type="primary" @click="updateFileData">
|
||||
{{ $t('pages.node.node-layout.project.project-file.b033d8c5') }}
|
||||
{{ $t('i18n.be5fbbe34c') }}
|
||||
</a-button>
|
||||
<a-button
|
||||
type="primary"
|
||||
@ -392,7 +392,7 @@
|
||||
}
|
||||
"
|
||||
>
|
||||
{{ $t('pages.node.node-layout.project.project-file.e4584755') }}
|
||||
{{ $t('i18n.280379cee4') }}
|
||||
</a-button>
|
||||
</template>
|
||||
</CustomModal>
|
||||
@ -402,7 +402,7 @@
|
||||
v-model:open="uploadRemoteFileVisible"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.node.node-layout.project.project-file.367f115c')"
|
||||
:title="$t('i18n.5d488af335')"
|
||||
:mask-closable="false"
|
||||
@ok="handleRemoteUpload"
|
||||
@cancel="closeRemoteUpload"
|
||||
@ -414,28 +414,28 @@
|
||||
:wrapper-col="{ span: 18 }"
|
||||
:rules="rules"
|
||||
>
|
||||
<a-form-item :label="$t('pages.node.node-layout.project.project-file.3afe9b11')" name="url">
|
||||
<a-form-item :label="$t('i18n.a66fff7541')" name="url">
|
||||
<a-input
|
||||
v-model:value="remoteDownloadData.url"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-file.40ced483')"
|
||||
:placeholder="$t('i18n.7457228a61')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('pages.node.node-layout.project.project-file.4a4b3f66')">
|
||||
<a-form-item :label="$t('i18n.50fefde769')">
|
||||
<a-switch
|
||||
v-model:checked="remoteDownloadData.unzip"
|
||||
:checked-children="$t('pages.node.node-layout.project.project-file.f5bb2364')"
|
||||
:un-checked-children="$t('pages.node.node-layout.project.project-file.5edb2e8a')"
|
||||
:checked-children="$t('i18n.0a60ac8f02')"
|
||||
:un-checked-children="$t('i18n.c9744f45e7')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="remoteDownloadData.unzip"
|
||||
:label="$t('pages.node.node-layout.project.project-file.89d09852')"
|
||||
:label="$t('i18n.5effe31353')"
|
||||
>
|
||||
<a-input-number
|
||||
v-model:value="remoteDownloadData.stripComponents"
|
||||
style="width: 100%"
|
||||
:min="0"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-file.cd9753f4')"
|
||||
:placeholder="$t('i18n.3f8b64991f')"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
@ -448,25 +448,25 @@
|
||||
width="300px"
|
||||
:title="
|
||||
addFileOrFolderType === 1
|
||||
? $t('pages.node.node-layout.project.project-file.4bbe6dca')
|
||||
: $t('pages.node.node-layout.project.project-file.8cccdefa')
|
||||
? $t('i18n.2d9e932510')
|
||||
: $t('i18n.e48a715738')
|
||||
"
|
||||
:footer="null"
|
||||
:mask-closable="true"
|
||||
>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<span v-if="uploadPath"
|
||||
>{{ $t('pages.node.node-layout.project.project-file.72c90289') }}{{ uploadPath }}</span
|
||||
>{{ $t('i18n.4e33dde280') }}{{ uploadPath }}</span
|
||||
>
|
||||
<!-- <a-tag v-if="">目录创建成功后需要手动刷新右边树才能显示出来哟</a-tag> -->
|
||||
|
||||
<a-input
|
||||
v-model:value="fileFolderName"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-file.95105178')"
|
||||
:placeholder="$t('i18n.55939c108f')"
|
||||
/>
|
||||
<a-row type="flex" justify="center">
|
||||
<a-button type="primary" :disabled="fileFolderName.length === 0" @click="startAddFileFolder">{{
|
||||
$t('pages.node.node-layout.project.project-file.7da4a591')
|
||||
$t('i18n.e83a256e4f')
|
||||
}}</a-button>
|
||||
</a-row>
|
||||
</a-space>
|
||||
@ -477,19 +477,19 @@
|
||||
v-model:open="renameFileFolderVisible"
|
||||
destroy-on-close
|
||||
width="300px"
|
||||
:title="`${$t('pages.node.node-layout.project.project-file.cc9bcf1d')}`"
|
||||
:title="`${$t('i18n.c8ce4b36cb')}`"
|
||||
:footer="null"
|
||||
:mask-closable="true"
|
||||
>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-input
|
||||
v-model:value="fileFolderName"
|
||||
:placeholder="$t('pages.node.node-layout.project.project-file.79d8583e')"
|
||||
:placeholder="$t('i18n.f139c5cf32')"
|
||||
/>
|
||||
|
||||
<a-row type="flex" justify="center">
|
||||
<a-button type="primary" :disabled="fileFolderName.length === 0" @click="renameFileFolder">{{
|
||||
$t('pages.node.node-layout.project.project-file.7da4a591')
|
||||
$t('i18n.e83a256e4f')
|
||||
}}</a-button>
|
||||
</a-row>
|
||||
</a-space>
|
||||
@ -504,7 +504,7 @@
|
||||
destroy-on-close
|
||||
width="80vw"
|
||||
height="80vh"
|
||||
:title="$t('pages.node.node-layout.project.project-file.deafd62c')"
|
||||
:title="$t('i18n.9014d6d289')"
|
||||
:footer="null"
|
||||
:mask-closable="true"
|
||||
@cancel="
|
||||
@ -606,18 +606,18 @@ export default {
|
||||
},
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file.a6eb2ded'),
|
||||
title: this.$t('i18n.d2e2560089'),
|
||||
dataIndex: 'filename',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file.741604c2'),
|
||||
title: this.$t('i18n.28b988ce6a'),
|
||||
dataIndex: 'isDirectory',
|
||||
width: '100px',
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file.f087781'),
|
||||
title: this.$t('i18n.396b7d3f91'),
|
||||
dataIndex: 'fileSizeLong',
|
||||
width: 120,
|
||||
ellipsis: true,
|
||||
@ -625,7 +625,7 @@ export default {
|
||||
sorter: (a, b) => a.fileSizeLong - b.fileSizeLong
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file.a2b40316'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'modifyTimeLong',
|
||||
width: '180px',
|
||||
ellipsis: true,
|
||||
@ -633,7 +633,7 @@ export default {
|
||||
sorter: (a, b) => a.modifyTimeLong - b.modifyTimeLong
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-file.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
width: '180px',
|
||||
align: 'center',
|
||||
@ -645,7 +645,7 @@ export default {
|
||||
url: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('pages.node.node-layout.project.project-file.4484dd55'),
|
||||
message: this.$t('i18n.0221d43e46'),
|
||||
trigger: 'change'
|
||||
}
|
||||
]
|
||||
@ -689,7 +689,7 @@ export default {
|
||||
loadData() {
|
||||
const key = 'root-' + new Date().getTime()
|
||||
this.tempNode = {
|
||||
filename: this.$t('pages.node.node-layout.project.project-file.5ad13793') + (this.absPath || ''),
|
||||
filename: this.$t('i18n.cfeff30d2c') + (this.absPath || ''),
|
||||
level: 1,
|
||||
isDirectory: true,
|
||||
key: key,
|
||||
@ -766,7 +766,7 @@ export default {
|
||||
handleUpload() {
|
||||
if (Object.keys(this.tempNode).length === 0) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.node.node-layout.project.project-file.2388531c')
|
||||
message: this.$t('i18n.bcaf69a038')
|
||||
})
|
||||
return
|
||||
}
|
||||
@ -904,7 +904,7 @@ export default {
|
||||
handleZipUpload() {
|
||||
if (Object.keys(this.tempNode).length === 0) {
|
||||
$notification.error({
|
||||
message: this.$t('pages.node.node-layout.project.project-file.2388531c')
|
||||
message: this.$t('i18n.bcaf69a038')
|
||||
})
|
||||
return
|
||||
}
|
||||
@ -1112,7 +1112,7 @@ export default {
|
||||
loadFileList() {
|
||||
if (Object.keys(this.tempNode).length === 0) {
|
||||
$notification.warn({
|
||||
message: this.$t('pages.node.node-layout.project.project-file.2388531c')
|
||||
message: this.$t('i18n.bcaf69a038')
|
||||
})
|
||||
return false
|
||||
}
|
||||
@ -1144,16 +1144,16 @@ export default {
|
||||
// 清空文件
|
||||
clearFile() {
|
||||
const msg = this.uploadPath
|
||||
? this.$t('pages.node.node-layout.project.project-file.cc344691') +
|
||||
? this.$t('i18n.c840c88b7c') +
|
||||
this.uploadPath +
|
||||
this.$t('pages.node.node-layout.project.project-file.bb337607')
|
||||
: this.$t('pages.node.node-layout.project.project-file.223a27bd')
|
||||
this.$t('i18n.3f553922ae')
|
||||
: this.$t('i18n.26bd746dc3')
|
||||
$confirm({
|
||||
title: this.$t('pages.node.node-layout.project.project-file.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
content: msg,
|
||||
okText: this.$t('pages.node.node-layout.project.project-file.7da4a591'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
zIndex: 1009,
|
||||
cancelText: this.$t('pages.node.node-layout.project.project-file.43105e21'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return deleteProjectFile({
|
||||
nodeId: this.nodeId,
|
||||
@ -1174,7 +1174,7 @@ export default {
|
||||
// 下载
|
||||
handleDownload(record) {
|
||||
$notification.info({
|
||||
message: this.$t('pages.node.node-layout.project.project-file.1fce73f8')
|
||||
message: this.$t('i18n.e4bf491a0d')
|
||||
})
|
||||
// 请求参数
|
||||
const params = {
|
||||
@ -1188,18 +1188,18 @@ export default {
|
||||
// 删除
|
||||
handleDelete(record) {
|
||||
const msg = record.isDirectory
|
||||
? this.$t('pages.node.node-layout.project.project-file.9a72eded') +
|
||||
? this.$t('i18n.3cc09369ad') +
|
||||
record.filename +
|
||||
this.$t('pages.node.node-layout.project.project-file.553d172b')
|
||||
: this.$t('pages.node.node-layout.project.project-file.9a72eded') +
|
||||
this.$t('i18n.52a8df6678')
|
||||
: this.$t('i18n.3cc09369ad') +
|
||||
record.filename +
|
||||
this.$t('pages.node.node-layout.project.project-file.cb598288')
|
||||
this.$t('i18n.48e79b3340')
|
||||
$confirm({
|
||||
title: this.$t('pages.node.node-layout.project.project-file.a8fe4c17'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
content: msg,
|
||||
okText: this.$t('pages.node.node-layout.project.project-file.7da4a591'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
zIndex: 1009,
|
||||
cancelText: this.$t('pages.node.node-layout.project.project-file.43105e21'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return deleteProjectFile({
|
||||
nodeId: this.nodeId,
|
||||
|
@ -2,22 +2,22 @@
|
||||
<div>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-tag style="display: inline-grid">
|
||||
{{ $t('pages.node.node-layout.project.project-log.6424a544') }}
|
||||
{{ $t('i18n.a17bc8d947') }}
|
||||
<b>jpom.project.log.auto-backup-to-file: false</b>
|
||||
</a-tag>
|
||||
|
||||
<a-tag v-if="project.logPath" color="orange">
|
||||
{{ $t('pages.node.node-layout.project.project-log.f07e81ba') }}: {{ project.logPath }}
|
||||
{{ $t('i18n.32a19ce88b') }}: {{ project.logPath }}
|
||||
<template v-if="project.logSize">
|
||||
{{ $t('pages.node.node-layout.project.project-log.afb07e2c') }}{{ project.logSize }}
|
||||
{{ $t('i18n.3402926291') }}{{ project.logSize }}
|
||||
<a-button type="link" size="small" @click="handleDownload">
|
||||
<DownloadOutlined />{{ $t('pages.node.node-layout.project.project-log.a5bebb0f') }}
|
||||
<DownloadOutlined />{{ $t('i18n.55405ea6ff') }}
|
||||
</a-button>
|
||||
</template>
|
||||
</a-tag>
|
||||
|
||||
<a-tag v-if="project.logBackPath" color="orange"
|
||||
>{{ $t('pages.node.node-layout.project.project-log.f4e35807') }}{{ project.logBackPath }}</a-tag
|
||||
>{{ $t('i18n.c34175dbef') }}{{ project.logBackPath }}</a-tag
|
||||
>
|
||||
|
||||
<!-- 数据表格 -->
|
||||
@ -50,10 +50,10 @@
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button type="primary" @click="handleDownloadLogback(record)">{{
|
||||
$t('pages.node.node-layout.project.project-log.42c8e9c6')
|
||||
$t('i18n.f26ef91424')
|
||||
}}</a-button>
|
||||
<a-button type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('pages.node.node-layout.project.project-log.dd20d11c')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -89,25 +89,25 @@ export default {
|
||||
logBackList: [],
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-log.a6eb2ded'),
|
||||
title: this.$t('i18n.d2e2560089'),
|
||||
dataIndex: 'filename',
|
||||
width: 150,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-log.a2b40316'),
|
||||
title: this.$t('i18n.1303e638b5'),
|
||||
dataIndex: 'modifyTimeLong',
|
||||
width: 150,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-log.f087781'),
|
||||
title: this.$t('i18n.396b7d3f91'),
|
||||
dataIndex: 'fileSizeLong',
|
||||
width: 100,
|
||||
ellipsis: true
|
||||
},
|
||||
{
|
||||
title: this.$t('pages.node.node-layout.project.project-log.3bb962bf'),
|
||||
title: this.$t('i18n.2b6bc0f293'),
|
||||
dataIndex: 'operation',
|
||||
align: 'center',
|
||||
fixed: 'right',
|
||||
@ -178,11 +178,11 @@ export default {
|
||||
// 删除日志备份文件
|
||||
handleDelete(record) {
|
||||
$confirm({
|
||||
title: this.$t('pages.node.node-layout.project.project-log.b22d55a0'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.node.node-layout.project.project-log.987c2cd6'),
|
||||
okText: this.$t('pages.node.node-layout.project.project-log.e8e9db25'),
|
||||
cancelText: this.$t('pages.node.node-layout.project.project-log.b12468e9'),
|
||||
content: this.$t('i18n.3a6bc88ce0'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return deleteProjectLogBackFile({
|
||||
nodeId: this.nodeId,
|
||||
|
@ -1,41 +1,41 @@
|
||||
<template>
|
||||
<div class="">
|
||||
<a-tabs default-active-key="1" tab-position="left">
|
||||
<a-tab-pane key="1" :tab="$t('pages.node.node-layout.system.cache.f84aaf3f')">
|
||||
<a-tab-pane key="1" :tab="$t('i18n.3c6248b364')">
|
||||
<a-alert
|
||||
:message="$t('pages.node.node-layout.system.cache.74dc9002')"
|
||||
:message="$t('i18n.5785f004ea')"
|
||||
style="margin-top: 10px; margin-bottom: 40px"
|
||||
banner
|
||||
/>
|
||||
<a-timeline>
|
||||
<a-timeline-item v-if="temp.dateTime">
|
||||
<span class="layui-elem-quote">
|
||||
{{ $t('pages.node.node-layout.system.cache.8ad18624') }}{{ temp.dateTime }}
|
||||
{{ $t('i18n.9ddaa182bd') }}{{ temp.dateTime }}
|
||||
<a-tag>{{ temp.timeZoneId }}</a-tag>
|
||||
</span>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('pages.node.node-layout.system.cache.45c2d461') }}{{ renderSize(temp.dataSize) }}</span
|
||||
>{{ $t('i18n.37f1931729') }}{{ renderSize(temp.dataSize) }}</span
|
||||
>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item v-if="temp.fileSize">
|
||||
<a-space>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('pages.node.node-layout.system.cache.2857c7f8') }}{{ renderSize(temp.fileSize) }}</span
|
||||
>{{ $t('i18n.ea3c5c0d25') }}{{ renderSize(temp.fileSize) }}</span
|
||||
>
|
||||
<a-button size="small" type="primary" class="btn" @click="clear('fileSize')">{{
|
||||
$t('pages.node.node-layout.system.cache.3907eb5b')
|
||||
$t('i18n.288f0c404c')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item v-if="temp.oldJarsSize">
|
||||
<a-space>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('pages.node.node-layout.system.cache.890d7cd0') }}{{ renderSize(temp.oldJarsSize) }}</span
|
||||
>{{ $t('i18n.413d8ba722') }}{{ renderSize(temp.oldJarsSize) }}</span
|
||||
>
|
||||
<a-button size="small" type="primary" class="btn" @click="clear('oldJarsSize')">{{
|
||||
$t('pages.node.node-layout.system.cache.3907eb5b')
|
||||
$t('i18n.288f0c404c')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</a-timeline-item>
|
||||
@ -43,34 +43,34 @@
|
||||
<a-timeline-item>
|
||||
<a-space>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('pages.node.node-layout.system.cache.c50e1b39') }}{{ temp.pidPort }}</span
|
||||
>{{ $t('i18n.775fde44cf') }}{{ temp.pidPort }}</span
|
||||
>
|
||||
<a-button v-if="temp.pidPort" size="small" type="primary" class="btn" @click="clear('pidPort')">{{
|
||||
$t('pages.node.node-layout.system.cache.3907eb5b')
|
||||
$t('i18n.288f0c404c')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('pages.node.node-layout.system.cache.5fb51609') }}{{ temp.scriptExecLogSize }}</span
|
||||
>{{ $t('i18n.25f29ebbe6') }}{{ temp.scriptExecLogSize }}</span
|
||||
>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('pages.node.node-layout.system.cache.4d78c1a4') }}{{ temp.readFileOnLineCount }}</span
|
||||
>{{ $t('i18n.9b9e426d16') }}{{ temp.readFileOnLineCount }}</span
|
||||
>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('pages.node.node-layout.system.cache.bf8950b2') }}{{ temp.pluginSize || 0 }}</span
|
||||
>{{ $t('i18n.b6ee682dac') }}{{ temp.pluginSize || 0 }}</span
|
||||
>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<div class="layui-elem-quote">
|
||||
{{ $t('pages.node.node-layout.system.cache.c317de67') }}
|
||||
{{ $t('i18n.4ab578f3df') }}
|
||||
<template v-if="temp.envVarKeys?.length">
|
||||
<a-tag v-for="(item, index) in temp.envVarKeys" :key="index">
|
||||
<a-tooltip :title="`${$t('pages.node.node-layout.system.cache.632d5d79')}:${item}`">
|
||||
<a-tooltip :title="`${$t('i18n.6835ed12b9')}:${item}`">
|
||||
{{ item }}
|
||||
</a-tooltip>
|
||||
</a-tag>
|
||||
@ -80,10 +80,10 @@
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<div class="layui-elem-quote">
|
||||
{{ $t('pages.node.node-layout.system.cache.dcead53c')
|
||||
{{ $t('i18n.eb7f9ceb71')
|
||||
}}<template v-if="temp.scriptLibraryTagMap && Object.keys(temp.scriptLibraryTagMap).length">
|
||||
<a-tag v-for="(item, key) in temp.scriptLibraryTagMap" :key="key">
|
||||
<a-tooltip :title="$t('pages.node.node-layout.system.cache.a0b29171', { item: item })">
|
||||
<a-tooltip :title="$t('i18n.3a57a51660', { item: item })">
|
||||
{{ key }}
|
||||
</a-tooltip>
|
||||
</a-tag>
|
||||
@ -93,19 +93,19 @@
|
||||
</a-timeline-item>
|
||||
</a-timeline>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" :tab="$t('pages.node.node-layout.system.cache.1cf16f46')">
|
||||
<a-tab-pane key="2" :tab="$t('i18n.a1bd9760fc')">
|
||||
<task-stat :task-list="taskList" @refresh="loadData"
|
||||
/></a-tab-pane>
|
||||
<a-tab-pane key="3" :tab="$t('pages.node.node-layout.system.cache.78ea56d4')">
|
||||
<a-tab-pane key="3" :tab="$t('i18n.f06f95f8e6')">
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-alert :message="$t('pages.node.node-layout.system.cache.90cf9dce')" type="warning" show-icon>
|
||||
<a-alert :message="$t('i18n.406a2b3538')" type="warning" show-icon>
|
||||
<template #description>
|
||||
<ul>
|
||||
<li>{{ $t('pages.node.node-layout.system.cache.f4768643') }}</li>
|
||||
<li>{{ $t('pages.node.node-layout.system.cache.e09b7fd4') }}</li>
|
||||
<li>{{ $t('pages.node.node-layout.system.cache.6c106822') }}</li>
|
||||
<li>{{ $t('pages.node.node-layout.system.cache.857b8a0d') }}</li>
|
||||
<li>{{ $t('pages.node.node-layout.system.cache.714a17c') }}</li>
|
||||
<li>{{ $t('i18n.17a101c23e') }}</li>
|
||||
<li>{{ $t('i18n.3929e500e0') }}</li>
|
||||
<li>{{ $t('i18n.0a47f12ef2') }}</li>
|
||||
<li>{{ $t('i18n.7785d9e038') }}</li>
|
||||
<li>{{ $t('i18n.083b8a2ec9') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
@ -113,36 +113,36 @@
|
||||
<template #renderItem="{ item }">
|
||||
<a-list-item>
|
||||
<a-space>
|
||||
<span>{{ $t('pages.node.node-layout.system.cache.e06912d') }}{{ item.name }}</span>
|
||||
<span>{{ $t('pages.node.node-layout.system.cache.4eaba425') }}{{ item.id }}</span>
|
||||
<span>{{ $t('pages.node.node-layout.system.cache.97772e66') }}{{ item.workspaceId }}</span>
|
||||
<span>{{ $t('pages.node.node-layout.system.cache.1c648cd4') }}{{ item.nodeId }}</span>
|
||||
<span>{{ $t('i18n.fa7f6fccfd') }}{{ item.name }}</span>
|
||||
<span>{{ $t('i18n.116d22f2ab') }}{{ item.id }}</span>
|
||||
<span>{{ $t('i18n.e0fcbca309') }}{{ item.workspaceId }}</span>
|
||||
<span>{{ $t('i18n.2256690a28') }}{{ item.nodeId }}</span>
|
||||
<a-button type="primary" size="small" danger @click="openCorrectLonely(item, 'project')">{{
|
||||
$t('pages.node.node-layout.system.cache.b1e41588')
|
||||
$t('i18n.23231543a4')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</a-list-item>
|
||||
</template>
|
||||
<template #header>
|
||||
<div>{{ $t('pages.node.node-layout.system.cache.2caa09af') }}</div>
|
||||
<div>{{ $t('i18n.45fbb7e96a') }}</div>
|
||||
</template>
|
||||
</a-list>
|
||||
<a-list size="small" bordered :data-source="machineLonelyData.scripts">
|
||||
<template #renderItem="{ item }">
|
||||
<a-list-item
|
||||
><a-space>
|
||||
<span>{{ $t('pages.node.node-layout.system.cache.db9bba81') }}{{ item.name }}</span>
|
||||
<span>{{ $t('pages.node.node-layout.system.cache.461afc3f') }}{{ item.id }}</span>
|
||||
<span>{{ $t('pages.node.node-layout.system.cache.97772e66') }}{{ item.workspaceId }}</span>
|
||||
<span>{{ $t('pages.node.node-layout.system.cache.1c648cd4') }}{{ item.nodeId }}</span>
|
||||
<span>{{ $t('i18n.b61a7e3ace') }}{{ item.name }}</span>
|
||||
<span>{{ $t('i18n.d0f53484dc') }}{{ item.id }}</span>
|
||||
<span>{{ $t('i18n.e0fcbca309') }}{{ item.workspaceId }}</span>
|
||||
<span>{{ $t('i18n.2256690a28') }}{{ item.nodeId }}</span>
|
||||
<a-button type="primary" size="small" danger @click="openCorrectLonely(item, 'script')">{{
|
||||
$t('pages.node.node-layout.system.cache.b1e41588')
|
||||
$t('i18n.23231543a4')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</a-list-item>
|
||||
</template>
|
||||
<template #header>
|
||||
<div>{{ $t('pages.node.node-layout.system.cache.300d088d') }}</div>
|
||||
<div>{{ $t('i18n.c2b2f87aca') }}</div>
|
||||
</template>
|
||||
</a-list></a-space
|
||||
>
|
||||
@ -154,21 +154,21 @@
|
||||
v-model:open="correctLonelyOpen"
|
||||
destroy-on-close
|
||||
:confirm-loading="confirmLoading"
|
||||
:title="$t('pages.node.node-layout.system.cache.6a8b7888')"
|
||||
:title="$t('i18n.46097a1225')"
|
||||
:mask-closable="false"
|
||||
@ok="handleCorrectLonely"
|
||||
>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-alert :message="$t('pages.node.node-layout.system.cache.2774e4a7')" type="warning">
|
||||
<a-alert :message="$t('i18n.947d983961')" type="warning">
|
||||
<template #description>
|
||||
<ul>
|
||||
<li>{{ $t('pages.node.node-layout.system.cache.b28bd9b1') }}</li>
|
||||
<li>{{ $t('pages.node.node-layout.system.cache.478331d8') }}</li>
|
||||
<li>{{ $t('i18n.a3f1390bf1') }}</li>
|
||||
<li>{{ $t('i18n.2e51ca19eb') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-form :model="temp" :label-col="{ span: 6 }" :wrapper-col="{ span: 14 }">
|
||||
<a-form-item :label="$t('pages.node.node-layout.system.cache.580e6c10')" name="nodeId">
|
||||
<a-form-item :label="$t('i18n.7e2b40fc86')" name="nodeId">
|
||||
<a-select
|
||||
v-model:value="temp.toNodeId"
|
||||
show-search
|
||||
@ -183,7 +183,7 @@
|
||||
}
|
||||
"
|
||||
:disabled="temp.toNodeId && temp.recommend"
|
||||
:placeholder="$t('pages.node.node-layout.system.cache.2388531c')"
|
||||
:placeholder="$t('i18n.f8a613d247')"
|
||||
>
|
||||
<a-select-option v-for="item in nodeList" :key="item.id">
|
||||
【{{ item.workspace && item.workspace.name }}】{{ item.name }}
|
||||
@ -298,7 +298,7 @@ export default {
|
||||
handleCorrectLonely() {
|
||||
if (!this.temp.toNodeId) {
|
||||
$notification.warn({
|
||||
message: this.$t('pages.node.node-layout.system.cache.2388531c')
|
||||
message: this.$t('i18n.f8a613d247')
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
<a-alert
|
||||
v-if="temp.file"
|
||||
show-icon
|
||||
:message="`${$t('pages.node.node-layout.system.config-file.ee016914')}:${temp.file}`"
|
||||
:message="`${$t('i18n.37c1eb9b23')}:${temp.file}`"
|
||||
/>
|
||||
</template>
|
||||
</code-editor>
|
||||
@ -20,10 +20,10 @@
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 2 }">
|
||||
<a-space>
|
||||
<a-button type="primary" :disabled="submitAble" @click="onSubmit(false)">{{
|
||||
$t('pages.node.node-layout.system.config-file.b033d8c5')
|
||||
$t('i18n.be5fbbe34c')
|
||||
}}</a-button>
|
||||
<a-button type="primary" danger :disabled="submitAble" @click="onSubmit(true)">{{
|
||||
$t('pages.node.node-layout.system.config-file.fda40980')
|
||||
$t('i18n.6aab88d6a3')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
@ -95,8 +95,8 @@ export default {
|
||||
this.globalLoading({
|
||||
spinning: true,
|
||||
tip:
|
||||
(msg || this.$t('pages.node.node-layout.system.config-file.9e8c0aa9')) +
|
||||
`,${this.$t('pages.node.node-layout.system.config-file.ba8fd88b')},${this.$t(
|
||||
(msg || this.$t('i18n.85da2e5bb1')) +
|
||||
`,${this.$t('i18n.809b12d6a0')},${this.$t(
|
||||
'pages.node.node-layout.system.config-file.536e5313'
|
||||
)}`
|
||||
})
|
||||
@ -109,7 +109,7 @@ export default {
|
||||
clearInterval(this.timer)
|
||||
this.globalLoading(false)
|
||||
$notification.success({
|
||||
message: this.$t('pages.node.node-layout.system.config-file.a6229050')
|
||||
message: this.$t('i18n.906f6102a7')
|
||||
})
|
||||
|
||||
setTimeout(() => {
|
||||
@ -118,7 +118,7 @@ export default {
|
||||
} else {
|
||||
if (this.checkCount > RESTART_UPGRADE_WAIT_TIME_COUNT) {
|
||||
$notification.warning({
|
||||
message: this.$t('pages.node.node-layout.system.config-file.b0e4c704') + (res.msg || '')
|
||||
message: this.$t('i18n.953ec2172b') + (res.msg || '')
|
||||
})
|
||||
this.globalLoading(false)
|
||||
clearInterval(this.timer)
|
||||
@ -130,7 +130,7 @@ export default {
|
||||
if (this.checkCount > RESTART_UPGRADE_WAIT_TIME_COUNT) {
|
||||
this.globalLoading(false)
|
||||
$notification.error({
|
||||
message: this.$t('pages.node.node-layout.system.config-file.48633a70')
|
||||
message: this.$t('i18n.0e502fed63')
|
||||
})
|
||||
clearInterval(this.timer)
|
||||
}
|
||||
|
@ -12,13 +12,13 @@
|
||||
<template #before>
|
||||
<a-space>
|
||||
<a-button type="primary" size="small" @click="loadData">{{
|
||||
$t('pages.node.node-layout.system.log.7bbd89a')
|
||||
$t('i18n.694fc5efa9')
|
||||
}}</a-button>
|
||||
<a-button type="primary" danger size="small" :disabled="!temp.path" @click="deleteLog">{{
|
||||
$t('pages.node.node-layout.system.log.dd20d11c')
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
<a-button type="primary" size="small" :disabled="!temp.path" @click="downloadLog">{{
|
||||
$t('pages.node.node-layout.system.log.42c8e9c6')
|
||||
$t('i18n.f26ef91424')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -151,7 +151,7 @@ export default {
|
||||
this.socket.onerror = (err) => {
|
||||
console.error(err)
|
||||
$notification.error({
|
||||
message: `web socket ${this.$t('pages.node.node-layout.system.log.d75d207f')},${this.$t(
|
||||
message: `web socket ${this.$t('i18n.7030ff6470')},${this.$t(
|
||||
'pages.node.node-layout.system.log.763330b'
|
||||
)}`
|
||||
})
|
||||
@ -159,7 +159,7 @@ export default {
|
||||
this.socket.onclose = (err) => {
|
||||
//当客户端收到服务端发送的关闭连接请求时,触发onclose事件
|
||||
console.error(err)
|
||||
$message.warning(this.$t('pages.node.node-layout.system.log.8a2aae09') + node.dataRef.path)
|
||||
$message.warning(this.$t('i18n.1b5bcdf115') + node.dataRef.path)
|
||||
// clearInterval(this.heart);
|
||||
}
|
||||
},
|
||||
@ -182,11 +182,11 @@ export default {
|
||||
// 删除文件
|
||||
deleteLog() {
|
||||
$confirm({
|
||||
title: this.$t('pages.node.node-layout.system.log.e422d0eb'),
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content: this.$t('pages.node.node-layout.system.log.5ef43186'),
|
||||
okText: this.$t('pages.node.node-layout.system.log.e8e9db25'),
|
||||
cancelText: this.$t('pages.node.node-layout.system.log.b12468e9'),
|
||||
content: this.$t('i18n.3c9eeee356'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
return deleteLog({
|
||||
machineId: this.machineId,
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user