|
@@ -279,6 +279,7 @@ $(document).ready(function() {
|
|
|
cols: [
|
|
|
{ title: '名称', colSpan: '1', rowSpan: '1', field: 'name', hAlign: 0, width: 250, formatter: '@', readOnly: true, cellType: 'tree' },
|
|
|
{ title: '固定', colSpan: '1', rowSpan: '1', field: 'is_fixed', hAlign: 1, width: 50, cellType: 'checkbox' },
|
|
|
+ { title: '提示', colSpan: '1', rowSpan: '1', field: 'tips', hAlign: 0, width: 280, formatter: '@', wordWrap: 1 },
|
|
|
],
|
|
|
emptyRows: 0,
|
|
|
headRows: 1,
|
|
@@ -343,6 +344,13 @@ $(document).ready(function() {
|
|
|
}
|
|
|
SpreadJsObj.reLoadRowsData(info.sheet, row);
|
|
|
});
|
|
|
+ this.spread.bind(spreadNS.Events.EditEnded, function(e, info) {
|
|
|
+ if (!info.sheet.zh_setting) return;
|
|
|
+ const col = info.sheet.zh_setting.cols[info.col];
|
|
|
+ const node = SpreadJsObj.getSelectObject(info.sheet);
|
|
|
+ node[col.field] = trimInvalidChar(info.editingText);
|
|
|
+ SpreadJsObj.reLoadRowData(info.sheet, info.row)
|
|
|
+ });
|
|
|
$(`#${setting.modal}-ok`).click(function() {
|
|
|
try {
|
|
|
const data = self.getMultiUpdateData();
|
|
@@ -369,7 +377,7 @@ $(document).ready(function() {
|
|
|
if (!fixedParent) throw `【${node.name}】查询不到固定信息`;
|
|
|
filing_type = fixedParent.source_filing_type;
|
|
|
}
|
|
|
- data.push({ id: node.id, is_fixed: node.is_fixed, filing_type, tree_order: i + 1 });
|
|
|
+ data.push({ id: node.id, is_fixed: node.is_fixed, filing_type, tree_order: i + 1, tips: node.tips || '' });
|
|
|
if (node.children) getUpdateData(node.children);
|
|
|
}
|
|
|
};
|
|
@@ -392,6 +400,7 @@ $(document).ready(function() {
|
|
|
name: node.name,
|
|
|
is_fixed: node.is_fixed,
|
|
|
filing_type: node.filing_type,
|
|
|
+ tips: node.tips,
|
|
|
});
|
|
|
}
|
|
|
return data;
|
|
@@ -412,6 +421,7 @@ $(document).ready(function() {
|
|
|
name: node.name,
|
|
|
is_fixed: node.is_fixed,
|
|
|
filing_type: node.filing_type,
|
|
|
+ tips: node.tips,
|
|
|
}});
|
|
|
const blob = new Blob([JSON.stringify(exportData, '', '')], { type: 'application/text'});
|
|
|
const template = templateList.find(x => { return x.id === sourceTree.nodes[0].temp_id });
|