|
@@ -1,187 +1,250 @@
|
|
<template>
|
|
<template>
|
|
<el-skeleton :loading="loading" animated>
|
|
<el-skeleton :loading="loading" animated>
|
|
- <ContentWrap>
|
|
|
|
- <!-- 搜索工作栏 -->
|
|
|
|
- <el-form
|
|
|
|
- class="-mb-15px"
|
|
|
|
- :model="queryParams"
|
|
|
|
- ref="queryFormRef"
|
|
|
|
- :inline="true"
|
|
|
|
- label-width="68px">
|
|
|
|
- <el-form-item label="标本ID" prop="infoId">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.infoId"
|
|
|
|
- placeholder="标本ID"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="中文名称" prop="chineseName">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.chineseName"
|
|
|
|
- placeholder="请输入中文名称"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="标本编号" prop="specimenNumber">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.specimenNumber"
|
|
|
|
- placeholder="请输入申请出库的标本编号"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="申请日期" prop="applicationDate">
|
|
|
|
- <el-date-picker
|
|
|
|
- v-model="queryParams.applicationDate"
|
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
- type="daterange"
|
|
|
|
- start-placeholder="开始日期"
|
|
|
|
- end-placeholder="结束日期"
|
|
|
|
- :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
|
|
|
- class="!w-220px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="审批状态" prop="status">
|
|
|
|
- <el-select
|
|
|
|
- v-model="queryParams.status"
|
|
|
|
- placeholder="请选择审批状态"
|
|
|
|
- clearable
|
|
|
|
- class="!w-240px"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="dict in getIntDictOptions(DICT_TYPE. MUSEUMS_APPROAL_STATUS)"
|
|
|
|
- :key="dict.value"
|
|
|
|
- :label="dict.label"
|
|
|
|
- :value="dict.value" />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="标本状态" prop="sampleStatus">
|
|
|
|
- <el-select
|
|
|
|
- v-model="queryParams.sampleStatus"
|
|
|
|
- placeholder="请选择标本状态"
|
|
|
|
- clearable
|
|
|
|
- class="!w-240px"
|
|
|
|
- >
|
|
|
|
- <el-option label="请选择字典生成" value="" />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
|
|
- <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- plain
|
|
|
|
- @click="openForm('create')"
|
|
|
|
- v-hasPermi="['museums:specimen-outbound:create']"
|
|
|
|
- >
|
|
|
|
- <Icon icon="ep:plus" class="mr-5px" /> 新增申请出库
|
|
|
|
- </el-button>
|
|
|
|
- <el-button
|
|
|
|
- type="success"
|
|
|
|
- plain
|
|
|
|
- @click="handleExport"
|
|
|
|
- :loading="exportLoading"
|
|
|
|
- v-hasPermi="['museums:specimen-outbound:export']"
|
|
|
|
- >
|
|
|
|
- <Icon icon="ep:download" class="mr-5px" /> 导出
|
|
|
|
- </el-button>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- </ContentWrap>
|
|
|
|
-
|
|
|
|
- <!-- 列表 -->
|
|
|
|
- <ContentWrap>
|
|
|
|
- <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
|
|
|
- <el-table-column label="序号" align="center" prop="id" />
|
|
|
|
-<!-- <el-table-column label="标本ID" align="center" prop="infoId" />-->
|
|
|
|
- <el-table-column label="标本编号" align="center" prop="specimenNumber" />
|
|
|
|
- <el-table-column label="中文名称" align="center" prop="chineseName" />
|
|
|
|
- <el-table-column label="申请人(单位)" align="center" width="120px" prop="applicantName" />
|
|
|
|
- <el-table-column
|
|
|
|
- label="申请日期"
|
|
|
|
- align="center"
|
|
|
|
- prop="applicationDate"
|
|
|
|
- :formatter="dateFormatter"
|
|
|
|
- width="180px"
|
|
|
|
- />
|
|
|
|
- <el-table-column label="用途" align="center" prop="applicationUsage" />
|
|
|
|
-<!-- <el-table-column label="审批状态" align="center" prop="status" />-->
|
|
|
|
- <el-table-column
|
|
|
|
- label="出库时间"
|
|
|
|
- align="center"
|
|
|
|
- prop="outgoingTime"
|
|
|
|
- :formatter="dateFormatter"
|
|
|
|
- width="180px"
|
|
|
|
- />
|
|
|
|
-<!-- <el-table-column-->
|
|
|
|
-<!-- label="退还日期"-->
|
|
|
|
-<!-- align="center"-->
|
|
|
|
-<!-- prop="returnDate"-->
|
|
|
|
-<!-- :formatter="dateFormatter"-->
|
|
|
|
-<!-- width="180px"-->
|
|
|
|
-<!-- />-->
|
|
|
|
-<!-- <el-table-column label="标本情况" align="center" prop="specimenCondition" />-->
|
|
|
|
- <el-table-column label="申请附件" align="center" prop="attachments"/>
|
|
|
|
- <el-table-column label="审批状态" align="center" prop="sampleStatus" >
|
|
|
|
- <template #default="scope">
|
|
|
|
- <dict-tag :type="DICT_TYPE.MUSEUMS_APPROAL_STATUS" :value="scope.row.status" />
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="操作" align="center" min-width="150px">
|
|
|
|
- <template #default="scope" >
|
|
|
|
|
|
+ <ContentWrap>
|
|
|
|
+ <!-- 搜索工作栏 -->
|
|
|
|
+ <el-form
|
|
|
|
+ class="-mb-15px"
|
|
|
|
+ :model="queryParams"
|
|
|
|
+ ref="queryFormRef"
|
|
|
|
+ :inline="true"
|
|
|
|
+ label-width="68px">
|
|
|
|
+ <el-form-item label="标本ID" prop="infoId">
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="queryParams.infoId"
|
|
|
|
+ placeholder="标本ID"
|
|
|
|
+ clearable
|
|
|
|
+ @keyup.enter="handleQuery"
|
|
|
|
+ class="!w-240px"
|
|
|
|
+ />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="中文名称" prop="chineseName">
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="queryParams.chineseName"
|
|
|
|
+ placeholder="请输入中文名称"
|
|
|
|
+ clearable
|
|
|
|
+ @keyup.enter="handleQuery"
|
|
|
|
+ class="!w-240px"
|
|
|
|
+ />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="标本编号" prop="specimenNumber">
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="queryParams.specimenNumber"
|
|
|
|
+ placeholder="请输入申请出库的标本编号"
|
|
|
|
+ clearable
|
|
|
|
+ @keyup.enter="handleQuery"
|
|
|
|
+ class="!w-240px"
|
|
|
|
+ />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="申请日期" prop="applicationDate">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="queryParams.applicationDate"
|
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
+ type="daterange"
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
+ :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
|
|
|
+ class="!w-220px"
|
|
|
|
+ />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="审批状态" prop="status">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="queryParams.status"
|
|
|
|
+ placeholder="请选择审批状态"
|
|
|
|
+ clearable
|
|
|
|
+ class="!w-240px"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in getIntDictOptions(DICT_TYPE. MUSEUMS_APPROAL_STATUS)"
|
|
|
|
+ :key="dict.value"
|
|
|
|
+ :label="dict.label"
|
|
|
|
+ :value="dict.value"/>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="标本状态" prop="sampleStatus">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="queryParams.sampleStatus"
|
|
|
|
+ placeholder="请选择标本状态"
|
|
|
|
+ clearable
|
|
|
|
+ class="!w-240px"
|
|
|
|
+ >
|
|
|
|
+ <el-option label="请选择字典生成" value=""/>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button @click="handleQuery">
|
|
|
|
+ <Icon icon="ep:search" class="mr-5px"/>
|
|
|
|
+ 搜索
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button @click="resetQuery">
|
|
|
|
+ <Icon icon="ep:refresh" class="mr-5px"/>
|
|
|
|
+ 重置
|
|
|
|
+ </el-button>
|
|
<el-button
|
|
<el-button
|
|
- link
|
|
|
|
type="primary"
|
|
type="primary"
|
|
- @click="openForm('update', scope.row.id)"
|
|
|
|
- v-hasPermi="['museums:specimen-outbound:update']"
|
|
|
|
|
|
+ plain
|
|
|
|
+ @click="openForm('create')"
|
|
|
|
+ v-hasPermi="['museums:specimen-outbound:create']"
|
|
>
|
|
>
|
|
- 编辑
|
|
|
|
|
|
+ <Icon icon="ep:plus" class="mr-5px"/>
|
|
|
|
+ 新增标本出库申请
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
- link
|
|
|
|
- type="danger"
|
|
|
|
- @click="handleDelete(scope.row.id)"
|
|
|
|
- v-hasPermi="['museums:specimen-outbound:delete']"
|
|
|
|
|
|
+ type="success"
|
|
|
|
+ plain
|
|
|
|
+ @click="handleExport"
|
|
|
|
+ :loading="exportLoading"
|
|
|
|
+ v-hasPermi="['museums:specimen-outbound:export']"
|
|
>
|
|
>
|
|
- 删除
|
|
|
|
|
|
+ <Icon icon="ep:download" class="mr-5px"/>
|
|
|
|
+ 导出
|
|
</el-button>
|
|
</el-button>
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- <!-- 分页 -->
|
|
|
|
- <Pagination
|
|
|
|
- :total="total"
|
|
|
|
- v-model:page="queryParams.pageNo"
|
|
|
|
- v-model:limit="queryParams.pageSize"
|
|
|
|
- @pagination="getList"
|
|
|
|
- />
|
|
|
|
- </ContentWrap>
|
|
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </ContentWrap>
|
|
|
|
+
|
|
|
|
+ <!-- 列表 -->
|
|
|
|
+ <ContentWrap>
|
|
|
|
+ <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
|
|
|
+ <el-table-column label="序号" align="center" prop="id"/>
|
|
|
|
+ <!-- <el-table-column label="标本ID" align="center" prop="infoId" />-->
|
|
|
|
+ <el-table-column label="标本编号" align="center" prop="specimenNumber"/>
|
|
|
|
+ <el-table-column label="中文名称" align="center" prop="chineseName"/>
|
|
|
|
+ <el-table-column label="申请人(单位)" align="center" width="120px" prop="applicantName"/>
|
|
|
|
+ <el-table-column label="用途" align="center" prop="applicationUsage"/>
|
|
|
|
+ <el-table-column label="申请附件" align="center" prop="attachments">
|
|
|
|
+ <template #default="{ row }">
|
|
|
|
+ <div v-if="row.attachments">
|
|
|
|
+ <el-image
|
|
|
|
+ v-if="row.type && row.type.includes('image')"
|
|
|
|
+ class="h-80px w-80px"
|
|
|
|
+ lazy
|
|
|
|
+ :src="row.attachments"
|
|
|
|
+ :preview-src-list="[row.attachments]"
|
|
|
|
+ preview-teleported
|
|
|
|
+ fit="cover"
|
|
|
|
+ />
|
|
|
|
+ <el-link
|
|
|
|
+ v-else-if="row.type && row.type.includes('pdf')"
|
|
|
|
+ type="primary"
|
|
|
|
+ :href="row.attachments"
|
|
|
|
+ :underline="false"
|
|
|
|
+ target="_blank"
|
|
|
|
+ >预览</el-link
|
|
|
|
+ >
|
|
|
|
+ <el-link v-else type="primary" download :href="row.url" :underline="false" target="_blank"
|
|
|
|
+ >下载</el-link
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="申请日期"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="applicationDate"
|
|
|
|
+ :formatter="dateFormatter"
|
|
|
|
+ width="180px"
|
|
|
|
+ />
|
|
|
|
+
|
|
|
|
+ <!-- <el-table-column label="审批状态" align="center" prop="status" />-->
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="出库时间"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="outgoingTime"
|
|
|
|
+ :formatter="dateFormatter"
|
|
|
|
+ width="180px"
|
|
|
|
+ />
|
|
|
|
+ <!-- <el-table-column label="申请附件" align="center" prop="url">-->
|
|
|
|
+ <!-- <template #default="{ row }">-->
|
|
|
|
+ <!-- <el-image-->
|
|
|
|
+ <!-- v-if="row.type.includes('image')"-->
|
|
|
|
+ <!-- class="h-80px w-80px"-->
|
|
|
|
+ <!-- lazy-->
|
|
|
|
+ <!-- :src="row.url"-->
|
|
|
|
+ <!-- :preview-src-list="[row.url]"-->
|
|
|
|
+ <!-- preview-teleported-->
|
|
|
|
+ <!-- fit="cover"-->
|
|
|
|
+ <!-- />-->
|
|
|
|
+ <!-- <el-link-->
|
|
|
|
+ <!-- v-else-if="row.type.includes('pdf')"-->
|
|
|
|
+ <!-- type="primary"-->
|
|
|
|
+ <!-- :href="row.url"-->
|
|
|
|
+ <!-- :underline="false"-->
|
|
|
|
+ <!-- target="_blank"-->
|
|
|
|
+ <!-- >预览</el-link-->
|
|
|
|
+ <!-- >-->
|
|
|
|
+ <!-- <el-link v-else type="primary" download :href="row.url" :underline="false" target="_blank"-->
|
|
|
|
+ <!-- >下载</el-link-->
|
|
|
|
+ <!-- >-->
|
|
|
|
+ <!-- </template>-->
|
|
|
|
+ <!-- </el-table-column>-->
|
|
|
|
+ <el-table-column label="审批状态" align="center" prop="sampleStatus">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <dict-tag :type="DICT_TYPE.MUSEUMS_APPROAL_STATUS" :value="scope.row.status"/>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="操作" align="center" min-width="150px">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <!-- 只有当记录未被审批或驳回时,才显示编辑按钮 -->
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="scope.row.status !== 1 && scope.row.status !== 3 && scope.row.status !== 4"
|
|
|
|
+ link
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="openForm('update', scope.row.id)"
|
|
|
|
+ v-hasPermi="['museums:specimen-outbound:update']"
|
|
|
|
+ >
|
|
|
|
+ 编辑
|
|
|
|
+ </el-button>
|
|
|
|
|
|
- <!-- 表单弹窗:审批 -->
|
|
|
|
- <SpecimenOutboundForm ref="formRef" @success="getList" />
|
|
|
|
- <Approval ref="ApprovalRef" @success="getList" />
|
|
|
|
- </el-skeleton>
|
|
|
|
-</template>
|
|
|
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="scope.row.status !== 0 && scope.row.status !== 1 && scope.row.status !== 3 && scope.row.status !== 4"
|
|
|
|
+ link
|
|
|
|
+ type="success"
|
|
|
|
+ @click="handleInitiative(scope.row.id)"
|
|
|
|
+ v-hasPermi="['museums:specimen-outbound:delete']"
|
|
|
|
+ >
|
|
|
|
+ 查看驳回原因
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ link
|
|
|
|
+ type="danger"
|
|
|
|
+ @click="handleDelete(scope.row.id)"
|
|
|
|
+ v-hasPermi="['museums:specimen-outbound:delete']"
|
|
|
|
+ >
|
|
|
|
+ 删除
|
|
|
|
+ </el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ <!-- 分页 -->
|
|
|
|
+ <Pagination
|
|
|
|
+ :total="total"
|
|
|
|
+ v-model:page="queryParams.pageNo"
|
|
|
|
+ v-model:limit="queryParams.pageSize"
|
|
|
|
+ @pagination="getList"
|
|
|
|
+ />
|
|
|
|
+ </ContentWrap>
|
|
|
|
|
|
|
|
+ <!-- 表单弹窗:编辑标本出库申请 -->
|
|
|
|
+ <SpecimenOutboundForm ref="formRef" @success="getList"/>
|
|
|
|
+ <InitiativeProcessInstance ref="initiativeFormRef" @success="getList" />
|
|
|
|
+ </el-skeleton>
|
|
|
|
+</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import {dateFormatter} from "@/utils/formatTime";
|
|
import {dateFormatter} from "@/utils/formatTime";
|
|
import download from '@/utils/download'
|
|
import download from '@/utils/download'
|
|
-import { SpecimenOutboundApi, SpecimenOutboundVO } from '@/api/museums/specimenoutbound'
|
|
|
|
-import Approval from "@/views/museums/specimenoutbound/approval.vue";
|
|
|
|
|
|
+import {SpecimenOutboundApi, SpecimenOutboundVO} from '@/api/museums/specimenoutbound'
|
|
import SpecimenOutboundForm from "@/views/museums/specimenoutbound/SpecimenOutboundForm.vue";
|
|
import SpecimenOutboundForm from "@/views/museums/specimenoutbound/SpecimenOutboundForm.vue";
|
|
|
|
+import InitiativeProcessInstance from '@/views/museums/specimenoutbound/OutboundForm/InitiativeProcessInstance.vue'
|
|
import {ref} from "vue";
|
|
import {ref} from "vue";
|
|
-defineOptions({ name: 'OutboundApplication' })
|
|
|
|
-import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
|
|
|
|
|
|
+// import type { Action } from 'element-plus'
|
|
|
|
+defineOptions({name: 'OutboundApplication'})
|
|
|
|
+import {getIntDictOptions, DICT_TYPE} from '@/utils/dict'
|
|
|
|
+
|
|
const message = useMessage() // 消息弹窗
|
|
const message = useMessage() // 消息弹窗
|
|
-const { t } = useI18n() // 国际化
|
|
|
|
|
|
+const {t} = useI18n() // 国际化
|
|
|
|
|
|
const loading = ref(true) // 列表的加载中
|
|
const loading = ref(true) // 列表的加载中
|
|
const list = ref<SpecimenOutboundVO[]>([]) // 列表的数据
|
|
const list = ref<SpecimenOutboundVO[]>([]) // 列表的数据
|
|
@@ -214,6 +277,7 @@ const exportLoading = ref(false) // 导出的加载中
|
|
const getList = async () => {
|
|
const getList = async () => {
|
|
loading.value = true
|
|
loading.value = true
|
|
try {
|
|
try {
|
|
|
|
+ console.log(queryParams)
|
|
const data = await SpecimenOutboundApi.getSpecimenOutboundPage(queryParams)
|
|
const data = await SpecimenOutboundApi.getSpecimenOutboundPage(queryParams)
|
|
list.value = data.list
|
|
list.value = data.list
|
|
total.value = data.total
|
|
total.value = data.total
|
|
@@ -239,9 +303,34 @@ const resetQuery = () => {
|
|
/** 添加/修改操作 */
|
|
/** 添加/修改操作 */
|
|
const formRef = ref()
|
|
const formRef = ref()
|
|
const openForm = (type: string, id?: number) => {
|
|
const openForm = (type: string, id?: number) => {
|
|
|
|
+
|
|
formRef.value.open(type, id)
|
|
formRef.value.open(type, id)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/** 查看驳回原因*/
|
|
|
|
+const initiativeFormRef = ref(null)
|
|
|
|
+const handleInitiative = (id) => {
|
|
|
|
+
|
|
|
|
+ initiativeFormRef.value.open('someType', id)
|
|
|
|
+}
|
|
|
|
+// const handleInitiative = async (id) => {
|
|
|
|
+// try {
|
|
|
|
+// const processInstanceId = await SpecimenOutboundApi.getSpecimenOutboundPage(id); // 假设这是你的 API 请求方法
|
|
|
|
+// console.log(processInstanceId)
|
|
|
|
+// ElMessageBox({
|
|
|
|
+// title: '驳回原因',
|
|
|
|
+// message: processInstanceId, // 使用从后端获取的驳回原因
|
|
|
|
+// dangerouslyUseHTMLString: true,
|
|
|
|
+// showConfirmButton: false,
|
|
|
|
+// customClass: 'custom-message-box',
|
|
|
|
+// });
|
|
|
|
+//
|
|
|
|
+// } catch (error) {
|
|
|
|
+// // 处理错误
|
|
|
|
+// console.error(error);
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
|
|
/** 删除按钮操作 */
|
|
/** 删除按钮操作 */
|
|
const handleDelete = async (id: number) => {
|
|
const handleDelete = async (id: number) => {
|
|
@@ -253,7 +342,8 @@ const handleDelete = async (id: number) => {
|
|
message.success(t('common.delSuccess'))
|
|
message.success(t('common.delSuccess'))
|
|
// 刷新列表
|
|
// 刷新列表
|
|
await getList()
|
|
await getList()
|
|
- } catch {}
|
|
|
|
|
|
+ } catch {
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/** 导出按钮操作 */
|
|
/** 导出按钮操作 */
|
|
@@ -278,3 +368,9 @@ onMounted(() => {
|
|
|
|
|
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
+.custom-message-box .el-message-box__content {
|
|
|
|
+ width: 800px !important;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+</style>
|