|
@@ -137,24 +137,27 @@ class codeRuleSet {
|
|
|
|
|
|
$(document).ready(() => {
|
|
$(document).ready(() => {
|
|
// 首次进入设置
|
|
// 首次进入设置
|
|
- if (cRuleFirst) {
|
|
|
|
|
|
+ let showNoNeed = false;
|
|
|
|
+ if (parseInt(cRuleFirst)) {
|
|
codeRule = [];
|
|
codeRule = [];
|
|
- const firstSet = new codeRuleSet($('div.modal-body', '#first'));
|
|
|
|
- // 确认规则上传服务器
|
|
|
|
- $('#setRule', '#first').bind('click', function () {
|
|
|
|
- const data = {
|
|
|
|
- rule: ruleType,
|
|
|
|
- connector: connectorRule,
|
|
|
|
- data: JSON.stringify(codeRule),
|
|
|
|
|
|
+ showNoNeed = true;
|
|
|
|
+ // const firstSet = new codeRuleSet($('div.modal-body', '#first'));
|
|
|
|
+ // // 确认规则上传服务器
|
|
|
|
+ // $('#setRule', '#first').bind('click', function () {
|
|
|
|
+ // const data = {
|
|
|
|
+ // rule: ruleType,
|
|
|
|
+ // connector: connectorRule,
|
|
|
|
+ // data: JSON.stringify(codeRule),
|
|
|
|
+ //
|
|
|
|
+ // };
|
|
|
|
+ // postData('/tender/rule', data, function () {
|
|
|
|
+ // $('#first').modal('hide');
|
|
|
|
+ // $('#add-bj').modal('show');
|
|
|
|
+ // });
|
|
|
|
+ // });
|
|
|
|
|
|
- };
|
|
|
|
- postData('/tender/rule', data, function () {
|
|
|
|
- $('#first').modal('hide');
|
|
|
|
- $('#add-bj').modal('show');
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- $('#first').modal('show');
|
|
|
|
|
|
+ // $('#first').modal('show');
|
|
|
|
+ $('#setting').modal('show');
|
|
} else if ($('#changList').children.length === 0) {
|
|
} else if ($('#changList').children.length === 0) {
|
|
$('#add-bj').modal('show');
|
|
$('#add-bj').modal('show');
|
|
}
|
|
}
|
|
@@ -168,6 +171,9 @@ $(document).ready(() => {
|
|
};
|
|
};
|
|
postData('/tender/rule', data, function () {
|
|
postData('/tender/rule', data, function () {
|
|
$('#setting').modal('hide');
|
|
$('#setting').modal('hide');
|
|
|
|
+ if (parseInt(cRuleFirst) && showNoNeed) {
|
|
|
|
+ $('#add-bj').modal('show');
|
|
|
|
+ }
|
|
});
|
|
});
|
|
})
|
|
})
|
|
// 新增变更令 modal显示
|
|
// 新增变更令 modal显示
|
|
@@ -211,6 +217,10 @@ $(document).ready(() => {
|
|
});
|
|
});
|
|
// 不再显示首次使用
|
|
// 不再显示首次使用
|
|
$('#changeFirst').click(function () {
|
|
$('#changeFirst').click(function () {
|
|
|
|
+ showNoNeed = false;
|
|
|
|
+ $('#changeFirst').remove();
|
|
|
|
+ $('#hide_modal').show();
|
|
|
|
+ $('#setting').modal('hide');
|
|
postData('/tender/'+ $('#tenderId').val() +'/rule/first', '', function () {
|
|
postData('/tender/'+ $('#tenderId').val() +'/rule/first', '', function () {
|
|
});
|
|
});
|
|
})
|
|
})
|