| | |
| | | </div> |
| | | <div class="list-view"> |
| | | <div class="table"> |
| | | <TableCommonView |
| | | ref="tableListRef" |
| | | :table-list="tableList" |
| | | @selTableCol="selTableCol" |
| | | @tableRowClick="tableRowClick" |
| | | ></TableCommonView> |
| | | <TableCommonView ref="tableListRef" :table-list="tableList" @selTableCol="selTableCol"> |
| | | <template slot="tableButton"> |
| | | <el-table-column label="操作" width="100"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="tableRowClick(scope.row, '查看')" type="text" size="small">查看</el-button> |
| | | <el-button |
| | | v-if="scope.row.status !== 4" |
| | | @click="tableRowClick(scope.row, '编辑')" |
| | | type="text" |
| | | size="small" |
| | | >编辑</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | | </TableCommonView> |
| | | </div> |
| | | <div class="btn-pager"> |
| | | <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" /> |
| | |
| | | :work-type="workType" |
| | | :edit-common-config="editConfig" |
| | | :add-name="this.$route.params.name" |
| | | :display-edit="displayEdit" |
| | | /> |
| | | </div> |
| | | </template> |
| | |
| | | }, |
| | | workType: this.$route.params.workType, |
| | | keyword: "", |
| | | params: {} |
| | | params: {}, |
| | | displayEdit: false |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.pagerOptions.currPage = 1 |
| | | this.getData() |
| | | }, |
| | | // 行点击 |
| | | tableRowClick(row) { |
| | | // 查看 编辑 |
| | | tableRowClick(row, val) { |
| | | console.log(row) |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "编辑" |
| | | this.editConfig.title = val |
| | | this.editConfig.operationTypeId = this.$route.params.id |
| | | this.editConfig.infomation = { ...row } |
| | | }, |