From 79d9fc857559982b00b68b2d709807bdc4cd286f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 11 Apr 2022 10:58:17 +0800
Subject: [PATCH] minio 地址修改

---
 src/views/resource/attach.vue |   92 +++++++++++++++++++++++++--------------------
 1 files changed, 51 insertions(+), 41 deletions(-)

diff --git a/src/views/resource/attach.vue b/src/views/resource/attach.vue
index bd0fceb..8b8daf5 100644
--- a/src/views/resource/attach.vue
+++ b/src/views/resource/attach.vue
@@ -1,6 +1,13 @@
 <template>
-  <basic-container class="hasButTwo">
+  <basic-container
+    :class="[
+      'hasButTwo',
+      $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
+      $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : ''
+    ]"
+  >
     <avue-crud
+      class="tablesss"
       :option="option"
       :table-loading="loading"
       :data="data"
@@ -45,7 +52,7 @@
           size="small"
           v-if="permission.attach_download"
           @click="handleDownload(scope.row)"
-          >下载222
+          >下载
         </el-button>
         <el-button
           type="text"
@@ -103,6 +110,7 @@
         pageSize: 10,
         currentPage: 1,
         total: 0,
+        ...this.$store.state.control.changePageSize
       },
       attachBox: false,
       selectionList: [],
@@ -118,6 +126,7 @@
         viewBtn: true,
         selection: true,
         dialogClickModal: false,
+        ...this.$store.state.control.clearOtherBut,
         column: [
           {
             label: "附件地址",
@@ -126,9 +135,9 @@
               {
                 required: true,
                 message: "请输入附件地址",
-                trigger: "blur",
-              },
-            ],
+                trigger: "blur"
+              }
+            ]
           },
           {
             label: "附件域名",
@@ -138,9 +147,9 @@
               {
                 required: true,
                 message: "请输入附件域名",
-                trigger: "blur",
-              },
-            ],
+                trigger: "blur"
+              }
+            ]
           },
           {
             label: "附件名称",
@@ -150,9 +159,9 @@
               {
                 required: true,
                 message: "请输入附件名称",
-                trigger: "blur",
-              },
-            ],
+                trigger: "blur"
+              }
+            ]
           },
           {
             label: "附件原名",
@@ -162,9 +171,9 @@
               {
                 required: true,
                 message: "请输入附件原名",
-                trigger: "blur",
-              },
-            ],
+                trigger: "blur"
+              }
+            ]
           },
           {
             label: "附件拓展名",
@@ -173,9 +182,9 @@
               {
                 required: true,
                 message: "请输入附件拓展名",
-                trigger: "blur",
-              },
-            ],
+                trigger: "blur"
+              }
+            ]
           },
           {
             label: "附件大小",
@@ -185,11 +194,11 @@
               {
                 required: true,
                 message: "请输入附件大小",
-                trigger: "blur",
-              },
-            ],
-          },
-        ],
+                trigger: "blur"
+              }
+            ]
+          }
+        ]
       },
       data: [],
       attachForm: {},
@@ -205,18 +214,18 @@
             loadText: "模板上传中,请稍等",
             span: 24,
             propsHttp: {
-              res: "data",
+              res: "data"
             },
             action:
               "/api/blade-resource/oss/endpoint/put-file-attach?type=" +
               type +
               "&deptid=" +
-              deptid,
-          },
-        ],
+              deptid
+          }
+        ]
       },
       imgSee: false,
-      imgUrl: "",
+      imgUrl: ""
     };
   },
   computed: {
@@ -226,18 +235,19 @@
         addBtn: false,
         editBtn: false,
         viewBtn: false,
-        delBtn: this.vaildData(this.permission.attach_delete, false),
+        delBtn: this.vaildData(this.permission.attach_delete, false)
       };
     },
     ids() {
       let ids = [];
-      this.selectionList.forEach((ele) => {
+      this.selectionList.forEach(ele => {
         ids.push(ele.id);
       });
       return ids.join(",");
-    },
+    }
   },
   mounted() {
+    this.$store.commit("setWindowSizeHeightAdd");
     var flag = false,
       i = 0,
       ind = null;
@@ -271,7 +281,7 @@
       this.$confirm("确定将选择数据删除?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
-        type: "warning",
+        type: "warning"
       })
         .then(() => {
           return remove(row.id);
@@ -280,7 +290,7 @@
           this.onLoad(this.page);
           this.$message({
             type: "success",
-            message: "操作成功!",
+            message: "操作成功!"
           });
         });
     },
@@ -292,7 +302,7 @@
       this.$confirm("确定将选择数据删除?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
-        type: "warning",
+        type: "warning"
       })
         .then(() => {
           return remove(this.ids);
@@ -301,14 +311,14 @@
           this.onLoad(this.page);
           this.$message({
             type: "success",
-            message: "操作成功!",
+            message: "操作成功!"
           });
           this.$refs.crud.toggleSelection();
         });
     },
     beforeOpen(done, type) {
       if (["edit", "view"].includes(type)) {
-        getDetail(this.form.id).then((res) => {
+        getDetail(this.form.id).then(res => {
           this.form = res.data.data;
         });
       }
@@ -348,11 +358,12 @@
         page.currentPage,
         page.pageSize,
         Object.assign(params, this.query)
-      ).then((res) => {
+      ).then(res => {
         const data = res.data.data;
         this.page.total = data.total;
         this.data = data.records;
         this.loading = false;
+        this.$store.commit("setWindowSizeHeightAdd");
         this.selectionClear();
       });
     },
@@ -378,13 +389,12 @@
           "webp",
           "psd",
           "svg",
-          "tiff",
+          "tiff"
         ].indexOf(ext.toLowerCase()) == -1
       );
-    },
-  },
+    }
+  }
 };
 </script>
 
-<style>
-</style>
+<style></style>

--
Gitblit v1.9.3