From 1fb46e2395ded36d6aa692b32914f19e010ed98f Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期三, 20 十二月 2023 10:02:03 +0800
Subject: [PATCH] 修改视频专网内网

---
 src/views/index.vue |   26 +++++++++++++++++++++-----
 1 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index 2b64254..a6b7af8 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -22,6 +22,9 @@
       <template #header>
         <el-row  style="text-align: center">
           <el-col>
+          <el-input v-model="input1" placeholder="璇疯緭鍏ユ彁鍙栫爜" style="width: 150px">
+               </el-input>
+            <el-button type="primary" @click="downloadFile">涓嬭浇</el-button>
             <el-button type="primary" plain icon="Upload" @click="handleFile" v-if="isContains(useUserStore().permissions, 'system:oss:upload')">涓婁紶鏂囦欢</el-button>
           </el-col>
 
@@ -89,8 +92,7 @@
         <div class="dialog-footer">
           <el-button link type="primary"   v-show="titleDownload=='杈撳叆鎻愬彇鐮�'" icon="Download" @click="handleDownloadFile()" v-if="isContains(useUserStore().permissions, 'system:oss:download')">涓嬭浇</el-button>
           <el-button link type="primary"   v-show="titleDownload=='璇疯緭鍏ユ彁鍙栫爜'"  icon="Delete" @click="delFile()" >鍒犻櫎</el-button>
-<!--          <el-button  type="primary" @click="visibleCode = false">纭� 瀹�</el-button>-->
-          <el-button @click="visibleCode = false">鍙� 娑�</el-button>
+          <el-button  type="primary" @click="visibleCode = false">纭� 瀹�</el-button>
         </div>
       </template>
     </el-dialog>
@@ -132,6 +134,7 @@
 const inputRef = ref<any>()
 const inputSty =ref<any>()
 const currentIp = ref('')
+const input1 = ref('')
 const childFile = ref<any>()
 const figType = ref<any>()
 // 榛樿鎺掑簭
@@ -288,9 +291,10 @@
   await childFile.value.handleCilck()
   dialog.visible = false;
 }
-const lookPawsd = async (row: OssVO) => {
-  console.log(row, row.ossId);
-      testtxt.value = row.password;
+const lookPawsd = async (row:any) => {
+  console.log(row);
+  // row.msg = ':/"123456'
+  //     testtxt.value = row.msg.slice(2);
       titleDownload.value = '鏌ョ湅鎻愬彇鐮�'
       pasTxt.value = ''
       visibleCode.value = true
@@ -428,6 +432,18 @@
   // }
 
 })
+const downloadFile = ()=>{
+  console.log(input1.value);
+  if (input1.value){
+    proxy?.$download.ossDown("12345678",input1.value)
+  }else {
+    inputSty.value ={
+      border: '1px solid red'
+    }
+    // inputRef.value.style.border = '1px solid red'
+  }
+  visibleCode.value=false
+}
 onMounted(async () => {
   console.log('绗簩aaaaaaa',useUserStore().permissions);
   // 绛夊緟 useUserStore() 鏂规硶鐨� getInfo() 鏂规硶杩斿洖缁撴灉骞惰祴鍊肩粰 err 鍙橀噺

--
Gitblit v1.8.0