赵殿龙 1 rok pred
rodič
commit
731fb5cd13

+ 4 - 2
src/views/dict/qc/components/CreateDialog.vue

@@ -32,6 +32,8 @@
         />
         <el-button
           v-else
+          type="primary"
+          plain
           class="button-new-tag"
           @click="showInput"
         >+ 添加</el-button>
@@ -82,9 +84,9 @@ export default {
   },
   created() {
     if (this.data.row.id) {
-      const { name, keyword, id } = this.data.row
+      const { name, keywords, id } = this.data.row
       this.ruleForm.name = name
-      this.ruleForm.keywords = keyword.split('、')
+      this.ruleForm.keywords = keywords
       this.ruleForm.id = id
     }
   },

+ 1 - 1
src/views/dict/qc/index.vue

@@ -66,7 +66,7 @@ export default {
       get_word_map(params).then(res => {
         const { p } = res
         this.paginationData.total = p.count
-        this.tableData = p.data
+        this.tableData = Array.isArray(p.list) ? p.list : []
       }).catch(error => {
         console.log(error)
       }).finally(() => {