IDCDatasync-vue/src/views/fileManage/modules/uploadModal.vue
2025-02-21 23:44:28 +08:00

78 lines
1.5 KiB
Vue

<template>
<a-modal wrap
:title="title"
:width="800"
:visible="visible"
:confirmLoading="confirmLoading"
@ok="handleOk"
@cancel="handleCancel"
okText="保存"
cancelText="关闭">
<a-spin :spinning="confirmLoading">
<SliceUpload
ref="technicalUpload"
:box-height="50"
:max-file="9999"
:can-download="false"
accept=".docx,.doc,.png,jpg,.pdf,.mp4"
:dirId="dirId"
/>
</a-spin>
</a-modal>
</template>
<script>
import moment from "moment"
import JCron from "@/components/jeecg/JCron";
import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
import SliceUpload from './SliceUpload'
export default {
name: "uploadModal",
components: {
JCron,
JSelectMultiple,
SliceUpload
},
data () {
return {
title:"操作",
buttonStyle: 'solid',
visible: false,
confirmLoading: false,
strategys:[],
dirId:""
}
},
created () {
},
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 () {
this.close();
},
handleCancel () {
this.close()
},
}
}
</script>
<style scoped>
.disabled{
pointer-events: none;
}
</style>