修改bug

master
elf 2 years ago
parent 4dc81e3a8d
commit 41fe81d4a1

@ -488,11 +488,12 @@ body {
if (num <= 0) { if (num <= 0) {
return layer.msg('资源数量需要大于0') return layer.msg('资源数量需要大于0')
} }
var numReadonly = isEnableNum == 1 ? '' : 'readonly'
var html = '<tr class="normal-row" data-resource-id="' + resourceId + '" data-resource-type-id="' + resourceTypeId + '" >' + var html = '<tr class="normal-row" data-resource-id="' + resourceId + '" data-resource-type-id="' + resourceTypeId + '" >' +
'<td>' + resourceTypeName + '</td>' + '<td>' + resourceTypeName + '</td>' +
'<td>' + resourceName + '</td>' + '<td>' + resourceName + '</td>' +
'<td class="amount">' + amount + '</td>' + '<td class="amount">' + amount + '</td>' +
'<td class="num"><input name="num" type="text" value="' + num + '" readonly></td>' + '<td class="num"><input name="num" type="text" value="' + num + '" ' + numReadonly + '></td>' +
'<td class="remark"><input name="remark" type="text" value="' + remark + '"></td>' + '<td class="remark"><input name="remark" type="text" value="' + remark + '"></td>' +
'<td><button class="delete-row" type="button" class="danger-btn">删除</button></td>' + '<td><button class="delete-row" type="button" class="danger-btn">删除</button></td>' +
'</tr>'; '</tr>';

@ -442,11 +442,12 @@
return layer.msg('资源数量需要大于0') return layer.msg('资源数量需要大于0')
} }
var numReadonly = isEnableNum == 1 ? '' : 'readonly'
var html = '<tr class="normal-row" data-resource-id="' + resourceId + '" data-resource-type-id="' + resourceTypeId + '" >' + var html = '<tr class="normal-row" data-resource-id="' + resourceId + '" data-resource-type-id="' + resourceTypeId + '" >' +
'<td>' + resourceTypeName + '</td>' + '<td>' + resourceTypeName + '</td>' +
'<td>' + resourceName + '</td>' + '<td>' + resourceName + '</td>' +
'<td class="amount">' + amount + '</td>' + '<td class="amount">' + amount + '</td>' +
'<td class="num"><input name="num" type="text" value="' + num + '" readonly></td>' + '<td class="num"><input name="num" type="text" value="' + num + '" ' + numReadonly + '></td>' +
'<td class="remark"><input name="remark" type="text" value="' + remark + '"></td>' + '<td class="remark"><input name="remark" type="text" value="' + remark + '"></td>' +
'<td><button class="delete-row" type="button" class="danger-btn">删除</button></td>' + '<td><button class="delete-row" type="button" class="danger-btn">删除</button></td>' +
'</tr>'; '</tr>';

Loading…
Cancel
Save