1
0

feat: 增加正文处理逻辑

This commit is contained in:
2024-12-22 22:34:48 +08:00
parent f0e4778034
commit 327fa30ab8
4 changed files with 113 additions and 12 deletions

View File

@@ -71,21 +71,19 @@
name: 'description',
label: '描述',
},
{
name: 'source',
label: '来源',
width: 200,
},
{
type: 'operation',
label: '操作',
fixed: 'right',
className: 'nowrap',
width: 300,
width: 250,
buttons: [
{
type: 'action',
label: '跳转',
actionType: 'url',
url: '${source}',
blank: true,
},
{
type: 'action',
@@ -165,6 +163,7 @@
silentPolling: true,
body: {
type: 'tpl',
className: 'font-serif',
tpl: '${item|raw}'
}
}
@@ -255,6 +254,48 @@
className: 'nowrap',
width: 100,
buttons: [
{
type: 'action',
label: '处理',
actionType: 'dialog',
dialog: {
title: '文本处理',
size: 'lg',
body: {
debug: true,
type: 'form',
canAccessSuperData: false,
initApi: '${base}/line/detail/${lineId}',
api: '${base}/line/save/${chapterId}',
body: [
{
type: 'hidden',
name: 'lineId',
},
{
type: 'textarea',
name: 'text',
label: '正文',
...formInputClearable(),
showCounter: true,
trimContents: true,
minRows: 5,
maxRows: 5,
},
{
type: 'textarea',
name: 'newText',
label: '优化后正文',
...formInputClearable(),
showCounter: true,
trimContents: true,
minRows: 5,
maxRows: 5,
},
]
}
}
},
{
type: 'action',
label: '删除',
@@ -307,7 +348,6 @@
{
data: {
base: 'http://127.0.0.1:23890',
debug: debug,
},
},
{