1
0

2 Commits

Author SHA1 Message Date
bb9f87dbd2 fix(web):优化代码格式
- 修改了 visibleOn 属性的字符串格式,统一使用双引号
- 移除了不必要的反引号,简化了字符串表达式
2024-12-24 14:53:54 +08:00
381c23e94c feat(web): 增加标签展示 2024-12-24 10:07:57 +08:00
2 changed files with 16 additions and 6 deletions

View File

@@ -99,6 +99,16 @@ function detailForm() {
trimContents: true,
minRows: 2,
maxRows: 2,
maxLength: 100,
},
{
type: 'input-tag',
name: 'tags',
label: '标签',
max: 10,
maxTagLength: 10,
joinValues: false,
extractValue: true,
},
{
type: 'input-rich-text',

View File

@@ -31,7 +31,7 @@ export function tabCheck() {
stringField('modifiedUsername', '最后操作人', 100),
operationField('操作', undefined, [
{
visibleOn: `\${type === 'CONFIRMATION' && state === 'CHECKING'}`,
visibleOn: "${type === 'CONFIRMATION' && state === 'CHECKING'}",
type: 'action',
label: '处理',
level: 'link',
@@ -58,14 +58,14 @@ export function tabCheck() {
),
},
{
visibleOn: `\${type === 'CONFIRMATION' && state !== NORMAL}`,
visibleOn: "${type === 'CONFIRMATION' && state !== NORMAL}",
type: 'action',
label: '查看',
level: 'link',
...confirmationDetailDialog('parameters.confirmationId'),
},
{
visibleOn: `\${type === 'AUTHENTICATION' && state === 'CHECKING'}`,
visibleOn: "${type === 'AUTHENTICATION' && state === 'CHECKING'}",
type: 'action',
label: '处理',
level: 'link',
@@ -92,14 +92,14 @@ export function tabCheck() {
),
},
{
visibleOn: `\${type === 'AUTHENTICATION' && state !== NORMAL}`,
visibleOn: "${type === 'AUTHENTICATION' && state !== NORMAL}",
type: 'action',
label: '查看',
level: 'link',
...authenticationDetailDialog('parameters.authenticationId'),
},
{
visibleOn: `\${type === 'MARKET' && state === 'CHECKING'}`,
visibleOn: "${type === 'MARKET' && state === 'CHECKING'}",
type: 'action',
label: '处理',
level: 'link',
@@ -126,7 +126,7 @@ export function tabCheck() {
),
},
{
visibleOn: `\${type === 'MARKET' && state !== NORMAL}`,
visibleOn: "${type === 'MARKET' && state !== NORMAL}",
type: 'action',
label: '查看',
level: 'link',