add 任务调度国际化
This commit is contained in:
@@ -11,7 +11,7 @@ export default {
|
||||
'operate': 'operate',
|
||||
},
|
||||
'msg': {
|
||||
'stop_msg': 'Are you sure to stop this thread?'
|
||||
'select_msg': 'Are you sure to stop this thread?'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,21 +13,22 @@ import storageCell from './storageCell/zh'
|
||||
import route from './route/zh'
|
||||
import auto from './auto/zh'
|
||||
import monitor from './monitor/zh'
|
||||
|
||||
import timing from './timing/zh'
|
||||
export default {
|
||||
...zhLocale,
|
||||
...zh,
|
||||
...menu,
|
||||
...param,
|
||||
...device,
|
||||
...opc,
|
||||
...protocol,
|
||||
...address,
|
||||
...storageCell,
|
||||
...route,
|
||||
...instruction,
|
||||
...task,
|
||||
...history,
|
||||
...auto,
|
||||
...monitor
|
||||
}
|
||||
...zhLocale,
|
||||
...zh,
|
||||
...menu,
|
||||
...param,
|
||||
...device,
|
||||
...opc,
|
||||
...protocol,
|
||||
...address,
|
||||
...storageCell,
|
||||
...route,
|
||||
...instruction,
|
||||
...task,
|
||||
...history,
|
||||
...auto,
|
||||
...monitor,
|
||||
...timing
|
||||
}
|
||||
@@ -13,21 +13,22 @@ import storageCell from './storageCell/en'
|
||||
import route from './route/en'
|
||||
import auto from './auto/en'
|
||||
import monitor from './monitor/en'
|
||||
|
||||
import timing from './timing/en'
|
||||
export default {
|
||||
...enLocale,
|
||||
...en,
|
||||
...menu,
|
||||
...param,
|
||||
...instruction,
|
||||
...task,
|
||||
...history,
|
||||
...device,
|
||||
...opc,
|
||||
...protocol,
|
||||
...address,
|
||||
...storageCell,
|
||||
...route,
|
||||
...auto,
|
||||
...monitor
|
||||
}
|
||||
...enLocale,
|
||||
...en,
|
||||
...menu,
|
||||
...param,
|
||||
...instruction,
|
||||
...task,
|
||||
...history,
|
||||
...device,
|
||||
...opc,
|
||||
...protocol,
|
||||
...address,
|
||||
...storageCell,
|
||||
...route,
|
||||
...auto,
|
||||
...monitor,
|
||||
...timing
|
||||
}
|
||||
@@ -13,21 +13,22 @@ import storageCell from './storageCell/in'
|
||||
import route from './route/in'
|
||||
import auto from './auto/in'
|
||||
import monitor from './monitor/in'
|
||||
|
||||
import timing from './timing/in'
|
||||
export default {
|
||||
...idLocale,
|
||||
...id,
|
||||
...menu,
|
||||
...param,
|
||||
...instruction,
|
||||
...task,
|
||||
...history,
|
||||
...device,
|
||||
...opc,
|
||||
...protocol,
|
||||
...address,
|
||||
...storageCell,
|
||||
...route,
|
||||
...auto,
|
||||
...monitor
|
||||
}
|
||||
...idLocale,
|
||||
...id,
|
||||
...menu,
|
||||
...param,
|
||||
...instruction,
|
||||
...task,
|
||||
...history,
|
||||
...device,
|
||||
...opc,
|
||||
...protocol,
|
||||
...address,
|
||||
...storageCell,
|
||||
...route,
|
||||
...auto,
|
||||
...monitor,
|
||||
...timing
|
||||
}
|
||||
25
acs/nladmin-ui/src/i18n/langs/timing/en.js
Normal file
25
acs/nladmin-ui/src/i18n/langs/timing/en.js
Normal file
@@ -0,0 +1,25 @@
|
||||
export default {
|
||||
'Timing': {
|
||||
'DB': {
|
||||
'job_id': 'job_id',
|
||||
'job_name': 'job_name',
|
||||
'bean_name': 'bean_name',
|
||||
'method_name': 'method_name',
|
||||
'thread_state': 'thread_state',
|
||||
'params': 'params',
|
||||
'cron_expression': 'cron_expression',
|
||||
'is_pause': 'is_pause',
|
||||
'description': 'description',
|
||||
'create_time': 'create_time',
|
||||
'log': 'log',
|
||||
'edit': 'edit',
|
||||
'execute': 'execute',
|
||||
'restore': 'restore',
|
||||
'suspend': 'suspend',
|
||||
},
|
||||
'msg': {
|
||||
'select_msg': 'Enter task name to search for',
|
||||
'delete_msg': 'Are you sure to stop and delete this task?',
|
||||
}
|
||||
}
|
||||
}
|
||||
25
acs/nladmin-ui/src/i18n/langs/timing/in.js
Normal file
25
acs/nladmin-ui/src/i18n/langs/timing/in.js
Normal file
@@ -0,0 +1,25 @@
|
||||
export default {
|
||||
'Timing': {
|
||||
'DB': {
|
||||
'job_id': 'ID Tugas',
|
||||
'job_name': 'Tugas Nama',
|
||||
'bean_name': 'Nama kacang',
|
||||
'method_name': 'Metode eksekusi',
|
||||
'thread_state': 'Status benang',
|
||||
'params': 'parameter',
|
||||
'cron_expression': 'ekspresi cron',
|
||||
'is_pause': 'keadaan',
|
||||
'description': 'deskripsikan',
|
||||
'create_time': 'Tarikh penciptaan',
|
||||
'log': 'jurnal',
|
||||
'edit': 'edit',
|
||||
'execute': 'implementasi',
|
||||
'restore': 'Kembalikan',
|
||||
'suspend': 'suspend',
|
||||
},
|
||||
'msg': {
|
||||
'select_msg': 'Masukkan nama tugas untuk dicari',
|
||||
'delete_msg': 'Apakah Anda yakin untuk menghentikan dan menghapus tugas ini?',
|
||||
}
|
||||
}
|
||||
}
|
||||
25
acs/nladmin-ui/src/i18n/langs/timing/zh.js
Normal file
25
acs/nladmin-ui/src/i18n/langs/timing/zh.js
Normal file
@@ -0,0 +1,25 @@
|
||||
export default {
|
||||
'Timing': {
|
||||
'DB': {
|
||||
'job_id': '任务ID',
|
||||
'job_name': '任务名称',
|
||||
'bean_name': 'Bean名称',
|
||||
'method_name': '执行方法',
|
||||
'thread_state': '线程状态',
|
||||
'params': '参数',
|
||||
'cron_expression': 'cron表达式',
|
||||
'is_pause': '状态',
|
||||
'description': '描述',
|
||||
'create_time': '创建日期',
|
||||
'log': '日志',
|
||||
'edit': '编辑',
|
||||
'execute': '执行',
|
||||
'restore': '恢复',
|
||||
'suspend': '暂停',
|
||||
},
|
||||
'msg': {
|
||||
'select_msg': '输入任务名称搜索',
|
||||
'delete_msg': '确定停止并删除该任务吗?',
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,7 @@
|
||||
v-model="query.job_name"
|
||||
clearable
|
||||
size="mini"
|
||||
placeholder="输入任务名称搜索"
|
||||
:placeholder="$t('Timing.msg.select_msg')"
|
||||
style="width: 200px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="toQuery"
|
||||
@@ -24,7 +24,7 @@
|
||||
type="info"
|
||||
icon="el-icon-tickets"
|
||||
@click="doLog"
|
||||
>日志
|
||||
>{{ $t('Timing.DB.log') }}
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<Log ref="log" />
|
||||
@@ -101,19 +101,19 @@
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column :selectable="checkboxT" type="selection" width="55" />
|
||||
<el-table-column show-overflow-tooltip prop="job_id" label="任务ID" />
|
||||
<el-table-column show-overflow-tooltip prop="job_name" label="任务名称" min-width="120" />
|
||||
<el-table-column show-overflow-tooltip prop="bean_name" label="Bean名称" />
|
||||
<el-table-column show-overflow-tooltip prop="method_name" label="执行方法" />
|
||||
<el-table-column show-overflow-tooltip prop="params" label="参数" />
|
||||
<el-table-column show-overflow-tooltip prop="job_id" :label="$t('Timing.DB.job_id')" />
|
||||
<el-table-column show-overflow-tooltip prop="job_name" :label="$t('Timing.DB.job_name')" />
|
||||
<el-table-column show-overflow-tooltip prop="bean_name" :label="$t('Timing.DB.bean_name')" />
|
||||
<el-table-column show-overflow-tooltip prop="method_name" :label="$t('Timing.DB.method_name')" />
|
||||
<el-table-column show-overflow-tooltip prop="params" :label="$t('Timing.DB.params')" />
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="cron_expression"
|
||||
label="cron表达式"
|
||||
:label="$t('Timing.DB.cron_expression')"
|
||||
min-width="100"
|
||||
show-tooltip-when-overflow
|
||||
/>
|
||||
<el-table-column show-overflow-tooltip prop="is_pause" width="90px" label="状态">
|
||||
<el-table-column show-overflow-tooltip prop="is_pause" width="90px" :label="$t('Timing.DB.is_pause')">
|
||||
<template slot-scope="scope">
|
||||
<el-tag :type="scope.row.is_pause ? 'warning' : 'success'">{{
|
||||
scope.row.is_pause ? '已暂停' : '运行中'
|
||||
@@ -121,15 +121,15 @@
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column show-overflow-tooltip prop="description" width="150px" label="描述" />
|
||||
<el-table-column show-overflow-tooltip prop="create_time" width="136px" label="创建日期">
|
||||
<el-table-column show-overflow-tooltip prop="description" width="150px" :label="$t('Timing.DB.description')" />
|
||||
<el-table-column show-overflow-tooltip prop="create_time" width="136px" :label="$t('Timing.DB.create_time')">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.create_time) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-permission="['admin','timing:edit','timing:del']"
|
||||
label="操作"
|
||||
:label="$t('common.Operate')"
|
||||
width="170px"
|
||||
align="center"
|
||||
fixed="right"
|
||||
@@ -141,7 +141,7 @@
|
||||
style="margin-right: 3px;"
|
||||
type="text"
|
||||
@click="crud.toEdit(scope.row)"
|
||||
>编辑
|
||||
>{{ $t('Timing.DB.edit') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
v-permission="['admin','timing:edit']"
|
||||
@@ -149,16 +149,16 @@
|
||||
type="text"
|
||||
size="mini"
|
||||
@click="execute(scope.row.job_id)"
|
||||
>执行
|
||||
>{{ $t('Timing.DB.execute') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
v-permission="['admin','timing:edit']"
|
||||
style="margin-left: 3px"
|
||||
type="text"
|
||||
size="mini"
|
||||
@click="updateStatus(scope.row.job_id,scope.row.is_pause ? '恢复' : '暂停')"
|
||||
@click="updateStatus(scope.row.job_id,scope.row.is_pause ? $t('Timing.DB.restore') : $t('Timing.DB.suspend'))"
|
||||
>
|
||||
{{ scope.row.is_pause ? '恢复' : '暂停' }}
|
||||
{{ scope.row.is_pause ? $t('Timing.DB.restore') : $t('Timing.DB.suspend') }}
|
||||
</el-button>
|
||||
<el-popover
|
||||
:ref="scope.row.job_id"
|
||||
@@ -166,13 +166,13 @@
|
||||
placement="top"
|
||||
width="200"
|
||||
>
|
||||
<p>确定停止并删除该任务吗?</p>
|
||||
{{ $t('Timing.msg.delete_msg') }}
|
||||
<div style="text-align: right; margin: 0">
|
||||
<el-button size="mini" type="text" @click="$refs[scope.row.job_id].doClose()">取消</el-button>
|
||||
<el-button :loading="delLoading" type="primary" size="mini" @click="delMethod(scope.row.job_id)">确定
|
||||
<el-button size="mini" type="text" @click="$refs[scope.row.job_id].doClose()">{{ $t('common.Cancel') }}</el-button>
|
||||
<el-button :loading="delLoading" type="primary" size="mini" @click="delMethod(scope.row.job_id)">{{ $t('common.determine') }}
|
||||
</el-button>
|
||||
</div>
|
||||
<el-button slot="reference" type="text" size="mini">删除</el-button>
|
||||
<el-button slot="reference" type="text" size="mini">{{ $t('common.Cancel') }}</el-button>
|
||||
</el-popover>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
Reference in New Issue
Block a user