explorate-one.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913
  1. <!-- -->
  2. <template>
  3. <!-- <MainPanel>
  4. <template v-slot:header>
  5. <Header title="道路交通事故现场勘查笔录" type="return">
  6. <ui-button type="primary" width="96px" @click="getLayoutImage"> 完成 </ui-button>
  7. </Header>
  8. </template> -->
  9. <div class="explorate" :class="{ downMode }">
  10. <div ref="layoutRef">
  11. <h2 class="title">道路交通事故现场勘查笔录</h2>
  12. <div class="container">
  13. <div class="wrapper">
  14. <div class="header">
  15. <div class="item" v-for="(i, index) in sceneTypes.options" @click="checkLevel(sceneTypes, index)">
  16. <ui-icon :type="sceneTypes.check == i.id ? 'rb_y' : 'rb_n'"></ui-icon>
  17. <span>{{ i.title }}</span>
  18. </div>
  19. </div>
  20. <div class="info">
  21. <div>勘查单位</div>
  22. <div class="input-box" contenteditable></div>
  23. </div>
  24. <div class="info">
  25. <div>勘查时间</div>
  26. <div class="input-box" contenteditable></div>
  27. </div>
  28. <div class="info">
  29. <div>事故时间</div>
  30. <div class="input-box" contenteditable></div>
  31. </div>
  32. <div class="time">
  33. <div class="name">事故地点</div>
  34. <div class="time-one">
  35. <div class="road-type">
  36. <div class="road-type-name">道路类型</div>
  37. <div class="type-box">
  38. <div class="type-item">
  39. <div class="type-item-name">公路</div>
  40. <div class="item-msg">
  41. <div class="item-info">
  42. <div class="item-info-name">技术等级</div>
  43. <div class="item-info-box">
  44. <div class="item" v-for="(i, index) in technicalLevel.options" @click="checkLevel(technicalLevel, index)">
  45. <ui-icon :type="technicalLevel.check == i.id ? 'rb_y' : 'rb_n'"></ui-icon>
  46. <span>{{ i.title }}</span>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="item-info">
  51. <div class="item-info-name">行政等级</div>
  52. <div class="item-info-box">
  53. <div class="item" v-for="(i, index) in administrativeLevel.options" @click="checkLevel(administrativeLevel, index)">
  54. <ui-icon :type="administrativeLevel.check == i.id ? 'rb_y' : 'rb_n'"></ui-icon>
  55. <span>{{ i.title }}</span>
  56. <div class="input-box" style="flex: 1" v-if="i.id == 5">
  57. <input type="text" />
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="type-item city">
  65. <div class="type-item-name">城市道路</div>
  66. <div class="item-msg">
  67. <div class="item-info">
  68. <div class="item-info-box" style="flex-flow: row wrap">
  69. <div class="item" v-for="(i, index) in cityRoadList.options" @click="checkLevel(cityRoadList, index)">
  70. <ui-icon :type="cityRoadList.check == i.id ? 'rb_y' : 'rb_n'"></ui-icon>
  71. <span>{{ i.title }}</span>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. <div class="road-type">
  80. <div class="road-type-name">路口路段类型</div>
  81. <div class="type-box">
  82. <div class="type-item">
  83. <div class="type-item-name">路口</div>
  84. <div class="item-msg intersection" style="min-height: 48px; flex-flow: row wrap">
  85. <div class="item" v-for="(i, index) in roadSideList.options" @click="checkLevel(roadSideList, index)">
  86. <ui-icon :type="roadSideList.check == i.id ? 'rb_y' : 'rb_n'"></ui-icon>
  87. <span>{{ i.title }}</span>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="type-item">
  92. <div class="type-item-name">路段</div>
  93. <div class="item-msg intersection" style="min-height: 60px; flex-flow: row wrap">
  94. <div class="item" v-for="(i, index) in roadPartList.options" @click="checkLevel(roadPartList, index)">
  95. <ui-icon :type="roadPartList.check == i.id ? 'rb_y' : 'rb_n'"></ui-icon>
  96. <span>{{ i.title }}</span>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <div class="road-info">
  103. <div class="road-name">路名</div>
  104. <div class="road-msg">
  105. <div class="road-name-text" contenteditable></div>
  106. <div class="road-num">路号(公路)</div>
  107. <div class="road-num-text" contenteditable></div>
  108. </div>
  109. </div>
  110. <div class="road-pos">
  111. <div class="road-pos-name">位置</div>
  112. <div class="pos-box">
  113. <div class="pos-item">
  114. <div class="pos-item-name" style="height: 30px">卫星定位</div>
  115. <div class="pos-msg" style="height: 30px">
  116. <div class="longitude">
  117. <span>经度:</span>
  118. <div contenteditable></div>
  119. </div>
  120. <div class="latitude">
  121. <span>纬度:</span>
  122. <div contenteditable></div>
  123. </div>
  124. </div>
  125. </div>
  126. <div class="pos-item">
  127. <div class="pos-item-name" style="height: 54px">地点描述</div>
  128. <div class="pos-msg desc" style="height: 54px" contenteditable></div>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="weather">
  135. <div class="name">天气</div>
  136. <div style="flex-flow: row wrap">
  137. <div class="item" v-for="(i, index) in weatherList.options" @click="checkLevel(weatherList, index)">
  138. <ui-icon :type="weatherList.check == i.id ? 'rb_y' : 'rb_n'"></ui-icon>
  139. <span>{{ i.title }}</span>
  140. <div class="input-box" v-if="i.id == 10">
  141. <input type="text" />
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. <div class="environment">
  147. <div>
  148. <p style="margin-bottom: 18px">一、事故现场道路环境</p>
  149. <div class="em-info-box">
  150. <div class="info-item" v-for="(i, index) in environments">
  151. <span class="info-title">{{ i.title }}</span>
  152. <div class="check-box">
  153. <div class="check-item" v-for="(j, j_index) in i.options" @click="checkEnvironItem(j, index, j_index)">
  154. <ui-icon :type="i.check == j.id ? 'rb_y' : 'rb_n'"></ui-icon>
  155. <span>{{ j.name }}</span>
  156. </div>
  157. </div>
  158. <div class="input-box">
  159. <input type="text" />
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. <div class="sign-box">
  166. <div>
  167. <span>现场勘查人员签名:</span>
  168. <div contenteditable></div>
  169. </div>
  170. <div>
  171. <span>记录人签名:</span>
  172. <div contenteditable></div>
  173. </div>
  174. </div>
  175. <div class="sign-box">
  176. <div>
  177. <span>当事人签名:</span>
  178. <div contenteditable></div>
  179. </div>
  180. <div>
  181. <span>见证人签名:</span>
  182. <div contenteditable></div>
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. <div class="footer">
  188. <span>共<span>肆</span>页</span>
  189. <span>第<span>壹</span>页</span>
  190. </div>
  191. </div>
  192. </div>
  193. <!-- </MainPanel> -->
  194. </template>
  195. <script setup lang="ts">
  196. import { reactive, ref, toRefs, onBeforeMount, onMounted, nextTick } from 'vue';
  197. import html2canvas from 'html2canvas';
  198. import { downloadImage, uploadImage } from '@/store/sync';
  199. import Message from '@/components/base/components/message/message.vue';
  200. import Header from '@/components/photos/header.vue';
  201. import MainPanel from '@/components/main-panel/index.vue';
  202. const layoutRef = ref<HTMLDivElement>();
  203. const downMode = ref(false);
  204. const getLayoutImage = async () => {
  205. downMode.value = true;
  206. await nextTick();
  207. console.error(layoutRef.value);
  208. const canvas = await html2canvas(layoutRef.value);
  209. Message.success({ msg: '已保存至相册', time: 2000 });
  210. downMode.value = false;
  211. const blob = await new Promise<Blob>((resolve) => canvas.toBlob(resolve, 'image/jpeg', 0.95));
  212. await downloadImage(blob, '12312.jpg');
  213. // return await uploadImage(blob);
  214. };
  215. const sceneTypes = ref({
  216. check: 0,
  217. options: [
  218. { id: 1, title: '现场勘查' },
  219. { id: 2, title: '补充勘查' },
  220. ],
  221. });
  222. const roadPartList = ref({
  223. check: 0,
  224. options: [
  225. { id: 1, title: '普通路段' },
  226. { id: 2, title: '高架路段' },
  227. { id: 3, title: '变窄路段' },
  228. { id: 4, title: '窄路' },
  229. { id: 5, title: '桥梁' },
  230. { id: 6, title: '隧道' },
  231. { id: 7, title: '路段进出处' },
  232. { id: 8, title: '路侧险要路段' },
  233. { id: 9, title: '其他特殊路段' },
  234. ],
  235. });
  236. const roadSideList = ref({
  237. check: 0,
  238. options: [
  239. { id: 1, title: '三枝分叉口' },
  240. { id: 2, title: '四枝分叉口' },
  241. { id: 3, title: '多枝分叉口' },
  242. { id: 4, title: '环形交叉口' },
  243. { id: 5, title: '匝道口' },
  244. ],
  245. });
  246. const cityRoadList = ref({
  247. check: 0,
  248. options: [
  249. { id: 1, title: '城市快速路' },
  250. { id: 2, title: '一般城市道路' },
  251. { id: 3, title: '单位小区自建路' },
  252. { id: 4, title: '公共停车场' },
  253. { id: 5, title: '公共广场' },
  254. { id: 6, title: '其他路' },
  255. ],
  256. });
  257. const administrativeLevel = ref({
  258. check: 0,
  259. options: [
  260. { id: 1, title: '国道' },
  261. { id: 2, title: '省道' },
  262. {
  263. id: 3,
  264. title: '县道',
  265. },
  266. {
  267. id: 4,
  268. title: '乡村道',
  269. },
  270. {
  271. id: 5,
  272. title: '其他',
  273. },
  274. ],
  275. });
  276. const checkLevel = (item, index) => {
  277. item.check = item.options[index].id;
  278. };
  279. const technicalLevel = ref({
  280. check: 0,
  281. options: [
  282. { id: 1, title: '高速' },
  283. { id: 2, title: '一级' },
  284. {
  285. id: 3,
  286. title: '二级',
  287. },
  288. {
  289. id: 4,
  290. title: '三级',
  291. },
  292. {
  293. id: 5,
  294. title: '四级',
  295. },
  296. {
  297. id: 6,
  298. title: '等外',
  299. },
  300. ],
  301. });
  302. const weatherList = ref({
  303. check: 0,
  304. options: [
  305. { id: 1, title: '晴' },
  306. { id: 2, title: '阴' },
  307. {
  308. id: 3,
  309. title: '多云',
  310. },
  311. {
  312. id: 4,
  313. title: '雨',
  314. },
  315. {
  316. id: 5,
  317. title: '雪',
  318. },
  319. {
  320. id: 6,
  321. title: '雾',
  322. },
  323. {
  324. id: 7,
  325. title: '冰雹',
  326. },
  327. {
  328. id: 8,
  329. title: '沙尘',
  330. },
  331. {
  332. id: 9,
  333. title: '霾',
  334. },
  335. {
  336. id: 10,
  337. title: '其他',
  338. },
  339. ],
  340. });
  341. const checkEnvironItem = (item, index, j_index) => {
  342. environments.value[index].check = item.id;
  343. };
  344. const environments = ref([
  345. {
  346. id: 1,
  347. title: '影响视线或行驶的障碍物:',
  348. value: '',
  349. check: 0,
  350. options: [
  351. { id: 1, name: '无' },
  352. { id: 2, name: '有:' },
  353. ],
  354. },
  355. {
  356. id: 2,
  357. title: '递路交通标志:',
  358. value: '',
  359. check: 0,
  360. options: [
  361. { id: 1, name: '无' },
  362. { id: 2, name: '有:' },
  363. ],
  364. },
  365. {
  366. id: 3,
  367. title: '道路交通标线:',
  368. value: '',
  369. check: 0,
  370. options: [
  371. { id: 1, name: '无' },
  372. { id: 2, name: '有:' },
  373. ],
  374. },
  375. {
  376. id: 4,
  377. title: '中央隔离设施:',
  378. value: '',
  379. check: 0,
  380. options: [
  381. { id: 1, name: '无' },
  382. { id: 2, name: '有:' },
  383. ],
  384. },
  385. {
  386. id: 5,
  387. title: '路侧防护设施:',
  388. value: '',
  389. check: 0,
  390. options: [
  391. { id: 1, name: '无' },
  392. { id: 2, name: '有:' },
  393. ],
  394. },
  395. {
  396. id: 6,
  397. title: '路面材料:',
  398. value: '',
  399. check: 0,
  400. options: [
  401. { id: 1, name: '沥青' },
  402. { id: 2, name: '水泥' },
  403. { id: 3, name: '砂石' },
  404. { id: 4, name: '土路' },
  405. { id: 5, name: '其他' },
  406. ],
  407. },
  408. {
  409. id: 7,
  410. title: '路面状况:',
  411. value: '',
  412. check: 0,
  413. options: [
  414. { id: 1, name: '路面完好' },
  415. { id: 2, name: '施工' },
  416. { id: 3, name: '凹凸' },
  417. { id: 4, name: '塌陷' },
  418. { id: 5, name: '路障' },
  419. { id: 6, name: '其他' },
  420. ],
  421. },
  422. {
  423. id: 8,
  424. title: '路表状况:',
  425. value: '',
  426. check: 0,
  427. options: [
  428. { id: 1, name: '干燥' },
  429. { id: 2, name: '潮湿' },
  430. { id: 3, name: '积水' },
  431. { id: 4, name: '漫水' },
  432. { id: 5, name: '冰雪' },
  433. { id: 6, name: '泥泞' },
  434. { id: 7, name: '其他' },
  435. ],
  436. },
  437. {
  438. id: 9,
  439. title: '照明情况:',
  440. value: '',
  441. check: 0,
  442. options: [
  443. { id: 1, name: '白天 夜间路灯照明' },
  444. { id: 2, name: '有' },
  445. { id: 3, name: '无' },
  446. ],
  447. },
  448. {
  449. id: 10,
  450. title: '照明情况:',
  451. value: '',
  452. check: 0,
  453. options: [],
  454. },
  455. ]);
  456. </script>
  457. <style lang="scss" scoped>
  458. div {
  459. box-sizing: border-box;
  460. }
  461. .explorate {
  462. color: #000;
  463. font-size: 20px;
  464. width: 100%;
  465. height: 100%;
  466. // display: grid;
  467. font-family: sr, st;
  468. // padding: 80px 0 0 0;
  469. > div {
  470. // padding: 20px 50px 30px;
  471. }
  472. .title {
  473. text-align: center;
  474. margin-bottom: 10px;
  475. }
  476. .container {
  477. }
  478. .footer {
  479. display: flex;
  480. align-items: center;
  481. justify-content: space-between;
  482. padding: 0 60px;
  483. margin-top: 10px;
  484. > span {
  485. > span {
  486. margin: 0 24px;
  487. }
  488. }
  489. }
  490. &.downMode {
  491. width: 1050px;
  492. height: 1485px;
  493. > div {
  494. padding: 125px 100px 75px;
  495. }
  496. }
  497. }
  498. .wrapper {
  499. margin: 0 auto;
  500. width: 100%;
  501. display: grid;
  502. grid-template-columns: 100%;
  503. grid-template-rows: repeat(8, auto);
  504. border: 1px solid #000;
  505. font-size: 20px;
  506. .sign-box {
  507. padding: 0 10px;
  508. display: flex;
  509. align-items: center;
  510. justify-content: flex-start;
  511. border-top: 1px solid #000;
  512. min-height: 40px;
  513. > div {
  514. width: 50%;
  515. height: 100%;
  516. display: flex;
  517. align-items: center;
  518. justify-content: flex-start;
  519. > div {
  520. flex: 1;
  521. height: 100%;
  522. outline: none;
  523. display: flex;
  524. align-items: center;
  525. justify-content: flex-start;
  526. line-height: 40px;
  527. }
  528. }
  529. }
  530. .header {
  531. display: flex;
  532. align-items: center;
  533. justify-content: center;
  534. border-bottom: 1px solid #000;
  535. height: 35px;
  536. .item {
  537. margin-right: 60px;
  538. &:last-of-type {
  539. margin-right: 0;
  540. }
  541. }
  542. }
  543. .info {
  544. display: grid;
  545. grid-template-columns: 14% 86%;
  546. grid-template-rows: repeat(1, 100%);
  547. height: 35px;
  548. > div {
  549. border-bottom: 1px solid #000;
  550. border-right: 1px solid #000;
  551. display: flex;
  552. align-items: center;
  553. justify-content: center;
  554. &:last-of-type {
  555. border-right: none;
  556. }
  557. &.input-box {
  558. outline: none;
  559. padding: 0 10px;
  560. line-height: 35px;
  561. text-align: center;
  562. }
  563. }
  564. }
  565. .environment {
  566. padding: 10px;
  567. .em-info-box {
  568. .info-item {
  569. display: flex;
  570. align-items: center;
  571. margin-bottom: 18px;
  572. .check-box {
  573. display: inline-block;
  574. .check-item {
  575. display: inline-block;
  576. margin-right: 10px;
  577. &:last-of-type {
  578. margin-right: 0;
  579. }
  580. }
  581. }
  582. .input-box {
  583. flex: 1;
  584. display: inline-block;
  585. border-bottom: 1px solid #000;
  586. input {
  587. width: 100%;
  588. padding: 0 10px;
  589. }
  590. }
  591. }
  592. }
  593. }
  594. .weather {
  595. display: grid;
  596. grid-template-columns: 14% 86%;
  597. grid-template-rows: repeat(1, 100%);
  598. min-height: 35px;
  599. border-bottom: 1px solid #000;
  600. .name {
  601. border-right: 1px solid #000;
  602. display: flex;
  603. align-items: center;
  604. justify-content: center;
  605. }
  606. > div {
  607. display: flex;
  608. align-items: center;
  609. justify-content: space-between;
  610. padding: 5px;
  611. .item {
  612. display: flex;
  613. align-items: center;
  614. justify-content: flex-start;
  615. margin-right: 10px;
  616. margin-bottom: 5px;
  617. .input-box {
  618. input {
  619. border-bottom: 1px solid #000;
  620. }
  621. }
  622. }
  623. }
  624. }
  625. .time {
  626. display: grid;
  627. grid-template-columns: 14% 86%;
  628. grid-template-rows: repeat(1, auto);
  629. .name {
  630. display: flex;
  631. align-items: center;
  632. justify-content: center;
  633. }
  634. > div {
  635. border-bottom: 1px solid #000;
  636. border-right: 1px solid #000;
  637. &:last-of-type {
  638. border-right: none;
  639. }
  640. }
  641. .time-one {
  642. // display: grid;
  643. // grid-auto-flow: row;
  644. // grid-template-columns: 66px;
  645. // grid-template-rows: repeat(4, auto);
  646. .road-info {
  647. display: flex;
  648. align-items: center;
  649. justify-content: flex-start;
  650. border-bottom: 1px solid #000;
  651. .road-name {
  652. width: 66px;
  653. box-sizing: border-box;
  654. padding: 0 10px;
  655. }
  656. .road-msg {
  657. flex: 1;
  658. border-left: 1px solid #000;
  659. > div {
  660. min-height: 30px;
  661. display: flex;
  662. align-items: center;
  663. justify-content: flex-start;
  664. }
  665. .road-name-text {
  666. width: 55%;
  667. flex: 1;
  668. padding: 0 10px;
  669. outline: none;
  670. text-align: center;
  671. display: flex;
  672. align-items: center;
  673. justify-content: center;
  674. }
  675. .road-num {
  676. width: 23.8%;
  677. padding: 0 10px;
  678. border-left: 1px solid #000;
  679. border-right: 1px solid #000;
  680. }
  681. .road-num-text {
  682. width: 20%;
  683. padding: 0 10px;
  684. flex: 1;
  685. outline: none;
  686. text-align: center;
  687. display: flex;
  688. align-items: center;
  689. justify-content: center;
  690. }
  691. }
  692. > div {
  693. min-height: 30px;
  694. display: flex;
  695. align-items: center;
  696. justify-content: flex-start;
  697. }
  698. }
  699. .road-pos {
  700. display: flex;
  701. align-items: center;
  702. width: 100%;
  703. .road-pos-name {
  704. width: 66px;
  705. padding: 0 10px;
  706. }
  707. .pos-box {
  708. // width: 100%;
  709. flex: 1;
  710. .pos-item {
  711. display: flex;
  712. align-items: center;
  713. justify-content: flex-start;
  714. flex: 1;
  715. width: 100%;
  716. border-left: 1px solid #000;
  717. border-bottom: 1px solid #000;
  718. &:last-of-type {
  719. border-bottom: none;
  720. }
  721. .pos-item-name {
  722. width: 120px;
  723. padding: 0 10px;
  724. border-right: 1px solid #000;
  725. display: flex;
  726. align-items: center;
  727. justify-content: center;
  728. }
  729. .pos-msg {
  730. flex: 1;
  731. display: flex;
  732. align-items: center;
  733. justify-content: flex-start;
  734. &.desc {
  735. outline: none;
  736. display: flex;
  737. align-items: center;
  738. justify-content: flex-start;
  739. padding: 0 5px;
  740. line-height: 54px;
  741. }
  742. .longitude {
  743. display: inline-block;
  744. width: 50%;
  745. border-right: 1px solid #000;
  746. height: 100%;
  747. display: flex;
  748. align-items: center;
  749. justify-content: flex-start;
  750. padding: 0 10px;
  751. > div {
  752. flex: 1;
  753. height: 30px;
  754. outline: none;
  755. display: flex;
  756. align-items: center;
  757. justify-content: flex-start;
  758. }
  759. }
  760. .latitude {
  761. display: inline-block;
  762. width: 50%;
  763. display: flex;
  764. align-items: center;
  765. justify-content: flex-start;
  766. padding: 0 10px;
  767. > div {
  768. flex: 1;
  769. height: 30px;
  770. outline: none;
  771. display: flex;
  772. align-items: center;
  773. justify-content: flex-start;
  774. }
  775. }
  776. }
  777. }
  778. }
  779. }
  780. .road-type {
  781. border-bottom: 1px solid #000;
  782. display: flex;
  783. align-items: center;
  784. width: 100%;
  785. .road-type-name {
  786. width: 66px;
  787. padding: 0 10px;
  788. }
  789. .type-box {
  790. // width: 100%;
  791. flex: 1;
  792. .type-item {
  793. display: flex;
  794. align-items: center;
  795. justify-content: flex-start;
  796. flex: 1;
  797. width: 100%;
  798. border-left: 1px solid #000;
  799. border-bottom: 1px solid #000;
  800. &.city {
  801. .type-item-name {
  802. // border-right: 1px solid #000;
  803. }
  804. .item-info-box {
  805. border-left: 1px solid #000;
  806. }
  807. }
  808. &:last-of-type {
  809. border-bottom: none;
  810. }
  811. .type-item-name {
  812. width: 66px;
  813. padding: 0 10px;
  814. }
  815. .item-msg {
  816. flex: 1;
  817. &.intersection {
  818. min-height: 48px;
  819. border-left: 1px solid #000;
  820. display: flex;
  821. align-items: center;
  822. justify-content: flex-start;
  823. padding: 5px;
  824. .item {
  825. margin-right: 5px;
  826. margin-bottom: 5px;
  827. // flex: 1;
  828. // display: flex;
  829. // align-items: center;
  830. // justify-content: flex-start;
  831. }
  832. }
  833. }
  834. > div {
  835. // width: 100%;
  836. // height: 56px;
  837. .item-info {
  838. width: 100%;
  839. border-bottom: 1px solid #000;
  840. display: flex;
  841. align-items: center;
  842. justify-content: flex-start;
  843. position: relative;
  844. .item-info-name {
  845. width: 66px;
  846. height: 56px;
  847. // line-height: 56px;
  848. padding: 0 10px;
  849. border-right: 1px solid #000;
  850. border-left: 1px solid #000;
  851. display: flex;
  852. align-items: center;
  853. justify-content: flex-start;
  854. }
  855. .item-info-box {
  856. flex: 1;
  857. min-height: 56px;
  858. display: flex;
  859. align-items: center;
  860. justify-content: flex-start;
  861. padding: 5px;
  862. .item {
  863. display: flex;
  864. align-items: center;
  865. justify-content: flex-start;
  866. margin-right: 2px;
  867. margin-bottom: 5px;
  868. &:last-of-type {
  869. margin-right: 0;
  870. display: flex;
  871. align-items: center;
  872. justify-content: flex-start;
  873. flex: 1;
  874. }
  875. .input-box {
  876. width: 10%;
  877. input {
  878. width: 100%;
  879. border-bottom: 1px solid #000;
  880. }
  881. }
  882. }
  883. }
  884. &:last-of-type {
  885. border-bottom: none;
  886. }
  887. }
  888. }
  889. }
  890. }
  891. }
  892. }
  893. }
  894. }
  895. .wrapper div {
  896. }
  897. </style>