index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824
  1. <template>
  2. <div class="app-container home">
  3. <!-- <el-row :gutter="20"></el-row>
  4. <el-row :gutter="20"></el-row>
  5. <el-divider/>
  6. <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
  7. <el-upload ref="upload" :limit="1" accept=".xlsx, .xls" :headers="upload.headers"
  8. :action="upload.url + '?updateSupport=' + upload.updateSupport" :disabled="upload.isUploading"
  9. :on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" :auto-upload="false" drag>
  10. <i class="el-icon-upload"></i>
  11. <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
  12. <div class="el-upload__tip text-center" slot="tip">
  13. <div class="el-upload__tip" slot="tip">
  14. <el-checkbox v-model="upload.updateSupport"/>
  15. 是否更新已经存在的用户数据
  16. </div>
  17. <span>仅允许导入xls、xlsx格式文件。</span>
  18. <el-link type="primary" :underline="false" style="font-size: 12px; vertical-align: baseline"
  19. @click="importTemplate">下载模板
  20. </el-link>
  21. </div>
  22. </el-upload>
  23. <div slot="footer" class="dialog-footer">
  24. <el-button type="primary" @click="submitFileForm">确 定</el-button>
  25. <el-button @click="upload.open = false">取 消</el-button>
  26. </div>
  27. </el-dialog>
  28. <button @click="upload.open = true">上传文件</button>
  29. <el-row :gutter="20">
  30. <el-col :xs="24" :sm="24" :md="12" :lg="8"></el-col>
  31. <el-col :xs="24" :sm="24" :md="12" :lg="8">
  32. <el-card class="update-log">
  33. <div slot="header" class="clearfix">
  34. <span>更新日志</span>
  35. </div>
  36. <el-collapse accordion> 123123</el-collapse>
  37. </el-card>
  38. </el-col>
  39. <el-col :xs="24" :sm="24" :md="12" :lg="8">
  40. <el-card class="update-log">
  41. <div slot="header" class="clearfix">
  42. <span>捐赠支持</span>
  43. </div>
  44. <div class="body"></div>
  45. </el-card>
  46. </el-col>
  47. </el-row> -->
  48. <div class="info-content">
  49. <!-- <div class="header" @click="toPersonalCenter"> -->
  50. <!-- <img :src="avatar" class="user-avatar" /> -->
  51. <!-- </div> -->
  52. <!-- <div class="name">{{ nickName }}</div>
  53. <div class="tenant-name">{{ tenantName }}</div>
  54. <div class="date">{{ date }}</div> -->
  55. <!-- <div class="title">欢迎登录Mec OS 工业应用操作系统</div> -->
  56. <!-- <div class="title mt20">欢迎登录工业应用引擎</div> -->
  57. <div class="echarts1">
  58. <div class="pieChart" ref="pieChart"></div>
  59. <div
  60. :class="'describe' + (parseInt(index) + 1)"
  61. v-for="(item, index) in processList"
  62. :key="index"
  63. >
  64. <P class="text">{{ item.name }}</P>
  65. <P class="num">{{ item.value }}</P>
  66. </div>
  67. </div>
  68. <div class="echarts2">
  69. <div class="lineChart" ref="lineChart"></div>
  70. </div>
  71. <div class="echarts3">
  72. <p class="title">操作日志</p>
  73. <div class="text">
  74. <span class="peo">操作人</span>
  75. <span class="add">ip</span>
  76. </div>
  77. <div class="swiper-container">
  78. <div class="swiper-scrollbar"></div>
  79. <div class="swiper-wrapper">
  80. <div class="swiper-slide" v-for="(item,index) in swiperList" :key="index">
  81. <div >
  82. <span class="name">{{ item.oper_name }}</span>
  83. <span class="ip">{{ item.oper_ip }}</span>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. <div class="echarts4">
  90. <div class="gaugeChart" ref="gaugeChart"></div>
  91. </div>
  92. <div class="echarts5">
  93. <div class="barChart" ref="barChart"></div>
  94. </div>
  95. </div>
  96. </div>
  97. </template>
  98. <script>
  99. import { formatDate } from "@/utils";
  100. import { getToken } from "@/utils/auth";
  101. import { mapGetters, mapState } from "vuex";
  102. import 'swiper/css/swiper.css';
  103. import Swiper from 'swiper';
  104. import {
  105. getProcess,
  106. getOperation,
  107. getLogin,
  108. getTabular,
  109. getData,
  110. } from "@/api/homePage/index";
  111. export default {
  112. name: "Index",
  113. data() {
  114. return {
  115. echars: true,
  116. chartObj: {
  117. myChart1: null,
  118. myChart2: null,
  119. myChart3: null,
  120. myChart4: null,
  121. },
  122. processList: [],
  123. swiperList: [
  124. /* {
  125. name: "111",
  126. ip: "192.168.1.1"
  127. },
  128. {
  129. name: "222",
  130. ip: "192.168.1.2"
  131. },
  132. {
  133. name: "333",
  134. ip: "192.168.1.3"
  135. },
  136. {
  137. name: "444",
  138. ip: "192.168.1.4"
  139. },
  140. {
  141. name: "555",
  142. ip: "192.168.1.5"
  143. },
  144. {
  145. name: "666",
  146. ip: "192.168.1.6"
  147. }, */
  148. ],
  149. // 用户导入参数
  150. upload: {
  151. // 是否显示弹出层(用户导入)
  152. open: false,
  153. // 弹出层标题(用户导入)
  154. title: "",
  155. // 是否禁用上传
  156. isUploading: false,
  157. // 是否更新已经存在的用户数据
  158. updateSupport: 0,
  159. // 设置上传的请求头部
  160. headers: { Authorization: "Bearer " + getToken() },
  161. // 上传的地址
  162. url: process.env.VUE_APP_BASE_API3 + "common/importDataInfo",
  163. },
  164. // 版本号
  165. version: "3.8.5",
  166. };
  167. },
  168. mounted() {
  169. this.title = sessionStorage.getItem("title") || "智能制造平台";
  170. // 初始化 echarts
  171. this.initChart1();
  172. this.initChart2();
  173. this.initChart3();
  174. this.initChart4();
  175. this.initData();
  176. },
  177. methods: {
  178. initData() {
  179. //工业流&审批流
  180. getProcess().then((response) => {
  181. if(response.code == 200){
  182. this.processList = response.data;
  183. console.log(response.data);
  184. this.chartObj.myChart1.setOption({
  185. series: [
  186. {
  187. data: response.data
  188. }
  189. ]
  190. })
  191. } else {
  192. console.log(response);
  193. this.$message.error("获取数据失败");
  194. }
  195. })
  196. //登录次数统计
  197. getLogin().then(response => {
  198. if(response.code == 200){
  199. let xAxisData = response.data[0].date
  200. xAxisData = xAxisData.map(function (dateStr) {
  201. var date = new Date(dateStr);
  202. return date.getMonth() + 1 + "月" + date.getDate() + "日";
  203. });
  204. let loginList = response.data.map((item) => item.name);
  205. this.chartObj.myChart2.setOption({
  206. xAxis: {
  207. data: xAxisData
  208. },
  209. legend: {
  210. data: loginList
  211. },
  212. series: response.data
  213. })
  214. } else {
  215. console.log(response);
  216. this.$message.error("获取数据失败");
  217. }
  218. })
  219. //登录统计信息
  220. getOperation().then(response => {
  221. if(response.code == 200){
  222. this.swiperList = response.data;
  223. console.log(this.swiperList);
  224. this.$nextTick(() => {
  225. var swiper = new Swiper(".swiper-container", {
  226. direction: "vertical",
  227. loop: true,
  228. autoplay: {
  229. delay: 1000,
  230. disableOnInteraction: false,
  231. },
  232. scrollbar: {
  233. el: ".swiper-scrollbar",
  234. },
  235. slidesPerView: 3,
  236. freeMode: true,
  237. // spaceBetween: 1,
  238. });
  239. });
  240. } else {
  241. console.log(response);
  242. this.$message.error("获取数据失败");
  243. }
  244. })
  245. // 表格统计
  246. getTabular().then(response => {
  247. if(response.code == 200){
  248. let tabularList = response.data
  249. tabularList.push({ name: '多表数量', value: 30 })
  250. let labelList = response.data.map((item) => item.name)
  251. this.chartObj.myChart3.setOption({
  252. yAxis: {
  253. data: labelList,
  254. },
  255. series: [
  256. {
  257. data: response.data
  258. }
  259. ]
  260. })
  261. } else {
  262. console.log(response);
  263. this.$message.error("获取数据失败");
  264. }
  265. })
  266. //数据建模数量
  267. getData().then(response => {
  268. if(response.code == 200){
  269. console.log(response.data);
  270. this.chartObj.myChart4.setOption({
  271. series: [
  272. {
  273. data: [response.data]
  274. }
  275. ]
  276. })
  277. } else {
  278. console.log(response);
  279. this.$message.error("获取数据失败");
  280. }
  281. })
  282. },
  283. initChart1() {
  284. // 通过 $ref 进行挂载
  285. this.chartObj.myChart1 = this.$echarts.init(this.$refs.pieChart);
  286. let option = {
  287. color: ["#9370db", "#ffd700", "#00ccff", "#ff6600", "#ff9900"],
  288. title: {
  289. text: '流程统计',
  290. left: 'left',
  291. textStyle: {
  292. fontSize: 16,
  293. fontWeight: 'normal',
  294. color: '#696969'
  295. },
  296. },
  297. tooltip: {
  298. trigger: 'item'
  299. },
  300. legend: {
  301. left: '60%',
  302. top: '60%',
  303. },
  304. series: [
  305. {
  306. type: 'pie',
  307. radius: ['40%', '100%'],
  308. avoidLabelOverlap: false,
  309. itemStyle: {
  310. // borderRadius: 10,
  311. borderColor: '#fff',
  312. borderWidth: 2
  313. },
  314. right: '40%',
  315. top: '50%',
  316. data: [
  317. { value: 10, name: '工艺流' },
  318. { value: 20, name: '审批流' },
  319. ],
  320. label: {
  321. show: false,
  322. position: 'center'
  323. },
  324. labelLine: {
  325. show: false
  326. },
  327. emphasis: {
  328. label: {
  329. show: true,
  330. fontSize: 20,
  331. fontWeight: 'bold'
  332. }
  333. }
  334. }
  335. ]
  336. };
  337. this.chartObj.myChart1.setOption(option);
  338. },
  339. initChart2(){
  340. this.chartObj.myChart2 = this.$echarts.init(this.$refs.lineChart);
  341. let option = {
  342. color: ["#FF88E0", "#9FE080"],
  343. title: {
  344. text: '用户登录统计',
  345. textStyle: {
  346. fontSize: 16,
  347. fontWeight: 'normal',
  348. color: '#696969'
  349. },
  350. },
  351. tooltip: {
  352. trigger: 'axis'
  353. },
  354. legend: {
  355. data: ['客户端11', '工具端11']
  356. },
  357. grid: {
  358. left: '3%',
  359. right: '4%',
  360. top: '20%',
  361. bottom: '0%',
  362. containLabel: true
  363. },
  364. xAxis: {
  365. type: 'category',
  366. boundaryGap: false,
  367. data: [
  368. '01\nMon', '02\nTue', '03\nWed', '04\nThu', '05\nFri', '06\nSat', '07\nSun',
  369. '08\nMon', '09\nTue', '10\nWed', '11\nThu', '12\nFri', '13\nSat', '14\nSun',
  370. '15\nMon', '16\nTue', '17\nWed', '18\nThu', '19\nFri', '20\nSat', '21\nSun',
  371. '22\nMon', '23\nTue', '24\nWed', '25\nThu', '26\nFri', '27\nSat', '28\nSun',
  372. '29\nMon', '30\nTue',
  373. ]
  374. },
  375. yAxis: {
  376. type: 'value'
  377. },
  378. series: [
  379. {
  380. name: '客户端',
  381. type: 'line',
  382. smooth: true,
  383. data: [10, 23, 42, 13, 30, 25, 40, 30, 42, 55, 40, 28, 20, 30, 45, 25, 20, 30, 40, 33, 35, 40, 46, 31, 13, 34, 20, 10, 36, 43]
  384. },
  385. {
  386. name: '工具端',
  387. type: 'line',
  388. smooth: true,
  389. data: [20, 30, 29, 40, 55, 33, 30, 26, 36, 45, 50, 34, 38, 25, 28, 43, 16, 30, 45, 52, 40, 46, 33, 57, 50, 33, 40, 59, 56, 56]
  390. },
  391. ]
  392. }
  393. this.chartObj.myChart2.setOption(option);
  394. },
  395. initChart3(){
  396. this.chartObj.myChart3 = this.$echarts.init(this.$refs.gaugeChart);
  397. let option = {
  398. color: ["#00ccff", "#ff6600", "#ff9900","#9370db", "#ffd700"],
  399. title: {
  400. text: '表格统计',
  401. left: 'left',
  402. textStyle: {
  403. fontSize: 16,
  404. fontWeight: 'normal',
  405. color: '#696969'
  406. },
  407. },
  408. tooltip: {
  409. trigger: "axis",
  410. axisPointer: {
  411. type: "shadow"
  412. }
  413. },
  414. grid: {
  415. left: '0%',
  416. right: '3%',
  417. top: '20%',
  418. bottom: '0%',
  419. containLabel: true
  420. },
  421. xAxis: {
  422. type: 'value',
  423. nameLocation: 'middle',
  424. nameTextStyle: {
  425. align: 'center'
  426. },
  427. splitLine: {
  428. show: false
  429. },
  430. },
  431. yAxis: {
  432. type: 'category',
  433. data: ['表单', '表格', '三级联动', '多表数量'],
  434. inverse: true, // 使类目从右向左排列
  435. },
  436. series: [
  437. {
  438. type: 'bar',
  439. barWidth: '18',
  440. orientation: 'horizontal',
  441. data: [
  442. { value: 88, name: '表单' },
  443. { value: 66, name: '表格' },
  444. { value: 33, name: '三级联动' },
  445. { value: 55, name: '多表数量' },
  446. ],
  447. showBackground: true,
  448. backgroundStyle: {
  449. color: '#F0F8FF'
  450. }
  451. }
  452. ]
  453. }
  454. this.chartObj.myChart3.setOption(option);
  455. },
  456. initChart4(){
  457. this.chartObj.myChart4 = this.$echarts.init(this.$refs.barChart);
  458. let option = {
  459. color: ["#5D84FE"],
  460. title: {
  461. text: '数据建模统计',
  462. textStyle: {
  463. fontSize: 16,
  464. fontWeight: 'normal',
  465. color: '#696969'
  466. },
  467. },
  468. tooltip: {
  469. trigger: "axis",
  470. axisPointer: {
  471. type: "shadow"
  472. }
  473. },
  474. xAxis: {
  475. type: 'category',
  476. data: ['数据建模'],
  477. },
  478. yAxis: {
  479. type: 'value',
  480. min: 0,
  481. max: 100,
  482. interval: 20,
  483. splitLine: {
  484. show: false // 关闭y轴的水平分割线
  485. },
  486. },
  487. grid: {
  488. left: '5%',
  489. right: '5%',
  490. top: '30%',
  491. bottom: '0%',
  492. containLabel: true
  493. },
  494. series: [
  495. {
  496. data: [20],
  497. type: 'bar',
  498. barWidth: '30', // 设置柱体宽度
  499. showBackground: true,
  500. backgroundStyle: {
  501. color: '#E8EFFF'
  502. }
  503. }
  504. ]
  505. }
  506. this.chartObj.myChart4.setOption(option);
  507. },
  508. /** 导入按钮操作 */
  509. handleImport() {
  510. this.upload.title = "用户导入";
  511. this.upload.open = true;
  512. },
  513. /** 下载模板操作 */
  514. importTemplate() {
  515. this.download(
  516. "system/user/importTemplate",
  517. {},
  518. `user_template_${new Date().getTime()}.xlsx`
  519. );
  520. },
  521. // 文件上传中处理
  522. handleFileUploadProgress(event, file, fileList) {
  523. this.upload.isUploading = true;
  524. },
  525. // 文件上传成功处理
  526. handleFileSuccess(response, file, fileList) {
  527. this.upload.open = false;
  528. this.upload.isUploading = false;
  529. this.$refs.upload.clearFiles();
  530. this.$alert(
  531. "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
  532. response.msg +
  533. "</div>",
  534. "导入结果",
  535. { dangerouslyUseHTMLString: true }
  536. );
  537. this.getList();
  538. },
  539. // 提交上传文件
  540. submitFileForm() {
  541. this.$refs.upload.submit();
  542. },
  543. goTarget(href) {
  544. window.open(href, "_blank");
  545. },
  546. toPersonalCenter() {
  547. this.$router.push("/user/profile");
  548. },
  549. },
  550. computed: {
  551. ...mapState({
  552. username: (state) => state.user.name,
  553. owner: (state) => state.user?.tenant.owner,
  554. tenantName: (state) => state.user?.tenant.tenantName,
  555. nickName: (state) => state.user?.nickName,
  556. }),
  557. ...mapGetters(["avatar"]),
  558. date: () => {
  559. return formatDate(new Date());
  560. },
  561. },
  562. };
  563. </script>
  564. <style lang="scss" scoped>
  565. .home {
  566. position: relative;
  567. width: 100%;
  568. /* height: 500px; */
  569. .info-content {
  570. width: 100%;
  571. height: 100%;
  572. display: flex;
  573. flex-direction: row;
  574. flex-wrap: wrap;
  575. .echarts1 {
  576. position: relative;
  577. width: 20%;
  578. height: 280px;
  579. margin: auto;
  580. padding: 20px 15px;
  581. box-shadow: 10px 10px 5px #E0E0E0;
  582. background-color: #fff;
  583. border-radius: 10px;
  584. .pieChart {
  585. width: 100%;
  586. height: 100%;
  587. }
  588. .describe1 {
  589. .text {
  590. position: absolute;
  591. left: 50px;
  592. top: 90px;
  593. }
  594. .num {
  595. position: absolute;
  596. font-size: 20px;
  597. color: black;
  598. left: 63px;
  599. top: 55px;
  600. }
  601. }
  602. .describe2 {
  603. .text {
  604. position: absolute;
  605. left: 157px;
  606. top: 90px;
  607. }
  608. .num {
  609. position: absolute;
  610. font-size: 20px;
  611. color: black;
  612. left: 170px;
  613. top: 55px;
  614. }
  615. }
  616. }
  617. .echarts2 {
  618. width: 76%;
  619. height: 280px;
  620. margin: auto;
  621. padding: 20px 15px;
  622. box-shadow: 10px 10px 5px #E0E0E0;
  623. background-color: #fff;
  624. border-radius: 10px;
  625. margin-right: 30px;
  626. .lineChart {
  627. width: 100%;
  628. height: 100%;
  629. }
  630. }
  631. .echarts3 {
  632. width: 23%;
  633. height: 200px;
  634. margin: auto;
  635. padding: 20px 15px;
  636. box-shadow: 10px 10px 5px #E0E0E0;
  637. background-color: #fff;
  638. border-radius: 10px;
  639. margin-top: 20px;
  640. p {
  641. margin: 0;
  642. }
  643. .title {
  644. font-size: 16px;
  645. color: '#696969'
  646. }
  647. .text {
  648. display: flex;
  649. flex-direction: row;
  650. margin-top: 10px;
  651. .peo {
  652. font-size: 14px;
  653. color: black;
  654. font-weight: bold;
  655. margin-left: 20px;
  656. margin-right: 120px;
  657. }
  658. .add {
  659. font-size: 14px;
  660. color: black;
  661. font-weight: bold;
  662. }
  663. }
  664. .swiper-container {
  665. display: flex;
  666. flex-direction: row;
  667. flex-wrap: wrap;
  668. width: 90%;
  669. height: 80px;
  670. /* overflow: auto; */
  671. margin-top: 10px;
  672. .name {
  673. text-align: center;
  674. font-size: 16px;
  675. margin-left: 2px;
  676. margin-right: 59px;
  677. }
  678. .ip {
  679. text-align: center;
  680. font-size: 16px;
  681. }
  682. }
  683. }
  684. .echarts4 {
  685. width: 48%;
  686. height: 200px;
  687. margin: auto;
  688. padding: 20px 15px;
  689. box-shadow: 10px 10px 5px #E0E0E0;
  690. background-color: #fff;
  691. border-radius: 10px;
  692. margin-top: 20px;
  693. .gaugeChart {
  694. width: 100%;
  695. height: 100%;
  696. }
  697. }
  698. .echarts5 {
  699. width: 25%;
  700. height: 200px;
  701. margin: auto;
  702. padding: 20px 15px;
  703. box-shadow: 10px 10px 5px #E0E0E0;
  704. background-color: #fff;
  705. border-radius: 10px;
  706. margin-top: 20px;
  707. margin-right: 30px;
  708. .barChart {
  709. width: 100%;
  710. height: 100%;
  711. }
  712. }
  713. /* .header {
  714. white-space: nowrap;
  715. margin-bottom: 5px;
  716. cursor: pointer;
  717. .user-avatar {
  718. width: 160px;
  719. border-radius: 50%;
  720. }
  721. } */
  722. .name {
  723. font-size: 30px;
  724. margin-bottom: 5px;
  725. }
  726. .tenant-name {
  727. font-size: 20px;
  728. }
  729. .date {
  730. margin-bottom: 10px;
  731. }
  732. .title {
  733. /* // font-size: 16px; */
  734. font-size: 20px;
  735. }
  736. }
  737. }
  738. .home {
  739. blockquote {
  740. padding: 10px 20px;
  741. margin: 0 0 20px;
  742. font-size: 17.5px;
  743. /* border-left: 5px solid #eee; */
  744. }
  745. hr {
  746. margin-top: 20px;
  747. margin-bottom: 20px;
  748. border: 0;
  749. border-top: 1px solid #eee;
  750. }
  751. .col-item {
  752. margin-bottom: 20px;
  753. }
  754. ul {
  755. padding: 0;
  756. margin: 0;
  757. }
  758. font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  759. font-size: 13px;
  760. color: #676a6c;
  761. overflow-x: hidden;
  762. ul {
  763. list-style-type: none;
  764. }
  765. h4 {
  766. margin-top: 0px;
  767. }
  768. h2 {
  769. margin-top: 10px;
  770. font-size: 26px;
  771. font-weight: 100;
  772. }
  773. p {
  774. margin-top: 10px;
  775. b {
  776. font-weight: 700;
  777. }
  778. }
  779. .update-log {
  780. ol {
  781. display: block;
  782. list-style-type: decimal;
  783. margin-block-start: 1em;
  784. margin-block-end: 1em;
  785. margin-inline-start: 0;
  786. margin-inline-end: 0;
  787. padding-inline-start: 40px;
  788. }
  789. }
  790. }
  791. </style>