|
@@ -23,9 +23,18 @@
|
|
|
</div>
|
|
|
<div class="part-box">
|
|
|
<a-table :columns="columns" :data="dataList" :pagination="pagination">
|
|
|
- <!-- <template #roles="{ record }">
|
|
|
- {{ getRoleLabel(record.roles) }}
|
|
|
- </template> -->
|
|
|
+ <template #enable="{ record }">
|
|
|
+ {{ getAbleLabel(record.enable) }}
|
|
|
+ </template>
|
|
|
+ <template #selfApplyStartTime="{ record }">
|
|
|
+ {{ timestampFilter(record.selfApplyStartTime) }}
|
|
|
+ </template>
|
|
|
+ <template #openApplyStartTime="{ record }">
|
|
|
+ {{ timestampFilter(record.openApplyStartTime) }}
|
|
|
+ </template>
|
|
|
+ <template #updateTime="{ record }">
|
|
|
+ {{ timestampFilter(record.updateTime) }}
|
|
|
+ </template>
|
|
|
<template #action="{ record }">
|
|
|
<a-button type="text" class="btn-primary" @click="toEdit(record)"
|
|
|
>编辑</a-button
|
|
@@ -47,15 +56,15 @@
|
|
|
import { ableTask, taskListPage } from '@/api/order';
|
|
|
import { TaskItem } from '@/api/types/order';
|
|
|
import useTable from '@/hooks/table';
|
|
|
-
|
|
|
- import { useUserStore } from '@/store';
|
|
|
+ import useDictOption from '@/hooks/dict-option';
|
|
|
+ import { timestampFilter } from '@/utils/filter';
|
|
|
import { modalConfirm } from '@/utils/arco';
|
|
|
|
|
|
defineOptions({
|
|
|
name: 'TaskManage',
|
|
|
});
|
|
|
|
|
|
- const userStore = useUserStore();
|
|
|
+ const { getLabel: getAbleLabel } = useDictOption('ABLE_TYPE');
|
|
|
|
|
|
const searchModel = reactive({
|
|
|
name: '',
|
|
@@ -63,35 +72,41 @@
|
|
|
|
|
|
const columns: TableColumnData[] = [
|
|
|
{
|
|
|
- title: '用户名/工号',
|
|
|
- dataIndex: 'loginName',
|
|
|
+ title: '任务ID',
|
|
|
+ dataIndex: 'id',
|
|
|
},
|
|
|
{
|
|
|
- title: '姓名',
|
|
|
- dataIndex: 'realName',
|
|
|
+ title: '任务名称',
|
|
|
+ dataIndex: 'name',
|
|
|
},
|
|
|
{
|
|
|
- title: '手机号',
|
|
|
- dataIndex: 'mobileNumber',
|
|
|
+ title: '开启预约时间',
|
|
|
+ dataIndex: 'selfApplyStartTime',
|
|
|
+ slotName: 'selfApplyStartTime',
|
|
|
+ width: 170,
|
|
|
},
|
|
|
{
|
|
|
- title: '所在机构',
|
|
|
- dataIndex: 'orgName',
|
|
|
+ title: '自由预约时间',
|
|
|
+ dataIndex: 'openApplyStartTime',
|
|
|
+ slotName: 'openApplyStartTime',
|
|
|
+ width: 170,
|
|
|
},
|
|
|
{
|
|
|
- title: '角色',
|
|
|
- dataIndex: 'roles',
|
|
|
- slotName: 'roles',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '状态',
|
|
|
+ title: '任务状态',
|
|
|
dataIndex: 'enable',
|
|
|
slotName: 'enable',
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '更新时间',
|
|
|
+ dataIndex: 'updateTime',
|
|
|
+ slotName: 'updateTime',
|
|
|
+ width: 170,
|
|
|
},
|
|
|
{
|
|
|
title: '操作',
|
|
|
slotName: 'action',
|
|
|
- width: 220,
|
|
|
+ width: 120,
|
|
|
fixed: 'right',
|
|
|
cellClass: 'action-column',
|
|
|
},
|