weizong song 5 years ago
parent d4c069f793
commit 20ec4fa4ed

@ -120,7 +120,7 @@ class ProjectController extends CommonController
return $this->error("不正确的类型");
}
return $this->success($res);
return $this->success("添加成功!",'',$res);
}
public function editDepartment(Request $request)

@ -13,7 +13,7 @@
<div class="col-4 pr-0">
<div class="card">
<div class="card-body p-0 ">
<table class="table border-bottom border-light mb-0 treetable" id="data-table">
<table class="table border-bottom border-light mb-0 treetable" id="tree-table">
<tbody>
<tr role="row" data-id="{{$project->id}}" data-type="project" data-name="{{$project->name}}"
data-myindex="{{$project->myindex}}" data-tt-id="project{{$project->id}}">
@ -196,7 +196,7 @@
<script>
$(function () {
$("#data-table tr").hover(function () {
$("#tree-table tr").hover(function () {
$(this).find("button").removeClass("d-none");
}, function () {
$(this).find("button").addClass("d-none");
@ -305,7 +305,7 @@
$("#model-form").modal("hide");
$.post(url, data, function (res) {
if (res.status) {
console.log(res);
if (res.data.room_id) {
$("#data-table tbody").prepend('<tr data-type="bed">\n' +
' <td>'+res.data.name+'</td>\n' +

Loading…
Cancel
Save