✨ feat: 基本数据流程
This commit is contained in:
parent
50b04a4adf
commit
c29f4c6481
@ -117,7 +117,7 @@ function testExpression(item: ResultExpression) {
|
|||||||
notification.info({
|
notification.info({
|
||||||
message: '提示',
|
message: '提示',
|
||||||
description: `${item.title}:${value}`,
|
description: `${item.title}:${value}`,
|
||||||
duration: 2
|
duration: 0
|
||||||
})
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
modal.warning({
|
modal.warning({
|
||||||
@ -134,15 +134,19 @@ function parseExpression(str: string) {
|
|||||||
if (!doc.content || doc.content.length == 0) {
|
if (!doc.content || doc.content.length == 0) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
const expressionList = doc.content[0].content;
|
const expList: string[] = [];
|
||||||
if (!expressionList) return '';
|
doc.content.forEach(p=>{
|
||||||
const expression = expressionList.map(item => {
|
const expressionList = p.content;
|
||||||
if (item.type == 'text') {
|
if (!expressionList) return;
|
||||||
return item.text;
|
const expression = expressionList.map(item => {
|
||||||
}
|
if (item.type == 'text') {
|
||||||
return item.attrs.id
|
return item.text;
|
||||||
}).join('');
|
}
|
||||||
return expression;
|
return item.attrs.id
|
||||||
|
}).join('');
|
||||||
|
expList.push(expression);
|
||||||
|
})
|
||||||
|
return expList.join('');
|
||||||
// console.log(JSON.stringify({content:doc.content[0].content}))
|
// console.log(JSON.stringify({content:doc.content[0].content}))
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user