新增不限制判断

This commit is contained in:
liaozetao
2024-03-21 11:55:39 +08:00
parent 379f48a05d
commit a004dc989f

View File

@@ -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);