06 2022 档案
摘要:npm install js-table2excel import table2excel from 'js-table2excel' const column = [ { title: '维修内容', key: 'title', type: 'text' }, { title: '维修图', ke
阅读全文
摘要:/** * 功能:对比两个纯数组之间的数据差异 * @param {source_data} sourceData 原始数据(必选) * @param {String} newData 更新后的数据(必选) * @return {Array} 返回的 add_data, delete_data,更新
阅读全文
摘要:/** * @param {Array} sourceData 原始数据(必选) * @param {String} keyName 单条数据中的唯一标识符字段名(必选) * @param {String} parentKeyName 单条数据中的上级唯一标识符的字段名(必选) * @return
阅读全文
摘要:/** * @param {Array} dataList 完整数据(必传) * @param {Sting/Int} keyName 对哪个字段进行与targetID对比(必传) * @param {Sting/Int} targetID 目标数据的唯一标识符(必传) * @param {Stin
阅读全文
摘要:1、参考数据 [ { id: 1, label: '一级 1', children: [ { id: 4, label: '二级 1-1', children: [ { id: 9, label: '三级 1-1-1', }, { id: 10, label: '三级 1-1-2', }, ], }
阅读全文