Merge remote-tracking branch 'origin/master'
| | |
| | | |
| | | .el-upload__input { |
| | | display: none; |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | // .el-menu-popup{ |
| | | // min-width: 100px !important; |
| | | // } |
| | | .el-menu--vertical{ |
| | | max-width: 100px !important; |
| | | } |
| | | |
| | | .el-menu--collapse .el-menu .el-submenu, .el-menu--popup { |
| | | min-width: 100px !important; |
| | |
| | | } |
| | | |
| | | // menu hover |
| | | |
| | | |
| | | .el-submenu__title,.el-tooltip{ |
| | | border-radius: 8px; |
| | | overflow: hidden; |
| | | &:hover { |
| | | background-color: $menuHover !important; |
| | | background-color: $menuHover !important; |
| | | color: $menuActiveText !important; |
| | | } |
| | | } |
| | | .submenu-title-noDropdown{ |
| | | &:hover { |
| | | background-color:transparent !important; |
| | | background-color:transparent !important; |
| | | // background-color: $menuBg !important; |
| | | // border-radius: 8px; |
| | | // overflow: hidden; |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | & .nest-menu .el-submenu>.el-submenu__title, |
| | | & .el-submenu .el-menu-item { |
| | | min-width: $sideBarWidth !important; |
| | | background-color: $subMenuBg !important; |
| | | |
| | | &:hover { |
| | | |
| | | |
| | | background-color: $subMenuHover !important; |
| | | } |
| | | } |
| | | |
| | | // .is-active.el-submenu{ |
| | | // color: $subMenuActiveText !important; |
| | | |
| | | |
| | | // } |
| | | .is-active.el-menu-item { |
| | | // color: $subMenuActiveText !important; |
| | |
| | | |
| | | .el-submenu { |
| | | overflow: hidden; |
| | | |
| | | |
| | | &>.el-submenu__title{ |
| | | // width: auto; |
| | | // height: auto; |
| | |
| | | margin: 0 auto; |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | .nest-menu .el-submenu>.el-submenu__title, |
| | | .el-menu-item { |
| | | width: 100px; |
| | | height: 30px !important; |
| | | min-width: 100px !important; |
| | | line-height: 30px; |
| | | text-align: left !important; |
| | | height: 40px !important; |
| | | line-height: 40px; |
| | | padding-left: 20px !important; |
| | | font-size: 10px; |
| | | width: 100% !important; |
| | | justify-content: start !important; |
| | | background-color: $subMenuBg !important; |
| | | color: $subMenuHover !important; |
| | |
| | | max-height: 100vh; |
| | | overflow-y: auto; |
| | | background-color: #fff; |
| | | width: 150px !important; |
| | | padding: 0 !important; |
| | | &::-webkit-scrollbar-track-piece { |
| | | background: #d3dce6; |
| | | } |
| | |
| | | <template> |
| | | <div> |
| | | 不符合项管理 |
| | | <div class="content-main"> |
| | | <div class="top-bar"> |
| | | <el-form ref="form" :inline="true" :model="searchData"> |
| | | <el-form-item label="录入日期:" style="margin-right: 20px;"> |
| | | <el-date-picker |
| | | v-model="searchData.entry_date" |
| | | type="date" |
| | | placeholder="请选择录入日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="审核日期:" style="margin-right: 20px;"> |
| | | <el-date-picker |
| | | v-model="searchData.check_date" |
| | | type="date" |
| | | placeholder="请选择审核日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="状态:" style="margin-right: 20px;"> |
| | | <el-select v-model="searchData.state" placeholder="全部" style="width: 100px;"> |
| | | <el-option |
| | | v-for="item in stateoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="部门:" style="margin-right: 20px;"> |
| | | <el-input v-model="searchData.department" placeholder="请输入部门"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="searchInspections">查询</el-button> |
| | | <el-button type="primary" plain @click="reset">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form class="rightBtn"> |
| | | <el-form-item class="createBtn"> |
| | | <el-button type="primary" icon="el-icon-document-add" style="margin-right: 10px;">新增记录</el-button> |
| | | </el-form-item> |
| | | <el-form-item class="getDataBtn"> |
| | | <el-button type="primary" icon="el-icon-download">导出</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div class="library-table"> |
| | | <div class="table-header"> |
| | | <el-radio-group v-model="radioValue" @change="radioclick"> |
| | | <el-radio-button v-for="item in conditionsOptions" :key="item.value" :label="item.value"> |
| | | {{ item.label }} |
| | | </el-radio-button> |
| | | </el-radio-group> |
| | | </div> |
| | | <div class="table-box"> |
| | | <el-table |
| | | ref="recordTable" |
| | | :max-height="800" |
| | | :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :data="recordTable" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | label="序号" |
| | | min-width="10%"> |
| | | <template slot-scope="scope"> |
| | | <el-checkbox v-model="checked"></el-checkbox> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="title" |
| | | label="标题" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | prop="content" |
| | | label="内容" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | prop="level" |
| | | label="等级" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | prop="type" |
| | | label="类型" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="state" |
| | | label="状态" |
| | | min-width="12%"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.state === 1" style="color: red;">未读</span> |
| | | <span v-if="scope.row.state === 2" style="color: green;">已读</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="sender" |
| | | label="发件人" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="create_time" |
| | | label="创建时间" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | label="操作" |
| | | min-width="10%" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="deleteRow(scope.row)">删除</el-button> |
| | | <el-button type="text" size="small" @click="readRow(scope.row)">标为已读</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- 分页器 --> |
| | | <div> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="currentPage" |
| | | :page-sizes="[5, 10, 15, 20]" |
| | | :page-size="pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="total"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data(){ |
| | | return { |
| | | searchData:{ |
| | | entry_date: '', |
| | | check_date: '', |
| | | state: 0, |
| | | department: '' |
| | | }, |
| | | stateoptions:[{ |
| | | value: 0, |
| | | label: '已关闭' |
| | | },{ |
| | | value: 1, |
| | | label: '待关闭' |
| | | }], |
| | | recordTable:[], |
| | | currentPage: 0, |
| | | pageSize:5, |
| | | total: 20 |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .content-main{ |
| | | width: 100%; |
| | | height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .top-bar{ |
| | | margin: -25px -15px; |
| | | background: #fff; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 5px 24px 0px 24px; |
| | | .rightBtn{ |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | } |
| | | .library-table{ |
| | | background-color: #fff; |
| | | flex: 1; |
| | | margin: 0px -15px; |
| | | margin-top: 40px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .table-header{ |
| | | padding: 20px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .el-form-item{ |
| | | margin-bottom: 30px !important; |
| | | } |
| | | } |
| | | .table-box{ |
| | | padding: 0px 20px; |
| | | margin-top: 0px; |
| | | flex: 1; |
| | | background: #fff; |
| | | /* padding: 20px 20px 10px 20px; */ |
| | | display: flex; |
| | | flex-direction: column; |
| | | .el-table { |
| | | flex: 1; |
| | | } |
| | | >div:nth-child(2){ |
| | | display: flex; |
| | | justify-content: end; |
| | | margin: 10px 0; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | padding: 15px; |
| | | background-color: white; |
| | | height: calc(100vh - 15vh); |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | .order_num{ |
| | | border-radius: 1rem; |
| | | width: 35px; |
| | | height: 25px; |
| | | text-align: center; |
| | | margin-right: 8px; |
| | | } |
| | | </style> |
| | | <style> |
| | |
| | | |
| | | .plan .cell { |
| | | color: #333; |
| | | display: flex; |
| | | } |
| | | </style> |
| | | |
| | |
| | | <el-table-column type="index" width="50" label="序号"> |
| | | </el-table-column> |
| | | <el-table-column prop="date" label="申请单号"> |
| | | <template slot-scope="scope"> |
| | | <div style="display: flex;"> |
| | | <div v-if="scope.row.code=='01'" style="color: #3caaff;background-color: #eff5ff;" class="order_num">01</div> |
| | | <div v-else-if="scope.row.code=='02'" style="color: #57c981;background-color: #f1fbf4;" class="order_num">02</div> |
| | | <div v-else-if="scope.row.code=='03'" style="color: #dfa8fb;background-color: #faf2ff;" class="order_num">03</div> |
| | | <div>{{scope.row.date}}</div> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="检验结果"> |
| | | </el-table-column> |
| | |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="primary" v-if="isIfReport(scope.row)">上报</el-button> |
| | | <el-button size="mini" type="warning" @click="openUpDia(scope.row)" |
| | | v-else-if="scope.row.insId==undefined&&scope.row.address==null">分配</el-button> |
| | | v-else-if="scope.row.code=='03'&&scope.row.insId==undefined&&scope.row.address==null">分配</el-button> |
| | | <el-button size="mini" type="success" @click="openUpInsDia(scope.row)" |
| | | v-else-if="scope.row.insId==undefined&&scope.row.name==null">检验</el-button> |
| | | v-else-if="scope.row.code=='03'&&scope.row.insId==undefined&&scope.row.name==null">检验</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | id: 34, |
| | | date: '2016-05-01', |
| | | name: null, |
| | | res: '[{"number": 1,"res": "不合格"},{"number": 2}]', |
| | | address: '上海市普陀区金沙江路 1519 弄' |
| | | res: '[{"number": 1,"res": "不合格"},{"number": 3,"res": "不合格"}]', |
| | | address: '上海市普陀区金沙江路 1519 弄', |
| | | children: [{ |
| | | id: 35, |
| | | date: 'hhh', |
| | | name: null, |
| | | res: '[{"number": 1},{"number": 2}]', |
| | | address: '上海市普陀区金沙江路 1519 弄' |
| | | }] |
| | | }] |
| | | }, { |
| | | id: 2, |
| | |
| | | methods: { |
| | | selectDataList() { |
| | | this.tableData.forEach(a => { |
| | | a.code = '[1]' |
| | | a.code = '01' |
| | | if (a.children != undefined) { |
| | | a.children.forEach(b => { |
| | | b.code = '[2]' |
| | | b.res = JSON.parse(b.res) |
| | | b.code = '02' |
| | | if (b.children != undefined) { |
| | | b.children.forEach(c => { |
| | | c.code = '03' |
| | | c.res = JSON.parse(c.res) |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | </script> |
| | |
| | | <template> |
| | | <div>消息</div> |
| | | <div class="content-main"> |
| | | <div class="top-bar"> |
| | | <el-form ref="form" :inline="true" :model="searchData"> |
| | | <el-form-item label="标题:" class="sermargin"> |
| | | <el-input |
| | | v-model="searchData.title" |
| | | class="input-form" |
| | | placeholder="请输入标题" |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="内容:" style="margin-right: 30px;"> |
| | | <el-input |
| | | v-model="searchData.content" |
| | | class="input-form" |
| | | placeholder="请输入内容" |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="search">查询</el-button> |
| | | <el-button type="primary" plain @click="reset">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form> |
| | | <el-button class="deleteBtn" plain type="primary" @click="deleteMessage" >删除</el-button> |
| | | <el-button type="primary" @click="readMessage" style="width: 110px;" >标为已读</el-button> |
| | | </el-form> |
| | | </div> |
| | | <div class="library-table"> |
| | | <div class="table-header"> |
| | | <el-radio-group v-model="radioValue" @change="radioclick"> |
| | | <el-radio-button v-for="item in conditionsOptions" :key="item.value" :label="item.value"> |
| | | {{ item.label }} |
| | | </el-radio-button> |
| | | </el-radio-group> |
| | | </div> |
| | | <div class="table-box"> |
| | | <el-table |
| | | ref="messageTable" |
| | | :max-height="800" |
| | | :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :data="messageTable" |
| | | @selection-change="handleSelectionChange" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="title" |
| | | label="标题" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | prop="content" |
| | | label="内容" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | prop="level" |
| | | label="等级" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | prop="type" |
| | | label="类型" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="state" |
| | | label="状态" |
| | | min-width="12%"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.state === 1" style="color: red;">未读</span> |
| | | <span v-if="scope.row.state === 2" style="color: green;">已读</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="sender" |
| | | label="发件人" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="create_time" |
| | | label="创建时间" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | label="操作" |
| | | min-width="10%" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="deleteRow(scope.row)">删除</el-button> |
| | | <el-button type="text" size="small" @click="readRow(scope.row)">标为已读</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- 分页器 --> |
| | | <div> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="currentPage" |
| | | :page-sizes="[5, 10, 15, 20]" |
| | | :page-size="pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="total"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data(){ |
| | | return { |
| | | searchData: { |
| | | title: '', |
| | | content: '' |
| | | }, |
| | | radioValue: 0, |
| | | conditionsOptions: [ |
| | | { |
| | | label: '全部', |
| | | value: 0 |
| | | }, |
| | | { |
| | | label: '未读', |
| | | value: 1 |
| | | }, |
| | | { |
| | | label: '已读', |
| | | value: 2 |
| | | } |
| | | ], |
| | | selectionRows:[], |
| | | messageTable:[], |
| | | currentPage:1, |
| | | pageSize: 5, |
| | | total:10, |
| | | |
| | | } |
| | | }, |
| | | created(){ |
| | | |
| | | }, |
| | | methods: { |
| | | deleteMessage(){ |
| | | console.log(this.selectionRows) |
| | | }, |
| | | readMessage(){ |
| | | console.log(this.selectionRows) |
| | | }, |
| | | // 捕获表格选择的数据 |
| | | handleSelectionChange(selection){ |
| | | this.selectionRows = selection |
| | | }, |
| | | // 标记已读 |
| | | readRow(row){ |
| | | console.log(row) |
| | | }, |
| | | // 删除 |
| | | deleteRow(row){ |
| | | console.log(row) |
| | | }, |
| | | radioclick(){ |
| | | console.log(this.radioValue) |
| | | }, |
| | | handleSizeChange(val){ |
| | | console.log(`当前每页${val}条数据`) |
| | | }, |
| | | handleCurrentChange(val){ |
| | | console.log(`当前是第${val}页`) |
| | | } |
| | | } |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .content-main{ |
| | | width: 100%; |
| | | .top-bar{ |
| | | margin: -25px -15px; |
| | | padding: 5px 24px 0px 24px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | background-color: #fff; |
| | | .sermargin{ |
| | | margin-right: 60px; |
| | | } |
| | | .deleteBtn{ |
| | | background-color: #fff; |
| | | border: 1px solid rgb(225, 222, 222); |
| | | color: rgb(184, 182, 182); |
| | | } |
| | | .deleteBtn:active { |
| | | outline: none; /* 去除按钮的默认点击时的外边框 */ |
| | | box-shadow: 0 0 4px rgb(142, 141, 141); /* 添加点击时的阴影效果,颜色设为灰色 */ |
| | | } |
| | | .deleteBtn:hover { |
| | | outline: none; /* 去除按钮的默认点击时的外边框 */ |
| | | background-color: rgb(233, 233, 233); /* 添加点击时的阴影效果,颜色设为灰色 */ |
| | | } |
| | | .deleteBtn:focus { |
| | | outline: none; /* 去除按钮的默认点击时的外边框 */ |
| | | background-color: rgb(233, 233, 233); /* 添加点击时的阴影效果,颜色设为灰色 */ |
| | | } |
| | | } |
| | | .library-table{ |
| | | background-color: #fff; |
| | | flex: 1; |
| | | margin: 0px -15px; |
| | | margin-top: 40px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .table-header{ |
| | | padding: 20px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .el-form-item{ |
| | | margin-bottom: 30px !important; |
| | | } |
| | | } |
| | | .table-box{ |
| | | padding: 0px 20px; |
| | | margin-top: 0px; |
| | | flex: 1; |
| | | background: #fff; |
| | | /* padding: 20px 20px 10px 20px; */ |
| | | display: flex; |
| | | flex-direction: column; |
| | | .el-table { |
| | | flex: 1; |
| | | } |
| | | >div:nth-child(2){ |
| | | display: flex; |
| | | justify-content: end; |
| | | margin: 10px 0; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | </style> |
| | |
| | | <template> |
| | | <div>待办</div> |
| | | <div class="content-main"> |
| | | <div class="top-bar"> |
| | | <el-form ref="form" :inline="true" :model="searchData"> |
| | | <el-form-item label="标题:" class="sermargin"> |
| | | <el-input |
| | | v-model="searchData.title" |
| | | class="input-form" |
| | | placeholder="请输入标题" |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="内容:" style="margin-right: 30px;"> |
| | | <el-input |
| | | v-model="searchData.content" |
| | | class="input-form" |
| | | placeholder="请输入内容" |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="search">查询</el-button> |
| | | <el-button type="primary" plain @click="reset">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form> |
| | | <el-button class="deleteBtn" plain type="primary" @click="deleteMessage" >删除</el-button> |
| | | <el-button type="primary" @click="readMessage" style="width: 110px;" >标为已读</el-button> |
| | | </el-form> |
| | | </div> |
| | | <div class="library-table"> |
| | | <div class="table-header"> |
| | | <el-radio-group v-model="radioValue" @change="radioclick"> |
| | | <el-radio-button v-for="item in conditionsOptions" :key="item.value" :label="item.value"> |
| | | {{ item.label }} |
| | | </el-radio-button> |
| | | </el-radio-group> |
| | | </div> |
| | | <div class="table-box"> |
| | | <el-table |
| | | ref="toDoTable" |
| | | :max-height="800" |
| | | :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :data="toDoTable" |
| | | @selection-change="handleSelectionChange" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | prop="sender" |
| | | label="发件人" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="title" |
| | | label="标题" |
| | | min-width="13%" |
| | | /> |
| | | <el-table-column |
| | | prop="todo" |
| | | label="代办内容" |
| | | min-width="20%" |
| | | /> |
| | | <el-table-column |
| | | prop="group" |
| | | label="分组" |
| | | min-width="15%" |
| | | /> |
| | | <el-table-column |
| | | prop="level" |
| | | label="等级" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="create_time" |
| | | label="创建时间" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | prop="deadline" |
| | | label="要求完成时间" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | prop="state" |
| | | label="状态" |
| | | min-width="12%" |
| | | /> |
| | | </el-table> |
| | | <!-- 分页器 --> |
| | | <div> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="currentPage" |
| | | :page-sizes="[5, 10, 15, 20]" |
| | | :page-size="pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="total"> |
| | | </el-pagination> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data(){ |
| | | return { |
| | | searchData: { |
| | | title: '', |
| | | content: '' |
| | | }, |
| | | radioValue: 0, |
| | | conditionsOptions: [ |
| | | { |
| | | label: '全部', |
| | | value: 0 |
| | | }, |
| | | { |
| | | label: '未处理', |
| | | value: 1 |
| | | }, |
| | | { |
| | | label: '已处理', |
| | | value: 2 |
| | | }, |
| | | { |
| | | label: '已超期', |
| | | value: 3 |
| | | } |
| | | ], |
| | | toDoTable:[], |
| | | selectionRows:[], |
| | | currentPage:1, |
| | | pageSize: 5, |
| | | total:100, |
| | | |
| | | } |
| | | }, |
| | | methods: { |
| | | deleteMessage(){ |
| | | console.log(this.selectionRows) |
| | | }, |
| | | readMessage(){ |
| | | console.log(this.selectionRows) |
| | | }, |
| | | // 捕获表格选择的数据 |
| | | handleSelectionChange(selection){ |
| | | this.selectionRows = selection |
| | | }, |
| | | radioclick(){ |
| | | console.log(this.radioValue) |
| | | }, |
| | | handleSizeChange(val){ |
| | | console.log(`当前每页${val}条数据`) |
| | | }, |
| | | handleCurrentChange(val){ |
| | | console.log(`当前是第${val}页`) |
| | | } |
| | | } |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .content-main{ |
| | | width: 100%; |
| | | .top-bar{ |
| | | margin: -25px -15px; |
| | | padding: 5px 24px 0px 24px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | background-color: #fff; |
| | | .sermargin{ |
| | | margin-right: 60px; |
| | | } |
| | | .deleteBtn{ |
| | | background-color: #fff; |
| | | border: 1px solid rgb(225, 222, 222); |
| | | color: rgb(184, 182, 182); |
| | | } |
| | | .deleteBtn:active { |
| | | outline: none; /* 去除按钮的默认点击时的外边框 */ |
| | | box-shadow: 0 0 4px rgb(142, 141, 141); /* 添加点击时的阴影效果,颜色设为灰色 */ |
| | | } |
| | | .deleteBtn:hover { |
| | | outline: none; /* 去除按钮的默认点击时的外边框 */ |
| | | background-color: rgb(233, 233, 233); /* 添加点击时的阴影效果,颜色设为灰色 */ |
| | | } |
| | | .deleteBtn:focus { |
| | | outline: none; /* 去除按钮的默认点击时的外边框 */ |
| | | background-color: rgb(233, 233, 233); /* 添加点击时的阴影效果,颜色设为灰色 */ |
| | | } |
| | | } |
| | | .library-table{ |
| | | background-color: #fff; |
| | | flex: 1; |
| | | margin: 0px -15px; |
| | | margin-top: 40px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .table-header{ |
| | | padding: 20px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .el-form-item{ |
| | | margin-bottom: 30px !important; |
| | | } |
| | | } |
| | | .table-box{ |
| | | padding: 0px 20px; |
| | | margin-top: 0px; |
| | | flex: 1; |
| | | background: #fff; |
| | | /* padding: 20px 20px 10px 20px; */ |
| | | display: flex; |
| | | flex-direction: column; |
| | | .el-table { |
| | | flex: 1; |
| | | } |
| | | >div:nth-child(2){ |
| | | display: flex; |
| | | justify-content: end; |
| | | margin: 10px 0; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | </style> |