diff --git a/application/admin/controller/oa/Schedule.php b/application/admin/controller/oa/Schedule.php index 6387656..6f1bce8 100644 --- a/application/admin/controller/oa/Schedule.php +++ b/application/admin/controller/oa/Schedule.php @@ -250,4 +250,9 @@ class Schedule extends Backend $this->success(); } + + public function xtablesave() + { + $this->success(); + } } diff --git a/public/assets/js/backend/oa/schedule.js b/public/assets/js/backend/oa/schedule.js index 86a4a76..0889440 100644 --- a/public/assets/js/backend/oa/schedule.js +++ b/public/assets/js/backend/oa/schedule.js @@ -1,4 +1,4 @@ -define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { +define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'editable'], function ($, undefined, Backend, Table, Form) { var Controller = { index: function () { @@ -73,6 +73,17 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin defaultColumnArr.push({ "title": tmpDate, "field": tmpDate, + "editable" :{ + type: 'select', + pk: 1, + source: [ + {value: '无', text: '无'}, + {value: '早班', text: '早班'}, + {value: '中班', text: '中班'}, + {value: '晚班', text: '晚班'}, + {value: '行政班', text: '行政班'}, + ] + } }); } @@ -107,6 +118,17 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin changeColumn.push({ "title": tmpDate, "field": tmpDate, + "editable" :{ + type: 'select', + pk: 1, + source: [ + {value: '无', text: '无'}, + {value: '早班', text: '早班'}, + {value: '中班', text: '中班'}, + {value: '晚班', text: '晚班'}, + {value: '行政班', text: '行政班'}, + ] + } }); }