| | |
| | | { |
| | | title: '编辑', |
| | | events: (row) => { |
| | | this.showAudit(row); |
| | | this.showAdd(row.id); |
| | | }, |
| | | }, |
| | | { |
| | |
| | | .catch(() => { |
| | | }); |
| | | }, |
| | | showAdd() { |
| | | // if (!this.editSetting.orgId) { |
| | | // this.$message.warning('请先选择左侧机构') |
| | | // } else { |
| | | this.editSetting.id = null; |
| | | this.editSetting.title = '新增'; |
| | | this.editSetting.show = true; |
| | | // } |
| | | showAdd(id) { |
| | | this.editSetting.id = id; |
| | | this.editSetting.title = id?'编辑':'新增'; |
| | | this.editSetting.show = true; |
| | | }, |
| | | showSpecs(row) { |
| | | this.specsSetting.goodsTemplatesId = row.id; |
| | |
| | | // 查询table列表 |
| | | search(pageNum) { |
| | | if (pageNum != undefined) { |
| | | this.$refs.myTable.search(pageNum) |
| | | this.$refs.myTable.search({pageNum}) |
| | | } else { |
| | | this.$refs.myTable.search() |
| | | } |