瀏覽代碼

修改bug

zhangdan 3 年之前
父節點
當前提交
2d29e01e21
共有 2 個文件被更改,包括 8 次插入7 次删除
  1. 4 3
      src/views/power/user/userList.vue
  2. 4 4
      src/views/power/user/userModal.vue

+ 4 - 3
src/views/power/user/userList.vue

@@ -83,9 +83,10 @@ export default {
       // 表头
       columns: [
         { title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
-        { title: '创建时间', dataIndex: 'createDate', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '用户名称', dataIndex: 'name', width: '25%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '手机号码', dataIndex: 'phone', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '创建时间', dataIndex: 'createDate', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '用户名称', dataIndex: 'name', width: '17%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '用户账户', dataIndex: 'loginName', width: '17%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '手机号码', dataIndex: 'phone', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '角色', width: '15%', align: 'center', dataIndex: 'roleNames', customRender: function (text) { return text || '--' } },
         { title: '状态', width: '10%', align: 'center', scopedSlots: { customRender: 'status' } },
         { title: '操作', width: '15%', align: 'left', scopedSlots: { customRender: 'action' } }

+ 4 - 4
src/views/power/user/userModal.vue

@@ -32,17 +32,17 @@
             </a-col>
             <a-col :span="12">
               <a-form-model-item label="手机号码" prop="phone">
-                <a-input id="userEdit-phone" v-model.trim="form.phone":maxLength="11" allowClear placeholder="请输入手机号码"/>
+                <a-input id="userEdit-phone" v-model.trim="form.phone" :maxLength="11" allowClear placeholder="请输入手机号码"/>
               </a-form-model-item>
             </a-col>
           </a-row>
-          <!-- <a-row :gutter="20">
+          <a-row :gutter="20">
             <a-col :span="24">
               <a-form-model-item label="用户账号" prop="loginName" :label-col="{span: 3}" :wrapper-col="{span: 20}">
-                <a-input id="userEdit-loginName" v-model.trim="form.loginName":maxLength="50" allowClear placeholder="请输入用户账号(最多50个字符)"/>
+                <a-input id="userEdit-loginName" v-model.trim="form.loginName" :maxLength="30" allowClear placeholder="请输入用户账号(最多30个字符)"/>
               </a-form-model-item>
             </a-col>
-          </a-row> -->
+          </a-row>
           <a-row :gutter="24">
             <!-- 性别 -->
             <a-col :span="12">