-
-
-
-
- {{ $t('Redis.title1') }}
-
-
-
-
-
- {{ $t('Redis.redis_version') }}: |
- {{ cache.info.redis_version }} |
- {{ $t('Redis.redis_mode') }}: |
- {{ cache.info.redis_mode == "standalone" ? $t('Redis.standalone') : $t('Redis.cluster') }} |
- {{ $t('Redis.tcp_port') }}: |
- {{ cache.info.tcp_port }} |
- {{ $t('Redis.connected_clients') }}: |
- {{ cache.info.connected_clients }} |
-
-
- {{ $t('Redis.running') }}: |
- {{ cache.info.uptime_in_days }} |
- {{ $t('Redis.memory_use') }}: |
- {{ cache.info.used_memory_human }} |
- {{ $t('Redis.cpu') }}: |
- {{ parseFloat(cache.info.used_cpu_user_children).toFixed(2) }} |
- {{ $t('Redis.memory') }}: |
- {{ cache.info.maxmemory_human }} |
-
-
- {{ $t('Redis.AOF') }}: |
- {{ cache.info.aof_enabled === "0" ? $t('common.No') : $t('common.Yes') }} |
- {{ $t('Redis.RDB') }}: |
- {{ cache.info.rdb_last_bgsave_status }} |
- {{ $t('Redis.keys') }}: |
- {{ cache.dbSize }} |
- {{ $t('Redis.io') }}: |
- {{ cache.info.instantaneous_input_kbps }}kps/{{ cache.info.instantaneous_output_kbps }}kps |
-
-
-
-
-
-
-
-
-
- {{ $t('Redis.left_title') }}
-
-
-
-
-
-
-
- {{ $t('Redis.right_title') }}
-
-
-
-
-
-
-
-
- {{ $t('Redis.batch_del') }}
-
-
-
-
-
-
-
-
-
- {{ $t('Redis.no_expired') }}
-
-
- {{ $t('Redis.expired') }}
-
-
- {{ scope.row.expire }}{{ $t('Redis.unit') }}
-
-
-
-
-
-
- {{ $t('Redis.clear') }}
-
-
-
-
-
-
+
+
-
diff --git a/nladmin-ui/src/views/wms/basedata/material/MaterialDialog.vue b/nladmin-ui/src/views/wms/basedata/material/MaterialDialog.vue
index e01adf7..a655838 100644
--- a/nladmin-ui/src/views/wms/basedata/material/MaterialDialog.vue
+++ b/nladmin-ui/src/views/wms/basedata/material/MaterialDialog.vue
@@ -1,6 +1,6 @@
-
+
@@ -42,25 +42,25 @@
@current-change="clickChange"
>
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -71,13 +71,14 @@ import CRUD, { header, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import pagination from '@crud/Pagination'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
+import i18n from '@/i18n'
export default {
name: 'MaterialDialog',
components: { rrOperation, pagination },
dicts: ['is_used'],
cruds() {
- return CRUD({ title: '物料选择', url: 'api/Materia', optShow: {}})
+ return CRUD({ title: i18n.t('common.Please_select'), url: 'api/Materia', optShow: {}})
},
mixins: [presenter(), header()],
props: {
@@ -135,7 +136,7 @@ export default {
}
this.rows = this.$refs.table.selection
if (this.rows.length <= 0) {
- this.$message('请先勾选物料')
+ this.$message(i18n.t('common.Please_select'))
return
}
this.crud.resetQuery(false)
diff --git a/nladmin-ui/src/views/wms/basedata/material/UploadDialog.vue b/nladmin-ui/src/views/wms/basedata/material/UploadDialog.vue
index f526491..7ef91d9 100644
--- a/nladmin-ui/src/views/wms/basedata/material/UploadDialog.vue
+++ b/nladmin-ui/src/views/wms/basedata/material/UploadDialog.vue
@@ -1,6 +1,6 @@
- 将文件拖到此处,或
- 点击上传
+ {{ $t('upload.load_text1') }}
+ {{ $t('upload.load_text2') }}
- 只能上传Excel文件,且不超过10MB
+ {{ $t('upload.load_text3') }}
@@ -42,6 +42,7 @@ import crudMaterial from './material'
import CRUD, { crud } from '@crud/crud'
import { download2 } from '@/api/data'
import { downloadFile } from '@/utils'
+import i18n from '@/i18n'
export default {
name: 'UploadDialog',
@@ -82,7 +83,7 @@ export default {
this.$emit('update:dialogShow', false)
},
is_one() {
- this.crud.notify('只能上传一个excel文件!', CRUD.NOTIFICATION_TYPE.WARNING)
+ this.crud.notify(i18n.t('upload.load_text5'), CRUD.NOTIFICATION_TYPE.WARNING)
},
// 文件校验方法
beforeAvatarUpload(file) {
@@ -104,19 +105,18 @@ export default {
formdata.append('file', this.file1.raw)
// excelImport:请求接口 formdata:传递参数
crudMaterial.excelImport(formdata).then((res) => {
- this.crud.notify('导入成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
+ this.crud.notify(i18n.t('common.Success'), CRUD.NOTIFICATION_TYPE.SUCCESS)
this.$emit('tableChanged3', '')
this.$emit('update:dialogShow', false)
}).catch(err => {
-
const list = err.response.data.message
download2('/api/produceWorkorder/download', list).then(result => {
- downloadFile(result, '错误信息汇总', 'xlsx')
+ downloadFile(result, i18n.t('gateway.check_error_log'), 'xlsx')
crud.downloadLoading = false
})
})
} else {
- this.crud.notify('文件过大,请上传小于10MB的文件〜', CRUD.NOTIFICATION_TYPE.WARNING)
+ this.crud.notify(i18n.t('upload.load_text4'), CRUD.NOTIFICATION_TYPE.WARNING)
}
}
}
diff --git a/nladmin-ui/src/views/wms/basedata/material/index.vue b/nladmin-ui/src/views/wms/basedata/material/index.vue
index 17fdf2b..241e137 100644
--- a/nladmin-ui/src/views/wms/basedata/material/index.vue
+++ b/nladmin-ui/src/views/wms/basedata/material/index.vue
@@ -4,13 +4,13 @@
- 模糊查询:
+ {{ $t('common.Query') }}:
@@ -29,7 +29,7 @@
size="mini"
@click="uploadShow = true"
>
- 导入
+ {{ $t('common.import') }}
@@ -43,65 +43,63 @@
-
+
-
+
-
-
+
-
-
+
-
+
-
+
-
- 否
- 是
+
+ {{ $t('common.No') }}
+ {{ $t('common.Yes') }}
-
-
+
+
@@ -113,12 +111,12 @@
style="width: 100%;"
@selection-change="crud.selectionChangeHandler"
>
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
+
+
-
+