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>
<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>
</a-modal>
</template>
@ -76,15 +76,16 @@ export default {
visible: false,
model: {},
//
closeable: 'true',
uploadFinished: false,
ModalData: {
uploaded: '0',
isVisible: 'false',
records: '0',
status: '判断文件结构',
closeable:'false'
// closeable: 'false'
},
btnState:false,
btnState: false,
form: this.$form.createForm(this),
url:
{
@ -100,7 +101,7 @@ export default {
'Los Angeles battles huge wildfires.'
],
stateFontColor: 'stateFontColor',
ws:{}
ws: {}
}
},
@ -108,17 +109,6 @@ export default {
},
computed: {},
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) {
if (info.file.status !== 'uploading') {
@ -175,15 +165,8 @@ export default {
this.ws.close()
},
handleCancel() {
console.log(4444)
if(this.ModalData.closeable == 'false'){
this.btnState=!this.btnState
}
this.close()
this.ws.close()
// this.close()
// this.ws.close()
// console.log(4444)
},
//
onClose(e) {

Loading…
Cancel
Save