From 4f5a02bcf3e002514a56ef372a8578ea3dd2b2d0 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Mon, 22 Sep 2025 14:01:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E9=A1=B5=E9=9D=A2=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/Account/frontPage/mylnformation.vue | 2 +- src/component/Administrator/SE/recentActiveChart.vue | 4 +++- .../Administrator/Transaction/TransactionTable.vue | 4 ++-- src/component/Administrator/allUser.vue | 4 ++-- src/component/Administrator/recentActiveUser.vue | 4 ++-- src/component/Administrator/recentNewUser.vue | 4 ++-- src/lang/cn.ts | 12 ++++++++++++ src/lang/en.ts | 12 ++++++++++++ src/store/userHabit/userHabit.ts | 2 +- 9 files changed, 37 insertions(+), 11 deletions(-) diff --git a/src/component/Account/frontPage/mylnformation.vue b/src/component/Account/frontPage/mylnformation.vue index e5df3e55..80175852 100644 --- a/src/component/Account/frontPage/mylnformation.vue +++ b/src/component/Account/frontPage/mylnformation.vue @@ -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 > diff --git a/src/component/Administrator/SE/recentActiveChart.vue b/src/component/Administrator/SE/recentActiveChart.vue index d9251b36..fe27f030 100644 --- a/src/component/Administrator/SE/recentActiveChart.vue +++ b/src/component/Administrator/SE/recentActiveChart.vue @@ -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) diff --git a/src/component/Administrator/Transaction/TransactionTable.vue b/src/component/Administrator/Transaction/TransactionTable.vue index 8e153108..48c4d595 100644 --- a/src/component/Administrator/Transaction/TransactionTable.vue +++ b/src/component/Administrator/Transaction/TransactionTable.vue @@ -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 }, { diff --git a/src/component/Administrator/allUser.vue b/src/component/Administrator/allUser.vue index e162e58d..2bff6e11 100644 --- a/src/component/Administrator/allUser.vue +++ b/src/component/Administrator/allUser.vue @@ -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", diff --git a/src/component/Administrator/recentActiveUser.vue b/src/component/Administrator/recentActiveUser.vue index 421ef4af..9a8cd832 100644 --- a/src/component/Administrator/recentActiveUser.vue +++ b/src/component/Administrator/recentActiveUser.vue @@ -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", diff --git a/src/component/Administrator/recentNewUser.vue b/src/component/Administrator/recentNewUser.vue index da8a628a..33bed9d4 100644 --- a/src/component/Administrator/recentNewUser.vue +++ b/src/component/Administrator/recentNewUser.vue @@ -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", diff --git a/src/lang/cn.ts b/src/lang/cn.ts index 7e05ad57..868f504b 100644 --- a/src/lang/cn.ts +++ b/src/lang/cn.ts @@ -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:'对话生成', }, }; diff --git a/src/lang/en.ts b/src/lang/en.ts index 7e59d3b8..ba768f27 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -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', }, }; diff --git a/src/store/userHabit/userHabit.ts b/src/store/userHabit/userHabit.ts index d76ad75a..19c70970 100644 --- a/src/store/userHabit/userHabit.ts +++ b/src/store/userHabit/userHabit.ts @@ -265,7 +265,7 @@ const userHabit : Module = { */ 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)