WXL
2024-05-22 e014c6f2c4123d811353b4fe59d1b489e0587543
src/views/repositoryai/templateku/configurat/index.vue
@@ -307,15 +307,19 @@
            </el-select>
          </el-form-item>
          <el-row :gutter="20">
            <el-col :span="8">
            <el-col :span="12">
              <el-form-item label="随访前处理" prop="name">
                <el-input
                  type="textarea"
                  show-word-limit
                  v-model="ruleForm.revisitBefore"
                ></el-input></el-form-item
            ></el-col>
            <el-col :span="9">
            <el-col :span="12">
              <el-form-item label="随访后处理" prop="region">
                <el-input
                  type="textarea"
                  show-word-limit
                  v-model="ruleForm.revisitAfter"
                ></el-input> </el-form-item
            ></el-col>
@@ -347,8 +351,10 @@
              >下一步</el-button
            >
            <el-button type="info" @click="closeFm('ruleForm')">关闭</el-button>
            <el-button type="success" @click="Departmenttreatment('ruleForm')"
              >保存随访模版基础信息</el-button
            <el-button
              type="success"
              @click="Departmenttreatment('ruleForm')"
              >{{ task ? "保存到任务模版" : "保存随访模版基础信息" }}</el-button
            >
          </el-form-item>
        </el-form>
@@ -449,7 +455,6 @@
                  <el-input
                    v-model="topicobj.questiontitle"
                    placeholder="请从左侧列表选择"
                    :disabled="true"
                  ></el-input>
                </el-form-item>
                <el-form-item label="问题节点">
@@ -463,8 +468,8 @@
                  <el-col :span="12"
                    ><el-form-item label="是否必填">
                      <el-select
                        v-model="topicobj.ismandatory"
                        placeholder="请选择"
                        v-model="topicobj.isMust"
                        placeholder="默认必填"
                      >
                        <el-option
                          v-for="item in required"
@@ -478,7 +483,7 @@
                  <el-col :span="12"
                    ><el-form-item label="取值类型">
                      <el-select
                        v-model="topicobj.isEnable"
                        v-model="topicobj.valueType"
                        placeholder="请选择"
                        :disabled="true"
                      >
@@ -492,12 +497,15 @@
                      </el-select> </el-form-item
                  ></el-col>
                </el-row>
                <div class="topicxq" v-if="topicobj.isEnable == 2 || topicobj.isEnable == 3">
                <div
                  class="topicxq"
                  v-if="topicobj.valueType == 2 || topicobj.valueType == 3"
                >
                  <el-row>
                    <el-col :span="20">
                      <el-form-item label="收集内容">
                        <el-input
                        style="width: 400px;"
                          style="width: 400px"
                          type="textarea"
                          v-model="topicobj.value"
                          placeholder="问题收集内容"
@@ -532,7 +540,7 @@
                          <el-input
                            type="text"
                            placeholder="请输入"
                            v-model="topicobj.nomatchtext"
                            v-model="topicobj.noMatchText"
                            show-word-limit
                          >
                          </el-input> </el-form-item
@@ -579,7 +587,7 @@
                          <el-input
                            type="text"
                            placeholder="请输入"
                            v-model="topicobj.noclearlytext"
                            v-model="topicobj.noClearlyText"
                            show-word-limit
                          >
                          </el-input> </el-form-item
@@ -626,7 +634,7 @@
                          <el-input
                            type="text"
                            placeholder="请输入"
                            v-model="topicobj.sliencetext"
                            v-model="topicobj.slienceText"
                            show-word-limit
                          >
                          </el-input> </el-form-item
@@ -672,9 +680,9 @@
          </div>
        </div>
        <el-button type="success" @click="Departmenttreatment('ruleForm')"
          >保存题目数据</el-button
        >
        <el-button type="success" @click="Departmenttreatment('ruleForm')">{{
          task ? "保存到任务模版" : "保存题目数据"
        }}</el-button>
        <el-button type="primary" plain @click="laststep()">上一步</el-button>
        <el-button type="success" plain @click="preview('ruleForm')"
          >查看预览</el-button
@@ -851,6 +859,8 @@
      drawer: false, //控制展开
      radios: [], //多选题选中
      radioas: "", //填空题答案
      task: null, //是否来自任务
      taskform: null, //任务信息
      labelInfovalue: [], //标签临时存储
      deptNamesvalue: [], //科室临时存储
      dynamicTags: [],
@@ -918,38 +928,11 @@
        },
      ],
      valssu: [
        {
          idd: 1,
          wssd: "你最近怎么样",
          sdadd: ["sss", "ssccss", "ssaas", "ss"],
        },
      ],
      valssu: [],
      radio: "",
      addvalue: "添加题目",
      // 题目表格数据
      userList: [
        {
          userid: "1",
          userName: "一号随访模版",
          verbaltrick: "一号随访模版",
        },
        {
          userid: "2",
          userName: "二号随访模版",
          verbaltrick: "一号随访模版",
        },
        {
          userid: "3",
          userName: "三号随访模版",
          verbaltrick: "一号随访模版",
        },
        {
          userid: "4",
          userName: "四号随访模版",
          verbaltrick: "一号随访模版",
        },
      ],
      userList: [],
      // 查询参数
      queryParams: {
        pageNum: 1,
@@ -964,6 +947,7 @@
  },
  created() {
    this.RoutingDataProcessing();
    this.gettabList();
    this.getvFollowup();
    this.auxiliary();
@@ -984,10 +968,17 @@
    processElement(element) {
      return { ...element, isoperation: 0 };
    },
    // 路由数据处理
    RoutingDataProcessing() {
      this.id = this.$route.query.id;
      this.task = this.$route.query.task;
      console.log(this.task,'task');
      if (this.task) {
        this.id = this.$route.query.id;
      }
    },
    // 获取表单数据
    getvFollowup() {
      this.id = this.$route.query.id;
      getvFollowup({ id: this.id }).then((res) => {
        this.ruleForm = res.data;
@@ -1216,7 +1207,6 @@
      this.getaddtopiclist();
    },
    getaddtopiclist() {
      console.log(12);
      this.drawer = true;
      getverbaltricklist(this.queryParams).then((res) => {
        this.loading = false;
@@ -1239,13 +1229,18 @@
      });
    },
    handleDelete(row) {
      let index = this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row);
      this.ruleForm.ivrLibaTemplateScriptVOList.splice(
        this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row),
        1
      );
      row.isoperation = 3;
      this.delScriptVOList.push(row);
      this.$modal
        .confirm('是否确认删除问题:"' + row.questiontitle + '"?')
        .then(() => {
          this.ruleForm.ivrLibaTemplateScriptVOList.splice(
            this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row),
            1
          );
          row.isoperation = 3;
          this.delScriptVOList.push(row);
          this.$modal.msgSuccess("已删除,保存模版生效");
        })
        .catch(() => {});
    },
    handleUpdate(row) {
      console.log(row);
@@ -1253,7 +1248,7 @@
      if (row.ivrLibaScriptTargetoptionList.length) {
        console.log(11);
        this.topicobj = row;
        this.topicobj.isEnable = row.valueType;
        this.topicobj.valueType = row.valueType;
      } else {
        getverbaltrick({ id: row.id }).then((res) => {
          if (res.data) {