|
|
@@ -879,6 +879,8 @@ const billsGuidance = (function () {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ //编辑后自动去除换行符回车符
|
|
|
+ const deESC = /[\r, \n]/g;
|
|
|
//项目指引编辑
|
|
|
//@param {Object}sheet {Array}cells
|
|
|
function edit(sheet, cells){
|
|
|
@@ -888,6 +890,8 @@ const billsGuidance = (function () {
|
|
|
for(let cell of cells){
|
|
|
let text = sheet.getValue(cell.row, cell.col);
|
|
|
text = text ? text : '';
|
|
|
+ text = text.replace(deESC, '');
|
|
|
+ sheet.setValue(cell.row, cell.col, text);
|
|
|
let node = bills.tree.selected.guidance.tree.items[cell.row];
|
|
|
if(node.data.name != text){
|
|
|
syncDatas.push({node: node, text: text});
|