diff --git a/app/Http/Controllers/AppointmentController.php b/app/Http/Controllers/AppointmentController.php index 3586695..7602464 100644 --- a/app/Http/Controllers/AppointmentController.php +++ b/app/Http/Controllers/AppointmentController.php @@ -202,7 +202,12 @@ class AppointmentController extends Controller if (count($appointments_to_delete)) { return Yo::error_echo(200023); } - Appointment::whereIn('id', $ids)->where('hospital', Login::$info->hospital)->update(['del' => 1]); + if(Login::$info->id==1){ + Appointment::whereIn('id', $ids)->update(['del' => 1]); + }else{ + Appointment::whereIn('id', $ids)->where('hospital', Login::$info->hospital)->update(['del' => 1]); + } + return Yo::delete_echo($ids); } @@ -211,7 +216,12 @@ class AppointmentController extends Controller Login::admin([], [15, 27]); $ids = $request->post('ids'); $status = $request->post('status'); - Appointment::whereIn('id', $ids)->where('hospital', Login::$info->hospital)->update(['status' => $status]); + if(Login::$info->id==1){ + Appointment::whereIn('id', $ids)->update(['status' => $status]); + }else{ + Appointment::whereIn('id', $ids)->where('hospital', Login::$info->hospital)->update(['status' => $status]); + } + return Yo::update_echo($ids); } @@ -220,7 +230,12 @@ class AppointmentController extends Controller Login::admin([], [15, 27]); $ids = $request->post('ids'); $count = $request->post('count'); - Appointment::whereIn('id', $ids)->where('hospital', Login::$info->hospital)->update(['max_count' => $count]); + if(Login::$info->id==1){ + Appointment::whereIn('id', $ids)->update(['max_count' => $count]); + }else{ + Appointment::whereIn('id', $ids)->where('hospital', Login::$info->hospital)->update(['max_count' => $count]); + } + return Yo::update_echo($ids); } diff --git a/北京仁仁体检平台报告对比/api/api.js b/北京仁仁体检平台报告对比/api/api.js index 27d27d0..425e5c9 100644 --- a/北京仁仁体检平台报告对比/api/api.js +++ b/北京仁仁体检平台报告对比/api/api.js @@ -1,5 +1,5 @@ let url_ = "https://bjrrtj-api.cjy.net.cn"; -const dev = 0 +const dev = 1 if (dev === 1) { url_ = "http://localbeijingrenren" } diff --git a/北京仁仁体检平台报告对比/api/index.js b/北京仁仁体检平台报告对比/api/index.js index 0508343..ef3237d 100644 --- a/北京仁仁体检平台报告对比/api/index.js +++ b/北京仁仁体检平台报告对比/api/index.js @@ -2,7 +2,7 @@ import { $post } from '@/lu/axios.js' let url_ = "https://bjrrtj-api.cjy.net.cn"; -const dev = 0 +const dev = 1 if (dev === 1) { url_ = "http://localbeijingrenren" } diff --git a/北京仁仁体检平台报告对比/pages/main/report/report.vue b/北京仁仁体检平台报告对比/pages/main/report/report.vue index e40df36..d02f38e 100644 --- a/北京仁仁体检平台报告对比/pages/main/report/report.vue +++ b/北京仁仁体检平台报告对比/pages/main/report/report.vue @@ -49,6 +49,7 @@ conclusion: response.data.conclusion, list: response.data.list, } + }) }