字典国际化
This commit is contained in:
@@ -222,6 +222,7 @@
|
||||
<script>
|
||||
import { listData, getData, delData, addData, updateData } from "@/api/system/dict/data"
|
||||
import { optionselect as getDictOptionselect, getType } from "@/api/system/dict/type"
|
||||
import i18n from "@/lang";
|
||||
|
||||
export default {
|
||||
name: "Data",
|
||||
@@ -334,6 +335,10 @@ export default {
|
||||
getList() {
|
||||
this.loading = true
|
||||
listData(this.queryParams).then(response => {
|
||||
response.rows = response.rows.map(item => ({
|
||||
...item,
|
||||
dictLabel: i18n.t(item.dictLabel) || item.dictLabel
|
||||
}))
|
||||
this.dataList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
|
||||
Reference in New Issue
Block a user