| | |
| | | |
| | | }, |
| | | delTemplate(row){ |
| | | this.$Modal.confirm({ |
| | | title: "操作确认", |
| | | content: "您确认要删除【 " + row.templateName + "】吗?", |
| | | onOk: () => { |
| | | del(row.id).then(res =>{ |
| | | if (res.code === 200){ |
| | | this.$Message.success(res.msg) |
| | | } |
| | | this.getList() |
| | | }) |
| | | } |
| | | }); |
| | | |
| | | }, |
| | | async upLoadImg(file) { |
| | | console.log("打印上传1") |
| | |
| | | if (res.code === 200) { |
| | | this.$Message.success(res.msg); |
| | | this.modelShow = false; |
| | | this.showModal = false; |
| | | this.getList(); |
| | | } else { |
| | | this.$Message.error(res.msg); |
| | |
| | | console.error(error); |
| | | } finally { |
| | | this.submitLoading = false; |
| | | this.showModal = false; |
| | | } |
| | | } |
| | | }); |