WXL
2024-10-12 83598fa5941b3958e4998b9354a2c25b2e52ee9f
src/views/repositoryai/verbaltrick/particulars/index.vue
@@ -7,14 +7,14 @@
          <el-step>
            <template slot="title">
              <span style="cursor: pointer" @click="Editprogress = 1"
                >问题库编辑</span
                >话术基础信息编辑</span
              >
            </template>
          </el-step>
          <el-step>
            <template slot="title">
              <span style="cursor: pointer" @click="nextstep"
                >问题指标编辑</span
                >话术指标编辑</span
              >
            </template>
          </el-step>
@@ -359,7 +359,7 @@
          </el-row>
          <el-row>
            <el-col :span="24">
              <el-form-item label="无声文本" prop="slienceText">
              <el-form-item label="静默文本" prop="slienceText">
                <el-input
                  type="textarea"
                  :rows="2"
@@ -373,7 +373,7 @@
          ></el-row>
          <el-row>
            <el-col :span="6">
              <el-form-item label="无声语音" prop="verbaltrickyy">
              <el-form-item label="静默语音" prop="verbaltrickyy">
                <el-upload
                  class="upload-demo"
                  :action="uploadImgUrl"
@@ -504,7 +504,10 @@
          <el-row>
            <el-col :span="24">
              <el-form-item label="值类型">
                <el-radio-group disabled v-model="indexform.valueType">
                <el-radio-group
                  :disabled="indexform.targetid"
                  v-model="indexform.valueType"
                >
                  <el-radio :label="1">选项</el-radio>
                  <el-radio :label="2">文本</el-radio>
                  <el-radio :label="3">数值</el-radio>
@@ -512,16 +515,19 @@
              </el-form-item>
              <el-form-item label="题目类型">
                <el-radio-group disabled v-model="indexform.scriptType">
                <el-radio-group
                  @input="typeselection"
                  :disabled="indexform.targetid"
                  v-model="indexform.scriptType"
                >
                  <el-radio :label="1">单选</el-radio>
                  <el-radio :label="2">多选</el-radio>
                  <el-radio :label="3">填空</el-radio>
                  <!-- <el-radio :label="2">多选</el-radio> -->
                  <el-radio :label="4">问答</el-radio>
                </el-radio-group>
              </el-form-item>
            </el-col></el-row
          >
          <div v-if="indexform.valueType == 1">
          <div v-if="indexform.scriptType == 1 || indexform.scriptType == 2">
            <el-card class="box-card" style="margin-bottom: 20px">
              <Regular
                :TargetoptionList="indexform.ivrLibaScriptTargetoptionList"
@@ -764,6 +770,9 @@
    // 获取详情数据
    getverbaltrick() {
      let id = this.$route.query.id;
      this.indexform.language = "普通话";
      this.indexform.isAvailable = "1";
      if (id) {
        getverbaltrick({ id: id }).then((res) => {
          this.indexform = res.data;
@@ -892,6 +901,25 @@
      this.gettargetInfo();
    },
    // 题目类型更换
    typeselection(row) {
      if (
        (row == 1 || row == 2) &&
        !this.indexform.ivrLibaScriptTargetoptionList.length
      ) {
        this.indexform.ivrLibaScriptTargetoptionList.push({
          guid: 1,
          isoperation: 1,
          targetvalue: "",
          targetregex: "",
          targetregex2: "",
          dynamiccruxs: [],
          nodynamiccruxs: [],
          dynamiccruxsJson: "",
          nodynamiccruxsJson: "",
        });
      }
    },
    // 下一步
    nextstep() {
      if (this.Editprogress <= 1) {
@@ -1164,7 +1192,7 @@
.sidecolumn {
  margin: 20px;
  margin-bottom: 0;
  padding: 20px;
  padding: 15px;
  background: #edf1f7;
  border: 1px solid #dcdfe6;
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
@@ -1172,6 +1200,7 @@
}
.leftvlue {
  margin: 20px;
  margin-top: 10px;
  padding: 30px;
  background: #ffff;
  border: 1px solid #dcdfe6;