|
|
@@ -65,7 +65,7 @@
|
|
|
<el-table-column prop="orderNum" :label="$t('systemOther.menu.sort')" width="60"></el-table-column>
|
|
|
<el-table-column prop="perms" :label="$t('systemOther.menu.permissionKey')" :show-overflow-tooltip="true"></el-table-column>
|
|
|
<el-table-column prop="component" :label="$t('systemOther.menu.componentPath')" :show-overflow-tooltip="true"></el-table-column>
|
|
|
- <el-table-column prop="status" :label="$t('common.status')" width="80">
|
|
|
+ <el-table-column prop="status" :label="$t('common.status')" :width="statusColumnWidth">
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status"/>
|
|
|
</template>
|
|
|
@@ -233,7 +233,7 @@
|
|
|
<el-col :span="12" v-if="form.menuType != 'F'">
|
|
|
<el-form-item>
|
|
|
<span slot="label">
|
|
|
- <el-tooltip content="选择隐藏则路由将不会出现在侧边栏,但仍然可以访问" placement="top">
|
|
|
+ <el-tooltip :content="$t('systemOther.menu.displayStatusTooltip')" placement="top">
|
|
|
<i class="el-icon-question"></i>
|
|
|
</el-tooltip>
|
|
|
{{ $t('systemOther.menu.displayStatus') }}
|
|
|
@@ -250,10 +250,10 @@
|
|
|
<el-col :span="12" v-if="form.menuType != 'F'">
|
|
|
<el-form-item>
|
|
|
<span slot="label">
|
|
|
- <el-tooltip content="选择停用则路由将不会出现在侧边栏,也不能被访问" placement="top">
|
|
|
+ <el-tooltip :content="$t('systemOther.menu.statusTooltip')" placement="top">
|
|
|
<i class="el-icon-question"></i>
|
|
|
</el-tooltip>
|
|
|
- 菜单状态
|
|
|
+ {{ $t('systemOther.menu.status') }}
|
|
|
</span>
|
|
|
<el-radio-group v-model="form.status">
|
|
|
<el-radio
|
|
|
@@ -323,6 +323,12 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ // 根据语言动态设置状态列宽度
|
|
|
+ statusColumnWidth() {
|
|
|
+ return this.$i18n.locale === 'en' ? '100' : '80';
|
|
|
+ }
|
|
|
+ },
|
|
|
created() {
|
|
|
this.getList();
|
|
|
},
|