export default { /** * 生成巡查子任务对象 */ ceateSubTask(){ }, /** * 根据多选下拉框的选项值,返回任务执行人对象 * @returns */ getExecutors(data, executorOptions) { const ids = []; const uNames = []; const rNames = []; executorOptions.forEach((e) => { const index = data.indexOf(e.value); if (index != -1) { ids.push(e.data.id); uNames.push(e.data.userName); rNames.push(e.data.realName); } }); return { ids: ids.join('#'), uName: uNames.join('#'), rName: rNames.join('#') }; } }