fix style
This commit is contained in:
@@ -64,9 +64,13 @@ html.theme-dark body {
|
||||
}
|
||||
|
||||
&.column {
|
||||
gap: .5rem;
|
||||
gap: 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
&.scroll > * {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.pull-refresh {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="page-layout navbar">
|
||||
<div v-can="permissionCodes.eventRecord.read" class="page-layout navbar event-record-detail">
|
||||
<t-navbar
|
||||
fixed
|
||||
:z-index="20"
|
||||
@@ -19,7 +19,6 @@
|
||||
</template>
|
||||
</t-navbar>
|
||||
<main class="page-content scroll column">
|
||||
<div v-can="permissionCodes.eventRecord.read" class="event-record-detail">
|
||||
<customer-profile-card
|
||||
v-entrance-transition
|
||||
v-if="record?.customer"
|
||||
@@ -76,15 +75,15 @@
|
||||
</card-container>
|
||||
<t-button
|
||||
v-if="canVerifyRecord && record?.verificationStatus === 'PENDING'"
|
||||
class="verify-button cell-button bg-orange white"
|
||||
class="cell-button bg-orange white"
|
||||
variant="text"
|
||||
:loading="isVerifying"
|
||||
@click="confirmVerifyRecord"
|
||||
v-entrance-transition
|
||||
>
|
||||
核销登记记录
|
||||
</t-button>
|
||||
<div v-if="record" class="photo-wrapper" v-entrance-transition>
|
||||
<card-container v-if="record" v-entrance-transition>
|
||||
<div class="attachment">
|
||||
<attachment-selector :items="recordPhotoItemList" title="登记照片" readonly>
|
||||
<template #viewer-actions="{ item, index, close }">
|
||||
<attachment-viewer-actions
|
||||
@@ -97,18 +96,18 @@
|
||||
</template>
|
||||
</attachment-selector>
|
||||
</div>
|
||||
</card-container>
|
||||
<t-button
|
||||
v-if="record && canDeleteRecord"
|
||||
class="delete-button cell-button"
|
||||
class="cell-button"
|
||||
theme="danger"
|
||||
:loading="isDeleting"
|
||||
:disabled="isDeleting"
|
||||
@click="confirmRemoveRecord"
|
||||
v-entrance-transition
|
||||
content="删除登记记录"
|
||||
v-entrance-transition
|
||||
@click="confirmRemoveRecord"
|
||||
/>
|
||||
<t-empty v-if="!record" :description="isLoading ? '正在加载登记事件记录' : '登记事件记录不存在'" />
|
||||
</div>
|
||||
</main>
|
||||
<event-record-verify-dialog
|
||||
v-model:visible="verifyDialogVisible"
|
||||
@@ -122,8 +121,8 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { DialogPlugin } from "tdesign-mobile-vue";
|
||||
import { TimeLabel, Text } from "timi-web";
|
||||
import { useUserStore, type Attachment } from "timi-web-api";
|
||||
import { Text, TimeLabel } from "timi-web";
|
||||
import { type Attachment, useUserStore } from "timi-web-api";
|
||||
import EventRecordAPI from "@/api/EventRecordAPI";
|
||||
import CustomerProfileCard from "@/components/CustomerProfileCard.vue";
|
||||
import EventOptionSelector from "@/components/EventOptionSelector.vue";
|
||||
@@ -141,9 +140,6 @@ import { Message } from "@/utils/message";
|
||||
import { permissionCodes } from "@/utils/permission";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
import type { EventRecord } from "@/types/EventRecord";
|
||||
|
||||
defineOptions({
|
||||
@@ -448,28 +444,13 @@ watch(() => route.params.id, async () => {
|
||||
|
||||
<style scoped lang="less">
|
||||
.event-record-detail {
|
||||
gap: 1rem;
|
||||
min-height: 100vh;
|
||||
padding: 0 0 1rem 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.customer-profile {
|
||||
margin: 0 1rem;
|
||||
}
|
||||
|
||||
.photo-wrapper {
|
||||
width: calc(100% - 2rem);
|
||||
margin: 0 1rem;
|
||||
.attachment {
|
||||
padding: 1rem;
|
||||
background: rgba(255, 255, 255, .92);
|
||||
box-shadow: var(--td-shadow-1);
|
||||
border-radius: 1.4rem;
|
||||
}
|
||||
|
||||
.verify-button {
|
||||
width: calc(100% - 2rem);
|
||||
margin: 0 1rem;
|
||||
}
|
||||
|
||||
.option-selector {
|
||||
|
||||
Reference in New Issue
Block a user