fix: 转换弹窗优化
- 内容预览保留换行格式,提高可读性 - 转换方式默认改为复制创建
This commit is contained in:
@@ -1022,13 +1022,13 @@ INDEX_TEMPLATE = '''
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-bold">转换方式</label>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="convertMode" id="modeConvert" value="convert" checked>
|
||||
<input class="form-check-input" type="radio" name="convertMode" id="modeConvert" value="convert">
|
||||
<label class="form-check-label" for="modeConvert">
|
||||
<strong>直接转换</strong> - 原收藏变为待办,数据合并
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="convertMode" id="modeCopy" value="copy">
|
||||
<input class="form-check-input" type="radio" name="convertMode" id="modeCopy" value="copy" checked>
|
||||
<label class="form-check-label" for="modeCopy">
|
||||
<strong>复制创建</strong> - 保留原收藏,新建待办任务
|
||||
</label>
|
||||
@@ -1067,7 +1067,7 @@ INDEX_TEMPLATE = '''
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label text-muted">内容预览(转换后会合并到待办备注)</label>
|
||||
<div id="convertPreview" class="border rounded p-2 bg-light" style="max-height: 150px; overflow-y: auto;">
|
||||
<div id="convertPreview" class="border rounded p-2 bg-light" style="max-height: 150px; overflow-y: auto; white-space: pre-wrap; word-break: break-all;">
|
||||
<!-- 动态填充 -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -1335,8 +1335,8 @@ async function showConvertModal(itemId) {
|
||||
// 设置默认标题
|
||||
document.getElementById('convertTitle').value = convertItemData.title || '';
|
||||
|
||||
// 重置选项
|
||||
document.getElementById('modeConvert').checked = true;
|
||||
// 重置选项(默认复制创建)
|
||||
document.getElementById('modeCopy').checked = true;
|
||||
document.getElementById('convertStatus').value = 'pending';
|
||||
document.getElementById('convertPriority').value = 'medium';
|
||||
document.getElementById('convertDueDate').value = '';
|
||||
|
||||
Reference in New Issue
Block a user