Explorar o código

优化文件共享

540352293 %!s(int64=3) %!d(string=hai) anos
pai
achega
20554b0a2c
Modificáronse 1 ficheiros con 11 adicións e 1 borrados
  1. 11 1
      src/pages/main/file/flieList.vue

+ 11 - 1
src/pages/main/file/flieList.vue

@@ -28,6 +28,7 @@
                   ? "当前选择节点名称:" + actionName
                   : "当前无选择节点"
               }}
+              <span v-show="actionName" class="clearStyle" @click="clearClick">取消选择</span>
             </template>
           </el-alert>
           <div style="margin: 10px 0">
@@ -419,6 +420,11 @@ export default {
   },
 
   methods: {
+    clearClick() {
+      this.actionName = "";
+      this.params.id = "";
+      this.getList(this.params, this.pageSize);
+    },
     moreDown() {
       // let arr = [];
       // this.idList.forEach((item) => {
@@ -654,6 +660,7 @@ export default {
         type: "warning",
       })
         .then(() => {
+          this.pageSize = 1;
           this.$http({
             url: "/market/cmkFileShare/del",
             method: "post",
@@ -900,7 +907,10 @@ export default {
 <style lang="scss" scoped>
 .container {
   background-color: #f0f2f5;
-
+  .clearStyle{
+    cursor: pointer;
+    color: #0b82ff;
+  }
   .el-col {
     background-color: white;
     padding: 0 20px;