Skip to content

Commit

Permalink
draft
Browse files Browse the repository at this point in the history
  • Loading branch information
Grain-Yu committed Nov 30, 2023
1 parent a1a7eb6 commit 8b2028d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions sql/manual_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down
8 changes: 4 additions & 4 deletions sql/templates/slowquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
}],
Expand Down
14 changes: 8 additions & 6 deletions sql/templates/sqlreview.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ <h4 class="modal-title">编辑详情</h4>
</div>
<div class="form-group row">
<label for="reviewed-status" class="col-sm-3 col-form-label">
<span style="color:red">*</span>优化状态</label>
<span style="color:red">*</span>状态</label>
<div class="col-sm-9">
<input type="text" id="reviewed-status" class="form-control"
aria-describedby="editrewHelpBlock"
placeholder="请填写优化状态">
placeholder="请填写当前状态">
<small id="editrewHelpBlock" class="form-text text-muted">
请输入open/resolved/pending/closed
</small>
Expand Down Expand Up @@ -106,19 +106,21 @@ <h4 class="modal-title">编辑详情</h4>
}
},
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: '操作',
Expand Down

0 comments on commit 8b2028d

Please sign in to comment.