西海岸:单兵无人机 申请按钮,更改为未申请状态才可申请

This commit is contained in:
guoyue 2022-09-22 16:04:24 +08:00
parent fe3eb0aa68
commit 10fdc587a2
1 changed files with 9 additions and 3 deletions

View File

@ -341,10 +341,12 @@
" :pagination="pagination" @change="handleTableChange"> " :pagination="pagination" @change="handleTableChange">
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.dataIndex === 'operation'"> <template v-if="column.dataIndex === 'operation'">
<a @click="goToApply(record)" style="margin-right: 10px"> <a-button @click="goToApply(record)" type="link" :disabled="record.state != 1">
申请 申请
</a> </a-button>
<a @click="showWrj(record)">详情</a> <a-button @click="showWrj(record)" type="link">
详情
</a-button>
</template> </template>
</template> </template>
</a-table> </a-table>
@ -1567,18 +1569,21 @@ const columns2 = ref([
title: '名称', title: '名称',
dataIndex: 'wrjName', dataIndex: 'wrjName',
key: 'wrjName', key: 'wrjName',
align: 'center'
}, },
{ {
title: '申请状态', title: '申请状态',
dataIndex: 'wrjState', dataIndex: 'wrjState',
width: '60%', width: '60%',
key: 'wrjState', key: 'wrjState',
align: 'center'
}, },
{ {
title: '操作', title: '操作',
dataIndex: 'operation', dataIndex: 'operation',
width: '20%', width: '20%',
key: 'wrjName', key: 'wrjName',
align: 'center'
}, },
]) ])
// const allClick = ref([]) // const allClick = ref([])
@ -2098,4 +2103,5 @@ video::-webkit-media-controls {
margin-top: 14px; margin-top: 14px;
cursor: pointer; cursor: pointer;
} }
</style> </style>