|
|
@@ -178,7 +178,21 @@ $(document).ready(() => {
|
|
|
quality: '质量管理',
|
|
|
};
|
|
|
const tabTypeKeys = ['tourist', 'schedule', 'contract', 'construction', 'quality'];
|
|
|
-
|
|
|
+
|
|
|
+ const $filterTenderDone = $('body #filter-tender-done')
|
|
|
+ if (window.location.search && window.location.search.split('done=')[1]) {
|
|
|
+ $filterTenderDone.prop('checked', window.location.search.split('done=')[1] === '1' ? true : false);
|
|
|
+ } else {
|
|
|
+ $filterTenderDone.prop('checked', true);
|
|
|
+ }
|
|
|
+ $filterTenderDone.on('change', function() {
|
|
|
+ const isChecked = $(this).is(':checked');
|
|
|
+ if (isChecked) {
|
|
|
+ window.location.href = `/sp/${spid}/setting/manage?done=1`;
|
|
|
+ } else {
|
|
|
+ window.location.href = `/sp/${spid}/setting/manage?done=0`;
|
|
|
+ }
|
|
|
+ });
|
|
|
$('body').on('click', '.c-body .tender-info', function () {
|
|
|
$('.c-body .tender-info').removeClass('table-warning');
|
|
|
$(this).addClass('table-warning');
|