WXL (wul)
12 小时以前 6071c30d6dd76d75b973676f823b4f2ee036810b
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -428,7 +428,6 @@
                      placeholder="请点击右侧选择"
                    />
                    <el-button
                      v-if="form.templateid"
                      style="margin-left: 10px"
                      type="primary"
                      icon="el-icon-edit"
@@ -2371,19 +2370,24 @@
      this.objyl.isoperation = 1;
      this.objyl.taskid = this.form.taskid;
      this.objyl.svyTemplateLibScripts.forEach((item) => {
        item.qremark = [];
        item.svyTaskTemplateTargetoptions = item.svyLibTemplateTargetoptions;
      });
      this.objyl.svyTaskTemplateScriptVOS = this.objyl.svyTemplateLibScripts;
      if (this.objyl.id) {
        deleteTaskQuestioncomit(this.objyl.id).then((res) => {
          if (res.code == 200) {
            (this.objyl.id = null),
              TaskQuestioncomit(this.objyl).then((response) => {
                this.previewtf = false;
                this.form.libtemplateid = this.objyl.svyid;
                this.form.libtemplatename = this.objyl.svyname;
                this.form.templateid = response.data;
                this.form.templatename = this.objyl.svyname;
                this.$modal.msgSuccess("选择模板成功");
              });
            this.objyl.id = null;
            TaskQuestioncomit(this.objyl).then((response) => {
              this.previewtf = false;
              this.form.libtemplateid = this.objyl.svyid;
              this.form.libtemplatename = this.objyl.svyname;
              this.form.templateid = response.data;
              this.form.templatename = this.objyl.svyname;
              this.$modal.msgSuccess("选择模板成功");
            });
          }
        });
      } else {