WXL
2024-07-31 8ec6407cf76c1f8d7e08e5456018aaafc93f0556
src/views/knowledge/questionbank/particulars/index.vue
@@ -296,14 +296,8 @@
              </el-form-item>
            </el-row>
          </div>
          <div v-if="topicobj.scriptType != 3 && topicobj.scriptType != 4">
            <div class="headline">
              选项设置<span style="margin-left: 30px"
                ><el-button type="primary" round @click="addoption"
                  >+新增</el-button
                ></span
              >
              <span style="margin-left: 30px"
          <div>
            <span style="margin-left: 30px"
                >选中指标:<el-tag type="success" effect="dark">{{
                  topicobj.targetname ? topicobj.targetname : "未选择"
                }}</el-tag></span
@@ -313,6 +307,15 @@
                  >+选择指标</el-button
                ></span
              >
          </div>
          <div v-if="topicobj.scriptType != 3 && topicobj.scriptType != 4">
            <div class="headline">
              选项设置<span style="margin-left: 30px"
                ><el-button type="primary" round @click="addoption"
                  >+新增</el-button
                ></span
              >
            </div>
            <div
              class="topicxq"
@@ -423,7 +426,7 @@
          :inline="true"
          label-width="98px"
        >
          <el-form-item label="标题" prop="userName">
          <el-form-item label="指标名称" prop="userName">
            <el-input
              v-model="queryParams.targetname"
              placeholder="请输入"
@@ -466,14 +469,14 @@
        </el-form>
        <el-table v-loading="loading" :data="targetList">
          <el-table-column
            label="标题"
            label="指标名称"
            align="center"
            key="targetname"
            prop="targetname"
            width="100"
          />
          <el-table-column
            label="问题内容"
            label="指标说明"
            align="center"
            key="targetdesc"
            prop="targetdesc"
@@ -483,16 +486,36 @@
          <el-table-column
            label="语言"
            align="center"
            key="targetdesc"
            prop="targetdesc"
            key="language"
            prop="language"
            width="200"
            :show-overflow-tooltip="true"
          />
          <el-table-column
            label="问题内容"
            label="是否可用"
            align="center"
            key="targetdesc"
            prop="targetdesc"
            key="isAvailable"
            prop="isAvailable"
          >
            <template slot-scope="scope">
              <dict-tag :options="usable" :value="scope.row.isAvailable" />
            </template>
          </el-table-column>
          <el-table-column
            label="问题类型"
            align="center"
            key="scriptType"
            prop="scriptType"
          >
            <template slot-scope="scope">
              <dict-tag :options="valuetype" :value="scope.row.scriptType" />
            </template>
          </el-table-column>
          <el-table-column
            label="选项说明"
            align="center"
            key="optionDesc"
            prop="optionDesc"
            width="200"
            :show-overflow-tooltip="true"
          />
@@ -764,8 +787,7 @@
          ) {
            console.log(score, "错误分值");
            this.$message({
              message:
                "选项分值必须在0到" + this.topicobj.score + "分之间",
              message: "选项分值必须在0到" + this.topicobj.score + "分之间",
              type: "warning",
            });
            return false;
@@ -819,7 +841,7 @@
    selectlabel(row) {
      this.$modal
        .confirm(
          '是否选择标题为"' + row.targetname + '"的指标并替换填充问题信息?'
          '是否选择标题为"' + row.targetname + '"的指标并替换填充问题及选项信息?'
        )
        .then(() => {
          console.log(row);