zhangqiOMG %!s(int64=2) %!d(string=hai) anos
pai
achega
bbc06c4e7a

+ 4 - 1
src/components/normal-basic-layout/details/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div v-if="refreshPage" style="min-width:1200px">
-    <div style="margin:10px 10px 0 10px;border-radius:5px" class="container normal-panel sticky">
+    <div style="margin:10px 10px 0 10px;border-radius:5px" class="container normal-panel sticky" @click="closeTags">
       <div class="flex-align-start flex-between normal-margin" style="flex-wrap:nowrap">
         <div>
           <p class="main_title mt-10">{{titleText?titleText:'##'}}</p>
@@ -179,6 +179,9 @@ export default {
     },
     refreshTag () {
       this.$refs.tag.queryTag()
+    },
+    closeTags() {
+      this.$refs.tag.closeTag()
     }
   },
   mounted () {

+ 4 - 1
src/components/normal-basic-layout/details/modules/tags/tag.vue

@@ -29,7 +29,7 @@
         </el-option>
       </el-select>
       <!-- <el-button type="text" @click="showTag = false">+</el-button> -->
-      <img v-show="showTag" src="@/assets/icons/tag.svg" @click="showTag = false" height="20" alt="">
+      <img v-show="showTag" src="@/assets/icons/tag.svg" @click.stop="showTag = false" height="20" alt="">
     </div>
   </div>
 </template>
@@ -91,6 +91,9 @@ export default {
       arr2 = this.datatag.length === 0?[]:arr2
       let _isSame = arr2.some(tag=>item.tag === tag)
       return _isSame
+    },
+    closeTag () {
+      this.showTag = true
     }
   },
   mounted () {