调整待审核列表
This commit is contained in:
parent
4f0a9d7068
commit
796677d8e6
@ -28,3 +28,9 @@ export function apiFlowStatus(params: any) {
|
|||||||
export function apiFlowDetil(params: any) {
|
export function apiFlowDetil(params: any) {
|
||||||
return request.get({ url: "/flow/view", params });
|
return request.get({ url: "/flow/view", params });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 任务
|
||||||
|
// 任务审批(待审批列表)
|
||||||
|
export function apiApproveList(params: any) {
|
||||||
|
return request.get({ url: "/approve.approve/lists", params });
|
||||||
|
}
|
@ -1,19 +1,23 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
<el-card class="!border-none mb-4" shadow="never">
|
||||||
|
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||||
|
<el-form-item label="任务名称" prop="name">
|
||||||
|
<el-input
|
||||||
|
class="w-[280px]"
|
||||||
|
v-model="queryParams.name"
|
||||||
|
clearable
|
||||||
|
placeholder="请输入任务名称"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||||
|
<el-button @click="resetParams">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</el-card>
|
||||||
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
||||||
<!-- <el-button v-perms="['flow/add']" type="primary" @click="handleAdd">
|
|
||||||
<template #icon>
|
|
||||||
<icon name="el-icon-Plus" />
|
|
||||||
</template>
|
|
||||||
新增
|
|
||||||
</el-button> -->
|
|
||||||
<!-- <el-button
|
|
||||||
v-perms="['flow/delete']"
|
|
||||||
:disabled="!selectData.length"
|
|
||||||
@click="handleDelete(selectData)"
|
|
||||||
>
|
|
||||||
删除
|
|
||||||
</el-button> -->
|
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||||
<el-table-column label="ID" prop="id" />
|
<el-table-column label="ID" prop="id" />
|
||||||
@ -45,27 +49,6 @@
|
|||||||
<span v-if="row.status == 0" style="color: #e6a23c">未审核</span>
|
<span v-if="row.status == 0" style="color: #e6a23c">未审核</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column label="状态" prop="status" show-overflow-tooltip>
|
|
||||||
<template #default="{ row }">
|
|
||||||
<span v-if="row.status == 1">启用</span>
|
|
||||||
<span v-if="row.status == 0">禁用</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column> -->
|
|
||||||
<!-- <el-table-column
|
|
||||||
label="账号状态"
|
|
||||||
min-width="100"
|
|
||||||
v-perms="['auth.admin/edit']"
|
|
||||||
>
|
|
||||||
<template #default="{ row }">
|
|
||||||
<el-switch
|
|
||||||
v-if="row.root != 1"
|
|
||||||
v-model="row.status"
|
|
||||||
:active-value="1"
|
|
||||||
:inactive-value="0"
|
|
||||||
@change="changeStatus(row)"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</el-table-column> -->
|
|
||||||
<el-table-column label="操作" width="120" fixed="right">
|
<el-table-column label="操作" width="120" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button
|
<el-button
|
||||||
@ -85,14 +68,6 @@
|
|||||||
>
|
>
|
||||||
详情
|
详情
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- <el-button
|
|
||||||
v-perms="['flow/delete']"
|
|
||||||
type="danger"
|
|
||||||
link
|
|
||||||
@click="handleDelete(row.id)"
|
|
||||||
>
|
|
||||||
删除
|
|
||||||
</el-button> -->
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -111,10 +86,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup name="flowLists">
|
<script lang="ts" setup name="flowLists">
|
||||||
import { usePaging } from "@/hooks/usePaging";
|
import { usePaging } from "@/hooks/usePaging";
|
||||||
import { useDictData } from "@/hooks/useDictOptions";
|
import { useDictData } from "@/hooks/useDictOptions";
|
||||||
import { apiFlowLists, apiFlowDetil, apiFlowStatus } from "@/api/examined";
|
import { apiApproveList } from "@/api/examined";
|
||||||
import { timeFormat } from "@/utils/util";
|
import { timeFormat } from "@/utils/util";
|
||||||
import feedback from "@/utils/feedback";
|
import feedback from "@/utils/feedback";
|
||||||
import EditPopup from "./examined_popup.vue";
|
import EditPopup from "./examined_popup.vue";
|
||||||
@ -151,7 +126,7 @@ const { dictData } = useDictData("");
|
|||||||
|
|
||||||
// 分页相关
|
// 分页相关
|
||||||
const { pager, getLists, resetParams, resetPage } = usePaging({
|
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||||
fetchFun: apiFlowLists,
|
fetchFun: apiApproveList,
|
||||||
params: queryParams,
|
params: queryParams,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -169,11 +144,6 @@ const handleEdit = async (data: any, type = "edit") => {
|
|||||||
editRef.value?.open(type);
|
editRef.value?.open(type);
|
||||||
editRef.value?.setFormData(data);
|
editRef.value?.setFormData(data);
|
||||||
};
|
};
|
||||||
// 状态
|
|
||||||
const changeStatus = (row: any) => {
|
|
||||||
console.log(row.status);
|
|
||||||
apiFlowStatus({ id: row.id, status: row.status });
|
|
||||||
};
|
|
||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
// const handleDelete = async (id: number | any[]) => {
|
// const handleDelete = async (id: number | any[]) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user