mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 15:30:25 +08:00
fix: i18n
This commit is contained in:
@@ -77,7 +77,7 @@ function build() {
|
||||
echo_green "Copy resources such as scripts [config.yml.example、mayfly-go.sql、mayfly-go.sqlite、readme.txt、startup.sh、shutdown.sh]"
|
||||
cp ${server_folder}/config.yml.example ${toFolder}
|
||||
cp ${server_folder}/readme.txt ${toFolder}
|
||||
cp ${server_folder}/readme_cn.txt ${toFolder}
|
||||
cp ${server_folder}/readme_en.txt ${toFolder}
|
||||
cp ${server_folder}/resources/script/startup.sh ${toFolder}
|
||||
cp ${server_folder}/resources/script/shutdown.sh ${toFolder}
|
||||
cp ${server_folder}/resources/script/sql/mayfly-go.sql ${toFolder}
|
||||
|
||||
@@ -107,6 +107,9 @@ export default {
|
||||
cronjobRunState: 'Run State',
|
||||
execResRecordType: 'Result record type',
|
||||
cronExpression: 'Cron Expression',
|
||||
noRecord: 'Not recorded',
|
||||
onErrorRecord: 'Record on error',
|
||||
record: 'Record',
|
||||
|
||||
// file
|
||||
upload: 'Upload',
|
||||
|
||||
@@ -108,6 +108,9 @@ export default {
|
||||
cronjobRunState: '运行状态',
|
||||
execResRecordType: '结果记录类型',
|
||||
cronExpression: 'cron表达式',
|
||||
noRecord: '不记录',
|
||||
onErrorRecord: '错误时记录',
|
||||
record: '记录',
|
||||
|
||||
// file
|
||||
upload: '上传',
|
||||
|
||||
@@ -71,13 +71,12 @@
|
||||
<template #status="{ data }">
|
||||
<el-switch
|
||||
v-auth:disabled="'machine:update'"
|
||||
:width="52"
|
||||
v-model="data.status"
|
||||
:active-value="1"
|
||||
:inactive-value="-1"
|
||||
inline-prompt
|
||||
active-text="启用"
|
||||
inactive-text="停用"
|
||||
:active-text="$t('common.enable')"
|
||||
:inactive-text="$t('common.disable')"
|
||||
style="--el-switch-on-color: #13ce66; --el-switch-off-color: #ff4949"
|
||||
@change="changeStatus(data)"
|
||||
></el-switch>
|
||||
@@ -320,7 +319,7 @@ const columns = [
|
||||
TableColumn.new('name', 'common.name'),
|
||||
TableColumn.new('ipPort', 'Ip:Port').isSlot().setAddWidth(50),
|
||||
TableColumn.new('authCerts[0].username', 'machine.acName').isSlot('authCert').setAddWidth(10),
|
||||
TableColumn.new('status', 'common.status').isSlot().setMinWidth(85),
|
||||
TableColumn.new('status', 'common.status').isSlot(),
|
||||
TableColumn.new('stat', 'machine.runningStat').isSlot().setAddWidth(55),
|
||||
TableColumn.new('fs', 'machine.fs').isSlot().setAddWidth(25),
|
||||
TableColumn.new('remark', 'common.remark'),
|
||||
|
||||
@@ -33,9 +33,9 @@ export const CronJobStatusEnum = {
|
||||
|
||||
// 计划任务保存执行结果类型
|
||||
export const CronJobSaveExecResTypeEnum = {
|
||||
No: EnumValue.of(-1, '不记录').tagTypeDanger(),
|
||||
OnError: EnumValue.of(1, '错误时记录').tagTypeWarning(),
|
||||
Yes: EnumValue.of(2, '记录').tagTypeSuccess(),
|
||||
No: EnumValue.of(-1, 'machine.noRecord').tagTypeDanger(),
|
||||
OnError: EnumValue.of(1, 'machine.onErrorRecord').tagTypeWarning(),
|
||||
Yes: EnumValue.of(2, 'machine.record').tagTypeSuccess(),
|
||||
};
|
||||
|
||||
// 计划任务执行记录状态
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
v-if="$props.protocol == MachineProtocolEnum.Ssh.value"
|
||||
prop="username"
|
||||
:label="$t('machine.user')"
|
||||
min-width="55"
|
||||
min-width="70"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
@@ -197,7 +197,7 @@
|
||||
v-if="$props.protocol == MachineProtocolEnum.Ssh.value"
|
||||
prop="groupname"
|
||||
:label="$t('machine.group')"
|
||||
min-width="55"
|
||||
min-width="70"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
ref="relatePageTableRef"
|
||||
:pageable="false"
|
||||
:page-api="accountApi.roles"
|
||||
v-model:query-form="releateQuery as any"
|
||||
v-model:query-form="releateQuery"
|
||||
:columns="relatedColumns"
|
||||
:tool-button="false"
|
||||
lazy
|
||||
@@ -133,6 +133,8 @@ const state = reactive({
|
||||
},
|
||||
releateQuery: {
|
||||
id: 0, //账号id
|
||||
pageNum: 1,
|
||||
pageSize: 1000,
|
||||
},
|
||||
showResourceDialog: {
|
||||
title: '',
|
||||
|
||||
@@ -200,7 +200,7 @@ func (d *Db) ExecSqlFile(rc *req.Ctx) {
|
||||
})
|
||||
|
||||
biz.ErrIsNilAppendErr(err, "%s")
|
||||
d.MsgApp.CreateAndSend(rc.GetLoginAccount(), msgdto.SuccessSysMsg(i18n.T(imsg.SqlScriptRunSuccess), fmt.Sprintf("sql脚本执行完成:%s", rc.ReqParam)).WithClientId(clientId))
|
||||
d.MsgApp.CreateAndSend(rc.GetLoginAccount(), msgdto.SuccessSysMsg(i18n.T(imsg.SqlScriptRunSuccess), fmt.Sprintf("execution success: %s", rc.ReqParam)).WithClientId(clientId))
|
||||
}
|
||||
|
||||
// 数据库dump
|
||||
|
||||
Reference in New Issue
Block a user