|
|
@ -53,7 +53,7 @@ |
|
|
|
</a-form-model-item> |
|
|
|
</a-form-model-item> |
|
|
|
</a-form> |
|
|
|
</a-form> |
|
|
|
<template slot="footer"> |
|
|
|
<template slot="footer"> |
|
|
|
<a-button type="primary" @click="handleCancel" :disabled="btnState">确定</a-button> |
|
|
|
<a-button type="primary" @click="handleCancel" :disabled="closeable == 'true' ? false : true">确定</a-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</a-modal> |
|
|
|
</a-modal> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -76,13 +76,14 @@ export default { |
|
|
|
visible: false, |
|
|
|
visible: false, |
|
|
|
model: {}, |
|
|
|
model: {}, |
|
|
|
// 注意事项默认值 |
|
|
|
// 注意事项默认值 |
|
|
|
|
|
|
|
closeable: 'true', |
|
|
|
uploadFinished: false, |
|
|
|
uploadFinished: false, |
|
|
|
ModalData: { |
|
|
|
ModalData: { |
|
|
|
uploaded: '0', |
|
|
|
uploaded: '0', |
|
|
|
isVisible: 'false', |
|
|
|
isVisible: 'false', |
|
|
|
records: '0', |
|
|
|
records: '0', |
|
|
|
status: '判断文件结构', |
|
|
|
status: '判断文件结构', |
|
|
|
closeable:'false' |
|
|
|
// closeable: 'false' |
|
|
|
}, |
|
|
|
}, |
|
|
|
btnState: false, |
|
|
|
btnState: false, |
|
|
|
form: this.$form.createForm(this), |
|
|
|
form: this.$form.createForm(this), |
|
|
@ -108,17 +109,6 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: {}, |
|
|
|
computed: {}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
// 上传 |
|
|
|
|
|
|
|
// 显示进度 |
|
|
|
|
|
|
|
/* showProcess() { |
|
|
|
|
|
|
|
let userId = store.getters.userInfo.id |
|
|
|
|
|
|
|
let baseUrl = window._CONFIG['domianURL'] |
|
|
|
|
|
|
|
baseUrl = baseUrl.replace('http', 'ws') |
|
|
|
|
|
|
|
let ws = new WebSocket(`${baseUrl}/uploadProcess/${userId}`) |
|
|
|
|
|
|
|
ws.onmessage = (e) => { |
|
|
|
|
|
|
|
this.ModalData = JSON.parse(e.data) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
},*/ |
|
|
|
|
|
|
|
// 上传文件 |
|
|
|
// 上传文件 |
|
|
|
handleChange(info) { |
|
|
|
handleChange(info) { |
|
|
|
if (info.file.status !== 'uploading') { |
|
|
|
if (info.file.status !== 'uploading') { |
|
|
@ -175,15 +165,8 @@ export default { |
|
|
|
this.ws.close() |
|
|
|
this.ws.close() |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCancel() { |
|
|
|
handleCancel() { |
|
|
|
console.log(4444) |
|
|
|
|
|
|
|
if(this.ModalData.closeable == 'false'){ |
|
|
|
|
|
|
|
this.btnState=!this.btnState |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.close() |
|
|
|
this.close() |
|
|
|
this.ws.close() |
|
|
|
this.ws.close() |
|
|
|
// this.close() |
|
|
|
|
|
|
|
// this.ws.close() |
|
|
|
|
|
|
|
// console.log(4444) |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
// 关闭提示标签 |
|
|
|
// 关闭提示标签 |
|
|
|
onClose(e) { |
|
|
|
onClose(e) { |
|
|
|