Your Name
2022-08-10 84358f2bc9415c90099306f0c9c41cdc24cc78d6
src/views/specialWorkSystem/workBasicManagementSetting/personalProtectDevices/index.vue
@@ -1,6 +1,6 @@
<template>
   <div class="home-container">
      <el-scrollbar height="100%">
      <div style="height: 100%">
      <el-row class="homeCard">
         <el-col :span="8">
            <div class="grid-content topInfo">
@@ -24,6 +24,7 @@
                  ref="multipleTableRef"
                  :data="tableData"
                  style="width: 100%"
                  height="calc(100% - 100px)"
                  :header-cell-style="{background: '#fafafa'}"
                  @selection-change="handleSelectionChange"
            >
@@ -37,22 +38,22 @@
                  </template>
               </el-table-column>
            </el-table>
         </div>
         <div class="pageBtn">
            <el-pagination
                  v-model:currentPage="currentPage"
                  v-model:page-size="pageSize"
                  :page-sizes="[10, 15]"
                  small=false
                  background
                  layout="total, sizes, prev, pager, next, jumper"
                  :total="100"
                  @size-change="handleSizeChange"
                  @current-change="handleCurrentChange"
            />
            <div class="pageBtn">
               <el-pagination
                     v-model:currentPage="currentPage"
                     v-model:page-size="pageSize"
                     :page-sizes="[10, 15]"
                     small=false
                     background
                     layout="total, sizes, prev, pager, next, jumper"
                     :total="100"
                     @size-change="handleSizeChange"
                     @current-change="handleCurrentChange"
               />
            </div>
         </div>
      </div>
      </el-scrollbar>
      </div>
      <el-dialog v-model="dialogDetails" title="防护用品">
         <el-form :model="details" label-width="120px">
            <el-form-item label="防护用品名称">
@@ -118,9 +119,6 @@
   interface type {
   }
   // export default defineComponent({
   //    name: 'workCheckinRecord',
   //    setup() {
         const userInfo = useUserInfo()
         const { userInfos } = storeToRefs(userInfo);
         const state  = reactive<stateType>({});
@@ -177,7 +175,7 @@
            await formEl.validate((valid, fields) => {
               if (valid) {
                  if(chosenIndex.value == -1){
                     tableData.push(addRecord.value)
                     tableData.unshift(addRecord.value)
                  }else{
                     tableData[chosenIndex.value] = addRecord.value
                  }
@@ -206,44 +204,50 @@
            userInfos.value.projectId = value
            await initBackEndControlRoutes();
         };
         // return {
         //    renderMenu,
         //    multipleTableRef,
         //    tableData,
         //    currentPage,
         //    pageSize,
         //    dialogDetails,
         //    details,
         //    deleteDialog,
         //    dialogAddRecord,
         //    viewRecord,
         //    deleteRecord,
         //    handleSizeChange,
         //    handleCurrentChange,
         //    Plus,
         //    Edit,
         //    Delete,
         //    Search,
         //    Download,
         //    handleSelectionChange,
         //    Refresh,
         //    ...toRefs(state),
         // };
   //    },
   // });
</script>
<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: calc(100% - 100px);
         }
      }
      .el-row{
         display: flex;
@@ -267,37 +271,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;
         }
      }
   }