新增不限制判断
This commit is contained in:
@@ -144,6 +144,9 @@ export default {
|
||||
$this.disableTableInfo();
|
||||
$this.renderTableInfo();
|
||||
});
|
||||
$("#addCancel").click(function () {
|
||||
$("#addModal").modal("hide");
|
||||
});
|
||||
});
|
||||
},
|
||||
add() {
|
||||
@@ -224,13 +227,13 @@ export default {
|
||||
);
|
||||
}
|
||||
tds.push(
|
||||
`<td><input class="input-sm" name="maxValue" data-idx="${i}" value="${item.maxValue}"></td>`
|
||||
`<td><input class="input-sm" name="maxValue" data-idx="${i}" value="${(!item.maxValue || item.maxValue == 0) ? '' : item.maxValue}"></td>`
|
||||
);
|
||||
} else {
|
||||
tds.push(
|
||||
`<td><i class="glyphicon glyphicon-remove js-remove-item" data-idx="${i}"></i>${item.minValue}</td>`
|
||||
`<td></i>${item.minValue}</td>`
|
||||
);
|
||||
tds.push(`<td>${item.maxValue}</td>`);
|
||||
tds.push(`<td>${(!item.maxValue || item.maxValue == 0) ? '不限制' : item.maxValue}</td>`);
|
||||
}
|
||||
let row = `<tr>${tds.join()}</tr>`;
|
||||
$groupTable.append(row);
|
||||
|
Reference in New Issue
Block a user