将所有店铺字样,改由i18n控制

This commit is contained in:
zhl 2021-06-02 16:32:19 +08:00
parent 6d789a97cd
commit ae2e2aef8a
6 changed files with 11 additions and 9 deletions

View File

@ -14,7 +14,7 @@
</div> </div>
<div class="dashboard-text"> <div class="dashboard-text">
店铺:{{ deptname }} {{$t('main.shop')}}:{{ deptname }}
</div> </div>
<div class="dashboard-text"> <div class="dashboard-text">
将来这里会有很多东西 将来这里会有很多东西

View File

@ -145,7 +145,7 @@
<el-option :value="2" :label="$t('main.shop') + '题库'">{{$t('main.shop')}}题库</el-option> <el-option :value="2" :label="$t('main.shop') + '题库'">{{$t('main.shop')}}题库</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="店铺分类" v-show="postForm.source === 2" prop="shopCates"> <el-form-item :label="$t('main.shop') + '分类'" v-show="postForm.source === 2" prop="shopCates">
<el-select <el-select
v-model="postForm.shopCates" v-model="postForm.shopCates"
placeholder="选择" placeholder="选择"

View File

@ -291,7 +291,7 @@ export default class extends Vue {
await saveShopGameInfo(data) await saveShopGameInfo(data)
this.$notify({ this.$notify({
title: 'Success', title: 'Success',
message: '更新店铺游戏配置成功', message: '更新游戏配置成功',
type: 'success', type: 'success',
duration: 2000 duration: 2000
}) })

View File

@ -141,7 +141,7 @@ export default class extends Vue {
private async handleDelete(scope: any) { private async handleDelete(scope: any) {
const { $index, row } = scope const { $index, row } = scope
await this.$confirm('确认删除该店铺?', 'Warning', { await this.$confirm('确认删除该记录?', 'Warning', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'

View File

@ -58,6 +58,7 @@ import { ElTree } from 'element-ui/types/tree'
import { IShopData } from '@/api/types' import { IShopData } from '@/api/types'
import { UserModule } from '@/store/modules/user' import { UserModule } from '@/store/modules/user'
import { EVENT_COUPON_UPDATE, EVENT_SHOP_UPDATE, EventBus } from '@/utils/event-bus' import { EVENT_COUPON_UPDATE, EVENT_SHOP_UPDATE, EventBus } from '@/utils/event-bus'
import i18n from '@/lang'
@Component({ @Component({
name: 'QuestionSetting', name: 'QuestionSetting',
@ -159,8 +160,9 @@ export default class extends Vue {
private async saveVal() { private async saveVal() {
if (!this.shop) { if (!this.shop) {
const msg = `选择需要保存的${i18n.tc('main.shop')}信息`
this.$message({ this.$message({
message: '选择需要保存的店铺信息', message: msg,
type: 'warning' type: 'warning'
}) })
return return
@ -175,7 +177,7 @@ export default class extends Vue {
this.$notify({ this.$notify({
title: 'Success', title: 'Success',
message: '更新店铺题库配置成功', message: '更新题库配置成功',
type: 'success', type: 'success',
duration: 2000 duration: 2000
}) })

View File

@ -219,7 +219,7 @@
<el-form-item label="帐号类型"> <el-form-item label="帐号类型">
<el-radio-group v-model="record.level" size="small"> <el-radio-group v-model="record.level" size="small">
<el-radio-button :label="1">系统帐号</el-radio-button> <el-radio-button :label="1">系统帐号</el-radio-button>
<el-radio-button :label="9">店铺</el-radio-button> <el-radio-button :label="9">{{$t('main.shop')}}</el-radio-button>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@ -432,7 +432,7 @@ export default class extends Vue {
private async getRecords() { private async getRecords() {
this.isLoad = true this.isLoad = true
const { data } = await getUsers({ /* Your params here */ }) const { data } = await getUsers({ })
this.adminList = data this.adminList = data
this.dataCount = data.length this.dataCount = data.length
this.sliceData() this.sliceData()
@ -440,7 +440,7 @@ export default class extends Vue {
} }
private async getAllRole() { private async getAllRole() {
const { data } = await getRoles({ /* Your params here */ }) const { data } = await getRoles({ })
this.roleList = data this.roleList = data
} }