Просмотр исходного кода

招聘会管理删除按钮去除

Xiao_123 7 месяцев назад
Родитель
Сommit
d234a53222
1 измененных файлов с 29 добавлено и 29 удалено
  1. 29 29
      src/views/menduner/system/jobFair/manage/index.vue

+ 29 - 29
src/views/menduner/system/jobFair/manage/index.vue

@@ -98,7 +98,7 @@
         <template #default="scope">
           <el-button link type="primary" @click="openDetail(scope.row.id)">白名单</el-button>
           <el-button link type="primary" @click="openForm('update', scope.row.id)" v-hasPermi="['menduner:system:job-fair:update']">编辑</el-button>
-          <el-button link type="danger" @click="handleDelete(scope.row.id)" v-hasPermi="['menduner:system:job-fair:delete']">删除</el-button>
+          <!-- <el-button link type="danger" @click="handleDelete(scope.row.id)" v-hasPermi="['menduner:system:job-fair:delete']">删除</el-button> -->
         </template>
       </el-table-column>
     </el-table>
@@ -117,7 +117,7 @@
 
 <script setup lang="ts">
 import { dateFormatter } from '@/utils/formatTime'
-import download from '@/utils/download'
+// import download from '@/utils/download'
 import { DICT_TYPE } from '@/utils/dict'
 import { JobFairManageApi, JobFairManageVO } from '@/api/menduner/system/jobFair/manage'
 import JobFairManageForm from './JobFairManageForm.vue'
@@ -125,8 +125,8 @@ import JobFairManageForm from './JobFairManageForm.vue'
 /** 招聘会管理 列表 */
 defineOptions({ name: 'JobFair' })
 
-const message = useMessage() // 消息弹窗
-const { t } = useI18n() // 国际化
+// const message = useMessage() // 消息弹窗
+// const { t } = useI18n() // 国际化
 
 const loading = ref(true) // 列表的加载中
 const list = ref<JobFairManageVO[]>([]) // 列表的数据
@@ -143,7 +143,7 @@ const queryParams = reactive({
   createTime: []
 })
 const queryFormRef = ref() // 搜索的表单
-const exportLoading = ref(false) // 导出的加载中
+// const exportLoading = ref(false) // 导出的加载中
 
 /** 查询列表 */
 const getList = async () => {
@@ -176,32 +176,32 @@ const openForm = (type: string, id?: number) => {
 }
 
 /** 删除按钮操作 */
-const handleDelete = async (id: number) => {
-  try {
-    // 删除的二次确认
-    await message.delConfirm()
-    // 发起删除
-    await JobFairManageApi.deleteJobFair(id)
-    message.success(t('common.delSuccess'))
-    // 刷新列表
-    await getList()
-  } catch {}
-}
+// const handleDelete = async (id: number) => {
+//   try {
+//     // 删除的二次确认
+//     await message.delConfirm()
+//     // 发起删除
+//     await JobFairManageApi.deleteJobFair(id)
+//     message.success(t('common.delSuccess'))
+//     // 刷新列表
+//     await getList()
+//   } catch {}
+// }
 
 /** 导出按钮操作 */
-const handleExport = async () => {
-  try {
-    // 导出的二次确认
-    await message.exportConfirm()
-    // 发起导出
-    exportLoading.value = true
-    const data = await JobFairManageApi.exportJobFair(queryParams)
-    download.excel(data, '招聘会管理.xls')
-  } catch {
-  } finally {
-    exportLoading.value = false
-  }
-}
+// const handleExport = async () => {
+//   try {
+//     // 导出的二次确认
+//     await message.exportConfirm()
+//     // 发起导出
+//     exportLoading.value = true
+//     const data = await JobFairManageApi.exportJobFair(queryParams)
+//     download.excel(data, '招聘会管理.xls')
+//   } catch {
+//   } finally {
+//     exportLoading.value = false
+//   }
+// }
 
 /** 打开招聘会详情 */
 const { push } = useRouter()