WXL
2023-12-15 4e32f1188e9d0cafd3511994d2d13617ca6e08f9
src/views/repositoryai/intention/index.vue
@@ -396,13 +396,15 @@
                  v-if="inputVisible"
                  @change="handleInputConfirm"
                  filterable
                  allow-create
                  default-first-option
                  placeholder="请选择"
                >
                  <el-option
                    v-for="item in optionss"
                    :key="item.label"
                    :label="item.label"
                    :value="item.label"
                    v-for="item in optionstag"
                    :key="item.tagname"
                    :label="item.tagname"
                    :value="item.tagname"
                  >
                  </el-option>
                </el-select>
@@ -624,6 +626,8 @@
import { getToken } from "@/utils/auth";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import { listtag } from "@/api/system/label";
export default {
  name: "questionnaire",
  dicts: ["sys_normal_disable", "sys_user_sex"],
@@ -754,6 +758,7 @@
          label: "类型四",
        },
      ],
      optionstag:[],
      //类别列表
      editableTabs: [
        {
@@ -848,6 +853,7 @@
  watch: {},
  created() {
    this.getList();
    this.gettabList();
  },
  methods: {
@@ -927,6 +933,17 @@
      console.log(key, keyPath);
    },
    // 标签-----------------
    gettabList() {
      const tagqueryParams = {
        pageNum: 1,
        pageSize: 1000,
        tagcategoryid: "0",
      };
      listtag(tagqueryParams).then((response) => {
        console.log(response);
        this.optionstag = response.rows;
      });
    },
    handleClose(tag) {
      this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
    },