Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kd_control
Project
Project
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
zhanglw
kd_control
Commits
177fc2fd
Commit
177fc2fd
authored
Aug 30, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件删除
parent
1c4bd121
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
common.js
src/assets/js/common.js
+8
-0
index.vue
src/views/productionPlanManagement/mineFile/index.vue
+19
-0
No files found.
src/assets/js/common.js
View file @
177fc2fd
...
...
@@ -3194,6 +3194,14 @@ var HttpReq = function(){
responseType
:
'
blob
'
})
},
//开采管理-删除文件
deleteExcelOrFbx
:
function
(
data
){
return
request
({
url
:
'
/api/miningManagement/deleteExcelOrFbx
'
,
method
:
'
delete
'
,
data
:
data
,
})
},
},
...
...
src/views/productionPlanManagement/mineFile/index.vue
View file @
177fc2fd
...
...
@@ -43,6 +43,7 @@
<template
slot-scope=
"scope"
>
<el-button
v-if=
"query.type==='excel'"
size=
"mini"
type=
"text"
icon=
"el-icon-view"
@
click=
"viewTable(scope.row)"
>
在线预览
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-download"
@
click=
"downloadFile(scope.row)"
>
下载
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"toDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -125,6 +126,24 @@ export default {
})
},
methods
:
{
toDelete
(
item
)
{
this
.
$confirm
(
`确认删除文件:
${
item
.
fileName
}
?`
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
HttpReq
.
truckDispatching
.
deleteExcelOrFbx
({
fileName
:
item
.
fileName
,
type
:
this
.
query
.
type
}).
then
((
res
)
=>
{
this
.
$notify
({
title
:
res
.
msg
,
type
:
res
.
code
===
200
?
'
success
'
:
'
error
'
,
duration
:
2500
})
if
(
res
.
code
===
200
)
{
this
.
loadData
()
}
})
}).
catch
(()
=>
{})
},
download
(
text
,
name
,
suffix
)
{
var
link
=
document
.
createElement
(
'
a
'
);
link
.
style
.
display
=
'
none
'
;
...
...
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