将所有店铺字样,改由i18n控制
This commit is contained in:
parent
6d789a97cd
commit
ae2e2aef8a
@ -14,7 +14,7 @@
|
||||
</div>
|
||||
|
||||
<div class="dashboard-text">
|
||||
店铺:{{ deptname }}
|
||||
{{$t('main.shop')}}:{{ deptname }}
|
||||
</div>
|
||||
<div class="dashboard-text">
|
||||
将来这里会有很多东西
|
||||
|
@ -145,7 +145,7 @@
|
||||
<el-option :value="2" :label="$t('main.shop') + '题库'">{{$t('main.shop')}}题库</el-option>
|
||||
</el-select>
|
||||
</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
|
||||
v-model="postForm.shopCates"
|
||||
placeholder="选择"
|
||||
|
@ -291,7 +291,7 @@ export default class extends Vue {
|
||||
await saveShopGameInfo(data)
|
||||
this.$notify({
|
||||
title: 'Success',
|
||||
message: '更新店铺游戏配置成功',
|
||||
message: '更新游戏配置成功',
|
||||
type: 'success',
|
||||
duration: 2000
|
||||
})
|
||||
|
@ -141,7 +141,7 @@ export default class extends Vue {
|
||||
|
||||
private async handleDelete(scope: any) {
|
||||
const { $index, row } = scope
|
||||
await this.$confirm('确认删除该店铺?', 'Warning', {
|
||||
await this.$confirm('确认删除该记录?', 'Warning', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
|
@ -58,6 +58,7 @@ import { ElTree } from 'element-ui/types/tree'
|
||||
import { IShopData } from '@/api/types'
|
||||
import { UserModule } from '@/store/modules/user'
|
||||
import { EVENT_COUPON_UPDATE, EVENT_SHOP_UPDATE, EventBus } from '@/utils/event-bus'
|
||||
import i18n from '@/lang'
|
||||
|
||||
@Component({
|
||||
name: 'QuestionSetting',
|
||||
@ -159,8 +160,9 @@ export default class extends Vue {
|
||||
|
||||
private async saveVal() {
|
||||
if (!this.shop) {
|
||||
const msg = `选择需要保存的${i18n.tc('main.shop')}信息`
|
||||
this.$message({
|
||||
message: '选择需要保存的店铺信息',
|
||||
message: msg,
|
||||
type: 'warning'
|
||||
})
|
||||
return
|
||||
@ -175,7 +177,7 @@ export default class extends Vue {
|
||||
|
||||
this.$notify({
|
||||
title: 'Success',
|
||||
message: '更新店铺题库配置成功',
|
||||
message: '更新题库配置成功',
|
||||
type: 'success',
|
||||
duration: 2000
|
||||
})
|
||||
|
@ -219,7 +219,7 @@
|
||||
<el-form-item label="帐号类型">
|
||||
<el-radio-group v-model="record.level" size="small">
|
||||
<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-form-item>
|
||||
<el-form-item
|
||||
@ -432,7 +432,7 @@ export default class extends Vue {
|
||||
|
||||
private async getRecords() {
|
||||
this.isLoad = true
|
||||
const { data } = await getUsers({ /* Your params here */ })
|
||||
const { data } = await getUsers({ })
|
||||
this.adminList = data
|
||||
this.dataCount = data.length
|
||||
this.sliceData()
|
||||
@ -440,7 +440,7 @@ export default class extends Vue {
|
||||
}
|
||||
|
||||
private async getAllRole() {
|
||||
const { data } = await getRoles({ /* Your params here */ })
|
||||
const { data } = await getRoles({ })
|
||||
this.roleList = data
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user