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