관리자페이지 - 공통코드 검색

developer.do·2023년 5월 13일
0

검색

  // 서버 없이 필터 만들기
  // codeGroupFilterList.value = codeGroupList.value.filter((res) => {
  //   if (status === "전체") {
  //     if (condition === "전체") {
  //       if (
  //         res.codeGroupId === input ||
  //         res.groupName === input ||
  //         res.description === input
  //       ) {
  //         return res;
  //       }
  //     } else if (condition === "코드그룹ID") {
  //       if (res.codeGroupId === input) {
  //         return res;
  //       }
  //     } else if (condition === "코드그룹 명") {
  //       if (res.groupName === input) {
  //         return res;
  //       }
  //     } else if (condition === "코드그룹 설명" && res.description === input) {
  //       return res;
  //     }
  //   } else {
  //     if (condition === "전체") {
  //       if (
  //         (res.codeGroupId === input ||
  //           res.groupName === input ||
  //           res.description === input) &&
  //         res.use === status
  //       ) {
  //         return res;
  //       }
  //     } else if (condition === "코드그룹ID") {
  //       if (res.codeGroupId === input && res.use === status) {
  //         return res;
  //       }
  //     } else if (condition === "코드그룹 명") {
  //       if (res.groupName === input && res.use === status) {
  //         return res;
  //       }
  //     } else if (
  //       condition === "코드그룹 설명" &&
  //       res.description === input &&
  //       res.use === status
  //     ) {
  //       return res;
  //     }
  //   }
  // });

0개의 댓글