| | |
| | | <template> |
| | | <CardDialog title="AOD数据导入" :model-value="modelValue" :width="420" @changed="handleChange"> |
| | | <!-- <CardDialog title="AOD数据导入" :model-value="modelValue" :width="420" @changed="handleChange"> --> |
| | | <div class="download"> |
| | | <el-button @click="downloadTemplate" type="primary" class="el-button-custom" size="small" |
| | | v-loading="downloadLoading">下载模板</el-button> |
| | |
| | | <el-text class="mx-1" type="success">{{ successTipMsg }}</el-text> |
| | | </el-form-item> |
| | | </el-form> |
| | | </CardDialog> |
| | | <!-- </CardDialog> --> |
| | | </template> |
| | | <script setup> |
| | | import { ref, watch, defineProps, defineEmits } from 'vue'; |
| | | import gridApi from '@/api/gridApi'; |
| | | import aodApi from '@/api/aodApi'; |
| | | import { dayjs, ElMessage } from 'element-plus'; |
| | | import { useFormConfirm } from '@/composables/formConfirm'; |
| | | |
| | |
| | | |
| | | // 通过网格组和时间 查询 在这两个参数条件下是否有网格数据,并提示在界面中有或者没有 |
| | | const checkEmpty = () => { |
| | | gridApi.fetchGridAod(gridGroup.value.id, dayjs(formObj.value.dateTime).format('YYYY-MM-DD HH:mm:ss')).then(res => { |
| | | aodApi.fetchAOD(gridGroup.value.id, dayjs(formObj.value.dateTime).format('YYYY-MM-DD HH:mm:ss')).then(res => { |
| | | if (res.data && res.data.length > 0) { |
| | | hasGridAod.value = true; |
| | | } else { |