Эх сурвалжийг харах

1、页面展示优化,table显示宽度调整,固定操作列

lihao16 5 сар өмнө
parent
commit
783914d96e

+ 3 - 3
smsb-plus-ui/src/views/smsb/device/index.vue

@@ -94,8 +94,8 @@
           <el-table-column label="设备名称" align="left" prop="name" width="300" :show-overflow-tooltip="true" />
 -->
           <el-table-column label="设备型号" align="left" prop="deviceModel" width="120" :show-overflow-tooltip="true" />
-          <el-table-column label="设备SN" align="left" prop="serialNumber" width="150" :show-overflow-tooltip="true" />
-          <el-table-column label="设备MAC" align="left" prop="mac" width="150" />
+          <el-table-column label="设备SN" align="left" prop="serialNumber" width="180" :show-overflow-tooltip="true" />
+          <el-table-column label="设备MAC" align="left" prop="mac" width="180" />
           <el-table-column label="设备标识" align="left" prop="identifier" width="220" :show-overflow-tooltip="true" />
           <el-table-column label="分辨率" align="left" prop="resolution" width="100" />
           <el-table-column label="开机时间" align="left" prop="openTime" width="80" />
@@ -122,7 +122,7 @@
             </template>
           </el-table-column>
           <el-table-column label="备注" align="left" prop="remark" width="200" :show-overflow-tooltip="true" />
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="120">
+          <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width" width="100">
             <template #default="scope">
               <el-tooltip content="修改" placement="top">
                 <el-button v-hasPermi="['smsb:device:edit']" link type="primary" icon="Edit"

+ 7 - 7
smsb-plus-ui/src/views/smsb/deviceAuth/index.vue

@@ -32,25 +32,25 @@
           <el-table-column label="主键ID" align="left" prop="id" v-if="true" width="180" :show-overflow-tooltip="true" />
           <el-table-column label="加密字符" align="left" prop="encryptCode" width="250" :show-overflow-tooltip="true" />
           <el-table-column label="解密字符" align="left" prop="decryptCode" width="250" :show-overflow-tooltip="true" />
-          <el-table-column label="鉴权key" align="center" prop="authKey" width="150" :show-overflow-tooltip="true" />
+          <el-table-column label="鉴权key" align="left" prop="authKey" width="150" :show-overflow-tooltip="true" />
           <el-table-column label="鉴权结果" align="center" prop="authResult" width="100">
             <template #default="scope">
               <dict-tag :options="smsb_device_auth_result" :value="scope.row.authResult" />
             </template>
           </el-table-column>
-          <el-table-column label="鉴权描述" align="left" prop="authRemark" :show-overflow-tooltip="true" width="150" />
+          <el-table-column label="鉴权描述" align="left" prop="authRemark" :show-overflow-tooltip="true" width="120" />
           <el-table-column label="设备IP" align="center" prop="deviceIp" width="150" :show-overflow-tooltip="true" />
           <el-table-column label="设备名称" align="left" prop="deviceName" width="220" :show-overflow-tooltip="true" />
-          <el-table-column label="设备标识" align="left" prop="identifier" width="250" :show-overflow-tooltip="true" />
-          <el-table-column label="设备SN" align="left" prop="serialNumber" width="200" :show-overflow-tooltip="true" />
+          <el-table-column label="设备标识" align="left" prop="identifier" width="220" :show-overflow-tooltip="true" />
+          <el-table-column label="设备SN" align="left" prop="serialNumber" width="180" :show-overflow-tooltip="true" />
           <el-table-column label="设备MAC" align="left" prop="mac" width="150" />
           <el-table-column label="鉴权时间" align="center" prop="createTime" width="160" />
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+          <el-table-column label="操作" align="center" fixed="right" width="80" class-name="small-padding fixed-width">
             <template #default="scope">
-              <el-tooltip content="修改" placement="top">
+<!--              <el-tooltip content="修改" placement="top">
                 <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
                   v-hasPermi="['device:deviceAuth:edit']"></el-button>
-              </el-tooltip>
+              </el-tooltip>-->
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
                   v-hasPermi="['device:deviceAuth:remove']"></el-button>

+ 6 - 6
smsb-plus-ui/src/views/smsb/deviceLogin/index.vue

@@ -51,19 +51,19 @@
                 <el-table-column type="selection" width="55" align="center" />
         -->
           <el-table-column label="ID" align="left" prop="id" v-if="true" width="180" :show-overflow-tooltip="true" />
-          <el-table-column label="请求标识" align="left" prop="reqIdentifier" width="250" :show-overflow-tooltip="true" />
-          <el-table-column label="请求IP" align="left" prop="reqIp" width="150" :show-overflow-tooltip="true" />
+          <el-table-column label="请求标识" align="left" prop="reqIdentifier" width="220" :show-overflow-tooltip="true" />
+          <el-table-column label="请求IP" align="left" prop="reqIp" width="130" :show-overflow-tooltip="true" />
           <el-table-column label="登录结果" align="center" prop="loginResult" width="120">
             <template #default="scope">
               <dict-tag :options="smsb_device_login_result" :value="scope.row.loginResult" />
             </template>
           </el-table-column>
           <el-table-column label="登录时间" align="left" prop="createTime" width="160" />
-          <el-table-column label="设备名称" align="left" prop="deviceName" width="220" :show-overflow-tooltip="true" />
-          <el-table-column label="设备标识" align="left" prop="identifier" width="250" :show-overflow-tooltip="true" />
-          <el-table-column label="设备SN" align="left" prop="serialNumber" width="200" :show-overflow-tooltip="true" />
+          <el-table-column label="设备名称" align="left" prop="deviceName" :show-overflow-tooltip="true" />
+          <el-table-column label="设备标识" align="left" prop="identifier" width="220" :show-overflow-tooltip="true" />
+          <el-table-column label="设备SN" align="left" prop="serialNumber" width="180" :show-overflow-tooltip="true" />
           <el-table-column label="设备MAC" align="left" prop="mac" width="150" />
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">
+          <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width" width="80">
             <template #default="scope">
               <!--            <el-tooltip content="修改" placement="top">
                           <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['device:deviceLogin:edit']"></el-button>

+ 0 - 0
upload/smsb/temp/.gitkeep