mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-03 12:29:14 +08:00
commit
7522f48a1b
@ -49,7 +49,7 @@
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"eslint-plugin-vue": "^9.25.0",
|
||||
"https": "^1.0.0",
|
||||
"jpom-i18n": "^1.0.11",
|
||||
"jpom-i18n": "^1.0.15",
|
||||
"less": "^4.2.0",
|
||||
"prettier": "^3.2.5",
|
||||
"rollup-plugin-visualizer": "^5.12.0",
|
||||
|
@ -199,4 +199,3 @@ provide('globalLoading', globalLoading)
|
||||
flex: 1;
|
||||
}
|
||||
</style>
|
||||
./i18n
|
||||
|
@ -48,11 +48,7 @@
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item>
|
||||
<a-popover
|
||||
:title="$t('i18n.bdd9d38d7e')"
|
||||
trigger="click"
|
||||
placement="bottomRight"
|
||||
>
|
||||
<a-popover :title="$t('i18n.bdd9d38d7e')" trigger="click" placement="bottomRight">
|
||||
<template #content>
|
||||
<a-radio-group v-model:value="tableSize" class="custom-size-list">
|
||||
<div v-for="item in tableSizeList" :key="item.value">
|
||||
|
@ -29,11 +29,7 @@
|
||||
>
|
||||
<a-form ref="editForm" :model="temp" :rules="rules" :label-col="{ span: 4 }" :wrapper-col="{ span: 18 }">
|
||||
<a-form-item label="key" name="key">
|
||||
<a-input
|
||||
v-model:value="temp.key"
|
||||
:disabled="!!temp.oldKey"
|
||||
:placeholder="$t('i18n.c0d19bbfb3')"
|
||||
/>
|
||||
<a-input v-model:value="temp.key" :disabled="!!temp.oldKey" :placeholder="$t('i18n.c0d19bbfb3')" />
|
||||
</a-form-item>
|
||||
<a-form-item label="value" name="value">
|
||||
<a-input v-model:value="temp.value" :placeholder="$t('i18n.24384dab27')" />
|
||||
|
@ -245,13 +245,9 @@ export default {
|
||||
},
|
||||
// 开始上传文件
|
||||
startUpload() {
|
||||
const title = '确认要上传文件更新到最新版本吗?'
|
||||
const alterB = '请注意备份数据防止数据丢失!!'
|
||||
const liArray = [
|
||||
'上传更新前请阅读更新日志里面的说明和注意事项并且',
|
||||
'上传前请检查包是否完整,否则可能出现更新后无法正常启动的情况!!',
|
||||
'如果升级失败需要手动恢复奥'
|
||||
]
|
||||
const title = this.$t('i18n.458331a965')
|
||||
const alterB = this.$t('i18n.ddf0c97bce')
|
||||
const liArray = [this.$t('i18n.a38ed189a2'), this.$t('i18n.a5daa9be44'), this.$t('i18n.a52a10123f')]
|
||||
|
||||
const html = `${title}
|
||||
<ul style="color:red;">
|
||||
@ -487,13 +483,10 @@ export default {
|
||||
},
|
||||
// 升级
|
||||
upgrageVerion() {
|
||||
const title = '确认要下载更新最新版本吗?'
|
||||
const alterB = '请注意备份数据防止数据丢失!!'
|
||||
const li = [
|
||||
'载速度根据网速来确定,如果网络不佳下载会较慢',
|
||||
'载前请阅读更新日志里面的说明和注意事项并且',
|
||||
'如果升级失败需要手动恢复奥'
|
||||
]
|
||||
const title = this.$t('i18n.ec6e39a177')
|
||||
const alterB = this.$t('i18n.ddf0c97bce')
|
||||
const li = [this.$t('i18n.a94feac256'), this.$t('i18n.b55f286cba'), this.$t('i18n.a52a10123f')]
|
||||
|
||||
const html = `${title}
|
||||
<ul style="color:red;">
|
||||
<li>${li[0]}</li>
|
||||
@ -526,12 +519,9 @@ export default {
|
||||
handleChangeBetaRelease(beta) {
|
||||
let html
|
||||
if (beta) {
|
||||
const title = '确认要加入 beta 计划吗?'
|
||||
const li = [
|
||||
'加入 beta 计划可以及时获取到最新的功能、一些优化功能、最快修复 bug 的版本,但是 beta 版也可能在部分新功能上存在不稳定的情况。',
|
||||
'您需要根据您业务情况来评估是否可以加入 beta。',
|
||||
'在使用 beta 版过程中遇到问题可以随时反馈给我们,我们会尽快为您解答。'
|
||||
]
|
||||
const title = this.$t('i18n.d64cf79bd4')
|
||||
const li = [this.$t('i18n.d31d625029'), this.$t('i18n.d8db440b83'), this.$t('i18n.73b7e8e09e')]
|
||||
|
||||
html = `${title}
|
||||
<ul <ul style="color:red;">
|
||||
<li><b>${li[0]}</b></li>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -51,9 +51,7 @@
|
||||
{{ data.aliasCode }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.d175a854a6')">
|
||||
<a-tag>{{
|
||||
data.sourceDirExist ? $t('i18n.df9497ea98') : $t('i18n.d7d11654a7')
|
||||
}}</a-tag>
|
||||
<a-tag>{{ data.sourceDirExist ? $t('i18n.df9497ea98') : $t('i18n.d7d11654a7') }}</a-tag>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.eca37cb072')">
|
||||
{{ parseTime(data.createTimeMillis) }}
|
||||
@ -124,18 +122,16 @@
|
||||
{{ parseTime(item.endTime) }}
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('i18n.b5a1e1f2d1')
|
||||
}}{{ triggerBuildTypeMap[item.triggerBuildType] || $t('i18n.1622dc9b6b') }}
|
||||
{{ $t('i18n.b5a1e1f2d1') }}{{ triggerBuildTypeMap[item.triggerBuildType] || $t('i18n.1622dc9b6b') }}
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('i18n.8dbe0c2ffa') }}{{ renderSize(item.resultFileSize) }}({{
|
||||
$t('i18n.7dfcab648d')
|
||||
}})/{{ renderSize(item.buildLogFileSize) }}({{ $t('i18n.456d29ef8b') }})
|
||||
{{ $t('i18n.8dbe0c2ffa') }}{{ renderSize(item.resultFileSize) }}({{ $t('i18n.7dfcab648d') }})/{{
|
||||
renderSize(item.buildLogFileSize)
|
||||
}}({{ $t('i18n.456d29ef8b') }})
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{{ $t('i18n.3c014532b1')
|
||||
}}{{ formatDuration((item.endTime || 0) - (item.startTime || 0), '', 2) }}
|
||||
{{ $t('i18n.3c014532b1') }}{{ formatDuration((item.endTime || 0) - (item.startTime || 0), '', 2) }}
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('i18n.e8321f5a61') }}
|
||||
|
@ -112,9 +112,7 @@
|
||||
<a-form-item :label="$t('i18n.b3ef35a359')" name="repositoryId">
|
||||
<a-input-search
|
||||
:value="`${
|
||||
tempRepository
|
||||
? tempRepository.name + '[' + tempRepository.gitUrl + ']'
|
||||
: $t('i18n.ad311f3211')
|
||||
tempRepository ? tempRepository.name + '[' + tempRepository.gitUrl + ']' : $t('i18n.ad311f3211')
|
||||
}`"
|
||||
read-only
|
||||
:placeholder="$t('i18n.ad311f3211')"
|
||||
@ -208,8 +206,7 @@
|
||||
<a-tooltip>
|
||||
{{ $t('i18n.c2ee58c247') }}
|
||||
<template #title>
|
||||
{{ $t('i18n.c7689f4c9a') }}<b>{{ $t('i18n.2b607a562a') }} </b
|
||||
>{{ $t('i18n.7e33f94952') }}
|
||||
{{ $t('i18n.c7689f4c9a') }}<b>{{ $t('i18n.2b607a562a') }} </b>{{ $t('i18n.7e33f94952') }}
|
||||
<b>cd xxx && mvn clean package</b>
|
||||
</template>
|
||||
<QuestionCircleOutlined v-if="!temp.id" />
|
||||
@ -377,11 +374,7 @@
|
||||
<QuestionCircleOutlined v-if="!temp.id" />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input
|
||||
v-model:value="temp.resultDirFile"
|
||||
:max-length="200"
|
||||
:placeholder="$t('i18n.2cdbbdabf1')"
|
||||
/>
|
||||
<a-input v-model:value="temp.resultDirFile" :max-length="200" :placeholder="$t('i18n.2cdbbdabf1')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-alert v-if="temp.buildMode === undefined" :message="$t('i18n.46032a715e')" banner />
|
||||
@ -728,10 +721,7 @@
|
||||
<a-row>
|
||||
<a-col :span="10">
|
||||
<a-tooltip :title="$t('i18n.a34545bd16')">
|
||||
<a-input
|
||||
v-model:value="tempExtraData.dockerBuildArgs"
|
||||
:placeholder="$t('i18n.6e70d2fb91')"
|
||||
/>
|
||||
<a-input v-model:value="tempExtraData.dockerBuildArgs" :placeholder="$t('i18n.6e70d2fb91')" />
|
||||
</a-tooltip>
|
||||
</a-col>
|
||||
<a-col :span="4" style="text-align: right">{{ $t('i18n.3f016aa454') }}</a-col>
|
||||
@ -987,9 +977,7 @@
|
||||
</template>
|
||||
<a-input-search
|
||||
:value="`${
|
||||
tempExtraData
|
||||
? tempExtraData.noticeScriptId || $t('i18n.b9b176e37a')
|
||||
: $t('i18n.b9b176e37a')
|
||||
tempExtraData ? tempExtraData.noticeScriptId || $t('i18n.b9b176e37a') : $t('i18n.b9b176e37a')
|
||||
}`"
|
||||
read-only
|
||||
:placeholder="$t('i18n.b9b176e37a')"
|
||||
@ -1061,9 +1049,7 @@
|
||||
<a-space>
|
||||
<a-tooltip>
|
||||
{{ $t('i18n.7f7ee903da') }}
|
||||
<template #title>
|
||||
{{ $t('i18n.ba619a0942') }},{{ $t('i18n.8a1767a0d2') }}
|
||||
</template>
|
||||
<template #title> {{ $t('i18n.ba619a0942') }},{{ $t('i18n.8a1767a0d2') }} </template>
|
||||
|
||||
<QuestionCircleOutlined v-if="!temp.id" />
|
||||
</a-tooltip>
|
||||
@ -1107,11 +1093,7 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
:label="$t('i18n.2f5e828ecd')"
|
||||
name="aliasCode"
|
||||
:help="$t('i18n.8c67370ee5')"
|
||||
>
|
||||
<a-form-item :label="$t('i18n.2f5e828ecd')" name="aliasCode" :help="$t('i18n.8c67370ee5')">
|
||||
<a-row>
|
||||
<a-col :span="10">
|
||||
<a-input-search
|
||||
|
@ -123,7 +123,9 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'resultFileSize'">
|
||||
<a-tooltip
|
||||
:title="`${$t('i18n.16646e46b1')}${renderSize(record.resultFileSize)}, ${$t('i18n.77e501b44b')} ${renderSize(record.buildLogFileSize)}`"
|
||||
:title="`${$t('i18n.16646e46b1')}${renderSize(record.resultFileSize)}, ${$t(
|
||||
'i18n.77e501b44b'
|
||||
)} ${renderSize(record.buildLogFileSize)}`"
|
||||
>
|
||||
<span v-if="record.resultFileSize">{{ renderSize(record.resultFileSize) }}</span>
|
||||
<span v-else-if="record.buildLogFileSize">{{ renderSize(record.buildLogFileSize) }}</span>
|
||||
|
@ -126,9 +126,7 @@
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
<template v-if="tableSelections && tableSelections.length">
|
||||
@ -146,9 +144,7 @@
|
||||
</a-dropdown>
|
||||
</template>
|
||||
<a-tooltip v-else :title="$t('i18n.98357846a2')">
|
||||
<a-button :disabled="true" type="primary">
|
||||
{{ $t('i18n.7f7c624a84') }} <DownOutlined />
|
||||
</a-button>
|
||||
<a-button :disabled="true" type="primary"> {{ $t('i18n.7f7c624a84') }} <DownOutlined /> </a-button>
|
||||
</a-tooltip>
|
||||
|
||||
<!-- <a-button v-if="!layout" type="primary" @click="changeLayout">
|
||||
@ -286,9 +282,7 @@
|
||||
</template>
|
||||
</a-dropdown>
|
||||
<a-dropdown>
|
||||
<a-button size="small" type="primary" @click="handleEdit(item)">{{
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleEdit(item)">{{ $t('i18n.95b351c862') }}</a-button>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item @click="handleEdit(item, 0)">
|
||||
@ -347,10 +341,7 @@
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'buildMode'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="text === 1 ? $t('i18n.685e5de706') : $t('i18n.69c3b873c1')"
|
||||
>
|
||||
<a-tooltip placement="topLeft" :title="text === 1 ? $t('i18n.685e5de706') : $t('i18n.69c3b873c1')">
|
||||
<CloudOutlined v-if="text === 1" />
|
||||
<CodeOutlined v-else />
|
||||
</a-tooltip>
|
||||
@ -675,22 +666,14 @@
|
||||
>
|
||||
<a-input v-model:value="temp.projectSecondaryDirectory" :placeholder="$t('i18n.9c99e8bec9')" />
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
:label="$t('i18n.3867e350eb')"
|
||||
name="buildEnvParameter"
|
||||
:help="$t('i18n.220650a1f5')"
|
||||
>
|
||||
<a-form-item :label="$t('i18n.3867e350eb')" name="buildEnvParameter" :help="$t('i18n.220650a1f5')">
|
||||
<a-textarea
|
||||
v-model:value="temp.buildEnvParameter"
|
||||
:placeholder="$t('i18n.b3913b9bb7')"
|
||||
:auto-size="{ minRows: 3, maxRows: 5 }"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
:label="$t('i18n.d1498d9dbf')"
|
||||
name="buildRemark"
|
||||
:help="$t('i18n.111e786daa')"
|
||||
>
|
||||
<a-form-item :label="$t('i18n.d1498d9dbf')" name="buildRemark" :help="$t('i18n.111e786daa')">
|
||||
<a-textarea
|
||||
v-model:value="temp.buildRemark"
|
||||
:max-length="240"
|
||||
|
@ -5,9 +5,7 @@
|
||||
<a-tabs default-active-key="1" type="card">
|
||||
<template #rightExtra>
|
||||
<a-tooltip :title="$t('i18n.01ad26f4a9')">
|
||||
<a-button type="primary" size="small" @click="resetTrigger">{{
|
||||
$t('i18n.4b9c3271dc')
|
||||
}}</a-button>
|
||||
<a-button type="primary" size="small" @click="resetTrigger">{{ $t('i18n.4b9c3271dc') }}</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-tab-pane key="1" :tab="$t('i18n.3d3b918f49')">
|
||||
@ -19,9 +17,7 @@
|
||||
<li>
|
||||
{{ $t('i18n.e319a2a526') }}
|
||||
</li>
|
||||
<li>
|
||||
{{ $t('i18n.3a3c5e739b') }} BODY json: [ { "id":"1", "token":"a", "delay":"0" } ]
|
||||
</li>
|
||||
<li>{{ $t('i18n.3a3c5e739b') }} BODY json: [ { "id":"1", "token":"a", "delay":"0" } ]</li>
|
||||
<li>
|
||||
{{ $t('i18n.3baa9f3d72') }}
|
||||
</li>
|
||||
@ -38,20 +34,14 @@
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('i18n.de78b73dab')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<a-alert type="info" :message="`${$t('i18n.de78b73dab')}(${$t('i18n.00a070c696')})`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.triggerBuildUrl }">
|
||||
<a-tag>GET</a-tag> <span>{{ temp.triggerBuildUrl }} </span>
|
||||
</a-typography-paragraph>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('i18n.8d202b890c')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<a-alert type="info" :message="`${$t('i18n.8d202b890c')}(${$t('i18n.00a070c696')})`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.batchTriggerBuildUrl }">
|
||||
<a-tag>POST</a-tag>
|
||||
@ -81,10 +71,7 @@
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('i18n.dcd72e6014')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<a-alert type="info" :message="`${$t('i18n.dcd72e6014')}(${$t('i18n.00a070c696')})`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.batchBuildStatusUrl2 }">
|
||||
<a-tag>GET</a-tag>
|
||||
@ -92,10 +79,7 @@
|
||||
</a-typography-paragraph>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('i18n.cac6ff1d82')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<a-alert type="info" :message="`${$t('i18n.cac6ff1d82')}(${$t('i18n.00a070c696')})`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.batchBuildStatusUrl }">
|
||||
<a-tag>POST</a-tag>
|
||||
@ -115,10 +99,7 @@
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('i18n.2f5e885bc6')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<a-alert type="info" :message="`${$t('i18n.2f5e885bc6')}(${$t('i18n.00a070c696')})`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.buildLogUrl }">
|
||||
<a-tag>GET</a-tag> <span>{{ temp.buildLogUrl }} </span>
|
||||
|
@ -45,9 +45,7 @@
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.c1690fcca5') }}</a-button>
|
||||
</a-space>
|
||||
@ -81,9 +79,7 @@
|
||||
<a-button size="small" type="primary" @click="handleDeployFile(record)">{{
|
||||
$t('i18n.a9f94dcd57')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleDownload(record)">{{
|
||||
$t('i18n.55405ea6ff')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleDownload(record)">{{ $t('i18n.55405ea6ff') }}</a-button>
|
||||
<a-button size="small" type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
|
@ -854,9 +854,7 @@
|
||||
<a-textarea
|
||||
v-model:value="temp[`${nodeId}_jvm`]"
|
||||
:auto-size="{ minRows: 3, maxRows: 3 }"
|
||||
:placeholder="
|
||||
$t('i18n.eef3653e9a', { slot1: $t('i18n.3d0a2df9ec'), slot2: $t('i18n.eb5bab1c31') })
|
||||
"
|
||||
:placeholder="$t('i18n.eef3653e9a', { slot1: $t('i18n.3d0a2df9ec'), slot2: $t('i18n.eb5bab1c31') })"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item v-show="javaModes.includes(temp.runMode)" :label="$t('i18n.e5098786d3')" name="args">
|
||||
|
@ -49,9 +49,7 @@
|
||||
</a-select>
|
||||
<a-range-picker :show-time="{ format: 'HH:mm:ss' }" format="YYYY-MM-DD HH:mm:ss" @change="onchangeTime" />
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -121,9 +119,7 @@
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'status'">
|
||||
<!-- {{ dispatchStatusMap[text] || "未知" }} -->
|
||||
<a-tag v-if="text === 2" color="green">{{
|
||||
dispatchStatusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-if="text === 2" color="green">{{ dispatchStatusMap[text] || $t('i18n.1622dc9b6b') }}</a-tag>
|
||||
<a-tag v-else-if="text === 1 || text === 0 || text === 5" color="orange">{{
|
||||
dispatchStatusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
@ -133,9 +129,7 @@
|
||||
<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('i18n.f26225bde6')
|
||||
}}</a-button>
|
||||
<a-button type="primary" size="small" @click="handleDetail(record)">{{ $t('i18n.f26225bde6') }}</a-button>
|
||||
</template>
|
||||
</template>
|
||||
</CustomTable>
|
||||
|
@ -22,9 +22,7 @@
|
||||
/>
|
||||
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
</a-space>
|
||||
@ -38,12 +36,8 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button type="primary" size="small" @click="handleEdit(record)">{{
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<a-button type="primary" size="small" @click="handleLogRead(record)">{{
|
||||
$t('i18n.607e7a4f37')
|
||||
}}</a-button>
|
||||
<a-button type="primary" size="small" @click="handleEdit(record)">{{ $t('i18n.95b351c862') }}</a-button>
|
||||
<a-button type="primary" size="small" @click="handleLogRead(record)">{{ $t('i18n.607e7a4f37') }}</a-button>
|
||||
<a-button type="primary" danger size="small" @click="handleDelete(record)">{{
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
@ -135,9 +129,7 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<a-button type="primary" @click="() => temp.projectList.push({})">{{
|
||||
$t('i18n.66ab5e9f24')
|
||||
}}</a-button>
|
||||
<a-button type="primary" @click="() => temp.projectList.push({})">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
|
@ -163,16 +163,8 @@
|
||||
<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('i18n.c4e0c6b6fe')"
|
||||
:help="$t('i18n.25be899f66')"
|
||||
>
|
||||
<a-select
|
||||
v-model:value="temp.selectProjectArray"
|
||||
mode="multiple"
|
||||
:placeholder="$t('i18n.b29fd18c93')"
|
||||
>
|
||||
<a-form-item name="selectProject" :label="$t('i18n.c4e0c6b6fe')" :help="$t('i18n.25be899f66')">
|
||||
<a-select v-model:value="temp.selectProjectArray" mode="multiple" :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 }}
|
||||
</a-select-option>
|
||||
|
@ -132,7 +132,9 @@
|
||||
<template v-else-if="column.dataIndex === 'projectPid'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('i18n.2b04210d33')}${record.projectPid || '-'} / ${$t('i18n.4c096c51a3')}${record.projectPort || '-'}`"
|
||||
:title="`${$t('i18n.2b04210d33')}${record.projectPid || '-'} / ${$t('i18n.4c096c51a3')}${
|
||||
record.projectPort || '-'
|
||||
}`"
|
||||
>
|
||||
<span>{{ record.projectPid || '-' }}/{{ record.projectPort || '-' }}</span>
|
||||
</a-tooltip>
|
||||
|
@ -55,11 +55,7 @@
|
||||
<a-input-group>
|
||||
<a-row>
|
||||
<a-col :span="8">
|
||||
<a-input
|
||||
v-model:value="item.ip"
|
||||
addon-before="IP"
|
||||
:placeholder="$t('i18n.8e89763d95')"
|
||||
>
|
||||
<a-input v-model:value="item.ip" addon-before="IP" :placeholder="$t('i18n.8e89763d95')">
|
||||
</a-input>
|
||||
</a-col>
|
||||
<a-col :span="6" :offset="1">
|
||||
@ -298,10 +294,7 @@
|
||||
<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('i18n.5bca8cf7ee')"
|
||||
/>
|
||||
<a-input v-model:value="temp.extraHosts[index]" :placeholder="$t('i18n.5bca8cf7ee')" />
|
||||
</a-col>
|
||||
|
||||
<a-col :span="2" :offset="1">
|
||||
|
@ -136,11 +136,7 @@
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input-number
|
||||
v-model:value="temp.cpuShares"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('i18n.9ac4765895')"
|
||||
/>
|
||||
<a-input-number v-model:value="temp.cpuShares" style="width: 100%" :placeholder="$t('i18n.9ac4765895')" />
|
||||
</a-form-item>
|
||||
<a-form-item name="cpusetCpus">
|
||||
<template #label>
|
||||
@ -150,28 +146,17 @@
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input
|
||||
v-model:value="temp.cpusetCpus"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('i18n.9c55e8e0f3')"
|
||||
/>
|
||||
<a-input v-model:value="temp.cpusetCpus" style="width: 100%" :placeholder="$t('i18n.9c55e8e0f3')" />
|
||||
</a-form-item>
|
||||
<a-form-item name="cpusetMems">
|
||||
<template #label>
|
||||
CpusetMems
|
||||
<a-tooltip>
|
||||
<template #title>
|
||||
{{ $t('i18n.470e9baf32')
|
||||
}}{{ $t('i18n.b28c17d2a6') }}</template
|
||||
>
|
||||
<template #title> {{ $t('i18n.470e9baf32') }}{{ $t('i18n.b28c17d2a6') }}</template>
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input
|
||||
v-model:value="temp.cpusetMems"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('i18n.8c7d19b32a')"
|
||||
/>
|
||||
<a-input v-model:value="temp.cpusetMems" style="width: 100%" :placeholder="$t('i18n.8c7d19b32a')" />
|
||||
</a-form-item>
|
||||
<a-form-item name="cpuPeriod">
|
||||
<template #label>
|
||||
@ -181,11 +166,7 @@
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input-number
|
||||
v-model:value="temp.cpuPeriod"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('i18n.c325ddecb1')"
|
||||
/>
|
||||
<a-input-number v-model:value="temp.cpuPeriod" style="width: 100%" :placeholder="$t('i18n.c325ddecb1')" />
|
||||
</a-form-item>
|
||||
<a-form-item name="cpuQuota">
|
||||
<template #label>
|
||||
@ -195,11 +176,7 @@
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input-number
|
||||
v-model:value="temp.cpuQuota"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('i18n.df1da2dc59')"
|
||||
/>
|
||||
<a-input-number v-model:value="temp.cpuQuota" style="width: 100%" :placeholder="$t('i18n.df1da2dc59')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item name="memory">
|
||||
@ -210,11 +187,7 @@
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input
|
||||
v-model:value="temp.memory"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('i18n.0b3edfaf28')"
|
||||
/>
|
||||
<a-input v-model:value="temp.memory" style="width: 100%" :placeholder="$t('i18n.0b3edfaf28')" />
|
||||
</a-form-item>
|
||||
<a-form-item name="memorySwap">
|
||||
<template #label>
|
||||
@ -224,11 +197,7 @@
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input
|
||||
v-model:value="temp.memorySwap"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('i18n.ebc96f0a5d')"
|
||||
/>
|
||||
<a-input v-model:value="temp.memorySwap" style="width: 100%" :placeholder="$t('i18n.ebc96f0a5d')" />
|
||||
</a-form-item>
|
||||
<a-form-item name="memoryReservation">
|
||||
<template #label>
|
||||
@ -238,11 +207,7 @@
|
||||
<QuestionCircleOutlined />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-input
|
||||
v-model:value="temp.memoryReservation"
|
||||
style="width: 100%"
|
||||
:placeholder="$t('i18n.0a63bf5b41')"
|
||||
/>
|
||||
<a-input v-model:value="temp.memoryReservation" style="width: 100%" :placeholder="$t('i18n.0a63bf5b41')" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-col>
|
||||
|
@ -31,9 +31,7 @@
|
||||
:un-checked-children="$t('i18n.c9744f45e7')"
|
||||
/>
|
||||
</div>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
<a-button
|
||||
type="primary"
|
||||
danger
|
||||
|
@ -36,8 +36,7 @@
|
||||
<div style="padding-left: 10px">
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<div>
|
||||
{{ $t('i18n.1862c48f72')
|
||||
}}<a-tag v-if="temp.swarm.nodeAddr">{{ temp.swarm.nodeAddr }}</a-tag>
|
||||
{{ $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">
|
||||
@ -46,9 +45,7 @@
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('i18n.47072e451e')
|
||||
}}{{
|
||||
temp.swarm.controlAvailable ? $t('i18n.0a60ac8f02') : $t('i18n.c9744f45e7')
|
||||
}}
|
||||
}}{{ temp.swarm.controlAvailable ? $t('i18n.0a60ac8f02') : $t('i18n.c9744f45e7') }}
|
||||
</div>
|
||||
</a-space>
|
||||
</div>
|
||||
|
@ -14,15 +14,9 @@
|
||||
<template #before>
|
||||
<a-space>
|
||||
<div>
|
||||
<a-input-number
|
||||
v-model:value="tail"
|
||||
:placeholder="$t('i18n.5734b2db4e')"
|
||||
style="width: 150px"
|
||||
>
|
||||
<a-input-number v-model:value="tail" :placeholder="$t('i18n.5734b2db4e')" style="width: 150px">
|
||||
<template #addonBefore>
|
||||
<a-tooltip :title="$t('i18n.25b6c22d8a')"
|
||||
>{{ $t('i18n.87eb55155a') }}
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('i18n.25b6c22d8a')">{{ $t('i18n.87eb55155a') }} </a-tooltip>
|
||||
</template>
|
||||
</a-input-number>
|
||||
</div>
|
||||
|
@ -24,9 +24,7 @@
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
<template #bodyCell="{ column, text, record }">
|
||||
@ -43,11 +41,7 @@
|
||||
text.config &&
|
||||
text.config
|
||||
.map((item) => {
|
||||
return (
|
||||
($t('i18n.27ba6eb343') + item.gateway || '') +
|
||||
'#' +
|
||||
($t('i18n.d1aa9c2da9') + item.subnet || '')
|
||||
)
|
||||
return ($t('i18n.27ba6eb343') + item.gateway || '') + '#' + ($t('i18n.d1aa9c2da9') + item.subnet || '')
|
||||
})
|
||||
.join(',')
|
||||
}`"
|
||||
|
@ -45,8 +45,7 @@
|
||||
</a-tooltip>
|
||||
</a-form-item>
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 4 }"
|
||||
>{{ $t('i18n.4d49b2a15f')
|
||||
}}{{ pruneTypes[pruneForm.pruneType] && pruneTypes[pruneForm.pruneType].command }}
|
||||
>{{ $t('i18n.4d49b2a15f') }}{{ pruneTypes[pruneForm.pruneType] && pruneTypes[pruneForm.pruneType].command }}
|
||||
prune xxxxx
|
||||
</a-form-item>
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 4 }">
|
||||
|
@ -43,9 +43,7 @@
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -58,9 +56,7 @@
|
||||
</template>
|
||||
<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('i18n.fd6e80f1e0')
|
||||
}}</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('i18n.757a730c9e') }}</a-tag>
|
||||
</a-tooltip>
|
||||
@ -90,17 +86,11 @@
|
||||
>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-button size="small" :disabled="true" type="primary">{{
|
||||
$t('i18n.47d68cd0f4')
|
||||
}}</a-button>
|
||||
<a-button size="small" :disabled="true" type="primary">{{
|
||||
$t('i18n.3bf3c0a8d6')
|
||||
}}</a-button>
|
||||
<a-button size="small" :disabled="true" type="primary">{{ $t('i18n.47d68cd0f4') }}</a-button>
|
||||
<a-button size="small" :disabled="true" type="primary">{{ $t('i18n.3bf3c0a8d6') }}</a-button>
|
||||
</template>
|
||||
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('i18n.95b351c862')
|
||||
}}</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('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
|
@ -94,7 +94,9 @@
|
||||
<template v-else-if="column.dataIndex === 'state'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('i18n.9b3e947cc9')}${record.status && record.status.state} ${$t('i18n.fb91527ce5')}${record.spec ? record.spec.availability || '' : ''}`"
|
||||
:title="`${$t('i18n.9b3e947cc9')}${record.status && record.status.state} ${$t('i18n.fb91527ce5')}${
|
||||
record.spec ? record.spec.availability || '' : ''
|
||||
}`"
|
||||
>
|
||||
<a-tag
|
||||
:color="
|
||||
|
@ -12,15 +12,9 @@
|
||||
>
|
||||
<template #before>
|
||||
<a-space>
|
||||
<a-input-number
|
||||
v-model:value="tail"
|
||||
:placeholder="$t('i18n.5734b2db4e')"
|
||||
style="width: 150px"
|
||||
>
|
||||
<a-input-number v-model:value="tail" :placeholder="$t('i18n.5734b2db4e')" style="width: 150px">
|
||||
<template #addonBefore>
|
||||
<a-tooltip :title="$t('i18n.25b6c22d8a')"
|
||||
>{{ $t('i18n.87eb55155a') }}
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('i18n.25b6c22d8a')">{{ $t('i18n.87eb55155a') }} </a-tooltip>
|
||||
</template>
|
||||
</a-input-number>
|
||||
<div>
|
||||
@ -31,9 +25,7 @@
|
||||
:un-checked-children="$t('i18n.2064fc6808')"
|
||||
/>
|
||||
</div>
|
||||
<a-button type="primary" size="small" @click="init"
|
||||
><ReloadOutlined /> {{ $t('i18n.694fc5efa9') }}
|
||||
</a-button>
|
||||
<a-button type="primary" size="small" @click="init"><ReloadOutlined /> {{ $t('i18n.694fc5efa9') }} </a-button>
|
||||
|
|
||||
<a-button type="primary" :disabled="!logId" size="small" @click="download">
|
||||
<DownloadOutlined /> {{ $t('i18n.f26ef91424') }}
|
||||
|
@ -60,15 +60,8 @@
|
||||
<a-select-option value="">{{ $t('i18n.3fea7ca76c') }}</a-select-option>
|
||||
</a-select>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-statistic-countdown
|
||||
format="s"
|
||||
:title="$t('i18n.0f8403d07e')"
|
||||
:value="countdownTime"
|
||||
@finish="loadData"
|
||||
>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
<a-statistic-countdown format="s" :title="$t('i18n.0f8403d07e')" :value="countdownTime" @finish="loadData">
|
||||
<template #suffix>
|
||||
<div style="font-size: 12px">{{ $t('i18n.ee6ce96abb') }}</div>
|
||||
</template>
|
||||
@ -96,9 +89,7 @@
|
||||
<p>
|
||||
{{ $t('i18n.e703c7367c') }}<a-tag>{{ text }}-{{ TASK_STATE[text] }}</a-tag>
|
||||
</p>
|
||||
<p v-if="record.status && record.status.err">
|
||||
{{ $t('i18n.f66335b5bf') }}{{ record.status.err }}
|
||||
</p>
|
||||
<p v-if="record.status && record.status.err">{{ $t('i18n.f66335b5bf') }}{{ record.status.err }}</p>
|
||||
<p v-if="record.status && record.status.state">
|
||||
{{ $t('i18n.bec98b4d6a') }}<a-tag>{{ record.status.state }}</a-tag>
|
||||
</p>
|
||||
@ -131,9 +122,7 @@
|
||||
<template v-else-if="column.dataIndex === 'updatedAt'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('i18n.bf94b97d1a')}${text} ${$t('i18n.312f45014a')}${
|
||||
record.createdAt
|
||||
}`"
|
||||
:title="`${$t('i18n.bf94b97d1a')}${text} ${$t('i18n.312f45014a')}${record.createdAt}`"
|
||||
>
|
||||
<span>
|
||||
{{ parseTime(text) }}
|
||||
@ -143,9 +132,7 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="handleLog(record)">{{
|
||||
$t('i18n.456d29ef8b')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleLog(record)">{{ $t('i18n.456d29ef8b') }}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
|
@ -27,9 +27,7 @@
|
||||
/>
|
||||
</div>
|
||||
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
<template #bodyCell="{ column, text, record }">
|
||||
|
@ -321,10 +321,7 @@
|
||||
</template>
|
||||
<a-tab-pane key="1" :tab="$t('i18n.0b58866c3e')">
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('i18n.d911cffcd5')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<a-alert type="info" :message="`${$t('i18n.d911cffcd5')}(${$t('i18n.00a070c696')})`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.triggerDownloadUrl }">
|
||||
<a-tag>GET</a-tag>
|
||||
@ -352,10 +349,7 @@
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('i18n.d911cffcd5')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<a-alert type="info" :message="`${$t('i18n.d911cffcd5')}(${$t('i18n.00a070c696')})`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.triggerAliasDownloadUrl }">
|
||||
<a-tag>GET</a-tag>
|
||||
@ -669,9 +663,9 @@ export default {
|
||||
if (res.data) {
|
||||
//
|
||||
$notification.warning({
|
||||
message: `${this.$t('i18n.a17b5ab021')},${this.$t('i18n.b9c52d9a85')}${res.data.name} ,${this.$t('i18n.ee992d9744')}${
|
||||
res.data.workspaceId === 'GLOBAL' ? this.$t('i18n.0a60ac8f02') : this.$t('i18n.c9744f45e7')
|
||||
}`
|
||||
message: `${this.$t('i18n.a17b5ab021')},${this.$t('i18n.b9c52d9a85')}${res.data.name} ,${this.$t(
|
||||
'i18n.ee992d9744'
|
||||
)}${res.data.workspaceId === 'GLOBAL' ? this.$t('i18n.0a60ac8f02') : this.$t('i18n.c9744f45e7')}`
|
||||
})
|
||||
//
|
||||
this.uploading = false
|
||||
|
@ -8,11 +8,7 @@
|
||||
:wrapper-col="{ span: 20 }"
|
||||
>
|
||||
<a-form-item :label="$t('i18n.ce23a42b47')" name="name">
|
||||
<a-input
|
||||
v-model:value="temp.name"
|
||||
:placeholder="$t('i18n.5f4c724e61')"
|
||||
:max-length="50"
|
||||
/>
|
||||
<a-input v-model:value="temp.name" :placeholder="$t('i18n.5f4c724e61')" :max-length="50" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.f98994f7ec')" name="taskType">
|
||||
@ -21,17 +17,11 @@
|
||||
<a-radio :value="1"> {{ $t('i18n.3bf3c0a8d6') }} </a-radio>
|
||||
</a-radio-group>
|
||||
<template #help>
|
||||
<template v-if="temp.taskType === 0"
|
||||
>{{ $t('i18n.28bf369f34') }}
|
||||
</template>
|
||||
<template v-if="temp.taskType === 0">{{ $t('i18n.28bf369f34') }} </template>
|
||||
</template>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item
|
||||
v-if="temp.taskType === 0"
|
||||
name="taskDataIds"
|
||||
:label="$t('i18n.b188393ea7')"
|
||||
>
|
||||
<a-form-item v-if="temp.taskType === 0" name="taskDataIds" :label="$t('i18n.b188393ea7')">
|
||||
<a-row>
|
||||
<a-col :span="22">
|
||||
<a-select
|
||||
@ -60,11 +50,7 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-else-if="temp.taskType === 1"
|
||||
name="taskDataIds"
|
||||
:label="$t('i18n.473badc394')"
|
||||
>
|
||||
<a-form-item v-else-if="temp.taskType === 1" name="taskDataIds" :label="$t('i18n.473badc394')">
|
||||
<a-row>
|
||||
<a-col :span="22">
|
||||
<a-select
|
||||
@ -325,13 +311,9 @@ export default {
|
||||
return {
|
||||
temp: {},
|
||||
releaseFileRules: {
|
||||
name: [
|
||||
{ required: true, message: this.$t('i18n.89d18c88a3'), trigger: 'blur' }
|
||||
],
|
||||
name: [{ required: true, message: this.$t('i18n.89d18c88a3'), trigger: 'blur' }],
|
||||
|
||||
taskType: [
|
||||
{ required: true, message: this.$t('i18n.29b48a76be'), trigger: 'blur' }
|
||||
],
|
||||
taskType: [{ required: true, message: this.$t('i18n.29b48a76be'), trigger: 'blur' }],
|
||||
|
||||
releasePath: [
|
||||
{
|
||||
@ -341,9 +323,7 @@ export default {
|
||||
}
|
||||
],
|
||||
|
||||
taskDataIds: [
|
||||
{ required: true, message: this.$t('i18n.3e51d1bc9c'), trigger: 'blur' }
|
||||
]
|
||||
taskDataIds: [{ required: true, message: this.$t('i18n.3e51d1bc9c'), trigger: 'blur' }]
|
||||
},
|
||||
sshList: [],
|
||||
accessList: [],
|
||||
|
@ -2,11 +2,7 @@
|
||||
<div>
|
||||
<a-form :model="temp" :label-col="{ span: 2 }" :wrapper-col="{ span: 20 }">
|
||||
<a-form-item :label="$t('i18n.ce23a42b47')" name="name">
|
||||
<a-input
|
||||
:placeholder="$t('i18n.5f4c724e61')"
|
||||
:disabled="true"
|
||||
:value="temp.taskData && temp.taskData.name"
|
||||
/>
|
||||
<a-input :placeholder="$t('i18n.5f4c724e61')" :disabled="true" :value="temp.taskData && temp.taskData.name" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.f98994f7ec')" name="taskType">
|
||||
@ -23,11 +19,7 @@
|
||||
:value="temp.taskData && temp.taskData.releasePath"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
name="releasePath"
|
||||
:label="$t('i18n.3fea7ca76c')"
|
||||
:help="temp.taskData && temp.taskData.statusMsg"
|
||||
>
|
||||
<a-form-item name="releasePath" :label="$t('i18n.3fea7ca76c')" :help="temp.taskData && temp.taskData.statusMsg">
|
||||
{{ statusMap[temp.taskData && temp.taskData.status] || $t('i18n.1622dc9b6b') }}
|
||||
</a-form-item>
|
||||
|
||||
|
@ -64,9 +64,7 @@
|
||||
<a-select-option v-for="(val, key) in taskTypeMap" :key="key">{{ val }}</a-select-option>
|
||||
</a-select>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -86,18 +84,14 @@
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'status'">
|
||||
<a-tag v-if="text === 2" color="green">{{
|
||||
statusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-if="text === 2" color="green">{{ statusMap[text] || $t('i18n.1622dc9b6b') }}</a-tag>
|
||||
<a-tag v-else-if="text === 0 || text === 1" color="orange">{{
|
||||
statusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else-if="text === 4" color="blue">
|
||||
{{ statusMap[text] || $t('i18n.1622dc9b6b') }}
|
||||
</a-tag>
|
||||
<a-tag v-else-if="text === 3" color="red">{{
|
||||
statusMap[text] || $t('i18n.1622dc9b6b')
|
||||
}}</a-tag>
|
||||
<a-tag v-else-if="text === 3" color="red">{{ statusMap[text] || $t('i18n.1622dc9b6b') }}</a-tag>
|
||||
<a-tag v-else>{{ statusMap[text] || $t('i18n.1622dc9b6b') }}</a-tag>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'taskType'">
|
||||
@ -110,13 +104,9 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button type="primary" size="small" @click="handleView(record)">{{
|
||||
$t('i18n.607e7a4f37')
|
||||
}}</a-button>
|
||||
<a-button type="primary" size="small" @click="handleView(record)">{{ $t('i18n.607e7a4f37') }}</a-button>
|
||||
|
||||
<a-button type="primary" size="small" @click="handleRetask(record)">{{
|
||||
$t('i18n.9e09315960')
|
||||
}}</a-button>
|
||||
<a-button type="primary" size="small" @click="handleRetask(record)">{{ $t('i18n.9e09315960') }}</a-button>
|
||||
<a-button
|
||||
type="primary"
|
||||
danger
|
||||
@ -171,11 +161,7 @@
|
||||
:wrapper-col="{ span: 20 }"
|
||||
>
|
||||
<a-form-item :label="$t('i18n.ce23a42b47')" name="name">
|
||||
<a-input
|
||||
v-model:value="temp.name"
|
||||
:placeholder="$t('i18n.5f4c724e61')"
|
||||
:max-length="50"
|
||||
/>
|
||||
<a-input v-model:value="temp.name" :placeholder="$t('i18n.5f4c724e61')" :max-length="50" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.f98994f7ec')" name="taskType">
|
||||
@ -185,11 +171,7 @@
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item
|
||||
v-if="temp.taskType === 0"
|
||||
name="taskDataIds"
|
||||
:label="$t('i18n.b188393ea7')"
|
||||
>
|
||||
<a-form-item v-if="temp.taskType === 0" name="taskDataIds" :label="$t('i18n.b188393ea7')">
|
||||
<a-row>
|
||||
<a-col :span="22">
|
||||
<a-select
|
||||
@ -218,11 +200,7 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-else-if="temp.taskType === 1"
|
||||
name="taskDataIds"
|
||||
:label="$t('i18n.473badc394')"
|
||||
>
|
||||
<a-form-item v-else-if="temp.taskType === 1" name="taskDataIds" :label="$t('i18n.473badc394')">
|
||||
<a-row>
|
||||
<a-col :span="22">
|
||||
<a-select
|
||||
@ -253,11 +231,7 @@
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item name="releasePathParent" :label="$t('i18n.dbb2df00cf')">
|
||||
<a-input
|
||||
v-model:value="temp.releasePath"
|
||||
:placeholder="$t('i18n.ee9a51488f')"
|
||||
:disabled="true"
|
||||
/>
|
||||
<a-input v-model:value="temp.releasePath" :placeholder="$t('i18n.ee9a51488f')" :disabled="true" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item name="releasePathParent" :label="$t('i18n.a91ce167c1')">
|
||||
@ -313,19 +287,11 @@
|
||||
<a-form-item :label="$t('i18n.396b7d3f91')" name="size">
|
||||
{{ renderSize(temp.size) }}
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="temp.validUntil"
|
||||
:label="$t('i18n.1fa23f4daa')"
|
||||
name="validUntil"
|
||||
>
|
||||
<a-form-item v-if="temp.validUntil" :label="$t('i18n.1fa23f4daa')" name="validUntil">
|
||||
{{ parseTime(temp.validUntil) }}
|
||||
</a-form-item>
|
||||
<a-form-item v-if="temp.workspaceId" :label="$t('i18n.3a6970ac26')" name="global">
|
||||
{{
|
||||
temp.workspaceId === 'GLOBAL'
|
||||
? $t('i18n.2be75b1044')
|
||||
: $t('i18n.98d69f8b62')
|
||||
}}
|
||||
{{ temp.workspaceId === 'GLOBAL' ? $t('i18n.2be75b1044') : $t('i18n.98d69f8b62') }}
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.8d6f38b4b1')" name="description">
|
||||
{{ temp.description }}
|
||||
@ -452,9 +418,7 @@ export default {
|
||||
releaseFileRules: {
|
||||
name: [{ required: true, message: this.$t('i18n.89d18c88a3'), trigger: 'blur' }],
|
||||
|
||||
taskDataIds: [
|
||||
{ required: true, message: this.$t('i18n.3e51d1bc9c'), trigger: 'blur' }
|
||||
]
|
||||
taskDataIds: [{ required: true, message: this.$t('i18n.3e51d1bc9c'), trigger: 'blur' }]
|
||||
},
|
||||
viewFileVisible: false
|
||||
}
|
||||
|
@ -179,10 +179,7 @@
|
||||
</template>
|
||||
<a-tab-pane key="1" :tab="$t('i18n.0b58866c3e')">
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('i18n.d911cffcd5')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<a-alert type="info" :message="`${$t('i18n.d911cffcd5')}(${$t('i18n.00a070c696')})`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ text: temp.triggerDownloadUrl }">
|
||||
<a-tag>GET</a-tag>
|
||||
@ -210,10 +207,7 @@
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('i18n.d911cffcd5')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<a-alert type="info" :message="`${$t('i18n.d911cffcd5')}(${$t('i18n.00a070c696')})`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ text: temp.triggerAliasDownloadUrl }">
|
||||
<a-tag>GET</a-tag>
|
||||
|
@ -5,9 +5,7 @@
|
||||
<template #message>
|
||||
<a-space>
|
||||
<template #split> <a-divider type="vertical" /> </template>
|
||||
<a href="https://jpom.top/pages/legal-risk/" target="_blank"
|
||||
>{{ $t('i18n.9f01272a10') }}<LinkOutlined />
|
||||
</a>
|
||||
<a href="https://jpom.top/pages/legal-risk/" target="_blank">{{ $t('i18n.9f01272a10') }}<LinkOutlined /> </a>
|
||||
<a href="https://jpom.top" target="_blank">{{ $t('i18n.19fa0be4d2') }}<LinkOutlined /> </a>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -36,17 +34,14 @@
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
Star {{ $t('i18n.80198317ff') }}
|
||||
<a href="https://gitee.com/dromara/Jpom" target="_blank">Gitee</a> /
|
||||
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('i18n.49a9d6c7e6') }}</li>
|
||||
<li>{{ $t('i18n.de4cf8bdfa') }}</li>
|
||||
<li>
|
||||
{{ $t('i18n.7a93e0a6ae')
|
||||
}}<a href="https://jpom.top/pages/enterprise-service/" target="_blank">{{
|
||||
$t('i18n.da89135649')
|
||||
}}</a>
|
||||
}}<a href="https://jpom.top/pages/enterprise-service/" target="_blank">{{ $t('i18n.da89135649') }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div></div>
|
||||
@ -73,11 +68,7 @@
|
||||
<!-- <setting-outlined key="setting" />
|
||||
<edit-outlined key="edit" />
|
||||
<ellipsis-outlined key="ellipsis" /> -->
|
||||
<a-card-meta
|
||||
:title="$t('i18n.55f01e138a')"
|
||||
:description="$t('i18n.0ee3ca5e88')"
|
||||
>
|
||||
</a-card-meta>
|
||||
<a-card-meta :title="$t('i18n.55f01e138a')" :description="$t('i18n.0ee3ca5e88')"> </a-card-meta>
|
||||
</template>
|
||||
</a-card>
|
||||
</a-col>
|
||||
@ -95,11 +86,7 @@
|
||||
<!-- <img alt="alipay" :src="alipayQrcorde" style="width: 90%; margin: 5%" /> -->
|
||||
</template>
|
||||
<template #actions>
|
||||
<a-card-meta
|
||||
:title="$t('i18n.a1da57ab69')"
|
||||
:description="$t('i18n.2331a990aa')"
|
||||
>
|
||||
</a-card-meta>
|
||||
<a-card-meta :title="$t('i18n.a1da57ab69')" :description="$t('i18n.2331a990aa')"> </a-card-meta>
|
||||
|
||||
<!-- <setting-outlined key="setting" />
|
||||
<edit-outlined key="edit" />
|
||||
|
@ -13,9 +13,7 @@
|
||||
})
|
||||
"
|
||||
>
|
||||
<a-button type="link" :disabled="tabList.length <= 1">{{
|
||||
$t('i18n.6816da19f3')
|
||||
}}</a-button>
|
||||
<a-button type="link" :disabled="tabList.length <= 1">{{ $t('i18n.6816da19f3') }}</a-button>
|
||||
</a-menu-item>
|
||||
<a-menu-item
|
||||
@click="
|
||||
|
@ -1,10 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-page-header :back-icon="false">
|
||||
<template #title>
|
||||
{{ $t('i18n.57d9738dfe') }}{{ getUserInfo.name
|
||||
}}{{ $t('i18n.cd7d67d588') }}</template
|
||||
>
|
||||
<template #title> {{ $t('i18n.57d9738dfe') }}{{ getUserInfo.name }}{{ $t('i18n.cd7d67d588') }}</template>
|
||||
<template #subTitle>
|
||||
{{ $t('i18n.5195c0d198', { count: (myWorkspaceList && myWorkspaceList.length) || 0 }) }}
|
||||
</template>
|
||||
@ -73,9 +70,7 @@
|
||||
<span>{{ item.buildName || '-' }}</span>
|
||||
</a-col>
|
||||
<a-col>
|
||||
<a-tooltip
|
||||
:title="item.statusMsg || statusMap[item.status] || $t('i18n.1622dc9b6b')"
|
||||
>
|
||||
<a-tooltip :title="item.statusMsg || statusMap[item.status] || $t('i18n.1622dc9b6b')">
|
||||
<a-tag :color="statusColor[item.status]" @click="handleBuildLog(item)">
|
||||
{{ statusMap[item.status] || $t('i18n.1622dc9b6b') }}
|
||||
</a-tag>
|
||||
|
@ -5,7 +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('i18n.8f36f2ede7')}${selectWorkspace.name} ${$t('i18n.d7ec97aecd')}${selectWorkspace.group || $t('i18n.71dc8feb59')}${$t('i18n.5942e7ebd0')}`"
|
||||
:title="`${$t('i18n.8f36f2ede7')}${selectWorkspace.name} ${$t('i18n.d7ec97aecd')}${
|
||||
selectWorkspace.group || $t('i18n.71dc8feb59')
|
||||
}${$t('i18n.5942e7ebd0')}`"
|
||||
placement="bottom"
|
||||
>
|
||||
<SwitcherOutlined />
|
||||
|
@ -7,11 +7,7 @@
|
||||
<a href="https://jpom.top" target="_blank">{{ $t('i18n.620efec150') }}</a>
|
||||
</template>
|
||||
<a-steps :current="setpCurrent">
|
||||
<a-step
|
||||
:title="$t('i18n.b5c291805e')"
|
||||
status="process"
|
||||
:description="$t('i18n.3904bfe0db')"
|
||||
>
|
||||
<a-step :title="$t('i18n.b5c291805e')" status="process" :description="$t('i18n.3904bfe0db')">
|
||||
<template #icon>
|
||||
<user-outlined />
|
||||
</template>
|
||||
@ -142,11 +138,7 @@
|
||||
</a-row>
|
||||
</a-card>
|
||||
<div v-else>
|
||||
<a-result
|
||||
status="warning"
|
||||
:title="$t('i18n.65cf4248a8')"
|
||||
:sub-title="$t('i18n.70a6bc1e94')"
|
||||
>
|
||||
<a-result status="warning" :title="$t('i18n.65cf4248a8')" :sub-title="$t('i18n.70a6bc1e94')">
|
||||
<template #extra>
|
||||
<a-button type="primary" @click="goHome"> {{ $t('i18n.0bbc7458b4') }} </a-button>
|
||||
</template>
|
||||
|
@ -48,9 +48,7 @@
|
||||
<a-select-option :value="0">{{ $t('i18n.bb667fdb2a') }}</a-select-option>
|
||||
</a-select>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
</a-space>
|
||||
@ -91,9 +89,7 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button type="primary" size="small" @click="handleEdit(record)">{{
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<a-button type="primary" size="small" @click="handleEdit(record)">{{ $t('i18n.95b351c862') }}</a-button>
|
||||
<a-button type="primary" danger size="small" @click="handleDelete(record)">{{
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
@ -188,8 +184,7 @@
|
||||
:label="`${project.name} - ${project.runMode}`"
|
||||
:disabled="!noFileModes.includes(project.runMode)"
|
||||
>
|
||||
{{ $t('i18n.0341329b1d') }}{{ project.nodeName }}{{ $t('i18n.5942e7ebd0')
|
||||
}}{{ project.name }} -
|
||||
{{ $t('i18n.0341329b1d') }}{{ project.nodeName }}{{ $t('i18n.5942e7ebd0') }}{{ project.name }} -
|
||||
{{ project.runMode }}
|
||||
</a-select-option>
|
||||
</a-select-opt-group>
|
||||
|
@ -42,9 +42,7 @@
|
||||
</a-select>
|
||||
<a-range-picker :show-time="{ format: 'HH:mm:ss' }" format="YYYY-MM-DD HH:mm:ss" @change="onchangeTime" />
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -69,9 +67,7 @@
|
||||
<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('i18n.f26225bde6')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleDetail(record)">{{ $t('i18n.f26225bde6') }}</a-button>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
|
@ -30,9 +30,7 @@
|
||||
<a-select-option :value="0">{{ $t('i18n.b15d91274e') }}</a-select-option>
|
||||
</a-select>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
</a-space>
|
||||
@ -54,9 +52,7 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('i18n.95b351c862')
|
||||
}}</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('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
|
@ -148,9 +148,9 @@
|
||||
<template v-else-if="column.dataIndex === 'status'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${
|
||||
statusMap[record.machineNodeData && record.machineNodeData.status] || $t('i18n.1622dc9b6b')
|
||||
} ${record.machineNodeData && record.machineNodeData.statusMsg}`"
|
||||
:title="`${statusMap[record.machineNodeData && record.machineNodeData.status] || $t('i18n.1622dc9b6b')} ${
|
||||
record.machineNodeData && record.machineNodeData.statusMsg
|
||||
}`"
|
||||
>
|
||||
<template v-if="record.openStatus === 1">
|
||||
<a-tag
|
||||
|
@ -26,21 +26,9 @@
|
||||
margin: '0'
|
||||
}"
|
||||
>
|
||||
<a-tab-pane
|
||||
v-if="tabs.includes('project')"
|
||||
key="project"
|
||||
:tab="$t('i18n.436367b066')"
|
||||
></a-tab-pane>
|
||||
<a-tab-pane
|
||||
v-if="tabs.includes('scripct')"
|
||||
key="scripct"
|
||||
:tab="$t('i18n.a1fb7f1606')"
|
||||
></a-tab-pane>
|
||||
<a-tab-pane
|
||||
v-if="tabs.includes('scripct-log')"
|
||||
key="scripct-log"
|
||||
:tab="$t('i18n.7370bdf0d2')"
|
||||
></a-tab-pane>
|
||||
<a-tab-pane v-if="tabs.includes('project')" key="project" :tab="$t('i18n.436367b066')"></a-tab-pane>
|
||||
<a-tab-pane v-if="tabs.includes('scripct')" key="scripct" :tab="$t('i18n.a1fb7f1606')"></a-tab-pane>
|
||||
<a-tab-pane v-if="tabs.includes('scripct-log')" key="scripct-log" :tab="$t('i18n.7370bdf0d2')"></a-tab-pane>
|
||||
</a-tabs>
|
||||
</div>
|
||||
</a-space>
|
||||
|
@ -44,10 +44,7 @@
|
||||
allow-clear
|
||||
input-read-only
|
||||
:show-time="{ format: 'HH:mm:ss' }"
|
||||
:placeholder="[
|
||||
$t('i18n.7fbc0f9aae'),
|
||||
$t('i18n.cbc44b5663')
|
||||
]"
|
||||
:placeholder="[$t('i18n.7fbc0f9aae'), $t('i18n.cbc44b5663')]"
|
||||
format="YYYY-MM-DD HH:mm:ss"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
@change="
|
||||
@ -61,9 +58,7 @@
|
||||
"
|
||||
/>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip>
|
||||
<template #title>
|
||||
@ -104,9 +99,7 @@
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="viewLog(record)">{{
|
||||
$t('i18n.0ea78e4279')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="viewLog(record)">{{ $t('i18n.0ea78e4279') }}</a-button>
|
||||
|
||||
<a-button size="small" type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('i18n.2f4aaddde3')
|
||||
|
@ -87,9 +87,9 @@
|
||||
>
|
||||
<template #title>
|
||||
<a-popconfirm
|
||||
:title="`${
|
||||
uploadPath ? $t('i18n.bdd4cddd22') + uploadPath + $t('i18n.dadd4907c2') : ''
|
||||
} ${$t('i18n.aefd8f9f27')},${$t('i18n.500789168c')}`"
|
||||
:title="`${uploadPath ? $t('i18n.bdd4cddd22') + uploadPath + $t('i18n.dadd4907c2') : ''} ${$t(
|
||||
'i18n.aefd8f9f27'
|
||||
)},${$t('i18n.500789168c')}`"
|
||||
:ok-text="$t('i18n.587a63264b')"
|
||||
:cancel-text="$t('i18n.b1a09cee8e')"
|
||||
:ok-button-props="{
|
||||
|
@ -7,9 +7,7 @@
|
||||
<a-layout-sider theme="light" class="sider" width="25%">
|
||||
<div class="dir-container">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="loadData">{{
|
||||
$t('i18n.90b5a467c1')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="loadData">{{ $t('i18n.90b5a467c1') }}</a-button>
|
||||
<a-button v-show="noFileModes.includes(runMode)" size="small" type="primary" @click="goConsole">
|
||||
{{ $t('i18n.b5c3770699') }}
|
||||
</a-button>
|
||||
@ -51,14 +49,10 @@
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item @click="handleUpload">
|
||||
<a-space
|
||||
><FileOutlined />{{ $t('i18n.a6fc9e3ae6') }}</a-space
|
||||
>
|
||||
<a-space><FileOutlined />{{ $t('i18n.a6fc9e3ae6') }}</a-space>
|
||||
</a-menu-item>
|
||||
<a-menu-item @click="handleZipUpload">
|
||||
<a-space
|
||||
><FileZipOutlined />{{ $t('i18n.37f031338a') }}</a-space
|
||||
>
|
||||
<a-space><FileZipOutlined />{{ $t('i18n.37f031338a') }}</a-space>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
@ -94,9 +88,7 @@
|
||||
<a-button size="small" type="primary" danger @click="clearFile"><DeleteOutlined /></a-button>
|
||||
</a-tooltip>
|
||||
|
||||
<a-tag v-if="uploadPath" color="#2db7f5"
|
||||
>{{ $t('i18n.2c8109fa0b') }}{{ uploadPath || '' }}</a-tag
|
||||
>
|
||||
<a-tag v-if="uploadPath" color="#2db7f5">{{ $t('i18n.2c8109fa0b') }}{{ uploadPath || '' }}</a-tag>
|
||||
<div>{{ $t('i18n.9e98fa5c0d') }}</div>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -125,11 +117,7 @@
|
||||
</a-menu-item>
|
||||
<a-sub-menu key="4" :disabled="!record.isDirectory">
|
||||
<template #title>
|
||||
<a-button type="link"
|
||||
><CompressOutlined />{{
|
||||
$t('i18n.072fa90836')
|
||||
}}</a-button
|
||||
>
|
||||
<a-button type="link"><CompressOutlined />{{ $t('i18n.072fa90836') }}</a-button>
|
||||
</template>
|
||||
<a-menu-item>
|
||||
<a-button type="link" @click="hannderCompress(record, 'zip')">
|
||||
@ -153,11 +141,7 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'isDirectory'">
|
||||
<span>{{
|
||||
text
|
||||
? $t('i18n.767fa455bb')
|
||||
: $t('i18n.2a0c4740f1')
|
||||
}}</span>
|
||||
<span>{{ text ? $t('i18n.767fa455bb') : $t('i18n.2a0c4740f1') }}</span>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'fileSizeLong'">
|
||||
<a-tooltip placement="topLeft" :title="`${text ? renderSize(text) : record.fileSize}`">
|
||||
@ -173,14 +157,10 @@
|
||||
<a-space>
|
||||
<template v-if="record.isDirectory">
|
||||
<a-tooltip :title="$t('i18n.c6f1c6e062')">
|
||||
<a-button size="small" type="primary" :disabled="true">{{
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" :disabled="true">{{ $t('i18n.95b351c862') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip :title="$t('i18n.6c14188ba0')">
|
||||
<a-button size="small" type="primary" :disabled="true">{{
|
||||
$t('i18n.f26ef91424')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" :disabled="true">{{ $t('i18n.f26ef91424') }}</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else>
|
||||
@ -243,9 +223,7 @@
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
|
||||
<a-button v-else
|
||||
><UploadOutlined />{{ $t('i18n.fd7e0c997d') }}</a-button
|
||||
>
|
||||
<a-button v-else><UploadOutlined />{{ $t('i18n.fd7e0c997d') }}</a-button>
|
||||
</a-upload>
|
||||
|
||||
<a-row v-if="percentage">
|
||||
@ -256,14 +234,11 @@
|
||||
({{ renderSize(percentageInfo.total) }})
|
||||
</template>
|
||||
<template v-if="percentageInfo.duration">
|
||||
{{ $t('i18n.833249fb92') }}:{{
|
||||
formatDuration(percentageInfo.duration)
|
||||
}}
|
||||
{{ $t('i18n.833249fb92') }}:{{ formatDuration(percentageInfo.duration) }}
|
||||
</template>
|
||||
<template v-if="uploadFileList.length">
|
||||
{{ $t('i18n.769d88e425') }} {{ successSize }}
|
||||
{{ $t('i18n.d047d84986') }}{{ uploadFileList.length
|
||||
}}{{ $t('i18n.930882bb0a') }}
|
||||
{{ $t('i18n.769d88e425') }} {{ successSize }} {{ $t('i18n.d047d84986')
|
||||
}}{{ uploadFileList.length }}{{ $t('i18n.930882bb0a') }}
|
||||
</template>
|
||||
</template>
|
||||
</a-progress>
|
||||
@ -306,9 +281,7 @@
|
||||
"
|
||||
>
|
||||
<LoadingOutlined v-if="percentage" />
|
||||
<a-button v-else
|
||||
><UploadOutlined />{{ $t('i18n.a17450a5ff') }}</a-button
|
||||
>
|
||||
<a-button v-else><UploadOutlined />{{ $t('i18n.a17450a5ff') }}</a-button>
|
||||
</a-upload>
|
||||
<a-row v-if="percentage">
|
||||
<a-col span="24">
|
||||
@ -318,14 +291,11 @@
|
||||
({{ renderSize(percentageInfo.total) }})
|
||||
</template>
|
||||
<template v-if="percentageInfo.duration">
|
||||
{{ $t('i18n.833249fb92') }}:{{
|
||||
formatDuration(percentageInfo.duration)
|
||||
}}
|
||||
{{ $t('i18n.833249fb92') }}:{{ formatDuration(percentageInfo.duration) }}
|
||||
</template>
|
||||
<template v-if="uploadFileList.length">
|
||||
{{ $t('i18n.769d88e425') }} {{ successSize }}
|
||||
{{ $t('i18n.d047d84986') }}{{ uploadFileList.length
|
||||
}}{{ $t('i18n.930882bb0a') }}
|
||||
{{ $t('i18n.769d88e425') }} {{ successSize }} {{ $t('i18n.d047d84986')
|
||||
}}{{ uploadFileList.length }}{{ $t('i18n.930882bb0a') }}
|
||||
</template>
|
||||
</template>
|
||||
</a-progress>
|
||||
@ -415,10 +385,7 @@
|
||||
:rules="rules"
|
||||
>
|
||||
<a-form-item :label="$t('i18n.a66fff7541')" name="url">
|
||||
<a-input
|
||||
v-model:value="remoteDownloadData.url"
|
||||
:placeholder="$t('i18n.7457228a61')"
|
||||
/>
|
||||
<a-input v-model:value="remoteDownloadData.url" :placeholder="$t('i18n.7457228a61')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.50fefde769')">
|
||||
<a-switch
|
||||
@ -427,10 +394,7 @@
|
||||
:un-checked-children="$t('i18n.c9744f45e7')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="remoteDownloadData.unzip"
|
||||
:label="$t('i18n.5effe31353')"
|
||||
>
|
||||
<a-form-item v-if="remoteDownloadData.unzip" :label="$t('i18n.5effe31353')">
|
||||
<a-input-number
|
||||
v-model:value="remoteDownloadData.stripComponents"
|
||||
style="width: 100%"
|
||||
@ -446,24 +410,15 @@
|
||||
v-model:open="addFileFolderVisible"
|
||||
destroy-on-close
|
||||
width="300px"
|
||||
:title="
|
||||
addFileOrFolderType === 1
|
||||
? $t('i18n.2d9e932510')
|
||||
: $t('i18n.e48a715738')
|
||||
"
|
||||
:title="addFileOrFolderType === 1 ? $t('i18n.2d9e932510') : $t('i18n.e48a715738')"
|
||||
:footer="null"
|
||||
:mask-closable="true"
|
||||
>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<span v-if="uploadPath"
|
||||
>{{ $t('i18n.4e33dde280') }}{{ uploadPath }}</span
|
||||
>
|
||||
<span v-if="uploadPath">{{ $t('i18n.4e33dde280') }}{{ uploadPath }}</span>
|
||||
<!-- <a-tag v-if="">目录创建成功后需要手动刷新右边树才能显示出来哟</a-tag> -->
|
||||
|
||||
<a-input
|
||||
v-model:value="fileFolderName"
|
||||
:placeholder="$t('i18n.55939c108f')"
|
||||
/>
|
||||
<a-input v-model:value="fileFolderName" :placeholder="$t('i18n.55939c108f')" />
|
||||
<a-row type="flex" justify="center">
|
||||
<a-button type="primary" :disabled="fileFolderName.length === 0" @click="startAddFileFolder">{{
|
||||
$t('i18n.e83a256e4f')
|
||||
@ -482,10 +437,7 @@
|
||||
:mask-closable="true"
|
||||
>
|
||||
<a-space direction="vertical" style="width: 100%">
|
||||
<a-input
|
||||
v-model:value="fileFolderName"
|
||||
:placeholder="$t('i18n.f139c5cf32')"
|
||||
/>
|
||||
<a-input v-model:value="fileFolderName" :placeholder="$t('i18n.f139c5cf32')" />
|
||||
|
||||
<a-row type="flex" justify="center">
|
||||
<a-button type="primary" :disabled="fileFolderName.length === 0" @click="renameFileFolder">{{
|
||||
@ -1144,9 +1096,7 @@ export default {
|
||||
// 清空文件
|
||||
clearFile() {
|
||||
const msg = this.uploadPath
|
||||
? this.$t('i18n.c840c88b7c') +
|
||||
this.uploadPath +
|
||||
this.$t('i18n.3f553922ae')
|
||||
? this.$t('i18n.c840c88b7c') + this.uploadPath + this.$t('i18n.3f553922ae')
|
||||
: this.$t('i18n.26bd746dc3')
|
||||
$confirm({
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
@ -1188,12 +1138,8 @@ export default {
|
||||
// 删除
|
||||
handleDelete(record) {
|
||||
const msg = record.isDirectory
|
||||
? this.$t('i18n.3cc09369ad') +
|
||||
record.filename +
|
||||
this.$t('i18n.52a8df6678')
|
||||
: this.$t('i18n.3cc09369ad') +
|
||||
record.filename +
|
||||
this.$t('i18n.48e79b3340')
|
||||
? this.$t('i18n.3cc09369ad') + record.filename + this.$t('i18n.52a8df6678')
|
||||
: this.$t('i18n.3cc09369ad') + record.filename + this.$t('i18n.48e79b3340')
|
||||
$confirm({
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
content: msg,
|
||||
|
@ -16,9 +16,7 @@
|
||||
</template>
|
||||
</a-tag>
|
||||
|
||||
<a-tag v-if="project.logBackPath" color="orange"
|
||||
>{{ $t('i18n.c34175dbef') }}{{ project.logBackPath }}</a-tag
|
||||
>
|
||||
<a-tag v-if="project.logBackPath" color="orange">{{ $t('i18n.c34175dbef') }}{{ project.logBackPath }}</a-tag>
|
||||
|
||||
<!-- 数据表格 -->
|
||||
<a-table
|
||||
@ -49,12 +47,8 @@
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button type="primary" @click="handleDownloadLogback(record)">{{
|
||||
$t('i18n.f26ef91424')
|
||||
}}</a-button>
|
||||
<a-button type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
<a-button type="primary" @click="handleDownloadLogback(record)">{{ $t('i18n.f26ef91424') }}</a-button>
|
||||
<a-button type="primary" danger @click="handleDelete(record)">{{ $t('i18n.2f4aaddde3') }}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
|
@ -2,11 +2,7 @@
|
||||
<div class="">
|
||||
<a-tabs default-active-key="1" tab-position="left">
|
||||
<a-tab-pane key="1" :tab="$t('i18n.3c6248b364')">
|
||||
<a-alert
|
||||
:message="$t('i18n.5785f004ea')"
|
||||
style="margin-top: 10px; margin-bottom: 40px"
|
||||
banner
|
||||
/>
|
||||
<a-alert :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">
|
||||
@ -15,15 +11,11 @@
|
||||
</span>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('i18n.37f1931729') }}{{ renderSize(temp.dataSize) }}</span
|
||||
>
|
||||
<span class="layui-elem-quote">{{ $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('i18n.ea3c5c0d25') }}{{ renderSize(temp.fileSize) }}</span
|
||||
>
|
||||
<span class="layui-elem-quote">{{ $t('i18n.ea3c5c0d25') }}{{ renderSize(temp.fileSize) }}</span>
|
||||
<a-button size="small" type="primary" class="btn" @click="clear('fileSize')">{{
|
||||
$t('i18n.288f0c404c')
|
||||
}}</a-button>
|
||||
@ -31,9 +23,7 @@
|
||||
</a-timeline-item>
|
||||
<a-timeline-item v-if="temp.oldJarsSize">
|
||||
<a-space>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('i18n.413d8ba722') }}{{ renderSize(temp.oldJarsSize) }}</span
|
||||
>
|
||||
<span class="layui-elem-quote">{{ $t('i18n.413d8ba722') }}{{ renderSize(temp.oldJarsSize) }}</span>
|
||||
<a-button size="small" type="primary" class="btn" @click="clear('oldJarsSize')">{{
|
||||
$t('i18n.288f0c404c')
|
||||
}}</a-button>
|
||||
@ -42,28 +32,20 @@
|
||||
|
||||
<a-timeline-item>
|
||||
<a-space>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('i18n.775fde44cf') }}{{ temp.pidPort }}</span
|
||||
>
|
||||
<span class="layui-elem-quote">{{ $t('i18n.775fde44cf') }}{{ temp.pidPort }}</span>
|
||||
<a-button v-if="temp.pidPort" size="small" type="primary" class="btn" @click="clear('pidPort')">{{
|
||||
$t('i18n.288f0c404c')
|
||||
}}</a-button>
|
||||
</a-space>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('i18n.25f29ebbe6') }}{{ temp.scriptExecLogSize }}</span
|
||||
>
|
||||
<span class="layui-elem-quote">{{ $t('i18n.25f29ebbe6') }}{{ temp.scriptExecLogSize }}</span>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('i18n.9b9e426d16') }}{{ temp.readFileOnLineCount }}</span
|
||||
>
|
||||
<span class="layui-elem-quote">{{ $t('i18n.9b9e426d16') }}{{ temp.readFileOnLineCount }}</span>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<span class="layui-elem-quote"
|
||||
>{{ $t('i18n.b6ee682dac') }}{{ temp.pluginSize || 0 }}</span
|
||||
>
|
||||
<span class="layui-elem-quote">{{ $t('i18n.b6ee682dac') }}{{ temp.pluginSize || 0 }}</span>
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>
|
||||
<div class="layui-elem-quote">
|
||||
|
@ -90,9 +90,7 @@ export default {
|
||||
this.checkCount = 0
|
||||
this.globalLoading({
|
||||
spinning: true,
|
||||
tip:
|
||||
(msg || this.$t('i18n.85da2e5bb1')) +
|
||||
`,${this.$t('i18n.809b12d6a0')},${this.$t('i18n.af013dd9dc')}`
|
||||
tip: (msg || this.$t('i18n.85da2e5bb1')) + `,${this.$t('i18n.809b12d6a0')},${this.$t('i18n.af013dd9dc')}`
|
||||
})
|
||||
setTimeout(() => {
|
||||
//
|
||||
|
@ -1,19 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-alert
|
||||
style="margin-bottom: 20px"
|
||||
:message="$t('i18n.020f31f535')"
|
||||
type="info"
|
||||
/>
|
||||
<a-alert style="margin-bottom: 20px" :message="$t('i18n.020f31f535')" type="info" />
|
||||
|
||||
<a-form ref="editForm" :model="temp" :label-col="{ span: 6 }" :wrapper-col="{ span: 14 }">
|
||||
<a-form-item :label="$t('i18n.aabdc3b7c0')" name="project">
|
||||
<a-textarea
|
||||
v-model:value="temp.project"
|
||||
:rows="5"
|
||||
style="resize: none"
|
||||
:placeholder="$t('i18n.631d5b88ab')"
|
||||
/>
|
||||
<a-textarea v-model:value="temp.project" :rows="5" style="resize: none" :placeholder="$t('i18n.631d5b88ab')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.649231bdee')" name="allowEditSuffix">
|
||||
@ -25,9 +16,7 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 4 }">
|
||||
<a-button type="primary" :disabled="submitAble" @click="onSubmit">{{
|
||||
$t('i18n.939d5345ad')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :disabled="submitAble" @click="onSubmit">{{ $t('i18n.939d5345ad') }}</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</div>
|
||||
|
@ -45,9 +45,7 @@
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
|
||||
<a-button type="primary" @click="handleEdit()">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
@ -113,15 +111,9 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="handleExec(record)">{{
|
||||
$t('i18n.1a6aa24e76')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleLog(record)">{{
|
||||
$t('i18n.456d29ef8b')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleTrigger(record)">{{
|
||||
$t('i18n.4696724ed3')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleExec(record)">{{ $t('i18n.1a6aa24e76') }}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleLog(record)">{{ $t('i18n.456d29ef8b') }}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleTrigger(record)">{{ $t('i18n.4696724ed3') }}</a-button>
|
||||
|
||||
<a-dropdown>
|
||||
<a @click="(e) => e.preventDefault()">
|
||||
@ -133,11 +125,7 @@
|
||||
<a-menu-item>
|
||||
<!-- <a-button size="small" :type="`${record.scriptType === 'server-sync' ? '' : 'primary'}`" @click="handleEdit(record)">{{ record.scriptType === "server-sync" ? "查看" : " 编辑" }}</a-button> -->
|
||||
<a-tooltip
|
||||
:title="`${
|
||||
record.scriptType === 'server-sync'
|
||||
? $t('i18n.1f0d13a9ad')
|
||||
: $t('i18n.2f4aaddde3')
|
||||
}`"
|
||||
:title="`${record.scriptType === 'server-sync' ? $t('i18n.1f0d13a9ad') : $t('i18n.2f4aaddde3')}`"
|
||||
>
|
||||
<a-button
|
||||
size="small"
|
||||
@ -221,9 +209,7 @@
|
||||
<a-tabs default-active-key="1">
|
||||
<template #rightExtra>
|
||||
<a-tooltip :title="$t('i18n.01ad26f4a9')">
|
||||
<a-button type="primary" size="small" @click="resetTrigger">{{
|
||||
$t('i18n.4b9c3271dc')
|
||||
}}</a-button>
|
||||
<a-button type="primary" size="small" @click="resetTrigger">{{ $t('i18n.4b9c3271dc') }}</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-tab-pane key="1" :tab="$t('i18n.1a6aa24e76')">
|
||||
@ -238,20 +224,14 @@
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('i18n.de78b73dab')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<a-alert type="info" :message="`${$t('i18n.de78b73dab')}(${$t('i18n.00a070c696')})`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.triggerUrl }">
|
||||
<a-tag>GET</a-tag> <span>{{ temp.triggerUrl }} </span>
|
||||
</a-typography-paragraph>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('i18n.8d202b890c')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<a-alert type="info" :message="`${$t('i18n.8d202b890c')}(${$t('i18n.00a070c696')})`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ tooltip: false, text: temp.batchTriggerUrl }">
|
||||
<a-tag>POST</a-tag> <span>{{ temp.batchTriggerUrl }} </span>
|
||||
|
@ -50,9 +50,7 @@
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="createScript">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
<a-button
|
||||
@ -103,15 +101,9 @@
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<template v-if="mode === 'manage'">
|
||||
<a-button size="small" type="primary" @click="handleExec(record)">{{
|
||||
$t('i18n.1a6aa24e76')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleLog(record)">{{
|
||||
$t('i18n.456d29ef8b')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleExec(record)">{{ $t('i18n.1a6aa24e76') }}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{ $t('i18n.95b351c862') }}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleLog(record)">{{ $t('i18n.456d29ef8b') }}</a-button>
|
||||
<a-dropdown>
|
||||
<a @click="(e) => e.preventDefault()">
|
||||
{{ $t('i18n.0ec9eaf9c3') }}
|
||||
@ -145,9 +137,7 @@
|
||||
</a-dropdown>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{ $t('i18n.95b351c862') }}</a-button>
|
||||
</template>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -180,9 +170,7 @@
|
||||
:options="{ mode: 'shell', tabSize: 2 }"
|
||||
>
|
||||
<template #tool_before>
|
||||
<a-button type="link" @click="scriptLibraryVisible = true">{{
|
||||
$t('i18n.f685377a22')
|
||||
}}</a-button>
|
||||
<a-button type="link" @click="scriptLibraryVisible = true">{{ $t('i18n.f685377a22') }}</a-button>
|
||||
</template>
|
||||
</code-editor>
|
||||
</a-form-item-rest>
|
||||
@ -214,9 +202,7 @@
|
||||
<a-divider style="margin: 5px 0" />
|
||||
</a-space>
|
||||
|
||||
<a-button type="primary" @click="() => commandParams.push({})">{{
|
||||
$t('i18n.4c0eead6ff')
|
||||
}}</a-button>
|
||||
<a-button type="primary" @click="() => commandParams.push({})">{{ $t('i18n.4c0eead6ff') }}</a-button>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.6b2e348a2b')" name="autoExecCron">
|
||||
<a-auto-complete
|
||||
@ -245,8 +231,7 @@
|
||||
<a-form-item v-if="temp.prohibitSync" :label="$t('i18n.b499798ec5')">
|
||||
<template #help>{{ $t('i18n.06986031a7') }}</template>
|
||||
<a-tag v-for="(item, index) in temp.nodeList" :key="index"
|
||||
>{{ $t('i18n.5d83794cfa') }}{{ item.nodeName }}
|
||||
{{ $t('i18n.4d85c37f0d') }}{{ item.workspaceName }}</a-tag
|
||||
>{{ $t('i18n.5d83794cfa') }}{{ item.nodeName }} {{ $t('i18n.4d85c37f0d') }}{{ item.workspaceName }}</a-tag
|
||||
>
|
||||
</a-form-item>
|
||||
<a-form-item v-else>
|
||||
@ -353,9 +338,7 @@
|
||||
<a-tabs default-active-key="1">
|
||||
<template #rightExtra>
|
||||
<a-tooltip :title="$t('i18n.01ad26f4a9')">
|
||||
<a-button type="primary" size="small" @click="resetTrigger">{{
|
||||
$t('i18n.4b9c3271dc')
|
||||
}}</a-button>
|
||||
<a-button type="primary" size="small" @click="resetTrigger">{{ $t('i18n.4b9c3271dc') }}</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-tab-pane key="1" :tab="$t('i18n.1a6aa24e76')">
|
||||
@ -370,20 +353,14 @@
|
||||
</ul>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('i18n.de78b73dab')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<a-alert type="info" :message="`${$t('i18n.de78b73dab')}(${$t('i18n.00a070c696')})`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ text: temp.triggerUrl }">
|
||||
<a-tag>GET</a-tag> <span>{{ temp.triggerUrl }} </span>
|
||||
</a-typography-paragraph>
|
||||
</template>
|
||||
</a-alert>
|
||||
<a-alert
|
||||
type="info"
|
||||
:message="`${$t('i18n.8d202b890c')}(${$t('i18n.00a070c696')})`"
|
||||
>
|
||||
<a-alert type="info" :message="`${$t('i18n.8d202b890c')}(${$t('i18n.00a070c696')})`">
|
||||
<template #description>
|
||||
<a-typography-paragraph :copyable="{ text: temp.batchTriggerUrl }">
|
||||
<a-tag>POST</a-tag> <span>{{ temp.batchTriggerUrl }} </span>
|
||||
@ -769,8 +746,7 @@ export default {
|
||||
for (let i = 0; i < this.commandParams.length; i++) {
|
||||
if (!this.commandParams[i].desc) {
|
||||
$notification.error({
|
||||
message:
|
||||
this.$t('i18n.8ae2b9915c') + (i + 1) + this.$t('i18n.c583b707ba')
|
||||
message: this.$t('i18n.8ae2b9915c') + (i + 1) + this.$t('i18n.c583b707ba')
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
@ -78,9 +78,7 @@
|
||||
"
|
||||
/>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -116,9 +114,7 @@
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button type="primary" size="small" @click="viewLog(record)">{{
|
||||
$t('i18n.0ea78e4279')
|
||||
}}</a-button>
|
||||
<a-button type="primary" size="small" @click="viewLog(record)">{{ $t('i18n.0ea78e4279') }}</a-button>
|
||||
|
||||
<a-button type="primary" danger size="small" @click="handleDelete(record)">{{
|
||||
$t('i18n.2f4aaddde3')
|
||||
|
@ -27,11 +27,7 @@
|
||||
</template>
|
||||
<terminal1 v-if="sshData" :ssh-id="sshData.id" />
|
||||
<template v-else>
|
||||
<a-result
|
||||
status="404"
|
||||
:title="$t('i18n.bda44edeb5')"
|
||||
:sub-title="$t('i18n.729eebb5ff')"
|
||||
>
|
||||
<a-result status="404" :title="$t('i18n.bda44edeb5')" :sub-title="$t('i18n.729eebb5ff')">
|
||||
<template #extra>
|
||||
<router-link :to="{ path: '/ssh', query: {} }">
|
||||
<a-button type="primary">{{ $t('i18n.5a1367058c') }}</a-button>
|
||||
@ -51,8 +47,7 @@
|
||||
@close="onClose"
|
||||
>
|
||||
<template #title>
|
||||
{{ sshData.name }}<template v-if="sshData.host"> ({{ sshData.host }}) </template
|
||||
>{{ $t('i18n.8780e6b3d1') }}
|
||||
{{ sshData.name }}<template v-if="sshData.host"> ({{ sshData.host }}) </template>{{ $t('i18n.8780e6b3d1') }}
|
||||
</template>
|
||||
<ssh-file v-if="drawerVisible" :ssh-id="sshData.id" />
|
||||
</CustomDrawer>
|
||||
|
@ -117,13 +117,10 @@
|
||||
<template #content>
|
||||
<p>{{ $t('i18n.c17aefeebf') }}{{ record.machineSsh && record.machineSsh.osName }}</p>
|
||||
<p>{{ $t('i18n.f425f59044') }}{{ record.machineSsh && record.machineSsh.osVersion }}</p>
|
||||
<p>
|
||||
CPU{{ $t('i18n.045cd62da3') }}{{ record.machineSsh && record.machineSsh.osCpuIdentifierName }}
|
||||
</p>
|
||||
<p>CPU{{ $t('i18n.045cd62da3') }}{{ record.machineSsh && record.machineSsh.osCpuIdentifierName }}</p>
|
||||
<p>{{ $t('i18n.07a0e44145') }}{{ record.machineSsh && record.machineSsh.hostName }}</p>
|
||||
<p>
|
||||
{{ $t('i18n.8a745296f4')
|
||||
}}{{ formatDuration(record.machineSsh && record.machineSsh.osSystemUptime) }}
|
||||
{{ $t('i18n.8a745296f4') }}{{ formatDuration(record.machineSsh && record.machineSsh.osSystemUptime) }}
|
||||
</p>
|
||||
</template>
|
||||
{{ text || $t('i18n.1622dc9b6b') }}
|
||||
@ -162,12 +159,10 @@
|
||||
<a-popover :title="$t('i18n.a74b62f4bb')">
|
||||
<template #content>
|
||||
<p>
|
||||
{{ $t('i18n.7e359f4b71')
|
||||
}}{{ renderSize(record.machineSsh && record.machineSsh.osFileStoreTotal) }}
|
||||
{{ $t('i18n.7e359f4b71') }}{{ renderSize(record.machineSsh && record.machineSsh.osFileStoreTotal) }}
|
||||
</p>
|
||||
<p>
|
||||
{{ $t('i18n.de17fc0b78')
|
||||
}}{{ formatPercent(record.machineSsh && record.machineSsh.osMaxOccupyDisk) }}
|
||||
{{ $t('i18n.de17fc0b78') }}{{ formatPercent(record.machineSsh && record.machineSsh.osMaxOccupyDisk) }}
|
||||
</p>
|
||||
<p>{{ $t('i18n.ba452d57f2') }}{{ record.machineSsh && record.machineSsh.osMaxOccupyDiskName }}</p>
|
||||
</template>
|
||||
@ -224,9 +219,7 @@
|
||||
</template>
|
||||
</a-dropdown>
|
||||
<template v-if="record.fileDirs">
|
||||
<a-button size="small" type="primary" @click="handleFile(record)">{{
|
||||
$t('i18n.2a0c4740f1')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleFile(record)">{{ $t('i18n.2a0c4740f1') }}</a-button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-tooltip placement="topLeft" :title="$t('i18n.46c8ba7b7f')">
|
||||
|
@ -61,9 +61,7 @@
|
||||
<a-select-option v-for="item in groupList" :key="item">{{ item }}</a-select-option>
|
||||
</a-select>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
<a-button :disabled="!tableSelections.length" type="primary" @click="syncToWorkspaceShow()">
|
||||
@ -112,11 +110,7 @@
|
||||
<template v-else-if="column.dataIndex === 'tlsVerify'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="
|
||||
record.tlsVerify
|
||||
? $t('i18n.1058a0be42') + record.certInfo
|
||||
: $t('i18n.007f23e18f')
|
||||
"
|
||||
:title="record.tlsVerify ? $t('i18n.1058a0be42') + record.certInfo : $t('i18n.007f23e18f')"
|
||||
>
|
||||
<template v-if="record.tlsVerify">
|
||||
<template v-if="record.certExist">
|
||||
@ -168,9 +162,7 @@
|
||||
}}</a-button>
|
||||
</p>
|
||||
</template>
|
||||
<a-button size="small" type="primary"
|
||||
><EditOutlined />{{ $t('i18n.85fe5099f6') }}</a-button
|
||||
>
|
||||
<a-button size="small" type="primary"><EditOutlined />{{ $t('i18n.85fe5099f6') }}</a-button>
|
||||
</a-popover>
|
||||
</template>
|
||||
<template v-else>
|
||||
@ -189,9 +181,7 @@
|
||||
$t('i18n.1c3cf7f5f0')
|
||||
}}</a-button>
|
||||
<a-dropdown>
|
||||
<a @click="(e) => e.preventDefault()">
|
||||
{{ $t('i18n.0ec9eaf9c3') }} <DownOutlined />
|
||||
</a>
|
||||
<a @click="(e) => e.preventDefault()"> {{ $t('i18n.0ec9eaf9c3') }} <DownOutlined /> </a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
@ -245,9 +235,7 @@
|
||||
</li>
|
||||
<li>{{ $t('i18n.6aa7403b18') }}</li>
|
||||
<li>
|
||||
{{ $t('i18n.92c6aa6db9') }}>{{
|
||||
$t('i18n.e049546ff3')
|
||||
}}
|
||||
{{ $t('i18n.92c6aa6db9') }}>{{ $t('i18n.e049546ff3') }}
|
||||
<b>ssh/monitor-script.sh</b>
|
||||
{{ $t('i18n.f0eb685a84') }}
|
||||
</li>
|
||||
@ -256,29 +244,24 @@
|
||||
<template v-else>
|
||||
<ul>
|
||||
<li>
|
||||
{{ $t('i18n.c46938460b')
|
||||
}}<b style="color: red">{{ $t('i18n.7010264d22') }}</b>
|
||||
{{ $t('i18n.c46938460b') }}<b style="color: red">{{ $t('i18n.7010264d22') }}</b>
|
||||
</li>
|
||||
<li>
|
||||
{{ $t('i18n.ba1f68b5dd') }}
|
||||
<b style="color: red">docker {{ $t('i18n.47768ed092') }}</b>
|
||||
</li>
|
||||
<li>
|
||||
{{ $t('i18n.fdba50ca2d')
|
||||
}}<b style="color: red"> {{ $t('i18n.7e000409bb') }} </b>
|
||||
{{ $t('i18n.fdba50ca2d') }}<b style="color: red"> {{ $t('i18n.7e000409bb') }} </b>
|
||||
</li>
|
||||
<li>
|
||||
{{ $t('i18n.5bb5b33ae4')
|
||||
}}<b style="color: red">{{ $t('i18n.73ed447971') }}</b
|
||||
{{ $t('i18n.5bb5b33ae4') }}<b style="color: red">{{ $t('i18n.73ed447971') }}</b
|
||||
>({{ $t('i18n.9c942ea972') }}
|
||||
</li>
|
||||
<li>
|
||||
{{ $t('i18n.8b1512bf3a')
|
||||
}}<b style="color: red">{{ $t('i18n.8fd9daf8e9') }}</b>
|
||||
{{ $t('i18n.8b1512bf3a') }}<b style="color: red">{{ $t('i18n.8fd9daf8e9') }}</b>
|
||||
</li>
|
||||
<li>
|
||||
{{ $t('i18n.ba8d1dca4a')
|
||||
}}<b style="color: red">{{ $t('i18n.0e25ab3b51') }}</b>
|
||||
{{ $t('i18n.ba8d1dca4a') }}<b style="color: red">{{ $t('i18n.0e25ab3b51') }}</b>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
@ -336,10 +319,7 @@
|
||||
</a-form-item>
|
||||
<template v-if="!temp.enableSsh">
|
||||
<a-form-item label="host" name="host">
|
||||
<a-input
|
||||
v-model:value="temp.host"
|
||||
:placeholder="`${$t('i18n.dc32f465da')}://127.0.0.1:2375`"
|
||||
/>
|
||||
<a-input v-model:value="temp.host" :placeholder="`${$t('i18n.dc32f465da')}://127.0.0.1:2375`" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.2780a6a3cf')" name="tlsVerify">
|
||||
@ -381,22 +361,13 @@
|
||||
<a-input v-model:value="temp.registryUrl" :placeholder="$t('i18n.e4bea943de')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.b4c83b0b56')" name="registryUsername">
|
||||
<a-input
|
||||
v-model:value="temp.registryUsername"
|
||||
:placeholder="$t('i18n.b4c83b0b56')"
|
||||
/>
|
||||
<a-input v-model:value="temp.registryUsername" :placeholder="$t('i18n.b4c83b0b56')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.791870de48')" name="registryPassword">
|
||||
<a-input-password
|
||||
v-model:value="temp.registryPassword"
|
||||
:placeholder="$t('i18n.791870de48')"
|
||||
/>
|
||||
<a-input-password v-model:value="temp.registryPassword" :placeholder="$t('i18n.791870de48')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.feda0df7ef')" name="registryEmail">
|
||||
<a-input
|
||||
v-model:value="temp.registryEmail"
|
||||
:placeholder="$t('i18n.feda0df7ef')"
|
||||
/>
|
||||
<a-input v-model:value="temp.registryEmail" :placeholder="$t('i18n.feda0df7ef')" />
|
||||
</a-form-item>
|
||||
</a-collapse-panel>
|
||||
</a-collapse>
|
||||
@ -562,10 +533,7 @@
|
||||
<a-list-item style="display: block">
|
||||
<a-row>
|
||||
<a-col :span="10">Docker {{ $t('i18n.5b47861521') }}{{ item.name }}</a-col>
|
||||
<a-col :span="10"
|
||||
>{{ $t('i18n.2358e1ef49')
|
||||
}}{{ item.workspace && item.workspace.name }}</a-col
|
||||
>
|
||||
<a-col :span="10">{{ $t('i18n.2358e1ef49') }}{{ item.workspace && item.workspace.name }}</a-col>
|
||||
<a-col :span="4"> </a-col>
|
||||
</a-row>
|
||||
</a-list-item>
|
||||
@ -578,10 +546,7 @@
|
||||
<a-list-item style="display: block">
|
||||
<a-row>
|
||||
<a-col :span="10">{{ $t('i18n.f668c8c881') }}{{ item.name }}</a-col>
|
||||
<a-col :span="10"
|
||||
>{{ $t('i18n.2358e1ef49')
|
||||
}}{{ item.workspace && item.workspace.name }}</a-col
|
||||
>
|
||||
<a-col :span="10">{{ $t('i18n.2358e1ef49') }}{{ item.workspace && item.workspace.name }}</a-col>
|
||||
<a-col :span="4"> </a-col>
|
||||
</a-row>
|
||||
</a-list-item>
|
||||
|
@ -89,9 +89,7 @@ const conentScript = () => {
|
||||
socket_.onerror = (err) => {
|
||||
console.error(err)
|
||||
$notification.error({
|
||||
message: `web socket ${
|
||||
($t('i18n.7030ff6470'), $t('i18n.226a6f9cdd'))
|
||||
}`
|
||||
message: `web socket ${($t('i18n.7030ff6470'), $t('i18n.226a6f9cdd'))}`
|
||||
})
|
||||
}
|
||||
socket_.onclose = (err) => {
|
||||
|
@ -22,9 +22,7 @@
|
||||
:color="machineInfo && machineInfo.status === 1 ? 'green' : 'pink'"
|
||||
style="margin-right: 0"
|
||||
>
|
||||
{{
|
||||
statusMap[machineInfo && machineInfo.status] || $t('i18n.1622dc9b6b')
|
||||
}}
|
||||
{{ statusMap[machineInfo && machineInfo.status] || $t('i18n.1622dc9b6b') }}
|
||||
</a-tag>
|
||||
</template>
|
||||
<a-space direction="vertical" style="display: block">
|
||||
@ -347,12 +345,8 @@
|
||||
<a-page-header :title="item.name" :back-icon="false">
|
||||
<template #subTitle> {{ item.model }} </template>
|
||||
<a-descriptions size="small" :column="4">
|
||||
<a-descriptions-item :label="$t('i18n.faaadc447b')">{{
|
||||
item.serial
|
||||
}}</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.58f9666705')">{{
|
||||
renderSize(item.size)
|
||||
}}</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.faaadc447b')">{{ item.serial }}</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.58f9666705')">{{ renderSize(item.size) }}</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.9f70e40e04')">{{
|
||||
formatDuration(item.transferTime)
|
||||
}}</a-descriptions-item>
|
||||
@ -364,15 +358,11 @@
|
||||
<a-descriptions-item :label="$t('i18n.8900539e06')">
|
||||
{{ renderSize(item.writeBytes) }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.8fda053c83')">{{
|
||||
item.writes
|
||||
}}</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.8fda053c83')">{{ item.writes }}</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.86f3ec932c')">
|
||||
{{ renderSize(item.readBytes) }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.3b14c524f6')">{{
|
||||
item.reads
|
||||
}}</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.3b14c524f6')">{{ item.reads }}</a-descriptions-item>
|
||||
</a-descriptions>
|
||||
</a-page-header>
|
||||
</template>
|
||||
@ -465,15 +455,9 @@
|
||||
<a-descriptions-item label="MTU">
|
||||
{{ item.mtu }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.03f38597a6')"
|
||||
>{{ renderBpsSize(item.speed) }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.03f38597a6')">{{ renderBpsSize(item.speed) }} </a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.2a3b06a91a')"
|
||||
>{{
|
||||
item.knownVmMacAddr
|
||||
? $t('i18n.0a60ac8f02')
|
||||
: $t('i18n.c9744f45e7')
|
||||
}}
|
||||
>{{ item.knownVmMacAddr ? $t('i18n.0a60ac8f02') : $t('i18n.c9744f45e7') }}
|
||||
</a-descriptions-item>
|
||||
|
||||
<a-descriptions-item label="IPV4" :span="4">
|
||||
@ -482,30 +466,18 @@
|
||||
<a-descriptions-item label="IPV6" :span="4">
|
||||
<a-tag v-for="ipItem in item.ipv6addr || []" :key="ipItem">{{ ipItem }}</a-tag>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.7bcbf81120')"
|
||||
>{{ item.packetsRecv }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.7bcbf81120')">{{ item.packetsRecv }} </a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.c6a3ebf3c4')"
|
||||
>{{ renderSize(item.bytesRecv) }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.05cfc9af9d')"
|
||||
>{{ item.inErrors }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.5ef040a79d')"
|
||||
>{{ item.tnDrops }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.00b04e1bf0')"
|
||||
>{{ item.packetsSent }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.05cfc9af9d')">{{ item.inErrors }} </a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.5ef040a79d')">{{ item.tnDrops }} </a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.00b04e1bf0')">{{ item.packetsSent }} </a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.020d17aac6')"
|
||||
>{{ renderSize(item.bytesSent) }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.235f0b52a1')"
|
||||
>{{ item.outErrors }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.3f719b3e32')"
|
||||
>{{ item.collisions }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.235f0b52a1')">{{ item.outErrors }} </a-descriptions-item>
|
||||
<a-descriptions-item :label="$t('i18n.3f719b3e32')">{{ item.collisions }} </a-descriptions-item>
|
||||
</a-descriptions>
|
||||
</a-collapse-panel>
|
||||
</a-collapse>
|
||||
|
@ -45,9 +45,7 @@
|
||||
/>
|
||||
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -66,9 +64,7 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('i18n.a156349591')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{ $t('i18n.a156349591') }}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
|
@ -44,13 +44,9 @@
|
||||
/>
|
||||
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="createScript">{{
|
||||
$t('i18n.d9ac9228e8')
|
||||
}}</a-button>
|
||||
<a-button type="primary" @click="createScript">{{ $t('i18n.d9ac9228e8') }}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
<template #tableHelp>
|
||||
@ -87,9 +83,7 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('i18n.95b351c862')
|
||||
}}</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('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
@ -145,8 +139,7 @@
|
||||
<a-form-item>
|
||||
<template #label>
|
||||
<a-tooltip
|
||||
>{{ $t('i18n.2606b9d0d2')
|
||||
}}<template #title>{{ $t('i18n.73b7b05e6e') }}</template>
|
||||
>{{ $t('i18n.2606b9d0d2') }}<template #title>{{ $t('i18n.73b7b05e6e') }}</template>
|
||||
<QuestionCircleOutlined v-show="!temp.id" />
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
@ -50,9 +50,7 @@
|
||||
format="YYYY-MM-DD HH:mm:ss"
|
||||
@change="onchangeListLogTime"
|
||||
/>
|
||||
<a-button type="primary" @click="handleListLog">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" @click="handleListLog">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
<template #bodyCell="{ column, text, record }">
|
||||
@ -79,11 +77,7 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'refuse'">
|
||||
<span>{{
|
||||
text
|
||||
? $t('i18n.330363dfc5')
|
||||
: $t('i18n.7173f80900')
|
||||
}}</span>
|
||||
<span>{{ text ? $t('i18n.330363dfc5') : $t('i18n.7173f80900') }}</span>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
|
@ -179,7 +179,9 @@
|
||||
<template v-else-if="column.dataIndex === 'osOccupyMemory'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`${$t('i18n.ca32cdfd59')}${formatPercent(record.osOccupyMemory)},${$t('i18n.a0a3d583b9')}${renderSize(record.osMoneyTotal)}`"
|
||||
:title="`${$t('i18n.ca32cdfd59')}${formatPercent(record.osOccupyMemory)},${$t(
|
||||
'i18n.a0a3d583b9'
|
||||
)}${renderSize(record.osMoneyTotal)}`"
|
||||
>
|
||||
<span>{{ formatPercent(record.osOccupyMemory) }}/{{ renderSize(record.osMoneyTotal) }}</span>
|
||||
</a-tooltip>
|
||||
@ -199,9 +201,9 @@
|
||||
<template v-else-if="column.dataIndex === 'osOccupyCpu'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="`CPU${$t('i18n.afb9fe400b')}${formatPercent2Number(
|
||||
record.osOccupyCpu
|
||||
)}%,CPU${$t('i18n.40349f5514')}${record.osCpuCores}`"
|
||||
:title="`CPU${$t('i18n.afb9fe400b')}${formatPercent2Number(record.osOccupyCpu)}%,CPU${$t(
|
||||
'i18n.40349f5514'
|
||||
)}${record.osCpuCores}`"
|
||||
>
|
||||
<span>{{ (formatPercent2Number(record.osOccupyCpu) || '-') + '%' }} / {{ record.osCpuCores }}</span>
|
||||
</a-tooltip>
|
||||
|
@ -38,9 +38,7 @@
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button :loading="loading" type="primary" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.a4006e5c1e') }}</a-button>
|
||||
<a-button type="primary" @click="handleSqlUpload">{{ $t('i18n.90c0458a4c') }}</a-button>
|
||||
|
@ -83,7 +83,9 @@
|
||||
</template>
|
||||
<template v-else-if="column.dataIndex === 'url'">
|
||||
<a-tooltip
|
||||
:title="`${$t('i18n.f668c8c881')}${record.name || ''}/${$t('i18n.df3833270b')}${record.url || ''}/${$t('i18n.8d13037eb7')}${record.statusMsg || ''}`"
|
||||
:title="`${$t('i18n.f668c8c881')}${record.name || ''}/${$t('i18n.df3833270b')}${record.url || ''}/${$t(
|
||||
'i18n.8d13037eb7'
|
||||
)}${record.statusMsg || ''}`"
|
||||
>
|
||||
<a-button v-if="record.url" type="link" size="small" @click="openUrl(record.url)">
|
||||
{{ text }}
|
||||
|
@ -24,12 +24,8 @@
|
||||
</a-form-item>
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 2 }">
|
||||
<a-space>
|
||||
<a-button type="primary" class="btn" @click="onSubmit(false)">{{
|
||||
$t('i18n.be5fbbe34c')
|
||||
}}</a-button>
|
||||
<a-button type="primary" danger class="btn" @click="onSubmit(true)">{{
|
||||
$t('i18n.6aab88d6a3')
|
||||
}}</a-button>
|
||||
<a-button type="primary" class="btn" @click="onSubmit(false)">{{ $t('i18n.be5fbbe34c') }}</a-button>
|
||||
<a-button type="primary" danger class="btn" @click="onSubmit(true)">{{ $t('i18n.6aab88d6a3') }}</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
@ -100,11 +96,7 @@
|
||||
{{ $t('i18n.a0d0ebc519') }}
|
||||
</span>
|
||||
</template>
|
||||
<a-alert
|
||||
:message="`${$t('i18n.c9b79a2b4f')}`"
|
||||
style="margin-top: 10px; margin-bottom: 20px"
|
||||
banner
|
||||
/>
|
||||
<a-alert :message="`${$t('i18n.c9b79a2b4f')}`" style="margin-top: 10px; margin-bottom: 20px" banner />
|
||||
<a-row justify="center" type="flex">
|
||||
<a-form ref="editProxyForm" :model="proxyConfigData">
|
||||
<a-row v-for="(item, index) in proxyConfigData.globalProxy" :key="index">
|
||||
@ -119,11 +111,7 @@
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.fc954d25ec')">
|
||||
<a-input
|
||||
v-model:value="item.proxyAddress"
|
||||
style="width: 30vw"
|
||||
:placeholder="$t('i18n.dcf14deb0e')"
|
||||
>
|
||||
<a-input v-model:value="item.proxyAddress" style="width: 30vw" :placeholder="$t('i18n.dcf14deb0e')">
|
||||
<template #addonBefore>
|
||||
<a-select v-model:value="item.proxyType" style="width: 100px">
|
||||
<a-select-option value="HTTP">HTTP</a-select-option>
|
||||
@ -170,9 +158,7 @@
|
||||
"
|
||||
>{{ $t('i18n.66ab5e9f24') }}</a-button
|
||||
>
|
||||
<a-button type="primary" @click="saveProxyConfigHannder">{{
|
||||
$t('i18n.be5fbbe34c')
|
||||
}}</a-button>
|
||||
<a-button type="primary" @click="saveProxyConfigHannder">{{ $t('i18n.be5fbbe34c') }}</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
@ -272,9 +258,7 @@ export default {
|
||||
|
||||
this.globalLoading({
|
||||
spinning: true,
|
||||
tip:
|
||||
(msg || this.$t('i18n.85da2e5bb1')) +
|
||||
`,${this.$t('i18n.809b12d6a0')},${this.$t('i18n.af013dd9dc')}`
|
||||
tip: (msg || this.$t('i18n.85da2e5bb1')) + `,${this.$t('i18n.809b12d6a0')},${this.$t('i18n.af013dd9dc')}`
|
||||
})
|
||||
setTimeout(() => {
|
||||
//
|
||||
|
@ -123,8 +123,7 @@ export default {
|
||||
$confirm({
|
||||
title: this.$t('i18n.c4535759ee'),
|
||||
zIndex: 1009,
|
||||
content:
|
||||
this.$t('i18n.bd8b1dbc5a') + this.addName + this.$t('i18n.14b58d4b77'),
|
||||
content: this.$t('i18n.bd8b1dbc5a') + this.addName + this.$t('i18n.14b58d4b77'),
|
||||
okText: this.$t('i18n.e83a256e4f'),
|
||||
cancelText: this.$t('i18n.625fb26b4b'),
|
||||
onOk: () => {
|
||||
|
@ -2,20 +2,12 @@
|
||||
<div class="">
|
||||
<a-form ref="editForm" :model="temp" :rules="rules" :label-col="{ span: 4 }" :wrapper-col="{ span: 16 }">
|
||||
<a-form-item :label="$t('i18n.1f130d11d1')" name="host">
|
||||
<a-auto-complete
|
||||
v-model:value="temp.host"
|
||||
:options="hostDataSource"
|
||||
:placeholder="$t('i18n.c6209653e4')"
|
||||
>
|
||||
<a-auto-complete v-model:value="temp.host" :options="hostDataSource" :placeholder="$t('i18n.c6209653e4')">
|
||||
<template #option="item"> {{ item.title }} {{ item.value }} </template>
|
||||
</a-auto-complete>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.fdcadf68a5')" name="port">
|
||||
<a-auto-complete
|
||||
v-model:value="temp.port"
|
||||
:placeholder="$t('i18n.e074f6b6af')"
|
||||
:options="portDataSource"
|
||||
>
|
||||
<a-auto-complete v-model:value="temp.port" :placeholder="$t('i18n.e074f6b6af')" :options="portDataSource">
|
||||
<template #option="item"> {{ item.title }} {{ item.value }} </template>
|
||||
</a-auto-complete>
|
||||
</a-form-item>
|
||||
@ -72,33 +64,13 @@
|
||||
}}</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
<a-alert
|
||||
:message="$t('i18n.84597bf5bc')"
|
||||
:description="$t('i18n.fdbac93380')"
|
||||
type="info"
|
||||
show-icon
|
||||
/>
|
||||
<a-alert :message="$t('i18n.84597bf5bc')" :description="$t('i18n.fdbac93380')" type="info" show-icon />
|
||||
<br />
|
||||
<a-alert
|
||||
:message="$t('i18n.8a49e2de39')"
|
||||
type="info"
|
||||
:description="$t('i18n.127de26370')"
|
||||
show-icon
|
||||
/>
|
||||
<a-alert :message="$t('i18n.8a49e2de39')" type="info" :description="$t('i18n.127de26370')" show-icon />
|
||||
<br />
|
||||
<a-alert
|
||||
:message="$t('i18n.8be76af198')"
|
||||
:description="$t('i18n.61c0f5345d')"
|
||||
type="info"
|
||||
show-icon
|
||||
/>
|
||||
<a-alert :message="$t('i18n.8be76af198')" :description="$t('i18n.61c0f5345d')" type="info" show-icon />
|
||||
<br />
|
||||
<a-alert
|
||||
:message="$t('i18n.0a54bd6883')"
|
||||
:description="$t('i18n.197be96301')"
|
||||
type="info"
|
||||
show-icon
|
||||
/>
|
||||
<a-alert :message="$t('i18n.0a54bd6883')" :description="$t('i18n.197be96301')" type="info" show-icon />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -20,26 +20,15 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.99593f7623')" name="clientId">
|
||||
<a-input
|
||||
v-model:value="dingtalk.clientId"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.a0b9b4e048')"
|
||||
/>
|
||||
<a-input v-model:value="dingtalk.clientId" type="text" :placeholder="$t('i18n.a0b9b4e048')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.e0ec07be7d')" name="clientSecret">
|
||||
<a-input-password
|
||||
v-model:value="dingtalk.clientSecret"
|
||||
:placeholder="$t('i18n.52c6af8174')"
|
||||
/>
|
||||
<a-input-password v-model:value="dingtalk.clientSecret" :placeholder="$t('i18n.52c6af8174')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.51d47ddc69')" name="redirectUri">
|
||||
<template #help>{{ $t('i18n.d27cf91998') }}{{ `${host}/oauth2-dingtalk` }}</template>
|
||||
<a-input
|
||||
v-model:value="dingtalk.redirectUri"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.8363193305')"
|
||||
/>
|
||||
<a-input v-model:value="dingtalk.redirectUri" type="text" :placeholder="$t('i18n.8363193305')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.953357d914')" name="ignoreCheckState">
|
||||
@ -56,11 +45,7 @@
|
||||
:un-checked-children="$t('i18n.5c56a88945')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="dingtalk.autoCreteUser"
|
||||
:label="$t('i18n.f49dfdace4')"
|
||||
name="permissionGroup"
|
||||
>
|
||||
<a-form-item v-if="dingtalk.autoCreteUser" :label="$t('i18n.f49dfdace4')" name="permissionGroup">
|
||||
<template #help>{{ $t('i18n.434d9bd852') }}</template>
|
||||
<a-select
|
||||
v-model:value="dingtalk.permissionGroup"
|
||||
@ -84,9 +69,7 @@
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 4 }">
|
||||
<a-button type="primary" class="btn" @click="onSubmit('dingtalk')">{{
|
||||
$t('i18n.939d5345ad')
|
||||
}}</a-button>
|
||||
<a-button type="primary" class="btn" @click="onSubmit('dingtalk')">{{ $t('i18n.939d5345ad') }}</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-tab-pane>
|
||||
@ -100,26 +83,15 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.99593f7623')" name="clientId">
|
||||
<a-input
|
||||
v-model:value="feishu.clientId"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.a0b9b4e048')"
|
||||
/>
|
||||
<a-input v-model:value="feishu.clientId" type="text" :placeholder="$t('i18n.a0b9b4e048')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.e0ec07be7d')" name="clientSecret">
|
||||
<a-input-password
|
||||
v-model:value="feishu.clientSecret"
|
||||
:placeholder="$t('i18n.52c6af8174')"
|
||||
/>
|
||||
<a-input-password v-model:value="feishu.clientSecret" :placeholder="$t('i18n.52c6af8174')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.51d47ddc69')" name="redirectUri">
|
||||
<template #help>{{ $t('i18n.d27cf91998') }}{{ `${host}/oauth2-feishu` }}</template>
|
||||
<a-input
|
||||
v-model:value="feishu.redirectUri"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.8363193305')"
|
||||
/>
|
||||
<a-input v-model:value="feishu.redirectUri" type="text" :placeholder="$t('i18n.8363193305')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.953357d914')" name="ignoreCheckState">
|
||||
@ -136,11 +108,7 @@
|
||||
:un-checked-children="$t('i18n.5c56a88945')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="feishu.autoCreteUser"
|
||||
:label="$t('i18n.f49dfdace4')"
|
||||
name="permissionGroup"
|
||||
>
|
||||
<a-form-item v-if="feishu.autoCreteUser" :label="$t('i18n.f49dfdace4')" name="permissionGroup">
|
||||
<template #help>{{ $t('i18n.434d9bd852') }}</template>
|
||||
<a-select
|
||||
v-model:value="feishu.permissionGroup"
|
||||
@ -164,9 +132,7 @@
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 4 }">
|
||||
<a-button type="primary" class="btn" @click="onSubmit('feishu')">{{
|
||||
$t('i18n.939d5345ad')
|
||||
}}</a-button>
|
||||
<a-button type="primary" class="btn" @click="onSubmit('feishu')">{{ $t('i18n.939d5345ad') }}</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-tab-pane>
|
||||
@ -186,35 +152,18 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.f66847edb4')" name="agentId">
|
||||
<a-input
|
||||
v-model:value="wechat_enterprise.agentId"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.68c55772ca')"
|
||||
/>
|
||||
<a-input v-model:value="wechat_enterprise.agentId" type="text" :placeholder="$t('i18n.68c55772ca')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.99593f7623')" name="clientId">
|
||||
<a-input
|
||||
v-model:value="wechat_enterprise.clientId"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.a0b9b4e048')"
|
||||
/>
|
||||
<a-input v-model:value="wechat_enterprise.clientId" type="text" :placeholder="$t('i18n.a0b9b4e048')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.e0ec07be7d')" name="clientSecret">
|
||||
<a-input-password
|
||||
v-model:value="wechat_enterprise.clientSecret"
|
||||
:placeholder="$t('i18n.52c6af8174')"
|
||||
/>
|
||||
<a-input-password v-model:value="wechat_enterprise.clientSecret" :placeholder="$t('i18n.52c6af8174')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.51d47ddc69')" name="redirectUri">
|
||||
<template #help
|
||||
>{{ $t('i18n.d27cf91998') }}{{ `${host}/oauth2-wechat_enterprise` }}</template
|
||||
>
|
||||
<a-input
|
||||
v-model:value="wechat_enterprise.redirectUri"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.8363193305')"
|
||||
/>
|
||||
<template #help>{{ $t('i18n.d27cf91998') }}{{ `${host}/oauth2-wechat_enterprise` }}</template>
|
||||
<a-input v-model:value="wechat_enterprise.redirectUri" type="text" :placeholder="$t('i18n.8363193305')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.953357d914')" name="ignoreCheckState">
|
||||
@ -231,11 +180,7 @@
|
||||
:un-checked-children="$t('i18n.5c56a88945')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="wechat_enterprise.autoCreteUser"
|
||||
:label="$t('i18n.f49dfdace4')"
|
||||
name="permissionGroup"
|
||||
>
|
||||
<a-form-item v-if="wechat_enterprise.autoCreteUser" :label="$t('i18n.f49dfdace4')" name="permissionGroup">
|
||||
<template #help>{{ $t('i18n.434d9bd852') }}</template>
|
||||
<a-select
|
||||
v-model:value="wechat_enterprise.permissionGroup"
|
||||
@ -275,46 +220,23 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.99593f7623')" name="clientId">
|
||||
<a-input
|
||||
v-model:value="maxkey.clientId"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.a0b9b4e048')"
|
||||
/>
|
||||
<a-input v-model:value="maxkey.clientId" type="text" :placeholder="$t('i18n.a0b9b4e048')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.e0ec07be7d')" name="clientSecret">
|
||||
<a-input-password
|
||||
v-model:value="maxkey.clientSecret"
|
||||
:placeholder="$t('i18n.52c6af8174')"
|
||||
/>
|
||||
<a-input-password v-model:value="maxkey.clientSecret" :placeholder="$t('i18n.52c6af8174')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.bcf48bf7a8')" name="authorizationUri">
|
||||
<a-input
|
||||
v-model:value="maxkey.authorizationUri"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.543296e005')"
|
||||
/>
|
||||
<a-input v-model:value="maxkey.authorizationUri" type="text" :placeholder="$t('i18n.543296e005')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.79a7072ee1')" name="accessTokenUri">
|
||||
<a-input
|
||||
v-model:value="maxkey.accessTokenUri"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.8704e7bdb7')"
|
||||
/>
|
||||
<a-input v-model:value="maxkey.accessTokenUri" type="text" :placeholder="$t('i18n.8704e7bdb7')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.2527efedcd')" name="userInfoUri">
|
||||
<a-input
|
||||
v-model:value="maxkey.userInfoUri"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.ce84c416f9')"
|
||||
/>
|
||||
<a-input v-model:value="maxkey.userInfoUri" type="text" :placeholder="$t('i18n.ce84c416f9')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.51d47ddc69')" name="redirectUri">
|
||||
<template #help>{{ $t('i18n.d27cf91998') }}{{ `${host}/oauth2-maxkey` }}</template>
|
||||
<a-input
|
||||
v-model:value="maxkey.redirectUri"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.8363193305')"
|
||||
/>
|
||||
<a-input v-model:value="maxkey.redirectUri" type="text" :placeholder="$t('i18n.8363193305')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.953357d914')" name="ignoreCheckState">
|
||||
@ -332,11 +254,7 @@
|
||||
:un-checked-children="$t('i18n.5c56a88945')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="maxkey.autoCreteUser"
|
||||
:label="$t('i18n.f49dfdace4')"
|
||||
name="permissionGroup"
|
||||
>
|
||||
<a-form-item v-if="maxkey.autoCreteUser" :label="$t('i18n.f49dfdace4')" name="permissionGroup">
|
||||
<template #help>{{ $t('i18n.434d9bd852') }}</template>
|
||||
<a-select
|
||||
v-model:value="maxkey.permissionGroup"
|
||||
@ -361,9 +279,7 @@
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 4 }">
|
||||
<a-button type="primary" class="btn" @click="onSubmit('maxkey')">{{
|
||||
$t('i18n.939d5345ad')
|
||||
}}</a-button>
|
||||
<a-button type="primary" class="btn" @click="onSubmit('maxkey')">{{ $t('i18n.939d5345ad') }}</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-tab-pane>
|
||||
@ -377,25 +293,14 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.99593f7623')" name="clientId">
|
||||
<a-input
|
||||
v-model:value="gitee.clientId"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.a0b9b4e048')"
|
||||
/>
|
||||
<a-input v-model:value="gitee.clientId" type="text" :placeholder="$t('i18n.a0b9b4e048')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.e0ec07be7d')" name="clientSecret">
|
||||
<a-input-password
|
||||
v-model:value="gitee.clientSecret"
|
||||
:placeholder="$t('i18n.52c6af8174')"
|
||||
/>
|
||||
<a-input-password v-model:value="gitee.clientSecret" :placeholder="$t('i18n.52c6af8174')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.51d47ddc69')" name="redirectUri">
|
||||
<template #help>{{ $t('i18n.d27cf91998') }}{{ `${host}/oauth2-gitee` }}</template>
|
||||
<a-input
|
||||
v-model:value="gitee.redirectUri"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.8363193305')"
|
||||
/>
|
||||
<a-input v-model:value="gitee.redirectUri" type="text" :placeholder="$t('i18n.8363193305')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.953357d914')" name="ignoreCheckState">
|
||||
@ -413,11 +318,7 @@
|
||||
:un-checked-children="$t('i18n.5c56a88945')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="gitee.autoCreteUser"
|
||||
:label="$t('i18n.f49dfdace4')"
|
||||
name="permissionGroup"
|
||||
>
|
||||
<a-form-item v-if="gitee.autoCreteUser" :label="$t('i18n.f49dfdace4')" name="permissionGroup">
|
||||
<template #help>{{ $t('i18n.434d9bd852') }}</template>
|
||||
<a-select
|
||||
v-model:value="gitee.permissionGroup"
|
||||
@ -442,9 +343,7 @@
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 4 }">
|
||||
<a-button type="primary" class="btn" @click="onSubmit('gitee')">{{
|
||||
$t('i18n.939d5345ad')
|
||||
}}</a-button>
|
||||
<a-button type="primary" class="btn" @click="onSubmit('gitee')">{{ $t('i18n.939d5345ad') }}</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-tab-pane>
|
||||
@ -462,26 +361,15 @@
|
||||
<a-input v-model:value="mygitlab.host" type="text" :placeholder="$t('i18n.0d48f8e881')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.99593f7623')" name="clientId">
|
||||
<a-input
|
||||
v-model:value="mygitlab.clientId"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.a0b9b4e048')"
|
||||
/>
|
||||
<a-input v-model:value="mygitlab.clientId" type="text" :placeholder="$t('i18n.a0b9b4e048')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.e0ec07be7d')" name="clientSecret">
|
||||
<a-input-password
|
||||
v-model:value="mygitlab.clientSecret"
|
||||
:placeholder="$t('i18n.52c6af8174')"
|
||||
/>
|
||||
<a-input-password v-model:value="mygitlab.clientSecret" :placeholder="$t('i18n.52c6af8174')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.51d47ddc69')" name="redirectUri">
|
||||
<template #help>{{ $t('i18n.d27cf91998') }}{{ `${host}/oauth2-mygitlab` }}</template>
|
||||
<a-input
|
||||
v-model:value="mygitlab.redirectUri"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.8363193305')"
|
||||
/>
|
||||
<a-input v-model:value="mygitlab.redirectUri" type="text" :placeholder="$t('i18n.8363193305')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.953357d914')" name="ignoreCheckState">
|
||||
@ -499,11 +387,7 @@
|
||||
:un-checked-children="$t('i18n.5c56a88945')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="mygitlab.autoCreteUser"
|
||||
:label="$t('i18n.f49dfdace4')"
|
||||
name="permissionGroup"
|
||||
>
|
||||
<a-form-item v-if="mygitlab.autoCreteUser" :label="$t('i18n.f49dfdace4')" name="permissionGroup">
|
||||
<template #help>{{ $t('i18n.434d9bd852') }}</template>
|
||||
<a-select
|
||||
v-model:value="mygitlab.permissionGroup"
|
||||
@ -528,9 +412,7 @@
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 4 }">
|
||||
<a-button type="primary" class="btn" @click="onSubmit('mygitlab')">{{
|
||||
$t('i18n.939d5345ad')
|
||||
}}</a-button>
|
||||
<a-button type="primary" class="btn" @click="onSubmit('mygitlab')">{{ $t('i18n.939d5345ad') }}</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-tab-pane>
|
||||
@ -545,26 +427,15 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.99593f7623')" name="clientId">
|
||||
<a-input
|
||||
v-model:value="github.clientId"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.a0b9b4e048')"
|
||||
/>
|
||||
<a-input v-model:value="github.clientId" type="text" :placeholder="$t('i18n.a0b9b4e048')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.e0ec07be7d')" name="clientSecret">
|
||||
<a-input-password
|
||||
v-model:value="github.clientSecret"
|
||||
:placeholder="$t('i18n.52c6af8174')"
|
||||
/>
|
||||
<a-input-password v-model:value="github.clientSecret" :placeholder="$t('i18n.52c6af8174')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.51d47ddc69')" name="redirectUri">
|
||||
<template #help>{{ $t('i18n.d27cf91998') }}{{ `${host}/oauth2-github` }}</template>
|
||||
<a-input
|
||||
v-model:value="github.redirectUri"
|
||||
type="text"
|
||||
:placeholder="$t('i18n.8363193305')"
|
||||
/>
|
||||
<a-input v-model:value="github.redirectUri" type="text" :placeholder="$t('i18n.8363193305')" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="$t('i18n.953357d914')" name="ignoreCheckState">
|
||||
@ -582,11 +453,7 @@
|
||||
:un-checked-children="$t('i18n.5c56a88945')"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
v-if="github.autoCreteUser"
|
||||
:label="$t('i18n.f49dfdace4')"
|
||||
name="permissionGroup"
|
||||
>
|
||||
<a-form-item v-if="github.autoCreteUser" :label="$t('i18n.f49dfdace4')" name="permissionGroup">
|
||||
<template #help>{{ $t('i18n.434d9bd852') }}</template>
|
||||
<a-select
|
||||
v-model:value="github.permissionGroup"
|
||||
@ -611,9 +478,7 @@
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :wrapper-col="{ span: 14, offset: 4 }">
|
||||
<a-button type="primary" class="btn" @click="onSubmit('github')">{{
|
||||
$t('i18n.939d5345ad')
|
||||
}}</a-button>
|
||||
<a-button type="primary" class="btn" @click="onSubmit('github')">{{ $t('i18n.939d5345ad') }}</a-button>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-tab-pane>
|
||||
|
@ -1,10 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-page-header :back-icon="false">
|
||||
<template #title>
|
||||
{{ $t('i18n.57d9738dfe') }}{{ getUserInfo.name
|
||||
}}{{ $t('i18n.b4df22abfb') }}</template
|
||||
>
|
||||
<template #title> {{ $t('i18n.57d9738dfe') }}{{ getUserInfo.name }}{{ $t('i18n.b4df22abfb') }}</template>
|
||||
<template #subTitle>{{ $t('i18n.0af5d9f8e8') }} </template>
|
||||
<template #tags>
|
||||
<a-tag color="blue">
|
||||
@ -33,8 +30,7 @@
|
||||
<a-badge color="blue" :count="statData['workspaceCount'] || '0'" show-zero />
|
||||
</span>
|
||||
<span
|
||||
>{{ $t('i18n.5866b4bced')
|
||||
}}<a-badge color="cyan" :count="statData['clusterCount'] || '0'" show-zero
|
||||
>{{ $t('i18n.5866b4bced') }}<a-badge color="cyan" :count="statData['clusterCount'] || '0'" show-zero
|
||||
/></span>
|
||||
</a-space>
|
||||
</a-page-header>
|
||||
|
@ -65,15 +65,9 @@
|
||||
>
|
||||
<a-select-option v-for="item in groupList" :key="item">{{ item }}</a-select-option>
|
||||
</a-select>
|
||||
<a-button :loading="loading" type="primary" @click="getNodeList">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button :loading="loading" type="primary" @click="getNodeList">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
|
||||
<a-select
|
||||
v-model:value="temp.protocol"
|
||||
:placeholder="$t('i18n.0836332bf6')"
|
||||
class="search-input-item"
|
||||
>
|
||||
<a-select v-model:value="temp.protocol" :placeholder="$t('i18n.0836332bf6')" class="search-input-item">
|
||||
<a-select-option value="WebSocket">WebSocket</a-select-option>
|
||||
<a-select-option value="Http">Http</a-select-option>
|
||||
</a-select>
|
||||
@ -96,9 +90,7 @@
|
||||
</a-space>
|
||||
</template>
|
||||
<template #toolPrefix>
|
||||
<a-tooltip
|
||||
:title="`${$t('i18n.3f78f88499')}${agentTimeStamp || $t('i18n.1622dc9b6b')}`"
|
||||
>
|
||||
<a-tooltip :title="`${$t('i18n.3f78f88499')}${agentTimeStamp || $t('i18n.1622dc9b6b')}`">
|
||||
Agent{{ $t('i18n.2684c4634d') }}{{ version_filter(agentVersion) }}
|
||||
<a-tag v-if="temp.upgrade" color="pink" @click="downloadRemoteEvent">
|
||||
{{ $t('i18n.ac2f4259f1') }}{{ temp.newVersion }} <DownloadOutlined />
|
||||
|
@ -50,10 +50,7 @@
|
||||
</template>
|
||||
<template #bodyCell="{ column, text, record }">
|
||||
<template v-if="column.dataIndex === 'value'">
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
:title="record.privacy === 1 ? $t('i18n.b12d003367') : text"
|
||||
>
|
||||
<a-tooltip placement="topLeft" :title="record.privacy === 1 ? $t('i18n.b12d003367') : text">
|
||||
<EyeInvisibleOutlined v-if="record.privacy === 1" />
|
||||
<span v-else>{{ text }}</span>
|
||||
</a-tooltip>
|
||||
@ -65,16 +62,12 @@
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'workspaceId'">
|
||||
<span>{{
|
||||
text === 'GLOBAL' ? $t('i18n.2be75b1044') : $t('i18n.691b11e443')
|
||||
}}</span>
|
||||
<span>{{ text === 'GLOBAL' ? $t('i18n.2be75b1044') : $t('i18n.691b11e443') }}</span>
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="handleEnvEdit(record)">{{
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleEnvEdit(record)">{{ $t('i18n.95b351c862') }}</a-button>
|
||||
<a-button size="small" type="primary" :disabled="record.privacy === 1" @click="handleTrigger(record)">{{
|
||||
$t('i18n.4696724ed3')
|
||||
}}</a-button>
|
||||
@ -98,21 +91,10 @@
|
||||
>
|
||||
<a-form ref="editEnvForm" :rules="rulesEnv" :model="envTemp" :label-col="{ span: 4 }" :wrapper-col="{ span: 18 }">
|
||||
<a-form-item :label="$t('i18n.d7ec2d3fea')" name="name">
|
||||
<a-input
|
||||
v-model:value="envTemp.name"
|
||||
:max-length="50"
|
||||
:placeholder="$t('i18n.7cb8d163bb')"
|
||||
/>
|
||||
<a-input v-model:value="envTemp.name" :max-length="50" :placeholder="$t('i18n.7cb8d163bb')" />
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
:label="$t('i18n.fe7509e0ed')"
|
||||
:prop="`${envTemp.privacy === 1 ? '' : 'value'}`"
|
||||
>
|
||||
<a-textarea
|
||||
v-model:value="envTemp.value"
|
||||
:rows="5"
|
||||
:placeholder="$t('i18n.9a2ee7044f')"
|
||||
/>
|
||||
<a-form-item :label="$t('i18n.fe7509e0ed')" :prop="`${envTemp.privacy === 1 ? '' : 'value'}`">
|
||||
<a-textarea v-model:value="envTemp.value" :rows="5" :placeholder="$t('i18n.9a2ee7044f')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.3bdd08adab')" name="description">
|
||||
<a-textarea
|
||||
@ -188,9 +170,7 @@
|
||||
<a-tabs default-active-key="1">
|
||||
<template #rightExtra>
|
||||
<a-tooltip :title="$t('i18n.01ad26f4a9')">
|
||||
<a-button type="primary" size="small" @click="resetTrigger">{{
|
||||
$t('i18n.4b9c3271dc')
|
||||
}}</a-button>
|
||||
<a-button type="primary" size="small" @click="resetTrigger">{{ $t('i18n.4b9c3271dc') }}</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<a-tab-pane key="1" :tab="$t('i18n.8dc09ebe97')">
|
||||
|
@ -68,9 +68,7 @@
|
||||
<a-select-option v-for="item in clusterList" :key="item.id">{{ item.name }}</a-select-option>
|
||||
</a-select>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
<a-tooltip>
|
||||
@ -121,23 +119,13 @@
|
||||
|
||||
<template v-else-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="configMeun(record)">{{
|
||||
$t('i18n.4ccbdc5301')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="configWhiteDir(record)">{{
|
||||
$t('i18n.3d48c9da09')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="viewEnvVar(record)">{{
|
||||
$t('i18n.ddc7d28b7b')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{ $t('i18n.95b351c862') }}</a-button>
|
||||
<a-button size="small" type="primary" @click="configMeun(record)">{{ $t('i18n.4ccbdc5301') }}</a-button>
|
||||
<a-button size="small" type="primary" @click="configWhiteDir(record)">{{ $t('i18n.3d48c9da09') }}</a-button>
|
||||
<a-button size="small" type="primary" @click="viewEnvVar(record)">{{ $t('i18n.ddc7d28b7b') }}</a-button>
|
||||
|
||||
<a-tooltip v-if="record.id === 'DEFAULT'" :title="$t('i18n.0c0633c367')">
|
||||
<a-button size="small" type="primary" danger :disabled="true">{{
|
||||
$t('i18n.2f4aaddde3')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" danger :disabled="true">{{ $t('i18n.2f4aaddde3') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button v-else size="small" type="primary" danger @click="handleDelete(record)">{{
|
||||
$t('i18n.2f4aaddde3')
|
||||
@ -174,11 +162,7 @@
|
||||
style="padding-top: 15px"
|
||||
>
|
||||
<a-form-item :label="$t('i18n.d7ec2d3fea')" name="name">
|
||||
<a-input
|
||||
v-model:value="temp.name"
|
||||
:max-length="50"
|
||||
:placeholder="$t('i18n.6a588459d0')"
|
||||
/>
|
||||
<a-input v-model:value="temp.name" :max-length="50" :placeholder="$t('i18n.6a588459d0')" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="$t('i18n.9b5f172ebe')" name="clusterInfoId">
|
||||
<a-select
|
||||
@ -309,9 +293,7 @@
|
||||
"
|
||||
>
|
||||
<a-alert :message="$t('i18n.a35740ae41')" type="error" show-icon>
|
||||
<template #description>
|
||||
{{ $t('i18n.6b46e2bfae') }},{{ $t('i18n.86b7eb5e83') }}</template
|
||||
>
|
||||
<template #description> {{ $t('i18n.6b46e2bfae') }},{{ $t('i18n.86b7eb5e83') }}</template>
|
||||
</a-alert>
|
||||
|
||||
<a-tree :tree-data="treeData" default-expand-all :field-names="preDeleteReplaceFields" :show-line="true">
|
||||
@ -327,12 +309,8 @@
|
||||
{{ $t('i18n.f932eff53e') }}
|
||||
</a-tag>
|
||||
|
||||
<a-tag v-if="dataRef.workspaceBind === 2" color="cyan">{{
|
||||
$t('i18n.686a19db6a')
|
||||
}}</a-tag>
|
||||
<a-tag v-else-if="dataRef.workspaceBind === 3" color="blue">{{
|
||||
$t('i18n.9c3a3e1b03')
|
||||
}}</a-tag>
|
||||
<a-tag v-if="dataRef.workspaceBind === 2" color="cyan">{{ $t('i18n.686a19db6a') }}</a-tag>
|
||||
<a-tag v-else-if="dataRef.workspaceBind === 3" color="blue">{{ $t('i18n.9c3a3e1b03') }}</a-tag>
|
||||
<a-tag v-else color="purple">{{ $t('i18n.ab006f89e7') }}</a-tag>
|
||||
</template>
|
||||
</template>
|
||||
|
@ -15,22 +15,18 @@
|
||||
<strong>{{ $t('i18n.609b5f0a08') }}</strong> :{{ $t('i18n.3444bf320c') }}~23
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{ $t('i18n.3edddd85ac') }}</strong> :{{
|
||||
$t('i18n.0b35ccf5df')
|
||||
}}~31,<strong>"L"</strong>
|
||||
<strong>{{ $t('i18n.3edddd85ac') }}</strong> :{{ $t('i18n.0b35ccf5df') }}~31,<strong>"L"</strong>
|
||||
{{ $t('i18n.7b961e05d0') }}
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{ $t('i18n.e42b99d599') }}</strong>
|
||||
:{{ $t('i18n.0b35ccf5df') }}~12,{{ $t('i18n.41cb3d959a') }}"jan","feb", "mar",
|
||||
"apr", "may","jun", "jul", "aug","sep","oct", "nov", "dec"
|
||||
:{{ $t('i18n.0b35ccf5df') }}~12,{{ $t('i18n.41cb3d959a') }}"jan","feb", "mar", "apr", "may","jun",
|
||||
"jul", "aug","sep","oct", "nov", "dec"
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{ $t('i18n.a657f46f5b') }}</strong> :{{
|
||||
$t('i18n.3444bf320c')
|
||||
}}
|
||||
(Sunday)~6(Saturday),7{{ $t('i18n.6d4ca2c602') }}"sun","mon", "tue", "wed", "thu","fri",
|
||||
"sat",<strong>"L"</strong>
|
||||
<strong>{{ $t('i18n.a657f46f5b') }}</strong> :{{ $t('i18n.3444bf320c') }} (Sunday)~6(Saturday),7{{
|
||||
$t('i18n.6d4ca2c602')
|
||||
}}"sun","mon", "tue", "wed", "thu","fri", "sat",<strong>"L"</strong>
|
||||
{{ $t('i18n.207d9580c1') }}
|
||||
</li>
|
||||
</ol>
|
||||
@ -71,15 +67,13 @@
|
||||
{{ $t('i18n.932b4b7f79') }}
|
||||
|
||||
<pre>
|
||||
{{ $t('i18n.66aff87835') }} > {{ $t('i18n.f0f0cf0143') }} > {{
|
||||
$t('i18n.d2fbc22d41')
|
||||
}},)
|
||||
{{ $t('i18n.66aff87835') }} > {{ $t('i18n.f0f0cf0143') }} > {{ $t('i18n.d2fbc22d41') }},)
|
||||
</pre
|
||||
>
|
||||
<p>
|
||||
{{ $t('i18n.b2c5b372f0') }},3,6/3{{ $t('i18n.e924fb42bc') }}“/”{{
|
||||
$t('i18n.a138d343fb')
|
||||
}},3,(6/3),{{ $t('i18n.d814a262ef') }},3,6{{ $t('i18n.755ac8eaae') }}<br />
|
||||
{{ $t('i18n.b2c5b372f0') }},3,6/3{{ $t('i18n.e924fb42bc') }}“/”{{ $t('i18n.a138d343fb') }},3,(6/3),{{
|
||||
$t('i18n.d814a262ef')
|
||||
}},3,6{{ $t('i18n.755ac8eaae') }}<br />
|
||||
<br />
|
||||
</p>
|
||||
|
||||
@ -90,11 +84,7 @@
|
||||
<li><strong>* * * * *</strong> :{{ $t('i18n.5114ebf444') }}</li>
|
||||
<li><strong>*/2 * * * *</strong> :{{ $t('i18n.a22fa8941a') }}</li>
|
||||
<li><strong>* 12 * * *</strong> :12{{ $t('i18n.c1fc70650e') }}</li>
|
||||
<li>
|
||||
<strong>59 11 * * 1,2</strong> :{{ $t('i18n.11103e19bd') }}:59{{
|
||||
$t('i18n.1a6aa24e76')
|
||||
}}
|
||||
</li>
|
||||
<li><strong>59 11 * * 1,2</strong> :{{ $t('i18n.11103e19bd') }}:59{{ $t('i18n.1a6aa24e76') }}</li>
|
||||
<li>
|
||||
<strong>3-18/5 * * * *</strong>
|
||||
:3~18{{ $t('i18n.71a312821c') }}:03, 0:08, 0:13, 0:18, 1:03, 1:08……
|
||||
|
@ -35,22 +35,16 @@
|
||||
@press-enter="loadData"
|
||||
/>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
<a-button type="primary" @click="handleAdd">{{ $t('i18n.66ab5e9f24') }}</a-button>
|
||||
<a-button type="primary" @click="systemNotificationOpen = true">{{
|
||||
$t('i18n.7c223eb6e9')
|
||||
}}</a-button>
|
||||
<a-button type="primary" @click="systemNotificationOpen = true">{{ $t('i18n.7c223eb6e9') }}</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
<template #tableBodyCell="{ column, text, record }">
|
||||
<template v-if="column.dataIndex === 'operation'">
|
||||
<a-space>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{
|
||||
$t('i18n.95b351c862')
|
||||
}}</a-button>
|
||||
<a-button size="small" type="primary" @click="handleEdit(record)">{{ $t('i18n.95b351c862') }}</a-button>
|
||||
<a-dropdown>
|
||||
<a @click="(e) => e.preventDefault()"> {{ $t('i18n.0ec9eaf9c3') }} <DownOutlined /> </a>
|
||||
<template #overlay>
|
||||
|
@ -48,9 +48,7 @@
|
||||
@change="onChangeTime"
|
||||
/>
|
||||
<a-tooltip :title="$t('i18n.4838a3bd20')">
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{
|
||||
$t('i18n.e5f71fc31e')
|
||||
}}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="loadData">{{ $t('i18n.e5f71fc31e') }}</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
</template>
|
||||
@ -65,9 +63,7 @@
|
||||
</template>
|
||||
|
||||
<template v-if="column.dataIndex === 'useMfa'">
|
||||
<a-tag>{{
|
||||
text ? $t('i18n.ecff77a8d4') : $t('i18n.869ec83e33')
|
||||
}}</a-tag>
|
||||
<a-tag>{{ text ? $t('i18n.ecff77a8d4') : $t('i18n.869ec83e33') }}</a-tag>
|
||||
</template>
|
||||
|
||||
<template v-if="column.dataIndex === 'operateCode'">
|
||||
|
@ -87,8 +87,7 @@ export const uploadPieces = ({
|
||||
const batch = 1024 * 1024 * 2
|
||||
const asyncUpdate = function () {
|
||||
if (start < total) {
|
||||
resolveFileProcess &&
|
||||
resolveFileProcess(t('i18n.6a8402afcb') + ((start / total) * 100).toFixed(2) + '%')
|
||||
resolveFileProcess && resolveFileProcess(t('i18n.6a8402afcb') + ((start / total) * 100).toFixed(2) + '%')
|
||||
const end = Math.min(start + batch, total)
|
||||
reader.readAsArrayBuffer(blobSlice.call(file, start, end))
|
||||
start = end
|
||||
|
Loading…
Reference in New Issue
Block a user