task_history_update.blade.php 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. @extends('admin/layout')
  2. @section('header')
  3. <link href="{{asset('css/plugins/chosen/chosen.css')}}" rel="stylesheet">
  4. <link href="{{asset('css/plugins/switchery/switchery.css')}}" rel="stylesheet">
  5. {{--<link href="{{asset('js/plugins/bootstrap-select-1.13.5/css/bootstrap-select.min.css')}}" rel="stylesheet">--}}
  6. <link rel="stylesheet"
  7. href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">
  8. @endsection
  9. @section('content')
  10. <body class="gray-bg">
  11. <div class="wrapper wrapper-content animated fadeInRight">
  12. <div class="row">
  13. <div class="col-sm-12">
  14. <div class="ibox float-e-margins">
  15. <div class="ibox-content">
  16. <form method="post" class="form-horizontal" id="form">
  17. <div class="form-group">
  18. <label class="col-sm-2 control-label" for="nickname"><span
  19. class="red">* </span>检查反馈:</label>
  20. <div class="col-sm-6">
  21. <select class="form-control" id="cond_item_id" name="cond_item_id">
  22. <option value="0" @if ($weekTaskHistory->cond_item_id==0) selected @endif>
  23. 请选择类型
  24. </option>
  25. <option value="11" @if ($weekTaskHistory->cond_item_id==11) selected @endif>
  26. 非常满意
  27. </option>
  28. <option value="12" @if ($weekTaskHistory->cond_item_id==12) selected @endif>
  29. 满意
  30. </option>
  31. <option value="13" @if ($weekTaskHistory->cond_item_id==13) selected @endif>
  32. 一般
  33. </option>
  34. </select>
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <div class="col-sm-4 col-sm-offset-2">
  39. <button class="btn btn-primary" type="button" data-id="{{$weekTaskHistory->id??0}}"
  40. id="save">
  41. 保存
  42. </button>
  43. <button class="btn btn-white" type="button" id="cancel">取消</button>
  44. </div>
  45. </div>
  46. </form>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </body>
  53. @endsection
  54. @section('footer')
  55. <script src="{{asset('js/plugins/switchery/switchery.js')}}"></script>
  56. <script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/js/bootstrap-select.min.js"></script>
  57. <script>
  58. $(document).on('click', '#cancel', function () {
  59. tips.closeParentLayer();
  60. });
  61. $(document).on('click', '#save', function () {
  62. var id = $(this).data('id');
  63. var cond_item_id = $('#cond_item_id').val();
  64. var url = '/admin/plan/week-task/history-update/' + id;
  65. var type = 'get';
  66. var ajaxConfig = {
  67. url: url,
  68. type: type,
  69. data: {cond_item_id: cond_item_id},
  70. success: function (result) {
  71. layer.msg(result.message, {icon: 6, time: 1500}, function () {
  72. tips.closeParentLayer();
  73. window.parent.tips.tableRefresh('#table');
  74. });
  75. }
  76. };
  77. tips.ajax(ajaxConfig);
  78. });
  79. </script>
  80. @endsection