Merge branch 'phatt_dev' into develop
This commit is contained in:
commit
db36f0f3d8
2 changed files with 3 additions and 8 deletions
|
|
@ -8,6 +8,7 @@ export default {
|
|||
registryNewByProfileId: (profileId: string) => `${registryNew}${profileId}`,
|
||||
|
||||
// metadata
|
||||
profileNewMetaMain: `${metadata}main/person`,
|
||||
profileNewGender: `${metadata}gender`,
|
||||
profileNewReligion: `${metadata}religion`,
|
||||
profileNewRelationship: `${metadata}relationship`,
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ export const useProfileDataStore = defineStore("profile", () => {
|
|||
const fetchPerson = async () => {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.person)
|
||||
.get(config.API.profileNewMetaMain)
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
let optionbloodGroups: DataOption[] = [];
|
||||
|
|
@ -144,22 +144,16 @@ export const useProfileDataStore = defineStore("profile", () => {
|
|||
name: r.name.toString(),
|
||||
});
|
||||
});
|
||||
optionprefixs = optionprefixs.filter((o) =>
|
||||
prefixOp.value.find((p) => o.name === p)
|
||||
);
|
||||
Ops.value.prefixOps = optionprefixs;
|
||||
OpsFilter.value.prefixOps = optionprefixs;
|
||||
|
||||
let optionrank: DataOption[] = [];
|
||||
data.prefixs.map((r: any) => {
|
||||
data.rank.map((r: any) => {
|
||||
optionrank.push({
|
||||
id: r.id.toString(),
|
||||
name: r.name.toString(),
|
||||
});
|
||||
});
|
||||
optionrank = optionrank.filter(
|
||||
(o) => !prefixOp.value.find((p) => o.name === p)
|
||||
);
|
||||
Ops.value.rankOps = optionrank;
|
||||
OpsFilter.value.rankOps = optionrank;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue