dev^2
吱屋 1 year ago
parent 6c3d0c6836
commit bc707e83c3
  1. 27
      ant-design-vue-jeecg/src/views/modulex/modules/ModulexImport.vue

@ -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,15 +76,16 @@ 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),
url: url:
{ {
@ -100,7 +101,7 @@ export default {
'Los Angeles battles huge wildfires.' 'Los Angeles battles huge wildfires.'
], ],
stateFontColor: 'stateFontColor', stateFontColor: 'stateFontColor',
ws:{} ws: {}
} }
}, },
@ -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) {

Loading…
Cancel
Save