Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏敏伟
xxx_phase2_web
Commits
25a79537
Commit
25a79537
authored
Mar 28, 2024
by
夏敏伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加树结构多选和文件下载
parent
5903c075
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
188 additions
and
145 deletions
+188
-145
src/api/xxxl/llxx.js
src/api/xxxl/llxx.js
+10
-0
src/view/sjgl/flfg_flfg.vue
src/view/sjgl/flfg_flfg.vue
+6
-1
src/view/sjgl/wx_data_public.vue
src/view/sjgl/wx_data_public.vue
+138
-117
src/view/sjgl/wxk_public.vue
src/view/sjgl/wxk_public.vue
+34
-27
No files found.
src/api/xxxl/llxx.js
View file @
25a79537
...
@@ -114,3 +114,13 @@ export const queryLiteratureById = name => {
...
@@ -114,3 +114,13 @@ export const queryLiteratureById = name => {
export
const
previewPdf
=
(
bucket
,
objectName
)
=>
{
export
const
previewPdf
=
(
bucket
,
objectName
)
=>
{
window
.
open
(
`api/rest/file/pdf/
${
bucket
}
?objectName=
${
objectName
}
`
);
window
.
open
(
`api/rest/file/pdf/
${
bucket
}
?objectName=
${
objectName
}
`
);
}
}
//文件文献下载
export
const
downloadFile
=
(
bucket
,
objectName
)
=>
{
window
.
open
(
`api/rest/file/download/
${
bucket
}
/
${
objectName
}
`
);
}
//文件文献下载
export
const
downloadDocument
=
(
bucket
,
objectName
,
originFileName
)
=>
{
window
.
open
(
`api/rest/file/download/
${
bucket
}
/
${
objectName
}
?originFileName=`
+
originFileName
);
}
\ No newline at end of file
src/view/sjgl/flfg_flfg.vue
View file @
25a79537
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
:disabled=
"scope.row.image == null || scope.row.image == '' ? true : false"
>
删除图片
</el-button>
:disabled=
"scope.row.image == null || scope.row.image == '' ? true : false"
>
删除图片
</el-button>
<el-button
size=
"mini"
type=
"success"
@
click=
"top(scope.row)"
>
{{
scope
.
row
.
stick
==
null
?
'
置顶
'
:
<el-button
size=
"mini"
type=
"success"
@
click=
"top(scope.row)"
>
{{
scope
.
row
.
stick
==
null
?
'
置顶
'
:
'
取消置顶
'
}}
</el-button>
'
取消置顶
'
}}
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"downloadLiterature(scope.row)"
>
下载
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -151,7 +152,7 @@
...
@@ -151,7 +152,7 @@
import
{
get
,
fileUpload
,
startLoading
,
endLoading
,
download
,
delete_util
,
post
}
from
'
../../util/http_util
'
;
import
{
get
,
fileUpload
,
startLoading
,
endLoading
,
download
,
delete_util
,
post
}
from
'
../../util/http_util
'
;
import
{
import
{
queryLiterature
,
uploadLiterature
,
removeLiterature
,
addPictureToLiterature
,
bulkStickLiterature
,
removeLiteratureByBatch
,
bulkChangeLiteratureFolder
,
queryLiterature
,
uploadLiterature
,
removeLiterature
,
addPictureToLiterature
,
bulkStickLiterature
,
removeLiteratureByBatch
,
bulkChangeLiteratureFolder
,
updateLiteratureFolder
,
queryLiteratureFolder
,
previewPdf
updateLiteratureFolder
,
queryLiteratureFolder
,
previewPdf
,
downloadFile
}
from
"
../../api/xxxl/llxx
"
}
from
"
../../api/xxxl/llxx
"
export
default
{
export
default
{
name
:
'
flfggl
'
,
name
:
'
flfggl
'
,
...
@@ -490,6 +491,10 @@ export default {
...
@@ -490,6 +491,10 @@ export default {
this
.
$message
.
warning
(
err
.
message
);
this
.
$message
.
warning
(
err
.
message
);
console
.
log
(
err
);
console
.
log
(
err
);
});
});
},
//下载文件
downloadLiterature
(
row
){
downloadFile
(
'
Literature
'
,
row
.
name
);
}
}
},
},
activated
()
{
activated
()
{
...
...
src/view/sjgl/wx_data_public.vue
View file @
25a79537
This diff is collapsed.
Click to expand it.
src/view/sjgl/wxk_public.vue
View file @
25a79537
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment