WXL
2025-03-20 b8085c12e2f5542210c8a73a997e0b88d39e18b0
src/views/repositoryai/templateku/index.vue
@@ -3,8 +3,8 @@
    <!-- 左侧栏 -->
    <div class="sidecolumn">
      <div class="sidecolumn-top">
        <div class="top-wj">模版类型</div>
        <div class="top-tj" @click="dialogFormVisible = true">+添加</div>
        <div class="top-wj">模板类型</div>
        <div class="top-tj" @click="Newcategory">+添加</div>
      </div>
      <div class="center-ss">
        <el-input
@@ -68,7 +68,7 @@
              v-show="showSearch"
              label-width="98px"
            >
              <el-form-item label="模版标题" prop="templateName">
              <el-form-item label="模板标题" prop="templateName">
                <el-input
                  v-model="queryParams.templateName"
                  placeholder="请输入"
@@ -79,7 +79,7 @@
              </el-form-item>
              <el-form-item label="适用院区" prop="region">
                <el-select
                  v-model="queryParams.campus"
                  v-model="campus"
                  size="medium"
                  multiple
                  filterable
@@ -151,7 +151,7 @@
              </el-col>
              <!-- <el-col :span="1.5"> </el-col> -->
            </el-row>
            <!-- 标准模版 -->
            <!-- 标准模板 -->
            <el-table
              v-loading="loading"
              :data="userList"
@@ -167,7 +167,7 @@
                prop="id"
              />
              <el-table-column
                label="模版名称"
                label="模板名称"
                fixed
                align="center"
                key="templateName"
@@ -313,7 +313,7 @@
                </template>
              </el-table-column>
            </el-table>
            <!-- 通用模版 -->
            <!-- 通用模板 -->
            <!-- 底部分页 -->
            <pagination
@@ -416,62 +416,61 @@
    <!-- 随访题目预览 -->
    <el-dialog title="随访题目预览" :visible.sync="topicVisible" width="50%">
      <div class="preview-left">
        <!-- 单选 -->
        <div
          class="scriptTopic-dev"
          v-for="item in topicform.ivrLibaTemplateScriptVOList"
          :key="item.targetid"
          v-if="item.valueType == 1"
        >
          <div class="dev-text">
            {{ item.targetid }}、[单选]<span>{{ item.scriptContent }}</span>
        <div v-for="item in topicform.ivrLibaTemplateScriptVOList">
          <!-- 单选 -->
          <div
            class="scriptTopic-dev"
            :key="item.targetid"
            v-if="item.valueType == 1"
          >
            <div class="dev-text">
              {{ item.targetid }}、[单选]<span>{{ item.scriptContent }}</span>
            </div>
            <div class="dev-xx">
              <el-radio-group v-model="item.remark">
                <el-radio
                  v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
                  :key="index"
                  :label="index"
                  >{{ items.targetvalue }}</el-radio
                >
              </el-radio-group>
            </div>
          </div>
          <div class="dev-xx">
            <el-radio-group v-model="item.remark">
              <el-radio
                v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
                :key="index"
                :label="index"
                >{{ items.targetvalue }}</el-radio
              >
            </el-radio-group>
          <!-- 多选 -->
          <div
            class="scriptTopic-dev"
            :key="item.targetid"
            v-if="item.valueType == 2"
          >
            <div class="dev-text">
              {{ item.targetid }}、[多选]<span>{{ item.scriptContent }}</span>
            </div>
            <div class="dev-xx">
              <el-checkbox-group v-model="item.remark">
                <el-checkbox
                  v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
                  :key="index"
                  :label="index"
                >
                  {{ items.targetvalue }}
                </el-checkbox>
              </el-checkbox-group>
            </div>
          </div>
        </div>
        <!-- 多选 -->
        <div
          class="scriptTopic-dev"
          v-for="item in topicform.ivrLibaTemplateScriptVOList"
          :key="item.targetid"
          v-if="item.valueType == 2"
        >
          <div class="dev-text">
            {{ item.targetid }}、[多选]<span>{{ item.scriptContent }}</span>
          </div>
          <div class="dev-xx">
            <el-checkbox-group v-model="item.remark">
              <el-checkbox
                v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
                :key="index"
                :label="index"
              >
                {{ items.targetvalue }}
              </el-checkbox>
            </el-checkbox-group>
          </div>
        </div>
        <!-- 填空 -->
        <div
          class="scriptTopic-dev"
          v-for="item in topicform.ivrLibaTemplateScriptVOList"
          :key="item.targetid"
          v-if="item.valueType == 3"
        >
          <div class="dev-text">
            {{ item.targetid }}、[填空]<span>{{ item.scriptContent }}</span>
          </div>
          <div class="dev-xx">
            <el-input placeholder="请输入答案" v-model="radioas" clearable>
            </el-input>
          <!-- 填空 -->
          <div
            class="scriptTopic-dev"
            :key="item.targetid"
            v-if="item.valueType == 3"
          >
            <div class="dev-text">
              {{ item.targetid }}、[填空]<span>{{ item.scriptContent }}</span>
            </div>
            <div class="dev-xx">
              <el-input placeholder="请输入答案" v-model="radioas" clearable>
              </el-input>
            </div>
          </div>
        </div>
      </div>
@@ -557,6 +556,7 @@
        pageNum: 1,
        pageSize: 10,
      },
      campus: [],
      // 表单校验
      rules: {},
      indexid: null,
@@ -603,6 +603,7 @@
  methods: {
    /** 查询信息 */
    getList() {
      this.queryParams.campus = this.campus.join(",");
      getFollowuplist(this.queryParams).then((res) => {
        console.log(res);
        console.log(this.userList);
@@ -616,14 +617,15 @@
      });
    },
    // 复制模版
    // 复制模板
    copyfn() {},
    // 下载模版
    // 下载模板
    downloadfn() {},
    // 跳转编辑话术页面
    compileUpdate(row) {
      // this.$router.replace("/tpuconfigurat");
      this.$router.push({
        path: "/knowledge/templateku/configurat/",
        path: "/knowledge/tpuconfigurat/",
        query: { id: row.id },
      });
    },
@@ -679,7 +681,7 @@
    /** 新增按钮操作 */
    handleAdd() {
      this.$router.push({
        path: "/knowledge/templateku/configurat/",
        path: "/knowledge/tpuconfigurat/",
        query: { id: null, assortid: this.queryParams.assortid },
      });
    },
@@ -791,6 +793,13 @@
      this.classifyform = b;
      this.dialogFormVisible = true;
    },
    Newcategory() {
      this.classifyform = {}; //类别表单
        this.radio = "主分类";
      this.dialogFormVisible = true;
      this.zifon = true;
      this.zufon = true;
    },
    // 预览
    preview(row) {
      getvFollowup({ id: row.id }).then((res) => {