From 8b2028d8225e4400ae18299863d3b5005c26b18f Mon Sep 17 00:00:00 2001 From: Grain-Yu Date: Thu, 30 Nov 2023 12:48:11 +0800 Subject: [PATCH] draft --- sql/manual_review.py | 4 ++-- sql/templates/slowquery.html | 8 ++++---- sql/templates/sqlreview.html | 14 ++++++++------ 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/sql/manual_review.py b/sql/manual_review.py index b0ab990..bbb051b 100644 --- a/sql/manual_review.py +++ b/sql/manual_review.py @@ -26,7 +26,7 @@ -@permission_required("sql.menu_instance_account", raise_exception=True) +@permission_required("sql.menu_slowquery", raise_exception=True) def listreview(request): """获取优化详情列表""" checksum = request.POST.get("review_checksum") @@ -53,7 +53,7 @@ def listreview(request): content_type="application/json", ) -@permission_required("sql.instance_account_manage", raise_exception=True) +@permission_required("sql.menu_slowquery", raise_exception=True) def editreview(request): """编辑优化详情""" checksum = request.POST.get("checksum") diff --git a/sql/templates/slowquery.html b/sql/templates/slowquery.html index 2e89862..3225390 100644 --- a/sql/templates/slowquery.html +++ b/sql/templates/slowquery.html @@ -448,19 +448,19 @@ field: 'ReturnRowAvg', sortable:true }, { - title: '优化人', + title: '优化-提交人', field: 'ReviewedBy', sortable:true }, { - title: '优化日期', + title: '优化-更新日期', field: 'ReviewedOn', sortable:true }, { - title: '优化详情', + title: '优化-内容', field: 'Comments', sortable:true }, { - title: '优化状态', + title: '优化-状态', field: 'ReviewedStatus', sortable:true }], diff --git a/sql/templates/sqlreview.html b/sql/templates/sqlreview.html index b7795b3..06da87f 100644 --- a/sql/templates/sqlreview.html +++ b/sql/templates/sqlreview.html @@ -32,11 +32,11 @@
+ *状态
+ placeholder="请填写当前状态"> 请输入:open/resolved/pending/closed @@ -106,19 +106,21 @@ } }, columns: [{ - title: '校验和', + title: 'SQLID', field: 'checksum' },{ title: '提交人', field: 'reviewed_by' },{ - title: '提交日期', + title: '更新日期', field: 'reviewed_on' },{ title: '内容', - field: 'comments' + field: 'comments', + width: "30", + widthUnit: "%" },{ - title: '优化状态', + title: '状态', field: 'reviewed_status' },{ title: '操作',