scorpio 3 gadi atpakaļ
vecāks
revīzija
b581f80c44

+ 11 - 3
src/views/database/component/dialog_info.vue

@@ -61,9 +61,9 @@
     </div>
     <!------4----->
     <div class="flex flex-center flex-justify-between" style="width: 70%;margin-top: 40px">
-      <base-button icon="Download" title="下载" type="0"/>
-      <base-button icon="UploadFilled" title="同步到" type="0"/>
-      <base-button icon="Link" title="分享到" type="0"/>
+      <base-button icon="Download" title="下载" type="0" @click='download'/>
+      <base-button icon="UploadFilled" title="同步到" type="0" @click='showMsg'/>
+      <base-button icon="Link" title="分享到" type="0" @click='showMsg'/>
     </div>
   </div>
 </template>
@@ -106,6 +106,14 @@ export default {
     },
     toSize () {
       this.size = bytesToSize(this.info.volume)
+    },
+    download () {
+      window.open(this.info.url)
+    },
+    showMsg () {
+      this.$alert('功能建设中,尽情期待...', '消息提醒', {
+        confirmButtonText: 'OK'
+      })
     }
   }
 }

+ 1 - 1
src/views/database/component/list.vue

@@ -54,7 +54,7 @@ export default {
         searchShow: true,
         editBtn: false,
         addBtn: false,
-        delBtn: true,
+        delBtn: false,
         border: true,
         index: true,
         align: 'center',