|
|
|
@ -24,20 +24,15 @@ |
|
|
|
|
</div> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="上传标准表格"> |
|
|
|
|
<!-- @click="showProcess" --> |
|
|
|
|
<!-- <a-upload |
|
|
|
|
:multiple="false" |
|
|
|
|
:action="url.uploadUrl" |
|
|
|
|
@change="handleChange" |
|
|
|
|
>--> |
|
|
|
|
<a-upload name="file" |
|
|
|
|
:multiple="false" |
|
|
|
|
:action="url.uploadUrl" |
|
|
|
|
@change="handleChange" |
|
|
|
|
:showUploadList="false" |
|
|
|
|
:headers="tokenHeader"> |
|
|
|
|
<a-button type="primary" icon="upload"></a-button> |
|
|
|
|
<div v-if="ModalData.isVisible==='true'"> |
|
|
|
|
</a-upload> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item v-if="ModalData.isVisible==='true'" class="box"> |
|
|
|
|
<p>当前状态:{{ ModalData.status }}</p> |
|
|
|
|
<p>总记录数:{{ ModalData.records }}</p> |
|
|
|
|
<p>已上传:{{ ModalData.uploaded }}</p> |
|
|
|
@ -46,28 +41,9 @@ |
|
|
|
|
title="上传进度:" |
|
|
|
|
status="active" |
|
|
|
|
:steps="ModalData.records"/> |
|
|
|
|
</div> |
|
|
|
|
</a-upload> |
|
|
|
|
</a-form-item> |
|
|
|
|
<!-- <a-modal--> |
|
|
|
|
<!-- title="正在上传..."--> |
|
|
|
|
<!-- :visible="ModalData.isVisible==='true'"--> |
|
|
|
|
<!-- :confirm-loading="false"--> |
|
|
|
|
<!-- :mask="true"--> |
|
|
|
|
<!-- :maskClosable="false"--> |
|
|
|
|
<!-- :keyboard="false"--> |
|
|
|
|
<!-- :closable="false"--> |
|
|
|
|
<!-- :footer="false"--> |
|
|
|
|
<!-- >--> |
|
|
|
|
<!-- <p>当前状态:{{ ModalData.status }}</p>--> |
|
|
|
|
<!-- <p>总记录数:{{ ModalData.records }}</p>--> |
|
|
|
|
<!-- <p>已上传:{{ ModalData.uploaded }}</p>--> |
|
|
|
|
<!-- <a-progress--> |
|
|
|
|
<!-- :percent="parseInt(String(ModalData.uploaded/ModalData.records*100))"--> |
|
|
|
|
<!-- title="上传进度:"--> |
|
|
|
|
<!-- status="active" :steps="ModalData.records"/>--> |
|
|
|
|
<!-- </a-modal>--> |
|
|
|
|
<a-form-model-item label="注意事项" v-if="uploadFinished"> |
|
|
|
|
<!-- <a-form-model-item label="注意事项" v-if="uploadFinished">--> |
|
|
|
|
<a-form-model-item label="注意事项"> |
|
|
|
|
<a-list size="small" :data-source="datas"> |
|
|
|
|
<a-list-item slot="renderItem" slot-scope="item,index" style="border-bottom:0px ;"> {{ index + 1 }} . {{ |
|
|
|
|
item |
|
|
|
@ -80,7 +56,7 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import getAction from '@api/manage' |
|
|
|
|
import {getAction} from "@api/manage" |
|
|
|
|
import store from '@/store' |
|
|
|
|
import {JeecgListMixin} from '@/mixins/JeecgListMixin' |
|
|
|
|
import {mixinDevice} from '@/utils/mixin' |
|
|
|
@ -91,7 +67,7 @@ export default { |
|
|
|
|
comments: {}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
title: '', |
|
|
|
|
title: '导入xxxxx', |
|
|
|
|
visible: false, |
|
|
|
|
model: {}, |
|
|
|
|
// 注意事项默认值 |
|
|
|
@ -107,7 +83,8 @@ export default { |
|
|
|
|
url: |
|
|
|
|
{ |
|
|
|
|
downfile: '', |
|
|
|
|
uploadUrl: '' |
|
|
|
|
uploadUrl: '', |
|
|
|
|
list: "/modulex/modulex/list" |
|
|
|
|
}, |
|
|
|
|
datas: [ |
|
|
|
|
'Racing car sprays burning fuel into crowd.', |
|
|
|
@ -116,6 +93,7 @@ export default { |
|
|
|
|
'Man charged over missing wedding girl.', |
|
|
|
|
'Los Angeles battles huge wildfires.' |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
@ -151,31 +129,36 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 下载标准文档 |
|
|
|
|
handleDownload() { |
|
|
|
|
console.log(1111) |
|
|
|
|
// getAction(this.url.downfile).then(response => { |
|
|
|
|
// const url = window.URL.createObjectURL(new Blob([response.data])) |
|
|
|
|
// const link = document.createElement('a') |
|
|
|
|
// link.href = url |
|
|
|
|
// link.setAttribute('download', 'your-document.pdf') |
|
|
|
|
// document.body.appendChild(link) |
|
|
|
|
// link.click() |
|
|
|
|
// }) |
|
|
|
|
// .catch(error => { |
|
|
|
|
// console.error(error) |
|
|
|
|
// }) |
|
|
|
|
// getAction(this.url.list, params).then((res) => |
|
|
|
|
getAction(this.url.downfile).then((response) => { |
|
|
|
|
const url = window.URL.createObjectURL(new Blob([response.data])) |
|
|
|
|
const link = document.createElement('a') |
|
|
|
|
link.href = url |
|
|
|
|
link.setAttribute('download', 'your-document.pdf') |
|
|
|
|
document.body.appendChild(link) |
|
|
|
|
link.click() |
|
|
|
|
}) |
|
|
|
|
.catch(error => { |
|
|
|
|
console.error(error) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
add() { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
show(uploadUrl, downUrl) { |
|
|
|
|
this.url.uploadUrl = uploadUrl |
|
|
|
|
this.url.downfile = downUrl |
|
|
|
|
show(data) { |
|
|
|
|
this.url.uploadUrl = data.uploadUrl |
|
|
|
|
this.url.downfile = data.downUrl |
|
|
|
|
this.datas=data.note |
|
|
|
|
this.title=data.title |
|
|
|
|
this.ModalData = {} |
|
|
|
|
this.visible = true |
|
|
|
|
}, |
|
|
|
|
edit(record) { |
|
|
|
|
// this.visible = true |
|
|
|
|
this.ModalData = record |
|
|
|
|
}, |
|
|
|
|
edit1(record) { |
|
|
|
|
this.visible = true |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
close() { |
|
|
|
|
this.$emit('close') |
|
|
|
@ -206,4 +189,10 @@ export default { |
|
|
|
|
width: 85%; |
|
|
|
|
float: right; |
|
|
|
|
} |
|
|
|
|
.box{ |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction:column; |
|
|
|
|
justify-content:center; |
|
|
|
|
align-items: center; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|