nanjingliujinyu 6 bulan lalu
induk
melakukan
a26c882bbb

+ 8 - 2
ruoyi-ui/src/views/register/componentReg/index.vue

@@ -386,7 +386,7 @@
                     <div style="color: #b1b3b8;width: 100%;">
                       注:请上传后缀名为.docx .pdf .txt的文件
                     </div>
-                    <el-link type="primary">{{formJi.mdInName}}</el-link>
+                    <el-link type="primary" @click="downIn">{{formJi.mdInName}}</el-link>
                   </el-form-item>
                   <el-form-item label="说明:" prop="" style="margin-left: -1%;">
                     <el-input v-model="formJi.mdInNote" style="width: 75%;" placeholder="请输入组件执行路径" :rows="2" type="textarea" resize="none"/>
@@ -417,7 +417,7 @@
                     <div style="color: #b1b3b8;width: 100%;">
                       注:请上传后缀名为.docx .pdf .txt的文件
                     </div>
-                    <el-link type="primary">{{formJi.mdOutName}}</el-link>
+                    <el-link type="primary" @click="downOut">{{formJi.mdOutName}}</el-link>
                   </el-form-item>
                   <el-form-item label="说明:" prop="" style="margin-left: -1%;">
                     <el-input v-model="formJi.mdOutNote" style="width: 75%;" placeholder="请输入组件执行路径" :rows="2" type="textarea" resize="none"/>
@@ -589,6 +589,7 @@ const upload = reactive({
   // 上传的地址
   url: import.meta.env.VITE_APP_BASE_API + "/common/upload"
 });
+const downUrl = ref(import.meta.env.VITE_APP_BASE_API)
 const tableKey = ref(0);
 const totalComReg = ref()
 const currentPage = ref(1)
@@ -697,6 +698,11 @@ function showDe(row){
     formJi.value = res.data
   })
 }
+function downIn(){
+  var url = formJi.value.mdInName
+  console.log(url)
+  proxy.download(url,formJi.value.mdInFile);
+}
 function delModel(row){
   proxy.$modal.confirm('是否确认删除?').then(function () {
     return delMdid(row.mdid);

+ 1 - 1
ruoyi-ui/src/views/system/user/index.vue

@@ -461,7 +461,7 @@ function handleDelete(row) {
 
 /** 导出按钮操作 */
 function handleExport() {
-  proxy.download("system/user/export", {
+  proxy.download("system/user/export", { 
     ...queryParams.value,
   },`user_${new Date().getTime()}.xlsx`);
 };