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