| | |
| | | type="primary" |
| | | plain |
| | | @click="openForm('create')" |
| | | v-hasPermi="['system:tenant:create']" |
| | | v-hasPermi="['model:pre-result:create']" |
| | | > |
| | | <Icon icon="ep:plus" class="mr-5px" /> |
| | | 新增 |
| | |
| | | link |
| | | type="primary" |
| | | @click="openForm('update', scope.row.id)" |
| | | v-hasPermi="['system:tenant:update']" |
| | | v-hasPermi="['model:pre-result:update']" |
| | | > |
| | | 编辑 |
| | | </el-button> |
| | |
| | | link |
| | | type="danger" |
| | | @click="handleDelete(scope.row.id)" |
| | | v-hasPermi="['system:tenant:delete']" |
| | | v-hasPermi="['model:pre-result:delete']" |
| | | > |
| | | 删除 |
| | | </el-button> |
| | |
| | | </ContentWrap> |
| | | |
| | | <!-- 表单弹窗:添加/修改 --> |
| | | <MmPredictItemForm ref="formRef" @success="getList" /> |
| | | <MmResultTableForm ref="formRef" @success="getList" /> |
| | | |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import MmPredictItemForm from './MmResultTableForm.vue' |
| | | import * as MmPredictItem from '@/api/model/pre/dm' |
| | | import MmResultTableForm from './MmResultTableForm.vue' |
| | | import * as MmResultTable from '@/api/model/pre/result' |
| | | |
| | | defineOptions({name: 'DataMmPredictItem'}) |
| | | defineOptions({name: 'DataMmResultTable'}) |
| | | |
| | | const message = useMessage() // 消息弹窗 |
| | | const {t} = useI18n() // 国际化 |
| | |
| | | const getList = async () => { |
| | | loading.value = true |
| | | try { |
| | | const page = await MmPredictItem.getMmPredictItemPage(queryParams) |
| | | const page = await MmResultTable.getMmResultTablePage(queryParams) |
| | | list.value = page.list |
| | | total.value = page.total |
| | | } finally { |
| | |
| | | // 删除的二次确认 |
| | | await message.delConfirm() |
| | | // 发起删除 |
| | | await MmPredictItem.deleteMmPredictItem(id) |
| | | await MmResultTable.deleteMmResultTable(id) |
| | | message.success(t('common.delSuccess')) |
| | | // 刷新列表 |
| | | await getList() |