add 自动线程国际化
This commit is contained in:
17
acs/nladmin-ui/src/i18n/langs/auto/en.js
Normal file
17
acs/nladmin-ui/src/i18n/langs/auto/en.js
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
export default {
|
||||||
|
'Auto': {
|
||||||
|
'table': {
|
||||||
|
'name': 'name',
|
||||||
|
'code': 'code',
|
||||||
|
'status': 'status',
|
||||||
|
'thread_name': 'thread_name',
|
||||||
|
'thread_state': 'thread_state',
|
||||||
|
'usedStatus': 'usedStatus',
|
||||||
|
'stopMessage': 'stopMessage',
|
||||||
|
'operate': 'operate',
|
||||||
|
},
|
||||||
|
'msg': {
|
||||||
|
'stop_msg': 'Are you sure to stop this thread?'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
17
acs/nladmin-ui/src/i18n/langs/auto/in.js
Normal file
17
acs/nladmin-ui/src/i18n/langs/auto/in.js
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
export default {
|
||||||
|
'Auto': {
|
||||||
|
'table': {
|
||||||
|
'name': 'nama',
|
||||||
|
'code': 'nomor',
|
||||||
|
'status': 'keadaan',
|
||||||
|
'thread_name': 'Nama Benda',
|
||||||
|
'thread_state': 'Status benang',
|
||||||
|
'usedStatus': 'Status penggunaan',
|
||||||
|
'stopMessage': 'Hentikan pesan',
|
||||||
|
'operate': 'operasi',
|
||||||
|
},
|
||||||
|
'msg': {
|
||||||
|
'stop_msg': 'Apakah Anda yakin untuk menghentikan benang ini?'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
17
acs/nladmin-ui/src/i18n/langs/auto/zh.js
Normal file
17
acs/nladmin-ui/src/i18n/langs/auto/zh.js
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
export default {
|
||||||
|
'Auto': {
|
||||||
|
'table': {
|
||||||
|
'name': '名称',
|
||||||
|
'code': '编号',
|
||||||
|
'status': '状态',
|
||||||
|
'thread_name': '线程名',
|
||||||
|
'thread_state': '线程状态',
|
||||||
|
'usedStatus': '使用状态',
|
||||||
|
'stopMessage': '停止信息',
|
||||||
|
'operate': '操作',
|
||||||
|
},
|
||||||
|
'msg': {
|
||||||
|
'stop_msg': '确定停止该线程吗?'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,6 +11,7 @@ import protocol from './protocol/zh'
|
|||||||
import address from './address/zh'
|
import address from './address/zh'
|
||||||
import storageCell from './storageCell/zh'
|
import storageCell from './storageCell/zh'
|
||||||
import route from './route/zh'
|
import route from './route/zh'
|
||||||
|
import auto from './auto/zh'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
...zhLocale,
|
...zhLocale,
|
||||||
@@ -25,5 +26,6 @@ export default {
|
|||||||
...route,
|
...route,
|
||||||
...instruction,
|
...instruction,
|
||||||
...task,
|
...task,
|
||||||
...history
|
...history,
|
||||||
|
...auto
|
||||||
}
|
}
|
||||||
@@ -37,7 +37,6 @@ export default {
|
|||||||
'Create': 'Create',
|
'Create': 'Create',
|
||||||
'Update': 'Update',
|
'Update': 'Update',
|
||||||
'Delete': 'Delete',
|
'Delete': 'Delete',
|
||||||
'Synchronize': 'Synchronize',
|
|
||||||
'Export': 'Export',
|
'Export': 'Export',
|
||||||
'Editors': 'Editor',
|
'Editors': 'Editor',
|
||||||
'SelectAll': 'SelectAll',
|
'SelectAll': 'SelectAll',
|
||||||
@@ -85,14 +84,9 @@ export default {
|
|||||||
'Tip15': 'Please enter an icon name',
|
'Tip15': 'Please enter an icon name',
|
||||||
'loading': 'loading...',
|
'loading': 'loading...',
|
||||||
'synchronous': 'synchronous',
|
'synchronous': 'synchronous',
|
||||||
'import': 'import',
|
'determine': 'determine',
|
||||||
'driver_configuration': 'driver configuration',
|
'stop': 'stop',
|
||||||
'create_time': 'create time',
|
'firing': 'firing',
|
||||||
'update_time': 'update time',
|
|
||||||
'create_by': 'create people',
|
|
||||||
'update_by': 'update people',
|
|
||||||
'is_on': 'Enable or not',
|
|
||||||
'please': 'please select'
|
|
||||||
},
|
},
|
||||||
'monitor': {
|
'monitor': {
|
||||||
'sys': 'System',
|
'sys': 'System',
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import protocol from './protocol/en'
|
|||||||
import address from './address/en'
|
import address from './address/en'
|
||||||
import storageCell from './storageCell/en'
|
import storageCell from './storageCell/en'
|
||||||
import route from './route/en'
|
import route from './route/en'
|
||||||
|
import auto from './auto/en'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
...enLocale,
|
...enLocale,
|
||||||
@@ -25,5 +26,6 @@ export default {
|
|||||||
...protocol,
|
...protocol,
|
||||||
...address,
|
...address,
|
||||||
...storageCell,
|
...storageCell,
|
||||||
...route
|
...route,
|
||||||
|
...auto
|
||||||
}
|
}
|
||||||
@@ -37,7 +37,6 @@ export default {
|
|||||||
'Create': 'Buat',
|
'Create': 'Buat',
|
||||||
'Update': 'Kemaskini',
|
'Update': 'Kemaskini',
|
||||||
'Delete': 'Hapus',
|
'Delete': 'Hapus',
|
||||||
'Synchronize': 'Sinkronisasi',
|
|
||||||
'Export': 'Ekspor',
|
'Export': 'Ekspor',
|
||||||
'Editors': 'Editor',
|
'Editors': 'Editor',
|
||||||
'SelectAll': 'Pilih Semua',
|
'SelectAll': 'Pilih Semua',
|
||||||
@@ -85,14 +84,9 @@ export default {
|
|||||||
'Tip15': 'Silakan masukkan nama ikon',
|
'Tip15': 'Silakan masukkan nama ikon',
|
||||||
'loading': 'Memuatkan Data...',
|
'loading': 'Memuatkan Data...',
|
||||||
'synchronous': 'Sinkron',
|
'synchronous': 'Sinkron',
|
||||||
'import': 'Mengimpor',
|
'determine': 'konfirmasi',
|
||||||
'driver_configuration': 'Konfigurasi driver',
|
'stop': 'berhenti',
|
||||||
'create_time': 'Buat waktu',
|
'firing': 'start-up',
|
||||||
'update_time': 'Untuk memperbarui waktu',
|
|
||||||
'create_by': 'Dibuat oleh',
|
|
||||||
'update_by': 'pengubah',
|
|
||||||
'is_on': 'Diaktifkan atau tidak',
|
|
||||||
'please': 'Silahkan pilih'
|
|
||||||
},
|
},
|
||||||
'monitor': {
|
'monitor': {
|
||||||
'sys': 'Sistem',
|
'sys': 'Sistem',
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import protocol from './protocol/in'
|
|||||||
import address from './address/in'
|
import address from './address/in'
|
||||||
import storageCell from './storageCell/in'
|
import storageCell from './storageCell/in'
|
||||||
import route from './route/in'
|
import route from './route/in'
|
||||||
|
import auto from './auto/in'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
...idLocale,
|
...idLocale,
|
||||||
@@ -25,5 +26,6 @@ export default {
|
|||||||
...protocol,
|
...protocol,
|
||||||
...address,
|
...address,
|
||||||
...storageCell,
|
...storageCell,
|
||||||
...route
|
...route,
|
||||||
|
...auto
|
||||||
}
|
}
|
||||||
@@ -37,7 +37,6 @@ export default {
|
|||||||
'Create': '新增',
|
'Create': '新增',
|
||||||
'Update': '修改',
|
'Update': '修改',
|
||||||
'Delete': '删除',
|
'Delete': '删除',
|
||||||
'Synchronize': '同步',
|
|
||||||
'Export': '导出',
|
'Export': '导出',
|
||||||
'Editors': '编辑',
|
'Editors': '编辑',
|
||||||
'SelectAll': '全选',
|
'SelectAll': '全选',
|
||||||
@@ -85,14 +84,9 @@ export default {
|
|||||||
'Tip15': '请输入图标名称',
|
'Tip15': '请输入图标名称',
|
||||||
'loading': '数据加载中...',
|
'loading': '数据加载中...',
|
||||||
'synchronous': '同步',
|
'synchronous': '同步',
|
||||||
'import': '导入',
|
'determine': '确定',
|
||||||
'driver_configuration': '驱动配置',
|
'stop': '停止',
|
||||||
'create_time': '创建时间',
|
'firing': '启动',
|
||||||
'update_time': '更新时间',
|
|
||||||
'create_by': '创建者',
|
|
||||||
'update_by': '修改者',
|
|
||||||
'is_on': '是否启用',
|
|
||||||
'please': '请选择'
|
|
||||||
},
|
},
|
||||||
'monitor': {
|
'monitor': {
|
||||||
'sys': '系统',
|
'sys': '系统',
|
||||||
|
|||||||
@@ -12,27 +12,27 @@
|
|||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table ref="table" v-loading="crud.loading" :data="crud.data" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
<el-table ref="table" v-loading="crud.loading" :data="crud.data" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
||||||
<el-table-column :selectable="checkboxT" type="selection" width="55" />
|
<el-table-column :selectable="checkboxT" type="selection" width="55" />
|
||||||
<el-table-column show-overflow-tooltip prop="name" label="名称" />
|
<el-table-column show-overflow-tooltip prop="name" :label="$t('Auto.table.name')" />
|
||||||
<el-table-column :show-overflow-tooltip="false" prop="code" label="编号" width="200" />
|
<el-table-column :show-overflow-tooltip="false" prop="code" :label="$t('Auto.table.code')" width="200" />
|
||||||
<el-table-column show-overflow-tooltip prop="status" label="状态" />
|
<el-table-column show-overflow-tooltip prop="status" :label="$t('Auto.table.status')" />
|
||||||
<el-table-column show-overflow-tooltip prop="thread_name" label="线程名" />
|
<el-table-column show-overflow-tooltip prop="thread_name" :label="$t('Auto.table.thread_name')" />
|
||||||
<el-table-column show-overflow-tooltip prop="thread_state" label="线程状态" />
|
<el-table-column show-overflow-tooltip prop="thread_state" :label="$t('Auto.table.thread_state')" />
|
||||||
<el-table-column show-overflow-tooltip prop="usedStatus" label="使用状态" />
|
<el-table-column show-overflow-tooltip prop="usedStatus" :label="$t('Auto.table.usedStatus')" />
|
||||||
<el-table-column show-overflow-tooltip prop="stopMessage" width="90px" label="停止信息" />
|
<el-table-column show-overflow-tooltip prop="stopMessage" width="90px" :label="$t('Auto.table.stopMessage')" />
|
||||||
<el-table-column v-permission="['admin','timing:edit','timing:del']" label="操作" width="170px" align="center" fixed="right">
|
<el-table-column v-permission="['admin','timing:edit','timing:del']" :label="$t('Auto.table.operate')" width="170px" align="center" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button v-permission="['admin','timing:edit']" style="margin-left: -2px" type="text" size="mini" @click="start(scope.row.code)">启动</el-button>
|
<el-button v-permission="['admin','timing:edit']" style="margin-left: -2px" type="text" size="mini" @click="start(scope.row.code)">{{ $t('common.firing') }}</el-button>
|
||||||
<el-popover
|
<el-popover
|
||||||
:ref="scope.row.code"
|
:ref="scope.row.code"
|
||||||
placement="top"
|
placement="top"
|
||||||
width="200"
|
width="200"
|
||||||
>
|
>
|
||||||
<p>确定停止该线程吗?</p>
|
{{ $t('Auto.msg.stop_msg') }}
|
||||||
<div style="text-align: right; margin: 0">
|
<div style="text-align: right; margin: 0">
|
||||||
<el-button size="mini" type="text" @click="$refs[scope.row.code].doClose()">取消</el-button>
|
<el-button size="mini" type="text" @click="$refs[scope.row.code].doClose()">{{ $t('common.Cancel') }}</el-button>
|
||||||
<el-button :loading="delLoading" type="primary" size="mini" @click="stop(scope.row.code)">确定</el-button>
|
<el-button :loading="delLoading" type="primary" size="mini" @click="stop(scope.row.code)">{{ $t('common.determine') }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-button slot="reference" type="text" size="mini">停止</el-button>
|
<el-button slot="reference" type="text" size="mini">{{ $t('common.stop') }}</el-button>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user