|
|
@@ -11,6 +11,20 @@
|
|
|
<div class="row m-0 mt-3">
|
|
|
<div class="col-5">
|
|
|
<div class="form-group">
|
|
|
+ <h6>查询助手</h6>
|
|
|
+ <div class="card w-50">
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
+ <li class="list-group-item">
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox" id="assistant-show"
|
|
|
+ <%= ctx.session.sessionProject.page_show.openAssistant !== 0 ? 'checked' : '' %>>
|
|
|
+ <label class="form-check-label" for="assistant-show">查询助手</label>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
<h6>计量管理默认显示</h6>
|
|
|
<div class="card w-50">
|
|
|
<ul class="list-group list-group-flush" id="tenderList">
|
|
|
@@ -79,6 +93,17 @@
|
|
|
<script>
|
|
|
$(function () {
|
|
|
autoFlashHeight();
|
|
|
+ $('#assistant-show').on('change', function() {
|
|
|
+ const checkbox = this;
|
|
|
+ const enabled = checkbox.checked ? 1 : 0;
|
|
|
+ checkbox.disabled = true;
|
|
|
+ postData('/setting/show/assistant', { enabled }, function() {
|
|
|
+ window.location.reload();
|
|
|
+ }, function() {
|
|
|
+ checkbox.checked = !enabled;
|
|
|
+ checkbox.disabled = false;
|
|
|
+ });
|
|
|
+ });
|
|
|
})
|
|
|
const showList = JSON.parse('<%- JSON.stringify(showList) %>');
|
|
|
const updateColShow = function (sub, field, obj) {
|