index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911
  1. <template>
  2. <div class="maintenance-page">
  3. <!-- 顶部导航栏 -->
  4. <s-header :name="$t('maintenance.title')" :noback="false"></s-header>
  5. <div class="content-container">
  6. <!-- 设备信息卡片 -->
  7. <div class="device-card" v-if="name">
  8. <div class="device-header">
  9. <div class="header-indicator"></div>
  10. <h3 class="device-name">
  11. {{ $t("device.equipmentName") }}:{{ name }}
  12. </h3>
  13. </div>
  14. </div>
  15. <!-- 统计卡片 -->
  16. <div class="stats-card">
  17. <div class="stats-content">
  18. <div class="stats-icon-box">
  19. <van-icon name="completed" class="stats-icon" />
  20. </div>
  21. <div class="stats-text">
  22. <div class="stats-title">{{ $t("maintenance.title") }}</div>
  23. <div class="stats-info">
  24. <span class="stats-number">{{ total }}</span>
  25. </div>
  26. </div>
  27. <div class="action-buttons">
  28. <van-icon
  29. name="filter-o"
  30. class="action-icon"
  31. @click="showFilter = true"
  32. />
  33. </div>
  34. </div>
  35. </div>
  36. <!-- 维护记录列表 -->
  37. <van-list
  38. v-model:loading="loading"
  39. :finished="finished"
  40. :finished-text="$t('public.noMore')"
  41. @load="onLoad"
  42. >
  43. <div
  44. v-for="(item, index) in list"
  45. :key="index"
  46. class="maintenance-item"
  47. @click="showDetail(item)"
  48. >
  49. <div class="item-header">
  50. <div class="device-id">
  51. <van-icon name="setting" /> {{ item.clientId }}
  52. </div>
  53. <div class="status-tag" :class="statusClass(item.status)">
  54. {{ getStatusText(item.status) }}
  55. </div>
  56. </div>
  57. <div class="item-content">
  58. <div class="staff-info">
  59. <van-icon name="manager-o" />
  60. <span>{{ item.name }} ({{ item.managerId }})</span>
  61. </div>
  62. <div class="type-info">
  63. <van-icon name="label-o" />
  64. <span>{{ formatMaintenanceTypes(item.type) }}</span>
  65. </div>
  66. <div class="time-range">
  67. <span class="start-time">{{
  68. formatDateTime(item.startTime)
  69. }}</span>
  70. <van-icon name="arrow" />
  71. <span class="end-time">{{ formatDateTime(item.endTime) }}</span>
  72. </div>
  73. </div>
  74. </div>
  75. </van-list>
  76. </div>
  77. <!-- 筛选弹窗 -->
  78. <van-popup v-model:show="showFilter" position="right" class="filter-popup">
  79. <div class="popup-header">
  80. <h3>{{ $t("maintenance.filter.title") }}</h3>
  81. <van-icon name="cross" @click="showFilter = false" />
  82. </div>
  83. <div class="filter-content">
  84. <!-- 设备编号 -->
  85. <div class="filter-item">
  86. <label>{{ $t("device.equipmentCodeLabel") }}</label>
  87. <van-field
  88. v-if="user.type < 2"
  89. v-model="filterParams.clientId"
  90. clearable
  91. :placeholder="$t('device.equipmentCodePlaceholder')"
  92. />
  93. <van-field
  94. v-else
  95. v-model="filterParams.clientId"
  96. is-link
  97. readonly
  98. :placeholder="$t('device.equipmentCodePlaceholder')"
  99. @click="showDevicePicker = true"
  100. />
  101. <van-popup
  102. v-model:show="showDevicePicker"
  103. destroy-on-close
  104. position="bottom"
  105. >
  106. <van-picker
  107. :columns="deviceColumns"
  108. @confirm="onDeviceConfirm"
  109. @cancel="showDevicePicker = false"
  110. />
  111. </van-popup>
  112. </div>
  113. <!-- 维护人员 -->
  114. <div class="filter-item">
  115. <label>{{ $t("maintenance.filter.staffId") }}</label>
  116. <van-field
  117. v-model="filterParams.managerId"
  118. :placeholder="$t('maintenance.filter.staffIdPlaceholder')"
  119. clearable
  120. />
  121. </div>
  122. <!-- 维护状态 -->
  123. <div class="filter-item">
  124. <label>{{ $t("maintenance.filter.status") }}</label>
  125. <van-radio-group v-model="filterParams.status">
  126. <van-cell-group>
  127. <van-cell
  128. v-for="status in statusOptions"
  129. :key="status.value"
  130. :title="status.label"
  131. clickable
  132. @click="filterParams.status = status.value"
  133. >
  134. <template #right-icon>
  135. <van-radio :name="status.value" />
  136. </template>
  137. </van-cell>
  138. </van-cell-group>
  139. </van-radio-group>
  140. </div>
  141. <!-- 时间范围 -->
  142. <div class="filter-item">
  143. <label>{{ $t("maintenance.filter.dateRange") }}</label>
  144. <div class="date-range">
  145. <van-field
  146. v-model="filterParams.startDate"
  147. :placeholder="$t('maintenance.filter.startDatePlaceholder')"
  148. readonly
  149. @click="showStartPicker = true"
  150. />
  151. <span class="date-separator">~</span>
  152. <van-field
  153. v-model="filterParams.endDate"
  154. :placeholder="$t('maintenance.filter.endDatePlaceholder')"
  155. readonly
  156. @click="showEndPicker = true"
  157. />
  158. </div>
  159. </div>
  160. </div>
  161. <div class="popup-footer">
  162. <van-button type="default" @click="resetFilter">{{
  163. $t("maintenance.filter.reset")
  164. }}</van-button>
  165. <van-button type="primary" @click="applyFilter">{{
  166. $t("maintenance.filter.apply")
  167. }}</van-button>
  168. </div>
  169. </van-popup>
  170. <!-- 时间选择器 -->
  171. <van-popup v-model:show="showStartPicker" position="bottom">
  172. <van-date-picker
  173. :columns-type="columnsType"
  174. v-model="startDate"
  175. @confirm="handleStartConfirm"
  176. @cancel="showStartPicker = false"
  177. />
  178. </van-popup>
  179. <van-popup v-model:show="showEndPicker" position="bottom">
  180. <van-date-picker
  181. :columns-type="columnsType"
  182. v-model="endDate"
  183. @confirm="handleEndConfirm"
  184. @cancel="showEndPicker = false"
  185. />
  186. </van-popup>
  187. <!-- 详情弹窗 -->
  188. <van-popup
  189. v-model:show="showDetailPopup"
  190. position="bottom"
  191. :style="{ height: '85%' }"
  192. class="detail-popup"
  193. >
  194. <div class="detail-content" v-if="selectedItem">
  195. <div class="detail-header">
  196. <h3>{{ $t("maintenance.detail.title") }}</h3>
  197. <div class="device-id">{{ selectedItem.clientId }}</div>
  198. </div>
  199. <div class="detail-body">
  200. <div class="detail-row">
  201. <label>{{ $t("maintenance.detail.staff") }}</label>
  202. <div>{{ selectedItem.name }} ({{ selectedItem.managerId }})</div>
  203. </div>
  204. <div class="detail-row">
  205. <label>{{ $t("maintenance.detail.type") }}</label>
  206. <div class="maintenance-type-tags">
  207. <van-tag
  208. v-for="(type, index) in JSON.parse(selectedItem.type)"
  209. :key="index"
  210. plain
  211. type="primary"
  212. >
  213. {{ getMaintenanceTypeLabel(type) }}
  214. </van-tag>
  215. </div>
  216. </div>
  217. <div class="detail-row">
  218. <label>{{ $t("maintenance.detail.startTime") }}</label>
  219. <div>{{ formatDateTime(selectedItem.startTime) }}</div>
  220. </div>
  221. <div class="detail-row">
  222. <label>{{ $t("maintenance.detail.endTime") }}</label>
  223. <div>{{ formatDateTime(selectedItem.endTime) }}</div>
  224. </div>
  225. <div class="detail-row">
  226. <label>{{ $t("maintenance.detail.recordTime") }}</label>
  227. <div>{{ formatDateTime(selectedItem.createDate) }}</div>
  228. </div>
  229. <div class="detail-row">
  230. <label>{{ $t("maintenance.detail.consumables") }}</label>
  231. <div>
  232. {{
  233. selectedItem.consumables ||
  234. $t("maintenance.detail.noConsumables")
  235. }}
  236. </div>
  237. </div>
  238. <div class="detail-section">
  239. <h4>{{ $t("maintenance.detail.faultDescription") }}</h4>
  240. <div class="detail-text">
  241. {{
  242. selectedItem.description ||
  243. $t("maintenance.detail.noFaultDescription")
  244. }}
  245. </div>
  246. </div>
  247. <div class="detail-section">
  248. <h4>{{ $t("maintenance.detail.solution") }}</h4>
  249. <div class="detail-text">
  250. {{ selectedItem.solution || $t("maintenance.detail.noSolution") }}
  251. </div>
  252. </div>
  253. <div
  254. class="image-section"
  255. v-if="selectedItem.pic && JSON.parse(selectedItem.pic).length > 0"
  256. >
  257. <h4>{{ $t("maintenance.detail.images") }}</h4>
  258. <div class="image-grid">
  259. <van-uploader
  260. v-model="fileList"
  261. multiple
  262. :show-upload="false"
  263. :deletable="false"
  264. />
  265. </div>
  266. </div>
  267. </div>
  268. </div>
  269. </van-popup>
  270. </div>
  271. </template>
  272. <script>
  273. import { reactive, toRefs } from "vue";
  274. import sHeader from "@/components/SimpleHeader";
  275. import { useRoute } from "vue-router";
  276. import { list } from "@/service/maintenance";
  277. import { showFailToast } from "vant";
  278. import { getEquipmentList } from "@/service/typeSelectList";
  279. import { getLoginUser } from "@/common/js/utils";
  280. import { onMounted } from "vue";
  281. import { useI18n } from "vue-i18n";
  282. export default {
  283. components: {
  284. sHeader,
  285. },
  286. setup() {
  287. const { t } = useI18n();
  288. const route = useRoute();
  289. // 定义状态和响应式数据
  290. const state = reactive({
  291. deviceDetail: null,
  292. loading: false,
  293. finished: false,
  294. name: route.query.name
  295. ? route.query.name
  296. : route.query.clientId.slice(-6),
  297. list: [],
  298. total: 0,
  299. selectedItem: null,
  300. showFilter: false,
  301. showDetailPopup: false,
  302. showDevicePicker: false,
  303. showStartPicker: false,
  304. showEndPicker: false,
  305. startDate: [
  306. new Date().getFullYear(),
  307. new Date().getMonth() + 1,
  308. new Date().getDate(),
  309. ],
  310. endDate: [
  311. new Date().getFullYear(),
  312. new Date().getMonth() + 1,
  313. new Date().getDate(),
  314. ],
  315. filterParams: {
  316. managerId: "", // 维护人员工号
  317. clientId: route.query.clientId, // 设备编号
  318. adminId: null,
  319. status: "", // 问题解决状态
  320. name: "", // 维护人员姓名
  321. startDate: "",
  322. endDate: "",
  323. current: 0, // 页数
  324. size: 10, // 页大小
  325. },
  326. maintenanceTypeMap: {
  327. 1: t("maintenance.type.cleaning"),
  328. 2: t("maintenance.type.refill"),
  329. 3: t("maintenance.type.repair"),
  330. },
  331. fileList: [],
  332. deviceColumns: [],
  333. user: getLoginUser(),
  334. });
  335. // 状态选项
  336. const statusOptions = [
  337. { value: "", label: t('maintenance.status.all') },
  338. { value: 1, label: t('maintenance.status.resolved') },
  339. { value: 2, label: t('maintenance.status.unresolved') },
  340. ];
  341. const columnsType = ["year", "month", "day"];
  342. // 方法
  343. const methods = {
  344. onLoad() {
  345. if (!state.finished) {
  346. state.filterParams.current = state.filterParams.current + 1;
  347. getListFun();
  348. }
  349. },
  350. showDetail(item) {
  351. state.selectedItem = item;
  352. state.fileList = [];
  353. if (item.pic && JSON.parse(item.pic).length > 0) {
  354. JSON.parse(item.pic).forEach((img) => {
  355. state.fileList.push({ url: img });
  356. });
  357. }
  358. state.showDetailPopup = true;
  359. },
  360. handleStartConfirm({ selectedValues }) {
  361. state.filterParams.startDate = selectedValues.join("/");
  362. state.showStartPicker = false;
  363. },
  364. handleEndConfirm({ selectedValues }) {
  365. state.filterParams.endDate = selectedValues.join("/");
  366. state.showEndPicker = false;
  367. },
  368. resetFilter() {
  369. state.filterParams = {
  370. clientId: "",
  371. managerId: "",
  372. status: "",
  373. startDate: "",
  374. endDate: "",
  375. current: 0,
  376. size: 10,
  377. };
  378. },
  379. applyFilter() {
  380. state.showFilter = false;
  381. state.list = [];
  382. state.filterParams.current = 1;
  383. getListFun();
  384. },
  385. getMaintenanceTypeLabel(type) {
  386. return state.maintenanceTypeMap[type] || type;
  387. },
  388. formatMaintenanceTypes(types) {
  389. types = JSON.parse(types);
  390. return types
  391. .map((type) => methods.getMaintenanceTypeLabel(type))
  392. .join("、");
  393. },
  394. onDeviceConfirm({ selectedValues, selectedOptions }) {
  395. state.name = selectedOptions[0].text;
  396. state.filterParams.clientId = selectedValues[0];
  397. state.showDevicePicker = false;
  398. },
  399. formatDateTime(dateString) {
  400. if (!dateString) return "";
  401. const date = new Date(dateString);
  402. return date.toLocaleString();
  403. },
  404. statusClass(status) {
  405. return {
  406. "status-completed": status === 1,
  407. "status-pending": status === 2,
  408. };
  409. },
  410. getStatusText(status) {
  411. switch (status) {
  412. case 1:
  413. return t('maintenance.status.resolved');
  414. case 2:
  415. return t('maintenance.status.unresolved');
  416. default:
  417. return t('maintenance.status.unknown');
  418. }
  419. },
  420. };
  421. onMounted(() => {
  422. state.filterParams.adminId = state.user.type > 1 ? state.user.id : null;
  423. getDeviceListFun();
  424. });
  425. // 获取设备列表
  426. const getDeviceListFun = async () => {
  427. const { data } = await getEquipmentList({ adminId: state.user.id });
  428. if (data.code === "00000") {
  429. state.deviceColumns = data.data.map((item) => {
  430. return {
  431. text: item.name != null ? item.name : item.clientId,
  432. value: item.clientId,
  433. };
  434. });
  435. state.deviceColumns.unshift({
  436. text: t("typeSelectList.allDevices"),
  437. value: "",
  438. });
  439. }
  440. };
  441. // 获取维护记录
  442. const getListFun = async () => {
  443. state.finished = false;
  444. const { data } = await list(state.filterParams);
  445. if (data.code === "00000") {
  446. state.list = state.list.concat(data.data.records);
  447. state.total = data.data.total;
  448. if (state.list.length === data.data.total) {
  449. state.finished = true;
  450. }
  451. state.loading = false;
  452. } else {
  453. showFailToast(data.message);
  454. }
  455. };
  456. // 返回所有状态和方法
  457. return {
  458. ...toRefs(state),
  459. statusOptions,
  460. columnsType,
  461. ...methods,
  462. };
  463. },
  464. };
  465. </script>
  466. <style lang="less" scoped>
  467. .maintenance-page {
  468. background: #f5f7fa;
  469. min-height: 100vh;
  470. .content-container {
  471. background: #f5f6fa;
  472. height: calc(100% - 50px);
  473. overflow: auto;
  474. overflow-x: hidden;
  475. }
  476. .device-card {
  477. background: #ffffff;
  478. border-radius: 8px;
  479. padding: 15px;
  480. margin: 12px;
  481. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  482. .device-header {
  483. display: flex;
  484. align-items: center;
  485. .header-indicator {
  486. width: 3px;
  487. height: 16px;
  488. background: #4e6bdd;
  489. border-radius: 2px;
  490. margin-right: 8px;
  491. }
  492. .device-name {
  493. margin: 0;
  494. font-size: 15px;
  495. color: #404d74;
  496. font-weight: 550;
  497. }
  498. }
  499. }
  500. .stats-card {
  501. background: #ffffff;
  502. border-radius: 8px;
  503. padding: 15px;
  504. margin: 12px;
  505. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  506. .stats-content {
  507. display: flex;
  508. align-items: center;
  509. .stats-icon-box {
  510. width: 48px;
  511. height: 48px;
  512. background: #e6f0ff;
  513. border-radius: 8px;
  514. display: flex;
  515. align-items: center;
  516. justify-content: center;
  517. margin-right: 12px;
  518. .stats-icon {
  519. font-size: 24px;
  520. color: #4e6bdd;
  521. }
  522. }
  523. .stats-text {
  524. flex: 1;
  525. .stats-title {
  526. font-size: 14px;
  527. color: #666;
  528. margin-bottom: 4px;
  529. }
  530. .stats-info {
  531. .stats-number {
  532. font-size: 22px;
  533. font-weight: 600;
  534. color: #4e6bdd;
  535. }
  536. .stats-unit {
  537. font-size: 14px;
  538. color: #999;
  539. }
  540. }
  541. }
  542. .action-buttons {
  543. display: flex;
  544. .action-icon {
  545. width: 36px;
  546. height: 36px;
  547. background: #e6f0ff;
  548. border-radius: 8px;
  549. display: flex;
  550. align-items: center;
  551. justify-content: center;
  552. margin-left: 8px;
  553. font-size: 18px;
  554. color: #4e6bdd;
  555. }
  556. }
  557. }
  558. }
  559. .maintenance-item {
  560. background: #ffffff;
  561. border-radius: 8px;
  562. padding: 14px;
  563. margin: 12px;
  564. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  565. .item-header {
  566. display: flex;
  567. justify-content: space-between;
  568. align-items: center;
  569. margin-bottom: 10px;
  570. padding-bottom: 10px;
  571. border-bottom: 1px solid #f5f7fa;
  572. .device-id {
  573. display: flex;
  574. align-items: center;
  575. font-size: 14px;
  576. font-weight: 500;
  577. color: #333;
  578. .van-icon {
  579. margin-right: 6px;
  580. color: #4e6bdd;
  581. }
  582. }
  583. .status-tag {
  584. padding: 4px 10px;
  585. border-radius: 20px;
  586. font-size: 12px;
  587. font-weight: 500;
  588. &.status-completed {
  589. background: #e8f5e9;
  590. color: #4caf50;
  591. }
  592. &.status-pending {
  593. background: #ffebee;
  594. color: #f44336;
  595. }
  596. }
  597. }
  598. .item-content {
  599. .staff-info,
  600. .type-info {
  601. display: flex;
  602. align-items: center;
  603. margin-bottom: 8px;
  604. font-size: 14px;
  605. color: #666;
  606. .van-icon {
  607. margin-right: 6px;
  608. color: #999;
  609. }
  610. }
  611. .time-range {
  612. display: flex;
  613. align-items: center;
  614. justify-content: space-between;
  615. font-size: 13px;
  616. color: #888;
  617. padding-top: 8px;
  618. margin-top: 8px;
  619. border-top: 1px dashed #eee;
  620. .start-time,
  621. .end-time {
  622. flex: 1;
  623. }
  624. .van-icon {
  625. color: #ccc;
  626. }
  627. }
  628. }
  629. }
  630. .no-data {
  631. text-align: center;
  632. padding: 40px 20px;
  633. background: #fff;
  634. border-radius: 8px;
  635. p {
  636. margin-top: 15px;
  637. font-size: 15px;
  638. color: #999;
  639. }
  640. }
  641. .filter-popup {
  642. width: 85%;
  643. height: 100%;
  644. background: #f5f7fa;
  645. .popup-header {
  646. display: flex;
  647. justify-content: space-between;
  648. align-items: center;
  649. padding: 18px;
  650. background: #fff;
  651. border-bottom: 1px solid #eee;
  652. h3 {
  653. margin: 0;
  654. font-size: 16px;
  655. font-weight: 500;
  656. }
  657. .van-icon {
  658. font-size: 20px;
  659. color: #999;
  660. }
  661. }
  662. .filter-content {
  663. padding: 15px;
  664. overflow-y: auto;
  665. .filter-item {
  666. margin-bottom: 20px;
  667. label {
  668. display: block;
  669. margin-bottom: 8px;
  670. font-size: 14px;
  671. font-weight: 500;
  672. color: #333;
  673. }
  674. .date-range {
  675. display: flex;
  676. align-items: center;
  677. .van-field {
  678. flex: 1;
  679. }
  680. .date-separator {
  681. padding: 0 10px;
  682. color: #999;
  683. }
  684. }
  685. }
  686. }
  687. .popup-footer {
  688. position: fixed;
  689. bottom: 0;
  690. left: 0;
  691. right: 0;
  692. display: flex;
  693. justify-content: space-between;
  694. padding: 15px;
  695. background: #fff;
  696. border-top: 1px solid #eee;
  697. .van-button {
  698. flex: 1;
  699. margin: 0 5px;
  700. }
  701. }
  702. }
  703. .detail-popup {
  704. background: #f5f7fa;
  705. border-top-left-radius: 20px;
  706. border-top-right-radius: 20px;
  707. overflow: hidden;
  708. .detail-content {
  709. .detail-header {
  710. padding: 20px 15px;
  711. background: linear-gradient(135deg, #4e6bdd, #3a56c0);
  712. color: white;
  713. border-top-left-radius: 20px;
  714. border-top-right-radius: 20px;
  715. h3 {
  716. margin: 0 0 5px 0;
  717. font-size: 18px;
  718. }
  719. .device-id {
  720. font-size: 14px;
  721. opacity: 0.9;
  722. }
  723. }
  724. .detail-body {
  725. padding: 15px;
  726. height: calc(80vh - 80px);
  727. overflow-y: auto;
  728. overflow-x: hidden;
  729. .detail-row {
  730. padding: 12px;
  731. background: #fff;
  732. border-radius: 8px;
  733. margin-bottom: 10px;
  734. label {
  735. display: block;
  736. font-size: 13px;
  737. color: #999;
  738. margin-bottom: 5px;
  739. }
  740. div {
  741. font-size: 15px;
  742. color: #333;
  743. font-weight: 500;
  744. }
  745. .maintenance-type-tags {
  746. display: flex;
  747. flex-wrap: wrap;
  748. gap: 6px;
  749. margin-top: 5px;
  750. }
  751. }
  752. .detail-section {
  753. background: #fff;
  754. border-radius: 8px;
  755. padding: 12px;
  756. margin-top: 15px;
  757. h4 {
  758. margin: 0 0 8px 0;
  759. font-size: 15px;
  760. color: #333;
  761. font-weight: 500;
  762. }
  763. .detail-text {
  764. font-size: 14px;
  765. color: #666;
  766. line-height: 1.6;
  767. }
  768. }
  769. .image-section {
  770. background: #fff;
  771. border-radius: 8px;
  772. padding: 12px;
  773. margin-top: 15px;
  774. h4 {
  775. margin: 0 0 10px 0;
  776. font-size: 15px;
  777. color: #333;
  778. font-weight: 500;
  779. }
  780. .image-grid {
  781. display: grid;
  782. grid-template-columns: repeat(1, 1fr);
  783. gap: 25px;
  784. padding: 10px;
  785. border-radius: 6px;
  786. overflow: hidden;
  787. background: #f0f0f0;
  788. }
  789. }
  790. }
  791. }
  792. }
  793. .export-content {
  794. padding: 15px;
  795. p {
  796. margin: 0 0 15px 0;
  797. font-size: 15px;
  798. color: #666;
  799. text-align: center;
  800. }
  801. .export-options {
  802. .van-radio {
  803. margin: 10px 0;
  804. }
  805. }
  806. }
  807. }
  808. </style>