feat: 增加正文处理逻辑
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user