diff --git a/server/views.py b/server/views.py index 3b0a733..fe43101 100644 --- a/server/views.py +++ b/server/views.py @@ -57,7 +57,7 @@ class JsMindLogView(ListAPIView): coop_mind_name = request.data.get('mind_name') snapshot_data = request.data.get('snapshot_data') print(snapshot_data) - mind = CooperationMind(coop_mind_name=coop_mind_name, client_id='', snapshot_log_id=-1, creator=-1, snapshot_data=snapshot_data) + mind = CooperationMind(coop_mind_name=coop_mind_name, client_id='', snapshot_log_id=-1, creator=9527, snapshot_data=snapshot_data) mind.save() return build_response(data=mind.id) diff --git a/static/html/list.html b/static/html/list.html index 754ca84..4cb6cf1 100644 --- a/static/html/list.html +++ b/static/html/list.html @@ -49,13 +49,16 @@ }, // 获取数据 fetch_data: function () { + const me = this const get_param = {'page': this.current_page, 'page_size': this.limit} if (this.get_coop_mind_name()) { get_param.coop_mind_name = this.get_coop_mind_name() } $.get('list', get_param, function (resp) { - console.log(resp) + // 清空数据 $('#layui-table tbody').empty() + $('#' + me.opts.page_bar_elem).empty() + const results = resp.results results.forEach(item => { const tr = `