index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. <template>
  2. <basic-container>
  3. <avue-crud :option="option"
  4. :table-loading="loading"
  5. :data="data"
  6. :page.sync="page"
  7. ref="crud"
  8. v-model="form"
  9. @search-change="searchChange"
  10. @search-reset="searchReset"
  11. @selection-change="selectionChange"
  12. @current-change="currentChange"
  13. @size-change="sizeChange"
  14. @refresh-change="refreshChange"
  15. @on-load="onLoad"
  16. @row-update="rowUpdate"
  17. @row-save="rowSave"
  18. @row-del="rowDel">
  19. <template slot-scope="scope" slot="menu">
  20. <el-button type="text"
  21. size="small"
  22. plain
  23. class="none-border"
  24. @click.stop="handleDetail(scope.row)">详情
  25. </el-button>
  26. <el-button type="text"
  27. size="small"
  28. plain
  29. class="none-border"
  30. @click.stop="handleAttachments(scope.row)">附件
  31. </el-button>
  32. <el-button type="text"
  33. size="small"
  34. plain
  35. class="none-border"
  36. @click.stop="handleAudit(scope.row)">审核记录
  37. </el-button>
  38. </template>
  39. <template slot-scope="{row}" slot="claimSourceType">
  40. <el-tag :type="getClaimSourceTypeType(row.claimSourceType)">
  41. {{ getClaimSourceTypeLabel(row.claimSourceType) }}
  42. </el-tag>
  43. </template>
  44. <template slot-scope="{row}" slot="auditStatus">
  45. <el-tag :type="getAuditStatusType(row.auditStatus)">
  46. {{ getAuditStatusLabel(row.auditStatus) }}
  47. </el-tag>
  48. </template>
  49. <template slot-scope="{row}" slot="isSubmitTime">
  50. <el-tag :type="row.isSubmitTime === 1 ? 'success' : 'warning'">
  51. {{ row.isSubmitTime === 1 ? '已提交' : '未提交' }}
  52. </el-tag>
  53. </template>
  54. </avue-crud>
  55. <!-- 理赔详情对话框 -->
  56. <el-dialog title="理赔详情"
  57. :visible.sync="detailVisible"
  58. width="80%"
  59. :close-on-click-modal="false"
  60. :modal="true"
  61. :append-to-body="true"
  62. :lock-scroll="false">
  63. <div v-if="claimDetail" class="claim-detail-container">
  64. <!-- 基本信息 -->
  65. <el-card class="detail-card" shadow="never">
  66. <div slot="header" class="card-header">
  67. <span>基本信息</span>
  68. </div>
  69. <el-row :gutter="20">
  70. <el-col :span="8">
  71. <div class="detail-item">
  72. <label>理赔单号:</label>
  73. <span>{{ claimDetail.claimNo }}</span>
  74. </div>
  75. </el-col>
  76. <el-col :span="8">
  77. <div class="detail-item">
  78. <label>来源类型:</label>
  79. <el-tag :type="getClaimSourceTypeType(claimDetail.claimSourceType)" size="small">
  80. {{ getClaimSourceTypeLabel(claimDetail.claimSourceType) }}
  81. </el-tag>
  82. </div>
  83. </el-col>
  84. <el-col :span="8">
  85. <div class="detail-item">
  86. <label>审核状态:</label>
  87. <el-tag :type="getAuditStatusType(claimDetail.auditStatus)" size="small">
  88. {{ getAuditStatusLabel(claimDetail.auditStatus) }}
  89. </el-tag>
  90. </div>
  91. </el-col>
  92. <el-col :span="8">
  93. <div class="detail-item">
  94. <label>来源方名称:</label>
  95. <span>{{ claimDetail.sourceName }}</span>
  96. </div>
  97. </el-col>
  98. <el-col :span="8">
  99. <div class="detail-item">
  100. <label>来源编码:</label>
  101. <span>{{ claimDetail.sourceCode }}</span>
  102. </div>
  103. </el-col>
  104. <el-col :span="8">
  105. <div class="detail-item">
  106. <label>提交时间:</label>
  107. <span>{{ claimDetail.submitTime }}</span>
  108. </div>
  109. </el-col>
  110. </el-row>
  111. </el-card>
  112. <!-- 消费者信息 -->
  113. <el-card class="detail-card" shadow="never">
  114. <div slot="header" class="card-header">
  115. <span>消费者信息</span>
  116. </div>
  117. <el-row :gutter="20">
  118. <el-col :span="12">
  119. <div class="detail-item">
  120. <label>联系人:</label>
  121. <span>{{ claimDetail.consumerName }}</span>
  122. </div>
  123. </el-col>
  124. <el-col :span="12">
  125. <div class="detail-item">
  126. <label>电话:</label>
  127. <span>{{ claimDetail.consumerPhone }}</span>
  128. </div>
  129. </el-col>
  130. </el-row>
  131. </el-card>
  132. <!-- 轮胎信息 -->
  133. <el-card class="detail-card" shadow="never">
  134. <div slot="header" class="card-header">
  135. <span>轮胎信息</span>
  136. </div>
  137. <el-row :gutter="20">
  138. <el-col :span="8">
  139. <div class="detail-item">
  140. <label>胎号:</label>
  141. <span>{{ claimDetail.tyreNo }}</span>
  142. </div>
  143. </el-col>
  144. <el-col :span="8">
  145. <div class="detail-item">
  146. <label>规格型号:</label>
  147. <span>{{ claimDetail.tyreSpecs }}</span>
  148. </div>
  149. </el-col>
  150. <el-col :span="8">
  151. <div class="detail-item">
  152. <label>行驶里程(km):</label>
  153. <span>{{ claimDetail.runMileage }}</span>
  154. </div>
  155. </el-col>
  156. <el-col :span="8">
  157. <div class="detail-item">
  158. <label>购买日期:</label>
  159. <span>{{ formatYmd(claimDetail.purchaseDate) }}</span>
  160. </div>
  161. </el-col>
  162. <el-col :span="8">
  163. <div class="detail-item">
  164. <label>装车日期:</label>
  165. <span>{{ formatYmd(claimDetail.mountDate) }}</span>
  166. </div>
  167. </el-col>
  168. <el-col :span="8">
  169. <div class="detail-item">
  170. <label>车牌号:</label>
  171. <span>{{ claimDetail.vehicleNumber || '-' }}</span>
  172. </div>
  173. </el-col>
  174. <el-col :span="8">
  175. <div class="detail-item">
  176. <label>轮胎数量:</label>
  177. <span>{{ claimDetail.tireQuantity || '-' }}</span>
  178. </div>
  179. </el-col>
  180. </el-row>
  181. </el-card>
  182. <!-- 理赔信息 -->
  183. <el-card class="detail-card" shadow="never">
  184. <div slot="header" class="card-header">
  185. <span>理赔信息</span>
  186. </div>
  187. <el-row :gutter="20">
  188. <el-col :span="12">
  189. <div class="detail-item">
  190. <label>索赔金额:</label>
  191. <span class="amount">¥{{ claimDetail.claimAmount }}</span>
  192. </div>
  193. </el-col>
  194. <el-col :span="24">
  195. <div class="detail-item">
  196. <label>理赔原因:</label>
  197. <span>{{ claimDetail.claimReason }}</span>
  198. </div>
  199. </el-col>
  200. </el-row>
  201. </el-card>
  202. </div>
  203. <span slot="footer" class="dialog-footer">
  204. <el-button @click="detailVisible = false">关闭</el-button>
  205. </span>
  206. </el-dialog>
  207. <!-- 附件列表对话框 -->
  208. <el-dialog title="理赔附件"
  209. :visible.sync="attachmentVisible"
  210. width="800px"
  211. append-to-body>
  212. <el-table :data="attachmentList" v-loading="attachmentLoading">
  213. <!-- 新增缩略图列 -->
  214. <el-table-column label="缩略图" width="80" align="center">
  215. <template slot-scope="scope">
  216. <div class="thumbnail-container">
  217. <!-- 图片缩略图 -->
  218. <img v-if="isImageFile(scope.row.fileName)"
  219. :src="scope.row.fileUrl"
  220. class="thumbnail-image"
  221. style="height: auto !important;"
  222. @click="previewImage(scope.row)"
  223. @error="handleImageError"
  224. alt="缩略图" />
  225. <!-- 视频缩略图 -->
  226. <div v-else-if="isVideoFile(scope.row.fileName)"
  227. class="thumbnail-video"
  228. @click="previewVideo(scope.row)">
  229. <i class="el-icon-video-play"></i>
  230. </div>
  231. <!-- 其他文件类型图标 -->
  232. <div v-else class="thumbnail-file">
  233. <i class="el-icon-document"></i>
  234. </div>
  235. </div>
  236. </template>
  237. </el-table-column>
  238. <el-table-column prop="fileName" label="文件名" show-overflow-tooltip></el-table-column>
  239. <el-table-column prop="fileType" label="文件类型" width="100"></el-table-column>
  240. <el-table-column prop="fileSize" label="文件大小" width="120">
  241. <template slot-scope="scope">
  242. {{ formatFileSize(scope.row.fileSize) }}
  243. </template>
  244. </el-table-column>
  245. <el-table-column label="操作" width="150">
  246. <template slot-scope="scope">
  247. <el-button v-if="isImageFile(scope.row.fileName)"
  248. type="text"
  249. size="small"
  250. @click="previewImage(scope.row)">预览</el-button>
  251. <el-button v-else-if="isVideoFile(scope.row.fileName)"
  252. type="text"
  253. size="small"
  254. @click="previewVideo(scope.row)">播放</el-button>
  255. <el-button type="text" size="small" @click="downloadFile(scope.row)">下载</el-button>
  256. </template>
  257. </el-table-column>
  258. </el-table>
  259. <span slot="footer" class="dialog-footer">
  260. <el-button @click="attachmentVisible = false">关闭</el-button>
  261. </span>
  262. </el-dialog>
  263. <!-- 图片预览对话框 -->
  264. <el-dialog title="图片预览"
  265. :visible.sync="imagePreviewVisible"
  266. width="80%"
  267. :close-on-click-modal="false"
  268. append-to-body
  269. custom-class="image-preview-dialog"
  270. @close="closeImagePreview">
  271. <div class="image-preview-container">
  272. <el-image :src="previewImageUrl"
  273. :preview-src-list="previewImageList"
  274. :initial-index="currentPreviewIndex"
  275. fit="contain"
  276. class="preview-image">
  277. <div slot="error" class="image-slot">
  278. <i class="el-icon-picture-outline"></i>
  279. <p>图片加载失败</p>
  280. </div>
  281. </el-image>
  282. </div>
  283. <span slot="footer" class="dialog-footer">
  284. <el-button @click="closeImagePreview">关闭</el-button>
  285. </span>
  286. </el-dialog>
  287. <!-- 视频预览对话框 -->
  288. <el-dialog title="视频播放"
  289. :visible.sync="videoPreviewVisible"
  290. width="80%"
  291. :close-on-click-modal="false"
  292. append-to-body
  293. custom-class="video-preview-dialog"
  294. @close="closeVideoPreview">
  295. <div class="video-preview-container">
  296. <video v-if="previewVideoUrl"
  297. :src="previewVideoUrl"
  298. controls
  299. preload="metadata"
  300. class="preview-video"
  301. @error="handleVideoError">
  302. 您的浏览器不支持视频播放。
  303. </video>
  304. <div v-else class="video-error">
  305. <i class="el-icon-video-camera"></i>
  306. <p>视频加载失败</p>
  307. </div>
  308. </div>
  309. <span slot="footer" class="dialog-footer">
  310. <el-button @click="closeVideoPreview">关闭</el-button>
  311. </span>
  312. </el-dialog>
  313. <!-- 审核记录对话框 -->
  314. <el-dialog title="审核记录"
  315. :visible.sync="auditVisible"
  316. width="1000px"
  317. append-to-body>
  318. <div style="margin-bottom: 16px;">
  319. <el-button
  320. type="primary"
  321. size="small"
  322. @click="handleAddAudit"
  323. :disabled="!canAddAudit"
  324. :title="canAddAudit ? '新增审核记录' : '该理赔记录未提交,无法新增审核记录'">
  325. 新增审核
  326. </el-button>
  327. <span v-if="!canAddAudit" style="margin-left: 8px; color: #999; font-size: 12px;">
  328. 该理赔记录未提交,无法新增审核记录
  329. </span>
  330. </div>
  331. <el-table :data="auditList" v-loading="auditLoading">
  332. <el-table-column prop="auditResult" label="审核结果" width="100">
  333. <template slot-scope="scope">
  334. <el-tag :type="getAuditResultType(scope.row.auditResult)">
  335. {{ getAuditResultText(scope.row.auditResult) }}
  336. </el-tag>
  337. </template>
  338. </el-table-column>
  339. <el-table-column prop="auditAmount" label="审核金额" width="120">
  340. <template slot-scope="scope">
  341. ¥{{ scope.row.auditAmount }}
  342. </template>
  343. </el-table-column>
  344. <el-table-column prop="reasonDetail" label="审核说明" show-overflow-tooltip></el-table-column>
  345. <el-table-column prop="auditorName" label="审核人" width="100"></el-table-column>
  346. <el-table-column prop="auditTime" label="审核时间" width="150"></el-table-column>
  347. <el-table-column label="操作" width="80">
  348. <template slot-scope="scope">
  349. <el-button type="text" size="small" @click="handleEditAudit(scope.row)">编辑</el-button>
  350. </template>
  351. </el-table-column>
  352. </el-table>
  353. <span slot="footer" class="dialog-footer">
  354. <el-button @click="auditVisible = false">关闭</el-button>
  355. </span>
  356. </el-dialog>
  357. <!-- 审核记录新增/编辑对话框 -->
  358. <el-dialog :title="auditFormMode === 'add' ? '新增审核记录' : '编辑审核记录'"
  359. :visible.sync="auditFormVisible"
  360. width="600px"
  361. append-to-body>
  362. <el-form :model="auditForm" :rules="auditFormRules" ref="auditFormRef" label-width="120px">
  363. <el-form-item label="审核结果" prop="auditResult">
  364. <el-select v-model="auditForm.auditResult" placeholder="请选择审核结果" style="width: 100%;">
  365. <el-option :label="getAuditStatusLabel(AUDIT_STATUS.APPROVED, '通过')" :value="AUDIT_STATUS.APPROVED" />
  366. <el-option :label="getAuditStatusLabel(AUDIT_STATUS.REJECTED, '拒绝')" :value="AUDIT_STATUS.REJECTED" />
  367. </el-select>
  368. </el-form-item>
  369. <el-form-item label="审核金额" prop="auditAmount">
  370. <el-input-number v-model="auditForm.auditAmount" :precision="4" :min="0" :max="999999.9999" style="width: 100%;" placeholder="请输入审核金额"></el-input-number>
  371. </el-form-item>
  372. <el-form-item label="审核说明" prop="reasonDetail">
  373. <el-input type="textarea" v-model="auditForm.reasonDetail" :rows="3" placeholder="请输入审核说明"></el-input>
  374. </el-form-item>
  375. <el-form-item label="审核人" prop="auditorName">
  376. <el-input v-model="auditForm.auditorName" placeholder="请输入审核人姓名"></el-input>
  377. </el-form-item>
  378. <el-form-item label="审核时间" prop="auditTime">
  379. <el-date-picker v-model="auditForm.auditTime" type="datetime" placeholder="请选择审核时间" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" style="width: 100%;"></el-date-picker>
  380. </el-form-item>
  381. <el-form-item label="反馈渠道">
  382. <el-select v-model="auditForm.feedbackChannel" placeholder="请选择反馈渠道" style="width: 100%;" clearable>
  383. <el-option label="电话" value="电话"></el-option>
  384. <el-option label="在线客服" value="在线客服"></el-option>
  385. <el-option label="邮件" value="邮件"></el-option>
  386. <el-option label="短信" value="短信"></el-option>
  387. </el-select>
  388. </el-form-item>
  389. <el-form-item label="反馈描述">
  390. <el-input type="textarea" v-model="auditForm.feedbackDesc" :rows="2" placeholder="请输入反馈描述"></el-input>
  391. </el-form-item>
  392. <el-form-item label="反馈时间">
  393. <el-date-picker v-model="auditForm.feedbackTime" type="datetime" placeholder="请选择反馈时间" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" style="width: 100%;"></el-date-picker>
  394. </el-form-item>
  395. <el-form-item label="申诉状态">
  396. <el-select v-model="auditForm.appealStatus" placeholder="请选择申诉状态" style="width: 100%;">
  397. <el-option label="无申诉" :value="0"></el-option>
  398. <el-option label="申诉中" :value="1"></el-option>
  399. </el-select>
  400. </el-form-item>
  401. <el-form-item label="申诉结果" >
  402. <el-input v-model="auditForm.appealResult" placeholder="请输入申诉结果"></el-input>
  403. </el-form-item>
  404. <el-form-item label="申诉时间" >
  405. <el-date-picker v-model="auditForm.appealTime" type="datetime" placeholder="请选择申诉时间" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" style="width: 100%;"></el-date-picker>
  406. </el-form-item>
  407. </el-form>
  408. <span slot="footer" class="dialog-footer">
  409. <el-button @click="auditFormVisible = false">取消</el-button>
  410. <el-button type="primary" @click="handleSaveAudit" :loading="auditFormLoading">确定</el-button>
  411. </span>
  412. </el-dialog>
  413. </basic-container>
  414. </template>
  415. <script>
  416. import claimMixin from './claimMixin';
  417. import { AUDIT_STATUS, AUDIT_STATUS_OPTIONS } from '@/constants/claim';
  418. export default {
  419. name: 'Claim',
  420. mixins: [claimMixin],
  421. data() {
  422. return {
  423. AUDIT_STATUS,
  424. AUDIT_STATUS_OPTIONS
  425. };
  426. },
  427. methods: {
  428. getAuditStatusLabel: function(value, fallback) {
  429. var opts = this.AUDIT_STATUS_OPTIONS || [];
  430. var fb = (typeof fallback === 'string') ? fallback : '';
  431. for (var i = 0; i < opts.length; i++) {
  432. var item = opts[i];
  433. if (item && item.value === value) {
  434. var label = item.label;
  435. return (typeof label === 'string' && label) ? label : fb;
  436. }
  437. }
  438. return fb;
  439. },
  440. // 统一格式化为 YYYY-MM-DD
  441. formatYmd: function(dateTime) {
  442. if (!dateTime || typeof dateTime !== 'string') return ''
  443. return dateTime.substring(0, 10)
  444. }
  445. }
  446. }
  447. </script>
  448. <style lang="scss" scoped >
  449. /* 理赔详情弹层样式 */
  450. .claim-detail-container {
  451. max-height: 70vh;
  452. overflow-y: auto;
  453. }
  454. .detail-card {
  455. margin-bottom: 20px;
  456. border: 1px solid #ebeef5;
  457. }
  458. .detail-card:last-child {
  459. margin-bottom: 0;
  460. }
  461. .card-header {
  462. font-weight: bold;
  463. color: #303133;
  464. font-size: 16px;
  465. border-bottom: 1px solid #ebeef5;
  466. padding: 15px 20px;
  467. background-color: #fafafa;
  468. }
  469. .detail-item {
  470. margin-bottom: 15px;
  471. display: flex;
  472. align-items: center;
  473. min-height: 32px;
  474. }
  475. .detail-item label {
  476. font-weight: 600;
  477. color: #606266;
  478. min-width: 100px;
  479. margin-right: 10px;
  480. flex-shrink: 0;
  481. line-height: 32px;
  482. }
  483. .detail-item span {
  484. color: #303133;
  485. word-break: break-all;
  486. }
  487. .amount {
  488. color: #E6A23C;
  489. font-weight: bold;
  490. font-size: 16px;
  491. }
  492. .dialog-footer {
  493. text-align: right;
  494. padding-top: 20px;
  495. border-top: 1px solid #ebeef5;
  496. }
  497. /* 响应式布局 */
  498. @media (max-width: 768px) {
  499. .claim-detail-container {
  500. max-height: 60vh;
  501. }
  502. .detail-item {
  503. flex-direction: column;
  504. align-items: flex-start;
  505. }
  506. .detail-item label {
  507. min-width: auto;
  508. margin-bottom: 5px;
  509. margin-right: 0;
  510. }
  511. }
  512. .thumbnail-container {
  513. display: flex;
  514. justify-content: center;
  515. align-items: center;
  516. width: 50px;
  517. height: 50px;
  518. .thumbnail-image {
  519. width: 50px;
  520. height: 50px;
  521. object-fit: cover;
  522. border-radius: 4px;
  523. cursor: pointer;
  524. transition: transform 0.2s;
  525. &:hover {
  526. transform: scale(1.1);
  527. }
  528. }
  529. .thumbnail-video {
  530. width: 50px;
  531. height: 50px;
  532. background: #f5f5f5;
  533. border: 1px solid #ddd;
  534. border-radius: 4px;
  535. display: flex;
  536. justify-content: center;
  537. align-items: center;
  538. cursor: pointer;
  539. transition: background-color 0.2s;
  540. &:hover {
  541. background: #e6f7ff;
  542. }
  543. i {
  544. font-size: 20px;
  545. color: #1890ff;
  546. }
  547. }
  548. .thumbnail-file {
  549. width: 50px;
  550. height: 50px;
  551. background: #f5f5f5;
  552. border: 1px solid #ddd;
  553. border-radius: 4px;
  554. display: flex;
  555. justify-content: center;
  556. align-items: center;
  557. i {
  558. font-size: 20px;
  559. color: #666;
  560. }
  561. }
  562. }
  563. .image-preview-container {
  564. text-align: center;
  565. .preview-image {
  566. max-width: 100%;
  567. max-height: 80vh; // 增加最大高度限制
  568. min-height: 200px; // 设置最小高度
  569. }
  570. .image-slot {
  571. display: flex;
  572. flex-direction: column;
  573. justify-content: center;
  574. align-items: center;
  575. height: 200px;
  576. color: #999;
  577. i {
  578. font-size: 40px;
  579. margin-bottom: 10px;
  580. }
  581. }
  582. }
  583. // 新增:图片预览对话框样式
  584. .image-preview-dialog {
  585. .el-dialog {
  586. margin-top: 5vh !important;
  587. margin-bottom: 5vh !important;
  588. max-height: 90vh;
  589. display: flex;
  590. flex-direction: column;
  591. }
  592. .el-dialog__body {
  593. flex: 1;
  594. padding: 20px;
  595. overflow: auto;
  596. }
  597. .el-dialog__footer {
  598. flex-shrink: 0;
  599. }
  600. }
  601. .video-preview-dialog {
  602. .el-dialog {
  603. margin-top: 5vh !important;
  604. margin-bottom: 5vh !important;
  605. max-height: 90vh;
  606. display: flex;
  607. flex-direction: column;
  608. }
  609. .el-dialog__body {
  610. flex: 1;
  611. padding: 20px;
  612. overflow: auto;
  613. }
  614. .el-dialog__footer {
  615. flex-shrink: 0;
  616. }
  617. }
  618. .video-preview-container {
  619. text-align: center;
  620. .preview-video {
  621. max-width: 100%;
  622. max-height: 70vh;
  623. min-height: 300px;
  624. background: #000;
  625. }
  626. .video-error {
  627. display: flex;
  628. flex-direction: column;
  629. justify-content: center;
  630. align-items: center;
  631. height: 300px;
  632. color: #999;
  633. background: #f5f5f5;
  634. border-radius: 4px;
  635. i {
  636. font-size: 60px;
  637. margin-bottom: 15px;
  638. }
  639. p {
  640. font-size: 16px;
  641. margin: 0;
  642. }
  643. }
  644. }
  645. </style>