Admin
2022-08-02 d592747d5eaa2cfbe698f8ac61222eb3aa75d1fc
src/views/riskWarningSys/riskLevel/index.vue
@@ -1,6 +1,6 @@
<template>
   <div class="home-container">
      <el-scrollbar height="100%">
      <div style="height: 100%">
      <div class="homeCard">
         <div class="main-card">
            <el-row class="cardTop">
@@ -15,6 +15,7 @@
                  ref="multipleTableRef"
                  :data="tableData"
                  style="width: 100%"
                  height="calc(100% - 100px)"
                  :header-cell-style="{background: '#fafafa'}"
                  @selection-change="handleSelectionChange"
            >
@@ -32,7 +33,6 @@
                  </template>
               </el-table-column>
            </el-table>
         </div>
         <div class="pageBtn">
            <el-pagination
                  v-model:currentPage="currentPage"
@@ -47,7 +47,8 @@
            />
         </div>
      </div>
      </el-scrollbar>
      </div>
      </div>
      <el-dialog v-model="dialogDetails" title="查看详情">
         <el-form :model="details" label-width="120px">
            <el-form-item label="所属月份">
@@ -178,12 +179,30 @@
            level: '高风险',
            amount: 2,
            updateTime: '2022-07-26 15:55:00'
         },
         {
            month: '2022-07',
            level: '低风险',
            amount: 1,
            updateTime: '2022-07-26 15:55:00'
         },
         {
            month: '2022-06',
            level: '高风险',
            amount: 2,
            updateTime: '2022-07-26 15:55:00'
         },
         {
            month: '2022-07',
            level: '低风险',
            amount: 1,
            updateTime: '2022-07-26 15:55:00'
         }
      ]
   )
   const addRef = ref<FormInstance>()
   const addRules = reactive<FormRules>({
      month:[{required: true, message: '该内容不能为空'}],
      month:[{required: true, message: '该内容不能为空',trigger:'blur'}],
      level:[{required: true, message: '该内容不能为空',trigger:'blur'}],
      amount:[{required: true, message: '该内容不能为空',trigger:'blur'}]
   })
@@ -245,14 +264,48 @@
<style scoped lang="scss">
   $homeNavLengh: 8;
   .home-container {
      height: 100%;
      height: calc(100vh - 114px);
      box-sizing: border-box;
      overflow: hidden;
      padding: 20px;
      .homeCard{
         width: 100%;
         padding: 20px;
         box-sizing: border-box;
         background: #fff;
         border-radius: 4px;
         .main-card{
            width: 100%;
            height: 100%;
            .cardTop{
               display: flex;
               align-items: center;
               justify-content: space-between;
               margin-bottom: 20px;
               .mainCardBtn{
                  margin: 0;
               }
            }
            .pageBtn{
               height: 60px;
               display: flex;
               align-items: center;
               justify-content: right;
               .demo-pagination-block + .demo-pagination-block {
                  margin-top: 10px;
               }
               .demo-pagination-block .demonstration {
                  margin-bottom: 16px;
               }
            }
         }
         &:last-of-type{
            height: 100%;
         }
      }
      .el-row{
         display: flex;
@@ -276,37 +329,6 @@
               white-space: nowrap;
               margin-right: 20px;
            }
         }
      }
      .mainPages{
         height: 100%;
         display: flex;
         flex-direction: column;
         justify-content: space-between;
      }
      .main-card{
         width: 100%;
         .cardTop{
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            .mainCardBtn{
               margin: 0;
            }
         }
      }
      .pageBtn{
         display: flex;
         align-items: center;
         justify-content: right;
         margin-top: 20px;
         .demo-pagination-block + .demo-pagination-block {
            margin-top: 10px;
         }
         .demo-pagination-block .demonstration {
            margin-bottom: 16px;
         }
      }
   }