|
@@ -72,7 +72,7 @@
|
|
|
|
|
|
$(function(){
|
|
|
$('#gd').datagrid({
|
|
|
- url:"./manage/doctors/datas',
|
|
|
+ url:"/manage/doctors/datas',
|
|
|
idField:'id',method: 'get',rownumbers: true,showFooter: true,singleSelect:true,selectOnCheck:false,
|
|
|
toolbar: '#tb',fitColumns : true,pageList: [dgRowSize,dgRowSize*2,50,100],pagination:true,pageSize:dgRowSize,
|
|
|
columns:[[
|
|
@@ -114,27 +114,27 @@
|
|
|
var insId=$('#institution_id').combotree("getValue");
|
|
|
var status=$('#status').combobox("getValue");
|
|
|
var username=$('#username').textbox("getValue");
|
|
|
- var url="./manage/doctors/datas?status="+(status==null?"":status)+"&insId="+(insId==null?"":insId)+"&username="+(username==null?"":username)+"&t="+new Date();
|
|
|
+ var url="/manage/doctors/datas?status="+(status==null?"":status)+"&insId="+(insId==null?"":insId)+"&username="+(username==null?"":username)+"&t="+new Date();
|
|
|
$('#gd').datagrid("reload",url);
|
|
|
}
|
|
|
|
|
|
// 显示编辑窗口
|
|
|
function showEditWin(id){
|
|
|
if("undefined"== typeof id){
|
|
|
- $editWin.window('open');$('#editFrame').attr('src',"./manage/doctors/edit');
|
|
|
+ $editWin.window('open');$('#editFrame').attr('src',"/manage/doctors/edit');
|
|
|
}else{
|
|
|
- $editWin.window('open');$('#editFrame').attr('src',"./manage/doctors/edit?id='+id);
|
|
|
+ $editWin.window('open');$('#editFrame').attr('src',"/manage/doctors/edit?id='+id);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 显示权限管理页面
|
|
|
function showPermissionEdit(id){
|
|
|
- $permitWin.window('open');$('#permitFrame').attr('src',"./manage/doctors/permissions?id='+id);
|
|
|
+ $permitWin.window('open');$('#permitFrame').attr('src',"/manage/doctors/permissions?id='+id);
|
|
|
}
|
|
|
|
|
|
function sendMessage(phone){
|
|
|
$.ajax({
|
|
|
- url:"./manage/doctors/sendMessage",
|
|
|
+ url:"/manage/doctors/sendMessage",
|
|
|
data:"phone="+phone,
|
|
|
success:function(rs){
|
|
|
if(rs=="ok"){
|
|
@@ -151,7 +151,7 @@
|
|
|
$.messager.confirm('Confirm','确定要删除这条记录吗?',function(r){
|
|
|
if(r){
|
|
|
$.ajax({
|
|
|
- url:"./manage/doctors/delete",
|
|
|
+ url:"/manage/doctors/delete",
|
|
|
data:"ids="+id+"&t="+new Date(),
|
|
|
success:function(rs){
|
|
|
if(rs=="delete_ok"){
|
|
@@ -197,7 +197,7 @@
|
|
|
$('#institution_id').combotree({
|
|
|
required:true,multiple:false,editable:false,
|
|
|
valueField:'id',textField:'name',panelWidth:350,
|
|
|
- url:"./manage/doctors/insCombobox"
|
|
|
+ url:"/manage/doctors/insCombobox"
|
|
|
});
|
|
|
$("#reset").click(function(){
|
|
|
$('#institution_id').combotree("setValue","");
|