Commit db2c8a90 authored by Smile's avatar Smile

bug232 (生产)后台未翻译成英文的一些页面

parent 95973fc9
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<el-form-item :label="$t('状态')" prop="status"> <el-form-item :label="$t('状态')" prop="status">
<el-radio-group v-model="form.status"> <el-radio-group v-model="form.status">
<el-radio v-for="dict in this.getDictDatas(DICT_TYPE.HELP_DOC_STATUS)" <el-radio v-for="dict in this.getDictDatas(DICT_TYPE.HELP_DOC_STATUS)"
:key="dict.value" :label="parseInt(dict.value)">{{dict.label}}</el-radio> :key="dict.value" :label="parseInt(dict.value)">{{isChinese?dict.label:dict.labelEn}}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -156,6 +156,11 @@ export default { ...@@ -156,6 +156,11 @@ export default {
created() { created() {
this.getList(); this.getList();
}, },
computed:{
isChinese() {
return this.$i18n.locale === "zh_CN";
}
},
methods: { methods: {
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<el-form-item :label="$t('状态')" prop="status"> <el-form-item :label="$t('状态')" prop="status">
<el-radio-group v-model="form.status"> <el-radio-group v-model="form.status">
<el-radio v-for="dict in this.getDictDatas(DICT_TYPE.COMMON_STATUS)" <el-radio v-for="dict in this.getDictDatas(DICT_TYPE.COMMON_STATUS)"
:key="dict.value" :label="parseInt(dict.value)">{{dict.label}}</el-radio> :key="dict.value" :label="parseInt(dict.value)">{{isChinese?dict.label:dict.labelEn}}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -139,6 +139,11 @@ export default { ...@@ -139,6 +139,11 @@ export default {
created() { created() {
this.getList(); this.getList();
}, },
computed:{
isChinese() {
return this.$i18n.locale === "zh_CN";
}
},
methods: { methods: {
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<el-form-item :label="$t('状态')" prop="status"> <el-form-item :label="$t('状态')" prop="status">
<el-radio-group v-model="form.status"> <el-radio-group v-model="form.status">
<el-radio v-for="dict in this.getDictDatas(DICT_TYPE.NEED_KNOW_STATUS)" <el-radio v-for="dict in this.getDictDatas(DICT_TYPE.NEED_KNOW_STATUS)"
:key="dict.value" :label="parseInt(dict.value)">{{dict.label}}</el-radio> :key="dict.value" :label="parseInt(dict.value)">{{isChinese?dict.label:dict.labelEn}}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -170,6 +170,11 @@ export default { ...@@ -170,6 +170,11 @@ export default {
created() { created() {
this.getList(); this.getList();
}, },
computed:{
isChinese() {
return this.$i18n.locale === "zh_CN";
}
},
methods: { methods: {
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
v-for="dict in statusDictDatas" v-for="dict in statusDictDatas"
:key="parseInt(dict.value)" :key="parseInt(dict.value)"
:label="parseInt(dict.value)" :label="parseInt(dict.value)"
>{{dict.label}}</el-radio> >{{isChinese?dict.label:dict.labelEn}}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -193,6 +193,11 @@ export default { ...@@ -193,6 +193,11 @@ export default {
created() { created() {
this.getList(); this.getList();
}, },
computed:{
isChinese() {
return this.$i18n.locale === "zh_CN";
}
},
methods: { methods: {
/** 查询公告列表 */ /** 查询公告列表 */
getList() { getList() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment