状态更改
This commit is contained in:
parent
6794b01be0
commit
37612bbdb3
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<a-form :model="queryForm" ref="queryFormRef" layout="inline">
|
||||
<!-- <a-form :model="queryForm" ref="queryFormRef" layout="inline">
|
||||
<a-form-item field="dept_name" label="部门名称">
|
||||
<a-input v-model="queryForm.dept_name" placeholder="请输入部门名称" @press-enter="handleQuery" />
|
||||
</a-form-item>
|
||||
@ -16,9 +16,9 @@
|
||||
<a-button @click="handleResetQuery"><icon-loop /> 重置</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-form>
|
||||
|
||||
<a-divider />
|
||||
<a-divider />-->
|
||||
|
||||
<div class="action">
|
||||
<a-button v-has="'admin:sysDept:edit'" type="primary" @click="handleAdd()"><icon-plus /> 新增</a-button>
|
||||
|
||||
@ -92,8 +92,12 @@
|
||||
<template #dept_name="{ record }">
|
||||
{{ record.dept?.dept_name }}
|
||||
</template>
|
||||
<!-- 1:正常 2:审核中 3:审核失败) -->
|
||||
<template #status="{ record }">
|
||||
|
||||
|
||||
<a-tag v-if="record.status ==1" color="green">正常</a-tag>
|
||||
<a-tag v-else-if="record.status == 2" color="yellow">审核中</a-tag>
|
||||
<a-tag v-else-if="record.status == 3" color="red">审核失败</a-tag>
|
||||
</template>
|
||||
<template #created_at="{ record }">
|
||||
{{ parseTime(record.created_at) }}
|
||||
@ -533,8 +537,8 @@ function useTableList() {
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
dataIndex: 'status',
|
||||
slotName: 'status',
|
||||
dataIndex:'status',
|
||||
slotName:'status',
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user