| | |
| | | if (res.code == 200) { |
| | | this.objyl = res.data; |
| | | if (this.form.longTask) { |
| | | this.objyl.longTemp = 1; |
| | | this.objyl.longTemp = 5; |
| | | } |
| | | this.queryParamsdept.type = 2; |
| | | this.queryParamsdept.tempid = row.id; |
| | |
| | | this.putbelongDepts(response.data); |
| | | this.form.templatename = this.objyl.templateName; |
| | | this.$modal.msgSuccess("替换模板成功"); |
| | | this.drawermb = false;//选择模板弹窗 |
| | | this.previewtf = false;//预览 |
| | | this.drawermb = false; //选择模板弹窗 |
| | | this.previewtf = false; //预览 |
| | | if (this.skip) { |
| | | // 跳转前往修改 |
| | | this.$router.push({ |
| | |
| | | this.putbelongDepts(response.data); |
| | | this.form.templatename = this.objyl.templateName; |
| | | this.$modal.msgSuccess("选择模板成功"); |
| | | this.drawermb = false;//选择模板弹窗 |
| | | this.previewtf = false;//预览 |
| | | this.drawermb = false; //选择模板弹窗 |
| | | this.previewtf = false; //预览 |
| | | if (this.skip) { |
| | | // 跳转前往修改 |
| | | this.$router.push({ |
| | |
| | | Modifytemplate() { |
| | | if (this.form.templateid && this.previewtftype) { |
| | | this.$modal.confirm("是否前往修改任务模板详细内容?").then(() => { |
| | | this.drawermb = false;//选择模板弹窗 |
| | | this.previewtf = false;//预览 |
| | | this.drawermb = false; //选择模板弹窗 |
| | | this.previewtf = false; //预览 |
| | | this.$router.push({ |
| | | path: "/knowledge/taskub/", |
| | | query: { id: this.form.templateid }, |