Commit 87d45eb5 authored by 徐一鸣's avatar 徐一鸣

服务超市服务详情更新

parent b5f0300e
......@@ -197,19 +197,19 @@ export default {
},
getTableData(tableStr) {
let tabledata = (tableStr && JSON.parse(tableStr)) || [];
let addId = (data, baseId = "") => {
let addRowId = (data, baseId = "") => {
data.forEach((item, index) => {
let rowId = baseId + (index + 1) + "";
item.rowId = rowId;
if (item.children && item.children.length) {
addId(item.children, rowId);
addRowId(item.children, rowId);
}
});
};
addId(tabledata);
addRowId(tabledata);
return tabledata;
},
......
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