fix database master bidang
This commit is contained in:
@@ -171,7 +171,7 @@ model Portofolio_BidangDanSubBidangBisnis {
|
||||
model MasterBidangBisnis {
|
||||
id String @id @default(uuid())
|
||||
name String
|
||||
slug String @unique @default("NULL")
|
||||
slug String @default("NULL")
|
||||
active Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now()) @updatedAt
|
||||
@@ -183,7 +183,7 @@ model MasterBidangBisnis {
|
||||
model MasterSubBidangBisnis {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
slug String @unique @default("NULL")
|
||||
slug String @default("NULL")
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now()) @updatedAt
|
||||
|
||||
@@ -102,7 +102,6 @@ export function Portofolio_ComponentButtonSelanjutnya({
|
||||
if (!validateData()) return;
|
||||
|
||||
try {
|
||||
console.log("listSubBidangSelected>>", listSubBidangSelected);
|
||||
setLoading(true);
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
funGlobal_UploadToStorage,
|
||||
} from "@/app_modules/_global/fun";
|
||||
import { MAX_SIZE } from "@/app_modules/_global/lib";
|
||||
import { PemberitahuanMaksimalFile } from "@/app_modules/_global/lib/maximal_setting";
|
||||
import { maxInputLength, PemberitahuanMaksimalFile } from "@/app_modules/_global/lib/maximal_setting";
|
||||
import { ComponentGlobal_NotifikasiPeringatan } from "@/app_modules/_global/notif_global";
|
||||
import { BIDANG_BISNIS_OLD } from "@/app_modules/model_global/portofolio";
|
||||
import {
|
||||
@@ -210,7 +210,7 @@ export default function CreatePortofolio() {
|
||||
color: MainColor.red,
|
||||
},
|
||||
}}
|
||||
maxLength={300}
|
||||
maxLength={maxInputLength}
|
||||
autosize
|
||||
minRows={2}
|
||||
maxRows={5}
|
||||
@@ -225,7 +225,7 @@ export default function CreatePortofolio() {
|
||||
}}
|
||||
/>
|
||||
<ComponentGlobal_InputCountDown
|
||||
maxInput={300}
|
||||
maxInput={maxInputLength}
|
||||
lengthInput={dataPortofolio.deskripsi.length}
|
||||
/>
|
||||
</Stack>
|
||||
|
||||
@@ -3,6 +3,7 @@ import { ComponentGlobal_LoadImage } from "@/app_modules/_global/component";
|
||||
import {
|
||||
Box,
|
||||
Button,
|
||||
Center,
|
||||
Divider,
|
||||
Grid,
|
||||
Group,
|
||||
@@ -40,7 +41,6 @@ export default function Portofolio_UiDetailDataNew() {
|
||||
setLoading(true);
|
||||
const response = await apiGetOnePortofolioById(param.id, "bisnis");
|
||||
if (response) {
|
||||
console.log(response.data);
|
||||
setDataPorto(response.data);
|
||||
}
|
||||
} catch (error) {
|
||||
@@ -81,23 +81,32 @@ export default function Portofolio_UiDetailDataNew() {
|
||||
</Group>
|
||||
<Stack>
|
||||
<SimpleGrid
|
||||
cols={2}
|
||||
cols={1}
|
||||
spacing={"md"}
|
||||
breakpoints={[
|
||||
{ maxWidth: "62rem", cols: 2, spacing: "md" },
|
||||
{ maxWidth: "48rem", cols: 1, spacing: "sm" },
|
||||
{ maxWidth: "36rem", cols: 1, spacing: "sm" },
|
||||
]}
|
||||
// breakpoints={[
|
||||
// { maxWidth: "62rem", cols: 2, spacing: "md" },
|
||||
// { maxWidth: "48rem", cols: 1, spacing: "sm" },
|
||||
// { maxWidth: "36rem", cols: 1, spacing: "sm" },
|
||||
// ]}
|
||||
>
|
||||
<Box>
|
||||
<Paper>
|
||||
<Center>
|
||||
<Box
|
||||
style={{
|
||||
background: "gray",
|
||||
width: 200,
|
||||
height: 200,
|
||||
borderRadius: "50%",
|
||||
objectFit: "cover",
|
||||
overflow: "hidden",
|
||||
}}
|
||||
>
|
||||
<ComponentGlobal_LoadImage
|
||||
fileId={String(dataPorto?.logoId)}
|
||||
/>
|
||||
</Paper>
|
||||
</Box>
|
||||
</Box>
|
||||
</Center>
|
||||
|
||||
<Box>
|
||||
<Stack>
|
||||
<Grid>
|
||||
<Grid.Col span={2}>
|
||||
<IconBuildingSkyscraper />
|
||||
@@ -107,24 +116,6 @@ export default function Portofolio_UiDetailDataNew() {
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
|
||||
<Grid>
|
||||
<Grid.Col span={2}>
|
||||
<IconListDetails />
|
||||
</Grid.Col>
|
||||
<Grid.Col span={"auto"}>
|
||||
<Text>{dataPorto?.bidangBisnis}</Text>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
{dataPorto?.subBidangBisnis.map((item, index) => (
|
||||
<Grid key={index} ml={2}>
|
||||
<Grid.Col span={2}>
|
||||
<IconCaretRightFilled />
|
||||
</Grid.Col>
|
||||
<Grid.Col span={"auto"}>
|
||||
<Text>{item}</Text>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
))}
|
||||
{/* <Grid>
|
||||
<Grid.Col span={2}>
|
||||
<IconListDetails />
|
||||
@@ -156,7 +147,26 @@ export default function Portofolio_UiDetailDataNew() {
|
||||
<Text>{dataPorto?.alamatKantor}</Text>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
</Box>
|
||||
|
||||
<Grid>
|
||||
<Grid.Col span={2}>
|
||||
<IconListDetails />
|
||||
</Grid.Col>
|
||||
<Grid.Col span={"auto"}>
|
||||
<Text>{dataPorto?.bidangBisnis}</Text>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
{dataPorto?.subBidangBisnis.map((item, index) => (
|
||||
<Grid key={index} ml={2}>
|
||||
<Grid.Col span={2}>
|
||||
<IconCaretRightFilled />
|
||||
</Grid.Col>
|
||||
<Grid.Col span={"auto"}>
|
||||
<Text>{item}</Text>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
))}
|
||||
</Stack>
|
||||
</SimpleGrid>
|
||||
</Stack>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user