| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | 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 ? "是" : "否" |
| | |
| | | }, |
| | | { |
| | | field: 'isSigning', |
| | | width: 100, |
| | | width: "5%", |
| | | title: '签约', |
| | | templet: function (d) { |
| | | return d.isSigning ? "是" : "否" |
| | |
| | | // { 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' |
| | | }, |
| | | ] |
| | | ], |
| | |
| | | data) { |
| | | layer.closeAll('loading'); |
| | | if (data.code == 0) { |
| | | layer.alert("密码重置为:"+data.data, {icon: 1}); |
| | | layer.alert("密码重置为:" + data.data, { |
| | | icon: 1 |
| | | }); |
| | | } else { |
| | | layer.msg(data.msg, { |
| | | icon: 2, |
| | |
| | | }, 'PUT'); |
| | | }); |
| | | } else if (layEvent === 'edit') { |
| | | showEditModel_add("编辑",data); |
| | | showEditModel_add("编辑", data); |
| | | } else if (layEvent === 'del') { |
| | | layer.confirm('确定删除此用户吗?', function (i) { |
| | | layer.close(i); |
| | |
| | | }); |
| | | |
| | | // 显示新增弹窗 |
| | | var showEditModel_add = function (title,data) { |
| | | var showEditModel_add = function (title, data) { |
| | | admin.putTempData('t_doctor', data); |
| | | admin.popupCenter({ |
| | | title: title, |