|
|
@@ -228,10 +228,14 @@ layui.config({
|
|
|
try {
|
|
|
var body = layui.layer.getChildFrame('body', index);
|
|
|
body.find('#id').val(data.id);
|
|
|
- body.find('#chapterNumber').val(data.userName);
|
|
|
- body.find(`#chapterLevel input[value="${data.chapterLevel}"]`).prop('checked', true);
|
|
|
- body.find('#chapterTitle').val(data.userName);
|
|
|
- body.find(`#contentType input[value="${data.contentType}"]`).prop('checked', true);
|
|
|
+ body.find('#chapterNumber').val(data.chapterNumber);
|
|
|
+ body.find('#chapterLevel input[value="${data.chapterLevel}"]').prop('checked', true);
|
|
|
+ body.find('#chapterTitle').val(data.chapterTitle);
|
|
|
+ body.find('#contentType input[value="${data.contentType}"]').prop('checked', true);
|
|
|
+ body.find('#wordCount').val(data.wordCount);
|
|
|
+ body.find('#version').val(data.version);
|
|
|
+ body.find('#contentText').val(data.contentText);
|
|
|
+ body.find('#isPublic input[value="${data.isPublic}"]').prop('checked', true);
|
|
|
|
|
|
var formFields = {
|
|
|
'#id': data.id ? BigInt(data.id).toString() : '',
|