refs #6795 fix url, details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
c87f49b86e
commit
a9c288e6ea
|
@ -10,6 +10,7 @@ import { useSession } from 'src/composables/useSession';
|
||||||
import VnLv from 'src/components/ui/VnLv.vue';
|
import VnLv from 'src/components/ui/VnLv.vue';
|
||||||
import ClaimNotes from 'src/pages/Claim/Card/ClaimNotes.vue';
|
import ClaimNotes from 'src/pages/Claim/Card/ClaimNotes.vue';
|
||||||
import VnUserLink from 'src/components/ui/VnUserLink.vue';
|
import VnUserLink from 'src/components/ui/VnUserLink.vue';
|
||||||
|
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
@ -239,6 +240,25 @@ function openDialog(dmsId) {
|
||||||
</QTh>
|
</QTh>
|
||||||
</QTr>
|
</QTr>
|
||||||
</template>
|
</template>
|
||||||
|
<template #body="props">
|
||||||
|
<QTr :props="props">
|
||||||
|
<QTh v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
|
<span v-if="col.name != 'description'">{{
|
||||||
|
t(col.value)
|
||||||
|
}}</span>
|
||||||
|
<QBtn
|
||||||
|
v-if="col.name == 'description'"
|
||||||
|
flat
|
||||||
|
color="blue"
|
||||||
|
>{{ col.value }}</QBtn
|
||||||
|
>
|
||||||
|
<ItemDescriptorProxy
|
||||||
|
v-if="col.name == 'description'"
|
||||||
|
:id="2"
|
||||||
|
></ItemDescriptorProxy>
|
||||||
|
</QTh>
|
||||||
|
</QTr>
|
||||||
|
</template>
|
||||||
</QTable>
|
</QTable>
|
||||||
</QCard>
|
</QCard>
|
||||||
<QCard class="vn-two" v-if="developments.length > 0">
|
<QCard class="vn-two" v-if="developments.length > 0">
|
||||||
|
|
|
@ -12,6 +12,7 @@ import CustomerDescriptorProxy from 'src/pages/Customer/Card/CustomerDescriptorP
|
||||||
import VnUserLink from 'src/components/ui/VnUserLink.vue';
|
import VnUserLink from 'src/components/ui/VnUserLink.vue';
|
||||||
import ClaimSummary from './Card/ClaimSummary.vue';
|
import ClaimSummary from './Card/ClaimSummary.vue';
|
||||||
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||||
|
import { getUrl } from 'src/composables/getUrl';
|
||||||
|
|
||||||
const stateStore = useStateStore();
|
const stateStore = useStateStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
@ -23,11 +24,15 @@ const STATE_COLOR = {
|
||||||
managed: 'warning',
|
managed: 'warning',
|
||||||
resolved: 'negative',
|
resolved: 'negative',
|
||||||
};
|
};
|
||||||
|
function getApiUrl() {
|
||||||
|
return new URL(window.location).origin;
|
||||||
|
}
|
||||||
function stateColor(code) {
|
function stateColor(code) {
|
||||||
return STATE_COLOR[code];
|
return STATE_COLOR[code];
|
||||||
}
|
}
|
||||||
function navigate(event, id) {
|
function navigate(event, id) {
|
||||||
if (event.ctrlKey || event.metaKey) window.open(window.host);
|
if (event.ctrlKey || event.metaKey)
|
||||||
|
window.open(`${getApiUrl()}/#/claim/${id}/summary`);
|
||||||
else router.push({ path: `/claim/${id}` });
|
else router.push({ path: `/claim/${id}` });
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue