|
|
|
|
@ -23,7 +23,7 @@ |
|
|
|
|
</template> |
|
|
|
|
<template #menu-right> </template> |
|
|
|
|
<template #menu="scope"> |
|
|
|
|
<el-button v-if="scope.row.stationStatus == '0'" type="text" @click="handleEdit(scope.row)" |
|
|
|
|
<el-button v-if="scope.row.stationStatus == '0'||scope.row.stationStatus == '2'" type="text" @click="handleEdit(scope.row)" |
|
|
|
|
>占用</el-button |
|
|
|
|
> |
|
|
|
|
<el-button v-if="scope.row.stationStatus == '1'" type="text" @click="handleEdit(scope.row)" |
|
|
|
|
@ -38,6 +38,9 @@ |
|
|
|
|
<el-tag v-if="scope.row.stationStatus == '1'" type="danger" @click="handleEdit(row)" |
|
|
|
|
>占用</el-tag |
|
|
|
|
> |
|
|
|
|
<el-tag v-if="scope.row.stationStatus == '2'" type="danger" @click="handleEdit(row)" |
|
|
|
|
>预占用</el-tag |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
<template #stationPosition="scope"> {{ scope.row.stationPosition }}楼 </template> |
|
|
|
|
</avue-crud> |
|
|
|
|
@ -177,6 +180,10 @@ export default { |
|
|
|
|
label: '闲置', |
|
|
|
|
value: 0, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '预占用', |
|
|
|
|
value: 2, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
|