部分页面语言适配
This commit is contained in:
@@ -77,10 +77,12 @@ import { PieChart } from 'echarts/charts';
|
||||
import { LabelLayout } from 'echarts/features';
|
||||
import { useStore } from "vuex";
|
||||
import { CanvasRenderer } from 'echarts/renderers';
|
||||
import { useI18n } from 'vue-i18n'
|
||||
export default defineComponent({
|
||||
components: {
|
||||
},
|
||||
setup() {
|
||||
const {t} = useI18n()
|
||||
const store:any = useStore()
|
||||
let filter:any = reactive({
|
||||
dataList:computed(()=>{
|
||||
@@ -115,7 +117,7 @@ export default defineComponent({
|
||||
let data:any = []
|
||||
rv.names.forEach((item:any,index:number) => {
|
||||
let obj = {
|
||||
name : item,
|
||||
name : t(`admin.${item}`),
|
||||
value:rv.values[index],
|
||||
}
|
||||
data.push(obj)
|
||||
|
||||
@@ -365,11 +365,11 @@ export default defineComponent({
|
||||
ellipsis:true
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
title: "Country or Region",
|
||||
align: "center",
|
||||
dataIndex: "country",
|
||||
key: "country",
|
||||
width:150,
|
||||
width:200,
|
||||
ellipsis:true
|
||||
},
|
||||
{
|
||||
|
||||
@@ -292,11 +292,11 @@ export default defineComponent({
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
title: "Country or Region",
|
||||
align: "center",
|
||||
dataIndex: "country",
|
||||
key: "country",
|
||||
width:100,
|
||||
width:200,
|
||||
},
|
||||
{
|
||||
title: "Create Date",
|
||||
|
||||
@@ -150,11 +150,11 @@ export default defineComponent({
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
title: "Country or Region",
|
||||
align: "center",
|
||||
dataIndex: "country",
|
||||
key: "country",
|
||||
width:100,
|
||||
width:200,
|
||||
},
|
||||
{
|
||||
title: "Create Date",
|
||||
|
||||
@@ -177,11 +177,11 @@ export default defineComponent({
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
title: "Country or Region",
|
||||
align: "center",
|
||||
dataIndex: "country",
|
||||
key: "country",
|
||||
width:100,
|
||||
width:200,
|
||||
},
|
||||
{
|
||||
title: "Create Date",
|
||||
|
||||
Reference in New Issue
Block a user