文件管理对接任务,调整删除接口和文件上传
This commit is contained in:
parent
3fa8b2b1f1
commit
db3baa97ee
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="6">
|
<a-col :span="4">
|
||||||
<div class="flodContent">
|
<div class="flodContent">
|
||||||
<div class="linese"></div>
|
<div class="linese"></div>
|
||||||
<div class="siderHeader echartsTitle">
|
<div class="siderHeader echartsTitle">
|
||||||
|
@ -31,10 +31,10 @@
|
||||||
<div class="linese"></div>
|
<div class="linese"></div>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="18">
|
<a-col :span="20">
|
||||||
<div class="righttop">
|
<div class="righttop">
|
||||||
<div class="linese"></div>
|
<div class="linese"></div>
|
||||||
<div style="height:130px;background: #e6e9f1;margin-left: 10px;" >
|
<div style="height:130px;background: #e6e9f1;padding-left: 10px;" >
|
||||||
<a-row class="quarter-div">
|
<a-row class="quarter-div">
|
||||||
<a-col :span="11">
|
<a-col :span="11">
|
||||||
<img src="~@/assets/img/文件总数.png" />
|
<img src="~@/assets/img/文件总数.png" />
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
|
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<a-row :gutter="30">
|
<a-row :gutter="30">
|
||||||
<a-col :span="11">
|
<a-col :span="12">
|
||||||
<a-form layout="inline">
|
<a-form layout="inline">
|
||||||
<a-form-item>
|
<a-form-item>
|
||||||
<a-input placeholder="请输入" v-model="searchFile.queryCondition" style="color: #fff;"></a-input>
|
<a-input placeholder="请输入" v-model="searchFile.queryCondition" style="color: #fff;"></a-input>
|
||||||
|
@ -109,8 +109,8 @@
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="11" style="text-align: right">
|
<a-col :span="12" style="text-align: right">
|
||||||
<a-button type="primary" style="margin-left: 8px" @click="clickfile">
|
<a-button type="primary" style="margin-right: 14px" @click="clickfile">
|
||||||
<a-icon type="upload" />
|
<a-icon type="upload" />
|
||||||
文件上传
|
文件上传
|
||||||
</a-button>
|
</a-button>
|
||||||
|
@ -215,6 +215,7 @@ export default {
|
||||||
loading: false,
|
loading: false,
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
selectId: '',
|
selectId: '',
|
||||||
|
parentId: '',
|
||||||
modalTitle: '',
|
modalTitle: '',
|
||||||
modelType: '',
|
modelType: '',
|
||||||
searchFile: {
|
searchFile: {
|
||||||
|
@ -403,7 +404,7 @@ export default {
|
||||||
title: '确认删除',
|
title: '确认删除',
|
||||||
content: '是否删除选中目录?',
|
content: '是否删除选中目录?',
|
||||||
onOk: function () {
|
onOk: function () {
|
||||||
logicDelDir({ id: that.selectId }).then((res) => {
|
logicDelDir({ id: that.selectId, pid: that.parentId }).then((res) => {
|
||||||
that.$message.warning(res.message)
|
that.$message.warning(res.message)
|
||||||
that.getDirList()
|
that.getDirList()
|
||||||
})
|
})
|
||||||
|
@ -418,6 +419,7 @@ export default {
|
||||||
},
|
},
|
||||||
changeSelect(selectedKeys, e) {
|
changeSelect(selectedKeys, e) {
|
||||||
this.selectId = e.node.dataRef.id
|
this.selectId = e.node.dataRef.id
|
||||||
|
this.parentId = e.node.dataRef.parentId
|
||||||
this.searchFile.dirId = this.selectId
|
this.searchFile.dirId = this.selectId
|
||||||
this.searchgetFileList()
|
this.searchgetFileList()
|
||||||
},
|
},
|
||||||
|
@ -459,9 +461,10 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.quarter-div {
|
.quarter-div {
|
||||||
|
min-width: 200px;
|
||||||
height: 130px;
|
height: 130px;
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 20px;
|
margin-right: 12px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col>
|
<a-col>
|
||||||
<a-select show-search placeholder="选择任务" option-filter-prop="children" size="large" v-model="taskId" style="width: 260px;margin-right: 20px;">
|
<!-- <a-select show-search placeholder="选择任务" option-filter-prop="children" size="large" v-model="taskId" style="width: 260px;margin-right: 20px;">
|
||||||
<a-select-option v-for="d in allTask" :key="d.id">
|
<a-select-option v-for="d in allTask" :key="d.id">
|
||||||
{{ d.name }}
|
{{ d.name }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select> -->
|
||||||
<a-upload
|
<a-upload
|
||||||
class="upload-wrapper"
|
class="upload-wrapper"
|
||||||
:showUploadList="false"
|
:showUploadList="false"
|
||||||
|
@ -97,7 +97,7 @@ export default {
|
||||||
isStop: false,
|
isStop: false,
|
||||||
fileList: [],
|
fileList: [],
|
||||||
tableDate: [],
|
tableDate: [],
|
||||||
taskId:"",
|
// taskId:"",
|
||||||
allTask:{},
|
allTask:{},
|
||||||
queryParam: {
|
queryParam: {
|
||||||
pageNum :1,
|
pageNum :1,
|
||||||
|
@ -153,7 +153,7 @@ export default {
|
||||||
deleteFile () {
|
deleteFile () {
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
this.tableDate = []
|
this.tableDate = []
|
||||||
this.taskId =""
|
// this.taskId =""
|
||||||
},
|
},
|
||||||
getFileList () {
|
getFileList () {
|
||||||
return this.tableDate
|
return this.tableDate
|
||||||
|
@ -209,10 +209,10 @@ export default {
|
||||||
this.$message.error('文件目录选择异常请刷新页面')
|
this.$message.error('文件目录选择异常请刷新页面')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(this.taskId.length <= 0){
|
// if(this.taskId.length <= 0){
|
||||||
this.$message.error('请选择任务')
|
// this.$message.error('请选择任务')
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
const currentRow = this.tableDate.find((row) => row.uid === file.uid)
|
const currentRow = this.tableDate.find((row) => row.uid === file.uid)
|
||||||
if (currentRow) {
|
if (currentRow) {
|
||||||
// 当前上传进度归0
|
// 当前上传进度归0
|
||||||
|
@ -278,7 +278,7 @@ export default {
|
||||||
formData.append('shareIndex', shareIndex)
|
formData.append('shareIndex', shareIndex)
|
||||||
formData.append('currShareM5', currShareM5)
|
formData.append('currShareM5', currShareM5)
|
||||||
formData.append('file', file)
|
formData.append('file', file)
|
||||||
formData.append('taskId', this.taskId)
|
// formData.append('taskId', this.taskId)
|
||||||
|
|
||||||
return formData
|
return formData
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user