From e6bdc34995298e807824097e555c3e46fb746e3b Mon Sep 17 00:00:00 2001 From: zxh <279049017@qq.com> Date: Wed, 26 Aug 2020 09:48:53 +0800 Subject: [PATCH] 调整表格的宽度 --- kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctor.html | 52 ++++++++++++++++++++++++++++++---------------------- 1 files changed, 30 insertions(+), 22 deletions(-) diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctor.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctor.html index e914f47..683b7e9 100644 --- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctor.html +++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctor.html @@ -14,8 +14,8 @@ <input id="doctorName" class="layui-input search-input" type="text" placeholder="按医生名" />  <select id="doctorState" lay-filter="role_clients"> <option value="">-医院状态-</option> - <option value="true">正常</option> - <option value="false">试用</option> + <option value="1">正常</option> + <option value="0">试用</option> </select>  <input name="hospitalName" id="hospitalName-seach" placeholder="按医院名称" type="text" class="layui-input search-input" maxlength="50" autocomplete="off" />  @@ -40,7 +40,7 @@ <button class="layui-btn layui-btn-primary layui-btn-xs permissions" permissions="users-edit" lay-event="reset">重置密码</button> {{#}}} - + <button class="layui-btn layui-btn-primary layui-btn-xs permissions" permissions="sysdoctor-edit" lay-event="edit">修改</button> <button class="layui-btn layui-btn-xs permissions" permissions="sysdoctor-del" lay-event="del">删除</button> @@ -148,7 +148,7 @@ <label class="layui-form-label">医生简介</label> <div class="layui-input-block"> <textarea name="doctorAbout" id="doctorAbout" class="layui-textarea" maxlength="300" - style="width: 650px;"></textarea> + style="width: 697px;"></textarea> </div> </div> </div> @@ -399,32 +399,40 @@ cols: [ [{ field: 'hospitalName', - width: 180, - title: '医院名称' + width: "10%", + title: '医院名称', + fixed: 'left' + }, + { + field: 'departmentName', + width: "9%", + title: '科室', + fixed: 'left' }, { field: 'doctorName', - width: 120, - title: '医生姓名' + width: "7%", + title: '医生姓名', + fixed: 'left' }, { field: 'doctorRank', - width: 100, + width: "8%", title: '职称' }, { field: 'username', - width: 150, + width: "10%", title: '登录帐号' }, { field: 'doctorTel', - width: 150, + width: "10%", title: '联系方式' }, { field: 'isAnswer', - width: 100, + width: "5%", title: '医答', templet: function (d) { return d.isAnswer ? "是" : "否" @@ -432,7 +440,7 @@ }, { field: 'isSigning', - width: 100, + width: "5%", title: '签约', templet: function (d) { return d.isSigning ? "是" : "否" @@ -448,21 +456,22 @@ // { field: 'createTime', width: 150, title: '创建时间', templet: "<div>{{layui.util.toDateString(d.createTime, 'yyyy-MM-dd HH:mm')}}</div>" }, { field: 'createTime', - width: 150, + width: "10%", sort: true, title: '创建时间', templet: "<div>{{layui.util.toDateString(d.createTime, 'yyyy/MM/dd HH:mm')}}</div>" }, { field: 'serverUserName', - width: 100, + width: "6%", title: '销售代表' }, { - width: 350, + width: "20%", align: 'center', toolbar: '#doctor-table-bar', - title: '操作' + title: '操作', + fixed: 'right' }, ] ], @@ -541,9 +550,8 @@ data) { layer.closeAll('loading'); if (data.code == 0) { - layer.msg(data.msg, { - icon: 1, - time: 2000 + layer.alert("密码重置为:" + data.data, { + icon: 1 }); } else { layer.msg(data.msg, { @@ -554,7 +562,7 @@ }, 'PUT'); }); } else if (layEvent === 'edit') { - showEditModel_add("编辑",data); + showEditModel_add("编辑", data); } else if (layEvent === 'del') { layer.confirm('确定删除此用户吗?', function (i) { layer.close(i); @@ -598,7 +606,7 @@ }); // 显示新增弹窗 - var showEditModel_add = function (title,data) { + var showEditModel_add = function (title, data) { admin.putTempData('t_doctor', data); admin.popupCenter({ title: title, -- Gitblit v1.8.0