Skip to content

Commit

Permalink
将状态列改为下拉框样式,修改提交人填充逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
Grain-Yu committed Dec 1, 2023
1 parent b931974 commit 26b870e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions sql/templates/sqlreview.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ <h4 class="modal-title">编辑详情</h4>
<label for="reviewed-status" class="col-sm-3 col-form-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="请填写当前状态">
<small id="editrewHelpBlock" class="form-text text-muted">
请输入open/resolved/pending/closed
</small>
<select id="reviewed-status" name="reviewed-status-name">
<option value="open">open</option>
<option value="resolved">resolved</option>
<option value="pending">pending</option>
<option value="closed">closed</option>
</select>
</div>
</div>
</div>
Expand Down Expand Up @@ -146,6 +146,7 @@ <h4 class="modal-title">编辑详情</h4>
//编辑页面
function review_edit(obj) {
review_checksum = $(obj).attr("review_checksum");
user= user;
$("#edit-review").modal('show');
//编辑详情
$("#editRevBtn").unbind("click").click(function () {
Expand All @@ -157,7 +158,7 @@ <h4 class="modal-title">编辑详情</h4>
dataType: "json",
data: {
checksum: review_checksum,
reviewed_by: 'admin',
reviewed_by: user,
reviewed_on: currenttime,
comments: $("#comments").val(),
reviewed_status: $("#reviewed-status").val(),
Expand Down

0 comments on commit 26b870e

Please sign in to comment.