fix: 页面文字改为中文

This commit is contained in:
orgin 2023-12-20 16:05:45 +08:00
parent 6e8f8baf00
commit f0aa04564f

View File

@ -7,24 +7,23 @@
<a-row :gutter="24">
<a-col :md="6" :sm="10">
<a-form-model-item label="任务类名" prop="jobClassName">
<a-input placeholder="请输入任务类名" v-model="queryParam.jobClassName"></a-input>
<a-form-model-item label="JobClassName" prop="jobClassName">
<a-input placeholder="Please enter a job class name" v-model="queryParam.jobClassName"></a-input>
</a-form-model-item>
</a-col>
<a-col :md="6" :sm="10">
<a-form-model-item label="任务状态" prop="status">
<a-select style="width: 220px" v-model="queryParam.status" placeholder="请选择状态">
<a-select-option value="">全部</a-select-option>
<a-select-option value="0">正常</a-select-option>
<a-select-option value="-1">停止</a-select-option>
<a-col :md="4" :sm="10">
<a-form-model-item label="Status" prop="status">
<a-select style="width: 220px" v-model="queryParam.status" placeholder="Please select status">
<a-select-option value="">All</a-select-option>
<a-select-option value="0">normal</a-select-option>
<a-select-option value="-1">stop</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col :md="6" :sm="10" >
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a-button type="primary" @click="searchQuery" icon="search">Search</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">Reset</a-button>
</span>
</a-col>
@ -34,24 +33,24 @@
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('定时任务信息')">导出</a-button>
<a-button @click="handleAdd" type="primary" icon="plus">Add</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('定时任务信息')">Export</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
<a-button type="primary" icon="import">Import</a-button>
</a-upload>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>Delete</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
<a-button style="margin-left: 8px"> Batch operation <a-icon type="down" /></a-button>
</a-dropdown>
</div>
<!-- table区域-begin -->
<div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
<i class="anticon anticon-info-circle ant-alert-icon"></i> Selected <a style="font-weight: 600">{{ selectedRowKeys.length }}</a> item
<a style="margin-left: 24px" @click="onClearSelected">Clear</a>
</div>
<a-table
@ -77,18 +76,18 @@
<span slot="action" slot-scope="text, record">
<a @click="resumeJob(record)" v-if="record.status==-1">启动</a>
<a @click="pauseJob(record)" v-if="record.status==0">停止</a>
<a @click="resumeJob(record)" v-if="record.status==-1">Start</a>
<a @click="pauseJob(record)" v-if="record.status==0">Stop</a>
<a-divider type="vertical" />
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
<a class="ant-dropdown-link">More <a-icon type="down" /></a>
<a-menu slot="overlay">
<a-menu-item><a @click="executeImmediately(record)">执行一次</a></a-menu-item>
<a-menu-item><a @click="handleEdit(record)">编辑</a></a-menu-item>
<a-menu-item><a @click="executeImmediately(record)">Execute once</a></a-menu-item>
<a-menu-item><a @click="handleEdit(record)">Edit</a></a-menu-item>
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
<a-popconfirm title="Are you sure to delete it?" @confirm="() => handleDelete(record.id)">
<a>Delete</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
@ -97,8 +96,8 @@
<!-- 状态渲染模板 -->
<template slot="customRenderStatus" slot-scope="status">
<a-tag v-if="status==0" color="green">已启动</a-tag>
<a-tag v-if="status==-1" color="orange">已暂停</a-tag>
<a-tag v-if="status==0" color="green">Started</a-tag>
<a-tag v-if="status==-1" color="orange">Paused</a-tag>
</template>
</a-table>
</div>
@ -140,7 +139,7 @@
}
},
{
title: '任务类名',
title: 'JOB CLASS NAME',
align:"center",
dataIndex: 'jobClassName',
sorter: true,
@ -149,37 +148,37 @@
}*/
},
{
title: 'cron表达式',
title: 'CRON',
align:"center",
dataIndex: 'cronExpression'
},
{
title: '参数',
title: 'PARAM',
align:"center",
width: 150,
dataIndex: 'parameter',
scopedSlots: {customRender: 'parameterRender'},
},
{
title: '描述',
title: 'DESCRIPTION',
align:"center",
width: 250,
dataIndex: 'description',
scopedSlots: {customRender: 'description'},
},
{
title: '状态',
title: 'SRATUS',
align:"center",
dataIndex: 'status',
scopedSlots: { customRender: 'customRenderStatus' },
filterMultiple: false,
filters: [
{ text: '已启动', value: '0' },
{ text: '已暂停', value: '-1' },
{ text: 'Started', value: '0' },
{ text: 'Paused', value: '-1' },
]
},
{
title: '操作',
title: 'ACTION',
dataIndex: 'action',
align:"center",
width:180,
@ -228,8 +227,8 @@
var that = this;
//
this.$confirm({
title:"确认暂停",
content:"是否暂停选中任务?",
title:"Acknowledge pause",
content:"Whether to suspend the selected job?",
onOk: function(){
getAction(that.url.pause,{id:record.id}).then((res)=>{
if(res.success){
@ -248,8 +247,8 @@
var that = this;
//
this.$confirm({
title:"确认启动",
content:"是否启动选中任务?",
title:"Confirm start",
content:"Whether to start the selected job?",
onOk: function(){
getAction(that.url.resume,{id:record.id}).then((res)=>{
if(res.success){
@ -267,8 +266,8 @@
var that = this;
//
this.$confirm({
title:"确认提示",
content:"是否立即执行任务?",
title:"Confirm prompt",
content:"Whether to execute the task immediately?",
onOk: function(){
getAction(that.url.execute,{id:record.id}).then((res)=>{
if(res.success){