|
@@ -262,7 +262,7 @@ $(document).ready(function () {
|
|
|
self.val(self.attr('org-value'));
|
|
|
})
|
|
|
});
|
|
|
- // 指标参数,绑定参数取值(分项编号)
|
|
|
+ // 全局指标参数,绑定参数取值(分项编号)
|
|
|
$('input[name=globalParamMatchCode]').blur(function () {
|
|
|
const self = $(this);
|
|
|
if (self.val() === self.attr('org-value')) { return; }
|
|
@@ -279,7 +279,7 @@ $(document).ready(function () {
|
|
|
})
|
|
|
});
|
|
|
// 指标参数,选择取值类别
|
|
|
- $('a[name=paramMatchNum]').click(function () {
|
|
|
+ $('a[name=nodeParamMatchNum]').click(function () {
|
|
|
const self = $(this);
|
|
|
const newMatchNum = self.attr('value');
|
|
|
const oldMatchNum = self.parent().prev().val();
|
|
@@ -298,4 +298,23 @@ $(document).ready(function () {
|
|
|
self.parent().prev().text(data.match_num_str);
|
|
|
})
|
|
|
});
|
|
|
+ // 全局指标参数,选择取值类别
|
|
|
+ $('a[name=globalParamMatchNum]').click(function () {
|
|
|
+ const self = $(this);
|
|
|
+ const newMatchNum = self.attr('value');
|
|
|
+ const oldMatchNum = self.parent().prev().val();
|
|
|
+ if (newMatchNum === oldMatchNum) { return; }
|
|
|
+ const paramCode = $(this).parent().parent().parent().parent().prev().attr('code');
|
|
|
+ postData('/template/updateParamMatch', {
|
|
|
+ node_id: 0,
|
|
|
+ code: paramCode,
|
|
|
+ match_num: newMatchNum,
|
|
|
+ }, function (data) {
|
|
|
+ self.parent().prev().val(data.match_num);
|
|
|
+ self.parent().prev().text(data.match_num_str);
|
|
|
+ }, function (data) {
|
|
|
+ self.parent().prev().val(data.match_num);
|
|
|
+ self.parent().prev().text(data.match_num_str);
|
|
|
+ })
|
|
|
+ });
|
|
|
});
|