| | |
| | | :table-list="tableList" |
| | | :show-checkcol="false" |
| | | @tableRowClick="tableRowClick" |
| | | ></TableCommonView> |
| | | > |
| | | <template slot="tableButton"> |
| | | <el-table-column fixed="right" label="操作" width="100"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="examineClick(scope.row)" type="text" size="small">查看</el-button> |
| | | <el-button type="text" v-if="scope.row.status != 4" size="small" @click="editClick(scope.row)" |
| | | >编辑</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | | </TableCommonView> |
| | | </div> |
| | | <div class="btn-pager"> |
| | | <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" /> |
| | | </div> |
| | | </div> |
| | | <!-- 新建/编辑 --> |
| | | <AddScrapDialog v-if="editConfig.visible" :edit-common-config="editConfig" /> |
| | | <AddScrapDialog v-if="editConfig.visible" :editCommonConfig="editConfig" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | editConfig: { |
| | | visible: false, |
| | | title: "新建", |
| | | infomation: {} |
| | | infomation: {}, |
| | | showEdit: false |
| | | }, |
| | | keyword: "" |
| | | } |
| | |
| | | this.getData() |
| | | }, |
| | | methods: { |
| | | // 查看 |
| | | examineClick(row) { |
| | | this.editConfig.title = "查看" |
| | | this.editConfig.infomation = { ...row } |
| | | this.editConfig.visible = true |
| | | }, |
| | | editClick(row) { |
| | | console.log(row, "编辑") |
| | | this.editConfig.title = "编辑" |
| | | this.editConfig.infomation = { ...row } |
| | | this.editConfig.visible = true |
| | | }, |
| | | setTable() { |
| | | this.tableList = { |
| | | tableInfomation: [], |
| | |
| | | console.log(showcol) |
| | | let tableColumn = [ |
| | | { |
| | | label: "单号", |
| | | label: "报废单号", |
| | | prop: "number", |
| | | isShowColumn: true, |
| | | default: true |
| | |
| | | // 行点击 |
| | | tableRowClick(row) { |
| | | console.log(row) |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "编辑" |
| | | // this.editConfig.visible = true; |
| | | // this.editConfig.title = "编辑"; |
| | | this.editConfig.infomation = { ...row } |
| | | }, |
| | | // 新建 |