Skip to content

Commit

Permalink
feat(frontend): 单据管理迭代_123 TencentBlueKing#7190
Browse files Browse the repository at this point in the history
  • Loading branch information
hLinx committed Dec 13, 2024
1 parent 4a85092 commit ab7e0bc
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,14 @@
.info {
display: flex;
align-items: center;
overflow: hidden;
line-height: 32px;
align-items: center;
}
.info-name {
display: inline-block;
width: 100%;
padding-bottom: 12px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@
.info {
display: flex;
align-items: center;
overflow: hidden;
line-height: 32px;
align-items: center;
}
.info-name {
Expand All @@ -91,6 +92,7 @@
}
.info-value {
width: 100%;
color: @title-color;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DbCard
v-model:collapse="isBaseinfoCardCollapse"
:collapse="isBaseinfoCardCollapse"
mode="collapse"
:title="t('基本信息')">
<table class="ticket-base-info">
Expand Down Expand Up @@ -36,6 +36,7 @@
</template>
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import { useRoute } from 'vue-router';
import TicketModel from '@services/model/ticket/ticket';
Expand All @@ -44,17 +45,16 @@
import { utcDisplayTime, utcTimeToSeconds } from '@utils';
import { useStorage } from '@vueuse/core';
interface Props {
ticketData: TicketModel;
}
defineProps<Props>();
const { t } = useI18n();
const route = useRoute();
const isBaseinfoCardCollapse = useStorage('ticketBaseinfo', false);
const isBaseinfoCardCollapse = route.name === 'ticketDetail';
</script>
<style lang="less">
.ticket-base-info {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@
import ComFactory from './com-factory/Index.vue';

interface Props {
data: TicketModel<unknown>;
data: TicketModel;
}

defineProps<Props>();

defineOptions({
name: 'TicketTaskInfo',
});

const { t } = useI18n();

const isTaskInfoCardCollapse = useStorage('ticketTaskInfo', false);
console.log('taskinof');
</script>

<style lang="less">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@
.info {
display: flex;
align-items: center;
overflow: hidden;
line-height: 32px;
align-items: center;
}
.info-name {
Expand All @@ -95,6 +96,7 @@
}
.info-value {
width: 100%;
color: @title-color;
}
}
Expand Down

0 comments on commit ab7e0bc

Please sign in to comment.