IDCDatasync-vue/src/views/datalink/modules/uploadModal.vue

78 lines
1.5 KiB
Vue
Raw Normal View History

<template>
<a-modal
:title="title"
:width="800"
:visible="visible"
:confirmLoading="confirmLoading"
@ok="handleOk"
@cancel="handleCancel"
okText="保存"
cancelText="关闭">
<a-spin :spinning="confirmLoading">
2025-02-20 17:22:54 +08:00
<SliceUpload
ref="technicalUpload"
:box-height="50"
:max-file="9999"
:can-download="false"
accept=".csv,.txt"
:dataLinkType='dataLinkType'
/>
</a-spin>
</a-modal>
</template>
<script>
import moment from "moment"
import JCron from "@/components/jeecg/JCron";
import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
2025-02-20 17:22:54 +08:00
import SliceUpload from './SliceUpload'
export default {
2025-02-20 17:22:54 +08:00
name: "uploadModal",
components: {
JCron,
2025-02-20 17:22:54 +08:00
JSelectMultiple,
SliceUpload
},
data () {
return {
title:"操作",
buttonStyle: 'solid',
visible: false,
confirmLoading: false,
strategys:[],
2025-02-20 17:22:54 +08:00
dataLinkType:''
}
},
created () {
2025-02-20 17:22:54 +08:00
},
methods: {
add () {
this.visible =true;
},
onOk(value) {
this.model.startDate = moment(value[0],dateFormat);
this.model.endDate = moment(value[1],dateFormat);
},
close () {
this.$emit('close');
this.visible = false;
},
handleOk () {
2025-02-20 17:22:54 +08:00
this.close();
},
handleCancel () {
this.close()
},
}
}
</script>
<style scoped>
.disabled{
pointer-events: none;
}
</style>