部分页面语言适配
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
optionFilterProp="label"
|
||||
:options="countryList"
|
||||
:field-names="{ label: locale == 'CHINESE_SIMPLIFIED'?'labelCn':'label' }"
|
||||
placeholder="Please select"
|
||||
:placeholder="`${$t('account.plaseSelect')} ${$t('account.Country')}`"
|
||||
allowClear
|
||||
show-search
|
||||
></a-select>
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -751,6 +751,7 @@ export default {
|
||||
editUser: "修改个人信息",
|
||||
notModifiable: "没有修改次数",
|
||||
remainingModifications: "本月剩余次数:",
|
||||
plaseSelect:"请选择",
|
||||
Country: "国家或地区",
|
||||
CompanyName: "职业",
|
||||
Status: "状态",
|
||||
@@ -1348,5 +1349,16 @@ export default {
|
||||
jsContent1:'邮箱格式有误',
|
||||
jsContent2:'请检查所有带 * 号的内容',
|
||||
jsDelete:'确定删除这一项吗',
|
||||
Design:'设计',
|
||||
SingleDesign:'单品设计',
|
||||
MoodBoard:'情绪版',
|
||||
PrintBoard:'印花板',
|
||||
SketchBoard:'线稿板',
|
||||
Pattern:'设计',
|
||||
Logo:'标志',
|
||||
Slogan:'标语',
|
||||
ToProductImage:'产品图',
|
||||
Relight:'打光',
|
||||
ChatRobot:'对话生成',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -753,6 +753,7 @@ export default {
|
||||
editUser: "Change Information",
|
||||
notModifiable: "Not modifiable",
|
||||
remainingModifications: "Remaining this month:",
|
||||
plaseSelect:"Please select",
|
||||
Country: "Country or Region",
|
||||
CompanyName: "Occupation",
|
||||
Status: "Status",
|
||||
@@ -1350,5 +1351,16 @@ export default {
|
||||
jsContent1:'The email format is incorrect',
|
||||
jsContent2:'Please check the input box marked with *',
|
||||
jsDelete:'Are you sure you want to delete this item?',
|
||||
Design:'Design',
|
||||
SingleDesign:'SingleDesign',
|
||||
MoodBoard:'MoodBoard',
|
||||
PrintBoard:'PrintBoard',
|
||||
SketchBoard:'SketchBoard',
|
||||
Pattern:'Pattern',
|
||||
Logo:'Logo',
|
||||
Slogan:'Slogan',
|
||||
ToProductImage:'ToProductImage',
|
||||
Relight:'Relight',
|
||||
ChatRobot:'ChatRobot',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -265,7 +265,7 @@ const userHabit : Module<UserHabit,RootState> = {
|
||||
*/
|
||||
state.userDetail.affiliate = data.affiliate
|
||||
state.userDetail.systemUser = data.systemUser
|
||||
// state.userDetail.systemUser = 3
|
||||
state.userDetail.systemUser = 7
|
||||
// 身份列表1:可以使用aida系统,2:可以使用affiliate页面,3:系统管理员用户
|
||||
state.userDetail.systemList = []
|
||||
if(data.systemUser != 0)state.userDetail.systemList.push(1)
|
||||
|
||||
Reference in New Issue
Block a user