detail.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807
  1. <template>
  2. <view class="container">
  3. <!-- 车牌号区域 -->
  4. <view class="box">
  5. <view class="left">车牌号</view>
  6. <view class="right2">
  7. <view class="item">
  8. <view :class="['select', form.selectValue != 0 ? 'selected' : '']" @tap="handleMultiple(form.selectIndex)">
  9. {{ form.selectValue != 0 ? form.selectValue : '请选择' }}
  10. </view>
  11. </view>
  12. <view class="right-img"><img src="../../static/bottom.png" /></view>
  13. </view>
  14. <!-- 车牌号选项弹窗区域 -->
  15. <transition>
  16. <multiple-picker
  17. title="请选择"
  18. :show="selectMultiple.show"
  19. :columns="selectMultiple.columns"
  20. :defaultIndex="selectMultiple.index"
  21. @confirm="confirmMultiple"
  22. @cancel="selectMultiple.show = false"
  23. @change="changeMultiple"
  24. ></multiple-picker>
  25. </transition>
  26. </view>
  27. <!-- 人数区域 -->
  28. <view class="box">
  29. <view class="left">容量</view>
  30. <view class="right">{{ info.contain }}</view>
  31. </view>
  32. <!-- 发车日期区域 -->
  33. <view class="box">
  34. <view class="left">发车日期</view>
  35. <view class="right">{{ info.yy_date }}</view>
  36. </view>
  37. <!-- 发车时间区域 -->
  38. <view class="box">
  39. <view class="left">发车时间</view>
  40. <picker style="width: 40%" @change="bindPickerChange($event, 1)" mode="time" :value="info.ci_time" :start="getCurrentTime()">
  41. <view :class="['right', info.ci_time != 0 ? '' : 'unSelect']">
  42. {{ info.ci_time != 0 ? info.ci_time : '请选择' }}
  43. <view class="right-img"><img src="../../static/bottom.png" /></view>
  44. </view>
  45. </picker>
  46. </view>
  47. <!-- 扫码开始时间区域 -->
  48. <view class="box">
  49. <view class="left">扫码开始时间</view>
  50. <picker style="width: 40%" @change="bindPickerChange($event, 4)" mode="time" :value="info.sm_start">
  51. <view :class="['right', info.sm_start != 0 ? '' : 'unSelect']">
  52. {{ info.sm_start != 0 ? info.sm_start : '请选择' }}
  53. <view class="right-img"><img src="../../static/bottom.png" /></view>
  54. </view>
  55. </picker>
  56. </view>
  57. <!-- 扫码结束时间区域 -->
  58. <view class="box">
  59. <view class="left">扫码结束时间</view>
  60. <picker style="width: 40%" @change="bindPickerChange($event, 5)" mode="time" :value="info.sm_end">
  61. <view :class="['right', info.sm_end != 0 ? '' : 'unSelect']">
  62. {{ info.sm_end != 0 ? info.sm_end : '请选择' }}
  63. <view class="right-img"><img src="../../static/bottom.png" /></view>
  64. </view>
  65. </picker>
  66. </view>
  67. <!-- 预约截止时间区域 -->
  68. <view class="box">
  69. <view class="left">预约截止时间</view>
  70. <picker style="width: 40%" @change="bindPickerChange($event, 7)" mode="time" :value="info.yy_end">
  71. <view :class="['right', info.yy_end != 0 ? '' : 'unSelect']">
  72. {{ info.yy_end != 0 ? info.yy_end : '请选择' }}
  73. <view class="right-img"><img src="../../static/bottom.png" /></view>
  74. </view>
  75. </picker>
  76. </view>
  77. <!-- 路线区域 -->
  78. <view class="box">
  79. <view class="left">路线</view>
  80. <picker style="width: 60%" @change="bindPickerChange($event, 2)" :range="pathList" range-key="route">
  81. <view :class="['right', info.route ? '' : 'unSelect']">
  82. {{ info.route ? info.route : '请选择' }}
  83. <view class="right-img"><img src="../../static/bottom.png" /></view>
  84. </view>
  85. </picker>
  86. </view>
  87. <!-- 站点区域 -->
  88. <view class="box">
  89. <view class="left">站点</view>
  90. <picker style="width: 80%" @change="bindPickerChange($event, 3)" :range="endList" range-key="route_end">
  91. <view :class="['right', info.route_end ? '' : 'unSelect']">
  92. {{ info.route_end ? info.route_end : '请选择' }}
  93. <view class="right-img"><img src="../../static/bottom.png" /></view>
  94. </view>
  95. </picker>
  96. </view>
  97. <!-- 状态区域 -->
  98. <view class="box">
  99. <view class="left">状态</view>
  100. <view class="right">{{ info.state_str }}</view>
  101. </view>
  102. <!-- 提前一天预约区域 -->
  103. <view class="box">
  104. <view class="left">可否提前一天预约</view>
  105. <view class="right">{{ info.before_state == 0 ? '不可以' : '可以' }}</view>
  106. </view>
  107. <!-- 保存按钮区域 -->
  108. <view class="saveBtn" @click="handleSave">保存</view>
  109. <!-- 人员名单区域 -->
  110. <view class="list">
  111. <!-- 标题区域 -->
  112. <view class="list-title" v-if="info.user_num != 0">人员名单({{ listData.length }}人)</view>
  113. <!-- 筛选区域 -->
  114. <view class="list-search" v-if="info.user_num !== '0'">
  115. <!-- 身份筛选区域 -->
  116. <picker style="width: 50%" :range="statusList" range-key="text" @change="bindPickerChange($event, 6)">
  117. <view class="list-search-item">
  118. {{ statusList[result_status].text }}
  119. <view class="right-img"><img src="../../static/bottom.png" /></view>
  120. </view>
  121. </picker>
  122. <!-- 上车状态筛选区域 -->
  123. <picker style="width: 50%" :range="typeList" range-key="text" @change="bindPickerChange($event, 8)">
  124. <view class="list-search-item2">
  125. {{ typeList[result_state].text }}
  126. <view class="right-img"><img src="../../static/bottom.png" /></view>
  127. </view>
  128. </picker>
  129. </view>
  130. <view class="list-item" v-for="(item, index) in listData" :key="index">
  131. <view class="item-img"><img src="../../static/man.png" /></view>
  132. <view class="item-info">
  133. <view class="info-name">
  134. <view>{{ item.user_name }}</view>
  135. </view>
  136. <view class="info-mes">
  137. {{ item.user_zz }}
  138. <span>{{ item.yy_time }}</span>
  139. </view>
  140. </view>
  141. <view v-if="item.yy_state === '1'" class="item-type"><img src="../../static/subscribe.png" /></view>
  142. <view v-else class="item-type"><img src="../../static/pass2.png" /></view>
  143. </view>
  144. <!-- 无数据时展示的区域 -->
  145. <view class="list-nodata" v-if="listData.length == 0">
  146. <img src="../../static/no-bus.png" />
  147. <view>暂无数据</view>
  148. </view>
  149. </view>
  150. </view>
  151. </template>
  152. <script setup>
  153. import { ref } from 'vue'
  154. import { onLoad } from '@dcloudio/uni-app'
  155. import { myRequest } from '@/util/api.js'
  156. import { isWeixin } from '@/util/isWeixin.js'
  157. import { filterIdentity } from '@/util/filterIdentity.js'
  158. import { time_to_sec, time_change } from '@/util/formatTime.js'
  159. const BASE_URL = '/carstop/carbook'
  160. // const BASE_URL = '/testingServertomcat/carbook/'
  161. onLoad((options) => {
  162. if (isWeixin()) {
  163. filterIdentity()
  164. info.value = JSON.parse(options.info)
  165. // console.log(info.value)
  166. idRef.value = info.value.id
  167. // 获取人员列表
  168. getData()
  169. // 获取路线数组
  170. getPathList()
  171. // 获取终点站列表
  172. getEndList()
  173. // 获取车牌号列表
  174. getBusList()
  175. // 获取发车时间提前推迟多少分钟可以扫码数据
  176. getTimeConfig()
  177. // 处理车牌号数据
  178. form.value.selectValue = info.value.car_number
  179. setTimeout(() => {
  180. let temList = []
  181. selectMultiple.value.columns.forEach((item) => {
  182. if (item.label == form.value.selectValue) {
  183. temList.push(item.value)
  184. }
  185. })
  186. form.value.selectIndex = temList
  187. }, 500)
  188. // let userInfo = JSON.parse(uni.getStorageSync('bus-userInfo'))
  189. // // console.log(userInfo)
  190. // if (userInfo.user_zz !== '车队长') {
  191. // uni.redirectTo({
  192. // url: '/pages/404/404?message=暂无权限'
  193. // })
  194. // } else {
  195. // info.value = JSON.parse(options.info)
  196. // // console.log(info.value)
  197. // idRef.value = info.value.id
  198. // // 获取人员列表
  199. // getData()
  200. // // 获取路线数组
  201. // getPathList()
  202. // // 获取终点站列表
  203. // getEndList()
  204. // // 获取车牌号列表
  205. // getBusList()
  206. // // 获取发车时间提前推迟多少分钟可以扫码数据
  207. // getTimeConfig()
  208. // // 处理车牌号数据
  209. // form.value.selectValue = info.value.car_number
  210. // setTimeout(() => {
  211. // let temList = []
  212. // selectMultiple.value.columns.forEach(item => {
  213. // if (item.label == form.value.selectValue) {
  214. // temList.push(item.value)
  215. // }
  216. // })
  217. // form.value.selectIndex = temList
  218. // }, 500)
  219. // }
  220. } else {
  221. uni.redirectTo({
  222. url: '/pages/404/404?message=请在微信客户端打开链接'
  223. })
  224. }
  225. })
  226. // 带过来的预约详情数据
  227. const info = ref({})
  228. // 参数id
  229. const idRef = ref(null)
  230. // 车牌号绑定数据
  231. const form = ref({
  232. selectValue: '',
  233. selectIndex: []
  234. })
  235. // 车牌号数组相关数据
  236. const selectMultiple = ref({
  237. show: false,
  238. index: [],
  239. columns: []
  240. })
  241. // 路线数组
  242. const pathList = ref([])
  243. // 终点站数组
  244. const endList = ref([])
  245. // 人员列表数组
  246. const listData = ref([])
  247. // 发车时间提前多少分钟可以扫码
  248. const time_early = ref(null)
  249. // 发车时间推迟多少分钟可以扫码
  250. const time_late = ref(null)
  251. // 发车前多少分钟截止预约
  252. const time_yy_end = ref(null)
  253. // 人员名单上车状态
  254. const result_state = ref(0)
  255. const typeList = ref([
  256. {
  257. text: '全部',
  258. value: 0
  259. },
  260. {
  261. text: '已预约未上车',
  262. value: 1
  263. },
  264. {
  265. text: '已上车',
  266. value: 2
  267. }
  268. ])
  269. // 人员名单身份类型
  270. const result_status = ref(0)
  271. const statusList = ref([
  272. {
  273. text: '全部',
  274. value: 0
  275. },
  276. {
  277. text: '教师',
  278. value: 1
  279. },
  280. {
  281. text: '临时人员',
  282. value: 2
  283. }
  284. ])
  285. // 获取路线数组请求
  286. const getPathList = async () => {
  287. const res = await myRequest({
  288. url: '/appqueryRoute.action'
  289. })
  290. // console.log(res);
  291. pathList.value = res.data
  292. }
  293. // 获取终点站数组请求
  294. const getEndList = async () => {
  295. const res = await myRequest({
  296. url: '/appqueryEndRoutes.action',
  297. data: {
  298. route: info.value.route
  299. }
  300. })
  301. // console.log(res);
  302. endList.value = res.data
  303. }
  304. // 获取车牌号数组请求
  305. const getBusList = async () => {
  306. const res = await myRequest({
  307. url: '/appqueryCarInfos.action'
  308. })
  309. // console.log(res);
  310. if (res.data.length) {
  311. let temList = []
  312. res.data.forEach((item, index) => {
  313. temList.push({
  314. label: item.car_number,
  315. value: index.toString()
  316. })
  317. })
  318. selectMultiple.value.columns = temList
  319. }
  320. }
  321. // 获取人员名单请求
  322. const getData = async () => {
  323. const res = await myRequest({
  324. url: '/appqueryAppointeds.action',
  325. data: {
  326. id: idRef.value,
  327. result_state: result_state.value,
  328. userzz_state: result_status.value
  329. }
  330. })
  331. // console.log(res)
  332. listData.value = res.data
  333. }
  334. // 保存按钮回调
  335. const handleSave = () => {
  336. if (info.value.car_number == 0) {
  337. uni.showToast({
  338. title: '请选择车牌号',
  339. icon: 'none'
  340. })
  341. return
  342. }
  343. if (info.value.ci_time == 0) {
  344. uni.showToast({
  345. title: '请选择发车时间',
  346. icon: 'none'
  347. })
  348. return
  349. }
  350. if (!info.value.sm_start) {
  351. uni.showToast({
  352. title: '请选择扫码开始时间',
  353. icon: 'none'
  354. })
  355. return
  356. }
  357. if (!info.value.sm_end) {
  358. uni.showToast({
  359. title: '请选择扫码结束时间',
  360. icon: 'none'
  361. })
  362. return
  363. }
  364. if (time_to_sec(info.value.sm_start) >= time_to_sec(info.value.ci_time)) {
  365. uni.showToast({
  366. title: '扫码开始时间不能晚于发车时间',
  367. icon: 'none',
  368. duration: 2000
  369. })
  370. return
  371. }
  372. if (time_to_sec(info.value.sm_end) < time_to_sec(info.value.ci_time)) {
  373. uni.showToast({
  374. title: '扫码结束时间不能早于发车时间',
  375. icon: 'none',
  376. duration: 2000
  377. })
  378. return
  379. }
  380. if (!info.value.yy_end) {
  381. uni.showToast({
  382. title: '请选择预约截止时间',
  383. icon: 'none'
  384. })
  385. return
  386. }
  387. if (!info.value.route) {
  388. uni.showToast({
  389. title: '请选择路线',
  390. icon: 'none'
  391. })
  392. return
  393. }
  394. if (!info.value.route_end) {
  395. uni.showToast({
  396. title: '请选择终点站',
  397. icon: 'none'
  398. })
  399. return
  400. }
  401. uni.showModal({
  402. title: '提示',
  403. content: '确定保存吗?',
  404. success: (res) => {
  405. if (res.confirm) {
  406. handleSaveRequest()
  407. } else if (res.cancel) {
  408. }
  409. }
  410. })
  411. }
  412. // 保存请求
  413. const handleSaveRequest = () => {
  414. // console.log(info.value)
  415. const { id, car_number, ci_time, route, route_end, contain, sm_start, sm_end, yy_end } = info.value
  416. const { user_name } = JSON.parse(uni.getStorageSync('bus-userInfo'))
  417. uni.showLoading({
  418. title: '保存中',
  419. mask: true
  420. })
  421. uni.request({
  422. url: `${BASE_URL}/scheupdate.action`,
  423. method: 'post',
  424. header: {
  425. admin_name: encodeURIComponent(user_name)
  426. },
  427. data: {
  428. id,
  429. car_number,
  430. ci_time,
  431. route,
  432. route_end,
  433. contain,
  434. sm_start,
  435. sm_end,
  436. yy_end
  437. },
  438. success: (res) => {
  439. if (res.data.code == 200) {
  440. uni.showToast({
  441. title: res.data.message
  442. })
  443. setTimeout(() => {
  444. uni.redirectTo({
  445. url: '/pages/record/record'
  446. })
  447. }, 1500)
  448. } else {
  449. uni.showToast({
  450. title: res.data.message,
  451. icon: 'error'
  452. })
  453. }
  454. }
  455. })
  456. }
  457. // 点击车牌号下拉框回调
  458. const handleMultiple = (val) => {
  459. // console.log(val);
  460. selectMultiple.value.index = val || []
  461. selectMultiple.value.show = true
  462. }
  463. // 车牌号下拉框确定按钮回调
  464. const confirmMultiple = (e) => {
  465. // console.log(e);
  466. // console.log(e.value);
  467. if (selectMultiple.value.index != e.value) {
  468. let temp = []
  469. e.selected.forEach((item) => {
  470. temp.push(item.label)
  471. })
  472. form.value.selectValue = temp.toString()
  473. info.value.car_number = temp.toString()
  474. }
  475. form.value.selectIndex = e.value
  476. selectMultiple.value.show = false
  477. // 获取汽车容量
  478. getBusContain()
  479. }
  480. // 获取汽车容量请求
  481. const getBusContain = async () => {
  482. const res = await myRequest({
  483. url: '/appqueryCarContain.action',
  484. data: {
  485. car_number: form.value.selectValue
  486. }
  487. })
  488. // console.log(res);
  489. info.value.contain = res.data
  490. }
  491. // 获取发车时间提前推迟多少分钟可以扫码数据
  492. const getTimeConfig = async () => {
  493. const res = await myRequest({
  494. url: '/cnqueryHb.action'
  495. })
  496. // console.log(res)
  497. time_early.value = res.sm_end
  498. time_late.value = res.sm_start
  499. time_yy_end.value = res.yy_end
  500. }
  501. // 下拉框选择时的回调
  502. const changeMultiple = (e) => {
  503. // console.log(e);
  504. }
  505. // 原生下拉框的选择回调事件
  506. const bindPickerChange = (e, type) => {
  507. if (type === 1) {
  508. info.value.ci_time = e.detail.value
  509. info.value.sm_start = time_change(info.value.ci_time, time_early.value * -1)
  510. info.value.sm_end = time_change(info.value.ci_time, time_late.value)
  511. info.value.yy_end = time_change(info.value.ci_time, time_yy_end.value * -1)
  512. } else if (type === 2) {
  513. info.value.route = pathList.value[e.detail.value].route
  514. getEndList()
  515. info.value.route_end = ''
  516. } else if (type === 3) {
  517. info.value.route_end = endList.value[e.detail.value].route_end
  518. } else if (type === 4) {
  519. info.value.sm_start = e.detail.value
  520. } else if (type === 5) {
  521. info.value.sm_end = e.detail.value
  522. } else if (type === 6) {
  523. result_status.value = e.detail.value
  524. getData()
  525. } else if (type === 7) {
  526. info.value.yy_end = e.detail.value
  527. } else if (type === 8) {
  528. result_state.value = e.detail.value
  529. getData()
  530. }
  531. }
  532. // 获取当前时间 hh:mm
  533. const getCurrentTime = () => {
  534. const date = new Date()
  535. let H = (date.getHours() + '').padStart(2, '0')
  536. let M = (date.getMinutes() + '').padStart(2, '0')
  537. return `${H}:${M}`
  538. }
  539. </script>
  540. <style lang="scss" scoped>
  541. .container {
  542. background-color: #fff;
  543. .box {
  544. display: flex;
  545. justify-content: space-between;
  546. align-items: center;
  547. padding: 0 30rpx;
  548. height: 98rpx;
  549. font-size: 28rpx;
  550. border-bottom: 1rpx solid #e6e6e6;
  551. .left {
  552. flex: 1;
  553. color: #999999;
  554. }
  555. .right {
  556. flex: 1;
  557. display: flex;
  558. justify-content: flex-end;
  559. .right-img {
  560. margin-left: 27rpx;
  561. margin-top: -5rpx;
  562. width: 17rpx;
  563. height: 12rpx;
  564. img {
  565. width: 100%;
  566. height: 100%;
  567. }
  568. }
  569. }
  570. .right2 {
  571. flex: 2;
  572. display: flex;
  573. justify-content: flex-end;
  574. align-items: center;
  575. .item {
  576. flex: 1;
  577. padding: 20rpx 0;
  578. .select {
  579. width: 100%;
  580. padding-top: 6px;
  581. padding-bottom: 6px;
  582. padding-left: 9px;
  583. border-radius: 4px;
  584. font-size: 15px;
  585. text-align: end;
  586. box-sizing: border-box;
  587. color: #cccccc;
  588. line-height: 26px;
  589. &.selected {
  590. color: black;
  591. }
  592. }
  593. }
  594. .right-img {
  595. margin-left: 27rpx;
  596. margin-top: -30rpx;
  597. width: 17rpx;
  598. height: 12rpx;
  599. img {
  600. width: 100%;
  601. height: 100%;
  602. }
  603. }
  604. }
  605. .unSelect {
  606. color: #ccc;
  607. }
  608. }
  609. .saveBtn {
  610. margin: 20rpx 30rpx;
  611. line-height: 100rpx;
  612. text-align: center;
  613. color: #fff;
  614. font-size: 34rpx;
  615. border-radius: 15rpx;
  616. background: linear-gradient(180deg, #8684ff 0%, #3c50e8 100%);
  617. }
  618. .list {
  619. padding: 13rpx 30rpx;
  620. .list-title {
  621. display: flex;
  622. margin-top: 20rpx;
  623. height: 41rpx;
  624. color: #999999;
  625. font-size: 28rpx;
  626. }
  627. .list-search {
  628. display: flex;
  629. padding: 20rpx 0;
  630. .list-search-item,
  631. .list-search-item2 {
  632. flex: 1;
  633. display: flex;
  634. justify-content: flex-start;
  635. .right-img {
  636. margin-left: 27rpx;
  637. margin-top: -5rpx;
  638. width: 17rpx;
  639. height: 12rpx;
  640. img {
  641. width: 100%;
  642. height: 100%;
  643. }
  644. }
  645. }
  646. .list-search-item2 {
  647. justify-content: flex-end;
  648. }
  649. }
  650. .list-item {
  651. display: flex;
  652. align-items: center;
  653. box-sizing: border-box;
  654. padding: 29rpx 0 26rpx 0;
  655. height: 155rpx;
  656. border-bottom: 1rpx solid #e6e6e6;
  657. .item-img {
  658. width: 100rpx;
  659. height: 100rpx;
  660. border-radius: 50%;
  661. img {
  662. width: 100%;
  663. height: 100%;
  664. }
  665. }
  666. .item-info {
  667. flex: 1;
  668. display: flex;
  669. flex-direction: column;
  670. justify-content: space-evenly;
  671. margin-left: 6rpx;
  672. height: 100rpx;
  673. .info-name {
  674. display: flex;
  675. align-items: center;
  676. font-size: 32rpx;
  677. .info-name-img {
  678. margin-left: 26rpx;
  679. width: 30rpx;
  680. height: 35rpx;
  681. img {
  682. width: 100%;
  683. height: 100%;
  684. }
  685. }
  686. }
  687. .info-mes {
  688. font-size: 24rpx;
  689. color: #999999;
  690. span {
  691. margin-left: 26rpx;
  692. color: #a6a6a6;
  693. }
  694. }
  695. }
  696. .item-type {
  697. width: 104rpx;
  698. height: 41rpx;
  699. img {
  700. width: 100%;
  701. height: 100%;
  702. }
  703. }
  704. }
  705. .list-nodata {
  706. padding: 50rpx 0;
  707. background-color: #fff;
  708. text-align: center;
  709. color: #999999;
  710. img {
  711. width: 500rpx;
  712. }
  713. }
  714. }
  715. }
  716. .v-enter-active,
  717. .v-leave-active {
  718. transition: opacity 0.5s ease;
  719. }
  720. .v-enter-from,
  721. .v-leave-to {
  722. opacity: 0;
  723. }
  724. </style>