| | |
| | | delete params.id; |
| | | addStandardTemplate(params) |
| | | .then((res) => { |
| | | if (res.code == 201) return; |
| | | this.isShowCopyTem = false; |
| | | this.submitCopyInfoLoading = false; |
| | | this.$message.success("新增成功"); |
| | |
| | | params.thing = this.copyForm.thing ? this.copyForm.thing : ""; |
| | | upStandardTemplate(params) |
| | | .then((res) => { |
| | | if (res.code == 201) return; |
| | | this.isShowCopyTem = false; |
| | | this.submitCopyInfoLoading = false; |
| | | this.$message.success("修改成功"); |
| | |
| | | case "复制模版": |
| | | copyStandardTemplate(params) |
| | | .then((res) => { |
| | | if (res.code == 201) return; |
| | | this.isShowCopyTem = false; |
| | | this.submitCopyInfoLoading = false; |
| | | this.$message.success("复制成功"); |
| | |
| | | }) |
| | | .then(() => { |
| | | delStandardTemplate({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refreshTable("page"); |
| | | }); |
| | |
| | | thing: JSON.stringify(data), |
| | | name: luckysheet.getWorkbookName(["name"]), |
| | | }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.loading = false; |
| | | this.$message.success("已保存"); |
| | | this.isShow = false; |