多国语优化
Former-commit-id: c30641d894f4a3dd6436262ec8274cd6af5bc976 [formerly c30641d894f4a3dd6436262ec8274cd6af5bc976 [formerly c30641d894f4a3dd6436262ec8274cd6af5bc976 [formerly c30641d894f4a3dd6436262ec8274cd6af5bc976 [formerly 939916e28478409e52951c9a398601de4dcd64f3 [formerly 5990314c4157c9e8083c8566c478a3f260ba4886]]]]] Former-commit-id: 5aff5445ce1bc11830ef450a555a0f02be09faf4 Former-commit-id: d5c676d30957683bb7a420999aca4f26643f3780 Former-commit-id: 054af47ada509b687df935011c27b74015a50673 [formerly 5b706cd5573dfabb2e97a834c474535393af32d1] Former-commit-id: fa29f751bd36435b57c17daa6d601a84d166e247 Former-commit-id: 28e2e32b327a61600dc71fc03c6bd6a4e2c16605 Former-commit-id: 5c6d379d593a3e07dddb745bb9522a38a0218f96 Former-commit-id: 6e01935c320da49cc9983001be504e1f46486189 Former-commit-id: e8eb886b3e6a197677c44d836bfab724bdbb6af1
This commit is contained in:
@@ -62,6 +62,37 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"log": {
|
||||
"notify": {
|
||||
"more": {
|
||||
"message": "",
|
||||
"title": ""
|
||||
},
|
||||
"upload": {
|
||||
"start": {
|
||||
"message": "",
|
||||
"title": ""
|
||||
},
|
||||
"success": {
|
||||
"message": "",
|
||||
"title": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"table": {
|
||||
"empty-text": "",
|
||||
"label": {
|
||||
"component": "",
|
||||
"message": "",
|
||||
"more": "",
|
||||
"time": "",
|
||||
"url": ""
|
||||
}
|
||||
},
|
||||
"upload": {
|
||||
"button": ""
|
||||
}
|
||||
},
|
||||
"login": {
|
||||
"footer": {
|
||||
"button": {
|
||||
|
||||
@@ -62,6 +62,37 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"log": {
|
||||
"notify": {
|
||||
"more": {
|
||||
"message": "",
|
||||
"title": ""
|
||||
},
|
||||
"upload": {
|
||||
"start": {
|
||||
"message": "",
|
||||
"title": ""
|
||||
},
|
||||
"success": {
|
||||
"message": "",
|
||||
"title": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"table": {
|
||||
"empty-text": "",
|
||||
"label": {
|
||||
"component": "",
|
||||
"message": "",
|
||||
"more": "",
|
||||
"time": "",
|
||||
"url": ""
|
||||
}
|
||||
},
|
||||
"upload": {
|
||||
"button": ""
|
||||
}
|
||||
},
|
||||
"login": {
|
||||
"footer": {
|
||||
"button": {
|
||||
|
||||
@@ -62,6 +62,37 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"log": {
|
||||
"notify": {
|
||||
"more": {
|
||||
"message": "完整的日志内容已经打印到控制台",
|
||||
"title": "日志详情"
|
||||
},
|
||||
"upload": {
|
||||
"start": {
|
||||
"message": "开始上传 {number} 条日志",
|
||||
"title": "日志上传"
|
||||
},
|
||||
"success": {
|
||||
"message": "上传成功",
|
||||
"title": "提示"
|
||||
}
|
||||
}
|
||||
},
|
||||
"table": {
|
||||
"empty-text": "暂无日志信息",
|
||||
"label": {
|
||||
"component": "触发组件",
|
||||
"message": "信息",
|
||||
"more": "查看详细信息",
|
||||
"time": "时间",
|
||||
"url": "触发页面"
|
||||
}
|
||||
},
|
||||
"upload": {
|
||||
"button": "上传 {number} 条数据"
|
||||
}
|
||||
},
|
||||
"login": {
|
||||
"footer": {
|
||||
"button": {
|
||||
|
||||
@@ -62,6 +62,37 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"log": {
|
||||
"notify": {
|
||||
"more": {
|
||||
"message": "",
|
||||
"title": ""
|
||||
},
|
||||
"upload": {
|
||||
"start": {
|
||||
"message": "",
|
||||
"title": ""
|
||||
},
|
||||
"success": {
|
||||
"message": "",
|
||||
"title": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"table": {
|
||||
"empty-text": "",
|
||||
"label": {
|
||||
"component": "",
|
||||
"message": "",
|
||||
"more": "",
|
||||
"time": "",
|
||||
"url": ""
|
||||
}
|
||||
},
|
||||
"upload": {
|
||||
"button": ""
|
||||
}
|
||||
},
|
||||
"login": {
|
||||
"footer": {
|
||||
"button": {
|
||||
|
||||
@@ -4,31 +4,31 @@
|
||||
:data="log"
|
||||
size="mini"
|
||||
style="width: 100%"
|
||||
empty-text="暂无日志信息"
|
||||
:empty-text="$t('views.system.log.table.empty-text')"
|
||||
stripe>
|
||||
<!-- 时间 -->
|
||||
<!-- time -->
|
||||
<el-table-column
|
||||
prop="time"
|
||||
label="Time"
|
||||
:label="$t('views.system.log.table.label.time')"
|
||||
width="140">
|
||||
</el-table-column>
|
||||
<!-- 信息 -->
|
||||
<!-- message -->
|
||||
<el-table-column
|
||||
prop="message"
|
||||
label="Message">
|
||||
:label="$t('views.system.log.table.label.message')">
|
||||
</el-table-column>
|
||||
<!-- 触发页面 -->
|
||||
<!-- url -->
|
||||
<el-table-column
|
||||
label="Url"
|
||||
:label="$t('views.system.log.table.label.url')"
|
||||
align="center"
|
||||
min-width="200">
|
||||
<template slot-scope="scope">
|
||||
{{get(scope.row, 'meta.url')}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 触发组件 -->
|
||||
<!-- componnet -->
|
||||
<el-table-column
|
||||
label="Tag"
|
||||
:label="$t('views.system.log.table.label.component')"
|
||||
align="center"
|
||||
min-width="120">
|
||||
<template slot-scope="scope">
|
||||
@@ -40,11 +40,11 @@
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 查看详情 -->
|
||||
<!-- more -->
|
||||
<el-table-column
|
||||
fixed="right"
|
||||
align="center"
|
||||
label="More"
|
||||
:label="$t('views.system.log.table.label.more')"
|
||||
width="100">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
@@ -63,7 +63,7 @@
|
||||
:loading="uploading"
|
||||
@click="handleUpload">
|
||||
<d2-icon name="cloud-upload"/>
|
||||
Upload {{log.length}} log data
|
||||
{{ $t('views.system.log.upload.button', { number: log.length }) }}
|
||||
</el-button>
|
||||
</template>
|
||||
</d2-container>
|
||||
@@ -86,11 +86,11 @@ export default {
|
||||
methods: {
|
||||
get,
|
||||
handleShowMore (log) {
|
||||
// 打印一条日志的所有信息到控制台
|
||||
// Print all information from a log to the console
|
||||
this.$notify({
|
||||
type: 'info',
|
||||
title: '日志详情',
|
||||
message: '完整的日志内容已经打印到控制台'
|
||||
title: this.$t('views.system.log.notify.more.title'),
|
||||
message: this.$t('views.system.log.notify.more.message')
|
||||
})
|
||||
this.$log.capsule('D2Admin', 'handleShowMore', 'primary')
|
||||
console.group(log.message)
|
||||
@@ -99,20 +99,20 @@ export default {
|
||||
console.log(log.meta)
|
||||
console.groupEnd()
|
||||
},
|
||||
// 日志上传
|
||||
// Log upload
|
||||
handleUpload () {
|
||||
this.uploading = true
|
||||
this.$notify({
|
||||
type: 'info',
|
||||
title: '日志上传',
|
||||
message: `开始上传${this.log.length}条日志`
|
||||
title: this.$t('views.system.log.notify.upload.start.title'),
|
||||
message: this.$t('views.system.log.notify.upload.start.message', { number: this.log.length })
|
||||
})
|
||||
setTimeout(() => {
|
||||
this.uploading = false
|
||||
this.$notify({
|
||||
type: 'success',
|
||||
title: '日志上传',
|
||||
message: '上传成功'
|
||||
title: this.$t('views.system.log.notify.upload.success.title'),
|
||||
message: this.$t('views.system.log.notify.upload.success.message')
|
||||
})
|
||||
}, 3000)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user