From 4e32f1188e9d0cafd3511994d2d13617ca6e08f9 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 15 十二月 2023 11:15:00 +0800
Subject: [PATCH] 完成

---
 src/views/knowledge/education/compilequer/index.vue |   29 ++++++++++++++++++++++++-----
 1 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/src/views/knowledge/education/compilequer/index.vue b/src/views/knowledge/education/compilequer/index.vue
index c78fba9..b48ef43 100644
--- a/src/views/knowledge/education/compilequer/index.vue
+++ b/src/views/knowledge/education/compilequer/index.vue
@@ -103,13 +103,15 @@
                 v-if="inputVisible"
                 @change="handleInputConfirm"
                 filterable
+                  allow-create
+                  default-first-option
                 placeholder="璇烽�夋嫨"
               >
                 <el-option
-                  v-for="item in options"
-                  :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>
@@ -303,6 +305,8 @@
 import { quillEditor } from "vue-quill-editor";
 // import * as Quill from "quill";
 import Quill from "quill";
+import { listtag } from "@/api/system/label";
+
 
 // 杩欓噷寮曞叆淇敼杩囩殑video妯″潡骞舵敞鍐�
 import Video from "./video";
@@ -471,6 +475,7 @@
           label: "鎶ょ悊瀹f暀",
         },
       ],
+      optionstag:[],
       xjxsoptions: [
         {
           value: "閫夐」1",
@@ -531,7 +536,9 @@
     };
   },
 
-  created() {},
+  created() {
+    this.gettabList();
+  },
   watch: {
     content(newVal, oldVal) {
       //this.$emit('input', newVal);
@@ -595,6 +602,18 @@
       //   console.log(rows);
       //   this.list = rows;
     },
+    /** 鏌ヨ鏍囩鍒楄〃 */
+    gettabList() {
+      const tagqueryParams = {
+        pageNum: 1,
+        pageSize: 1000,
+        tagcategoryid: "0",
+      };
+      listtag(tagqueryParams).then((response) => {
+        console.log(response);
+        this.optionstag = response.rows;
+      });
+    },
     // 鏂板鍙橀噺
     addvariable() {
       this.variablelist.push({

--
Gitblit v1.9.3