feiyu02
2025-09-17 b330e57051e54789eb83d10dc58c4d9d10c608e1
src/views/fysp/task/TaskProxy.js
@@ -4,5 +4,28 @@
   */
  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('#')
    };
  }
}