Commit 39ff7ea1 by 陈浩建

replaceAll兼容性差,改用replace

parent 67e8f960
...@@ -383,14 +383,14 @@ export default { ...@@ -383,14 +383,14 @@ export default {
if (text == undefined) { if (text == undefined) {
return '\n'; return '\n';
} }
return <span style="white-space: pre-line;">{text.replaceAll(',', '\n')}</span>; return <span style="white-space: pre-line;">{text.replace(',', '\n')}</span>;
} }
}, },
{dataIndex: 'kdy_btn', width: 180, title: '是否显示宽叠移提速',customRender: function(text) { {dataIndex: 'kdy_btn', width: 180, title: '是否显示宽叠移提速',customRender: function(text) {
if (text == undefined) { if (text == undefined) {
return '\n'; return '\n';
} }
return <span style="white-space: pre-line;">{text.replaceAll(',', '\n')}</span>; return <span style="white-space: pre-line;">{text.replace(',', '\n')}</span>;
} }
}, },
{dataIndex: 'university_package_number', width: 60, title: '揽装工号'}, {dataIndex: 'university_package_number', width: 60, title: '揽装工号'},
...@@ -896,4 +896,4 @@ export default { ...@@ -896,4 +896,4 @@ export default {
border-bottom: 1px solid grey; border-bottom: 1px solid grey;
margin-bottom: 20px; margin-bottom: 20px;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment