|  |  | 
 |  |  |  | 
 |  |  | <script> | 
 |  |  | import { | 
 |  |  |   changetagcategory, | 
 |  |  |   toamendtag, | 
 |  |  |   toamendtagcategory, | 
 |  |  |   addapitag, | 
 |  |  |   addtagcategory, | 
 |  |  |   detailstag, | 
 |  |  |   deletetag, | 
 |  |  |   changetagcategory, | 
 |  |  |   toamendtagcategory, | 
 |  |  |   addtagcategory, | 
 |  |  |   deletetagcategory, | 
 |  |  |   exporttag, | 
 |  |  |   listtag, | 
 |  |  |   tagclassifylist, | 
 |  |  | } from "@/api/system/label"; | 
 |  |  | import { | 
 |  |  |   listbase_tag, | 
 |  |  |   getbase_tag, | 
 |  |  |   addbase_tag, | 
 |  |  |   updatebase_tag, | 
 |  |  |   delbase_tag, | 
 |  |  | } from "@/api/smartorpor/base_tag"; | 
 |  |  | import { | 
 |  |  |   listbase_tagcategory, | 
 |  |  |   getbase_tagcategory, | 
 |  |  |   addbase_tagcategory, | 
 |  |  |   updatebase_tagcategory, | 
 |  |  |   delbase_tagcategory, | 
 |  |  | } from "@/api/smartorpor/base_tagcategory"; | 
 |  |  |  | 
 |  |  | import Treeselect from "@riophae/vue-treeselect"; | 
 |  |  | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; | 
 |  |  | 
 |  |  |  | 
 |  |  |   methods: { | 
 |  |  |     /** 查询标签列表 */ | 
 |  |  |     getList() { | 
 |  |  |     getList(row) { | 
 |  |  |       console.log(row); | 
 |  |  |       console.log(this.queryParams); | 
 |  |  |       listtag(this.addDateRange(this.queryParams)).then((response) => { | 
 |  |  |         console.log(response); | 
 |  |  |         this.total = response.total; | 
 |  |  |         this.userList = response.rows; | 
 |  |  |       }); | 
 |  |  | 
 |  |  |       if (this.lstamendtag) { | 
 |  |  |         toamendtag(this.addDateRange(this.tagform)).then((response) => { | 
 |  |  |           console.log(response); | 
 |  |  |           this.lstamendtagVisible = false; | 
 |  |  |           this.getList(); | 
 |  |  |         }); | 
 |  |  |       } else { | 
 |  |  |         addapitag(this.addDateRange(this.tagform)).then((response) => { | 
 |  |  |           console.log(response); | 
 |  |  |           this.lstamendtagVisible = false; | 
 |  |  |  | 
 |  |  |           this.getList(); | 
 |  |  |         }); | 
 |  |  |       } | 
 |  |  | 
 |  |  |       this.$modal | 
 |  |  |         .confirm('确认要"' + text + '""' + row.tagname + '"标签吗?') | 
 |  |  |         .then(function () { | 
 |  |  |           return changetagcategory(row.tagid, row.isupload); | 
 |  |  |           return toamendtag(row); | 
 |  |  |         }) | 
 |  |  |         .then(() => { | 
 |  |  |           this.$modal.msgSuccess(text + "成功"); |