| | |
| | | <header> |
| | | <div class="header-content"> |
| | | <div class="search"> |
| | | <span style="padding-right: 20px">筛选条件:</span> |
| | | <el-select |
| | | v-model="context" |
| | | placeholder="筛选条件" |
| | | @change="handleStateChange" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | <span>筛选条件:</span> |
| | | <el-input placeholder="请输入内容" v-model="context"></el-input> |
| | | <div class="findBtn"> |
| | | <el-button type="primary" @click="setTableData">查询</el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </header> |
| | | <main> |
| | | <div class="main-content"> |
| | | <!-- <div class="main-title"> |
| | | <el-button class="el-icon-plus" type="primary" @click="handleAdd" |
| | | >添加</el-button |
| | | > |
| | | </div> --> |
| | | <!-- 数据展示 --> |
| | | <el-table |
| | | ref="multipleTable" |
| | |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column type="selection" min-width="5"> </el-table-column> |
| | | <el-table-column prop="writCode" label="文书编号" min-width="10"> |
| | | <el-table-column prop="writCode" label="文书编号" min-width="100"> |
| | | </el-table-column> |
| | | <el-table-column prop="writTypeName" label="文书种类" min-width="10"> |
| | | <el-table-column prop="writTypeName" label="文书种类" min-width="180"> |
| | | </el-table-column> |
| | | <el-table-column prop="categoryName" label="违法类型" min-width="20"> |
| | | <el-table-column prop="categoryName" label="违法类型" min-width="300"> |
| | | </el-table-column> |
| | | <el-table-column prop="eventCode" label="事件编号" min-width="10"> |
| | | <el-table-column prop="eventCode" label="事件编号" width="160"> |
| | | </el-table-column> |
| | | <el-table-column prop="sendTime" label="文书发放时间" min-width="10"> |
| | | <el-table-column prop="sendTime" label="文书发放时间" min-width="120"> |
| | | </el-table-column> |
| | | <el-table-column prop="limitTime" label="文书限定时间" min-width="10"> |
| | | <el-table-column prop="limitTime" label="文书限定时间" min-width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="sendContent" |
| | | label="文书发放内容" |
| | | min-width="10" |
| | | min-width="110" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="rectifyTime" |
| | | label="实际整改时间" |
| | | min-width="10" |
| | | min-width="120" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="rectifySituation" |
| | | label="整改情况" |
| | | min-width="10" |
| | | min-width="110" |
| | | > |
| | | </el-table-column> |
| | | |
| | |
| | | prop="state" |
| | | :formatter="formatSate" |
| | | label="状态" |
| | | min-width="5" |
| | | width="60" |
| | | > |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="operation" label="操作" min-width="20"> |
| | | <el-table-column prop="operation" label="操作" min-width="150"> |
| | | <template slot-scope="scope"> |
| | | <div class="operation"> |
| | | <span v-if="!scope.row.value" @click="handleEdit(scope.row)" |
| | |
| | | |
| | | // 设置表格斑马纹 |
| | | tableRowClassName({ row, rowIndex }) { |
| | | if ((rowIndex + 1) % 2 == 0) { |
| | | if ((rowIndex + 1) % 2 === 0) { |
| | | return "warning-row"; |
| | | } else { |
| | | return "success-row"; |
| | | } |
| | | return ""; |
| | | }, |
| | | // 弹窗关闭 |
| | | handleClose(done) { |
| | |
| | | this.getWritList({ |
| | | currentPage, |
| | | pageSize, |
| | | state: context, |
| | | keyword: context, |
| | | }).then((res) => { |
| | | this.list = res.records; |
| | | this.totalNum = res.total; |
| | |
| | | |
| | | header { |
| | | background-color: #09152f; |
| | | border: 1pox solid #fff; |
| | | |
| | | .header-content { |
| | | padding: 0 40px; |
| | |
| | | background-color: #09152f; |
| | | margin-top: 20px; |
| | | padding-bottom: 50px; |
| | | border: 1pox solid #fff; |
| | | |
| | | .main-title { |
| | | line-height: 60px; |
| | |
| | | color: #fff; |
| | | } |
| | | } |
| | | .headerContent { |
| | | padding: 0 40px; |
| | | display: flex; |
| | | line-height: 100px; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | |
| | | .search { |
| | | display: flex; |
| | | justify-content: flex-start; |
| | | |
| | | span { |
| | | flex: 1; |
| | | } |
| | | |
| | | .el-input { |
| | | flex: 2; |
| | | color: #1d3f57; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .findBtn { |
| | | line-height: 100px; |
| | | margin-left: 15px; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-top: -2px; |
| | | |
| | | .el-button { |
| | | padding: 12px 25px; |
| | | border-radius: 20px; |
| | | } |
| | | } |
| | | </style> |