Ver código fonte

修复部分页面宽度问题

pm 4 meses atrás
pai
commit
c83d60b884

+ 2 - 0
src/i18n/lang/en.js

@@ -1488,6 +1488,8 @@ export default {
       noCache: 'No Cache',
       isShow: 'Show',
       displayStatus: 'Display Status',
+      displayStatusTooltip: 'If hidden is selected, the route will not appear in the sidebar, but can still be accessed',
+      statusTooltip: 'If disabled is selected, the route will not appear in the sidebar and cannot be accessed',
       parentMenuRequired: 'Parent menu cannot be empty',
       menuNameRequired: 'Menu name cannot be empty',
       routePathRequired: 'Route path cannot be empty',

+ 2 - 0
src/i18n/lang/zh.js

@@ -1489,6 +1489,8 @@ export default {
       noCache: '不缓存',
       isShow: '是否显示',
       displayStatus: '显示状态',
+      displayStatusTooltip: '选择隐藏则路由将不会出现在侧边栏,但仍然可以访问',
+      statusTooltip: '选择停用则路由将不会出现在侧边栏,也不能被访问',
       parentMenuRequired: '上级菜单不能为空',
       menuNameRequired: '菜单名称不能为空',
       routePathRequired: '路由地址不能为空',

+ 12 - 2
src/views/mes/dv/switchMotor/index.vue

@@ -115,8 +115,8 @@
     />
 
     <!-- 添加或修改设备维修单对话框 -->
-    <el-dialog :title="title" :visible.sync="open" width="450px" append-to-body>
-      <el-form ref="form" :model="form" :rules="rules" label-width="120px">
+    <el-dialog :title="title" :visible.sync="open" :width="dialogWidth" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" :label-width="labelWidth">
         <el-form-item :label="$t('mes.switchMotor.motorCode')" prop="motorCode">
           <el-input v-model="form.motorCode" :placeholder="$t('mes.switchMotor.motorCodePlaceholder')" />
         </el-form-item>
@@ -256,6 +256,16 @@ export default {
       machineryOptions:[],//查询 设备工艺数据
     };
   },
+  computed: {
+    // 根据语言动态设置弹框宽度
+    dialogWidth() {
+      return this.$i18n.locale === 'en' ? '500px' : '450px';
+    },
+    // 根据语言动态设置标签宽度
+    labelWidth() {
+      return this.$i18n.locale === 'en' ? '180px' : '120px';
+    }
+  },
   created() {
     this.getList();
     this.getOtherList()

+ 2 - 2
src/views/system/autocode/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="app-container">
-    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="108px">
       <el-form-item :label="$t('systemOther.autocode.ruleName')" prop="ruleName">
         <el-input
           v-model="queryParams.ruleName"
@@ -129,7 +129,7 @@
 
     <!-- 添加或修改参数配置对话框 -->
     <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
-      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+      <el-form ref="form" :model="form" :rules="rules" label-width="100px">
         <el-form-item :label="$t('systemOther.autocode.ruleCode')" prop="ruleCode">
           <el-input v-model="form.ruleCode" :placeholder="$t('systemOther.autocode.ruleCodePlaceholder')" />
         </el-form-item>

+ 10 - 4
src/views/system/menu/index.vue

@@ -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();
   },

+ 1 - 1
src/views/system/notice/index.vue

@@ -131,7 +131,7 @@
 
     <!-- 添加或修改公告对话框 -->
     <el-dialog :title="title" :visible.sync="open" width="780px" append-to-body>
-      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+      <el-form ref="form" :model="form" :rules="rules" label-width="100px">
         <el-row>
           <el-col :span="12">
             <el-form-item :label="$t('systemOther.notice.noticeTitle')" prop="noticeTitle">