| | |
| | | placeholder="请点击右侧选择" |
| | | /> |
| | | <el-button |
| | | v-if=" |
| | | (form.templateid && form.sendState == 1) || |
| | | !form.templateid |
| | | " |
| | | style="margin-left: 10px" |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | |
| | | ></el-button> |
| | | |
| | | <el-button |
| | | v-if="form.templatename" |
| | | v-if="form.templateid" |
| | | type="success" |
| | | icon="el-icon-search" |
| | | @click="previewfnmb" |
| | |
| | | if (!this.form.taskid) { |
| | | this.templateor = true; |
| | | MessageBox.confirm( |
| | | "当前为新增任务未保存不可关联模板,是否先保存任务?", |
| | | "当前为新增任务未保存不可关联模板,是否先暂存模板保存任务后生效?", |
| | | "功能提示", |
| | | { |
| | | confirmButtonText: "保存任务", |
| | | cancelButtonText: "暂存模板", |
| | | confirmButtonText: "暂存模板", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | } |
| | | ) |
| | |
| | | this.objyl.svyTaskTemplateScriptVOS = |
| | | this.objyl.svyTemplateLibScripts; |
| | | this.form.svyTaskTemplateVO = this.objyl; |
| | | this.submitForm(); |
| | | }) |
| | | .catch(() => { |
| | | if (Array.isArray(this.objyl.suitway)) { |
| | | this.objyl.suitway = this.objyl.suitway.join(","); |
| | | } |
| | | this.objyl.templateid = this.objyl.svyid; |
| | | this.form.libtemplateid = this.objyl.svyid; |
| | | this.objyl.isoperation = 1; |
| | | this.objyl.svyTaskTemplateScriptVOS = |
| | | this.objyl.svyTemplateLibScripts; |
| | | this.form.svyTaskTemplateVO = this.objyl; |
| | | this.form.templatename = this.objyl.svyname; |
| | | this.$modal.msgSuccess("暂存成功保存任务后模板失效"); |
| | | this.drawermb = false; |
| | | this.previewtf = false; |
| | | }) |
| | | .catch(() => { |
| | | this.drawermb = false; |
| | | this.previewtf = false; |
| | | }); |
| | | } else { |
| | | setTimeout(() => { |