Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
91c38661
authored
2025-08-25 09:20:33 +0800
by
zrj
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
8.25 sjs
1 parent
87869823
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
12 deletions
src/viewsPc/about/operation.vue
src/viewsPc/components/orderRemark.vue
src/viewsPc/about/operation.vue
View file @
91c3866
...
...
@@ -42,20 +42,22 @@
</
template
>
</el-tab-pane>
</el-tabs>
<div
v-loading=
"loading"
class=
"infoPart"
>
<div
v-loading=
"loading"
class=
"infoPart"
style=
"position: relative"
>
<h3
class=
"leftboderTT"
>
{{ nowTab.name }}
</h3>
<div
class=
"content"
>
<div
style=
"padding-left: 30px"
>
<el-link
v-for=
"v in fileList"
:href=
"fillImgUrl(v.url)"
:underline=
"false"
class=
"link"
target=
"_blank"
type=
"primary"
>
<span
style=
"border-bottom: 1px solid var(--el-color-primary)"
>
{{ v.name }}
<el-icon
style=
"margin-left: 10px;position: relative;bottom: -2px"
>
<Download/>
</el-icon>
</span>
</el-link>
<el-button
style=
"position: absolute; top: 20px; right: 50px"
type=
"primary"
@
click=
"downloadUrl(fileList)"
>
{{language===0?'下载文档':'Download Document'}}
</el-button>
<!-- <el-link v-for="v in fileList" :href="fillImgUrl(v.url)" :underline="false" class="link" target="_blank"-->
<!-- type="primary">-->
<!-- <span style="border-bottom: 1px solid var(--el-color-primary)">-->
<!-- {{ v.name }}-->
<!-- <el-icon style="margin-left: 10px;position: relative;bottom: -2px">-->
<!-- <Download/>-->
<!-- </el-icon>-->
<!-- </span>-->
<!-- </el-link>-->
</div>
<div
v-if=
"content"
v-html=
"content"
/>
<div
v-else
>
...
...
@@ -95,6 +97,7 @@ import {onMounted, ref} from "vue";
import
{
getppInfo
}
from
"@/apiPc/match"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
fillImgUrl
}
from
"/@/utils/ruoyi"
;
import
{
ElMessage
}
from
"element-plus"
;
const
route
=
useRoute
()
const
language
=
useStorage
(
'language'
,
0
)
...
...
@@ -181,6 +184,31 @@ const changeTab = (n) => {
})
}
const
downloadUrl
=
function
(
data
)
{
if
(
data
&&
data
.
length
>
0
)
{
let
filePath
=
fillImgUrl
(
data
[
0
].
url
)
let
x
=
new
XMLHttpRequest
();
x
.
open
(
"GET"
,
filePath
,
true
);
x
.
responseType
=
'blob'
;
x
.
onload
=
function
()
{
let
url
=
window
.
URL
.
createObjectURL
(
x
.
response
)
let
link
=
document
.
createElement
(
'a'
)
// 创建a标签
link
.
style
.
display
=
'none'
link
.
target
=
'_target'
link
.
href
=
url
// 设置下载地址
link
.
download
=
data
[
0
].
name
||
''
// 添加downLoad属性
document
.
body
.
appendChild
(
link
)
link
.
click
()
}
x
.
send
()
}
else
{
ElMessage
.
warning
({
message
:
'没有可以下载的文件'
,
})
}
}
</
script
>
<!--<style lang="scss" scoped>-->
...
...
src/viewsPc/components/orderRemark.vue
View file @
91c3866
...
...
@@ -43,7 +43,7 @@ const title = ref('')
const
cptName
=
ref
(
''
)
const
show
=
ref
(
false
)
const
form
=
ref
({})
const
hotelType
=
ref
(
'
1
'
)
const
hotelType
=
ref
(
''
)
let
matchId
=
''
let
type
=
''
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment