提交 04702ebc 作者: 温凯

fix:】1、接管记录缺少【当前控制用户】字段,2、退出接管和接管需做颜色区分

上级 b9d08a31
...@@ -11,17 +11,19 @@ ...@@ -11,17 +11,19 @@
<el-table-column :label="`${hangar ? '机库' : '无人机'}所属单位`" align="center" prop="deviceDeptName"></el-table-column> <el-table-column :label="`${hangar ? '机库' : '无人机'}所属单位`" align="center" prop="deviceDeptName"></el-table-column>
<el-table-column label="接管状态" align="center" prop="takeStats"> <el-table-column label="接管状态" align="center" prop="takeStats">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.takeStats ? '接管中' : '未接管'}} <div :class="scope.row.takeStats ?'color-aqua':'color-tomato'">
{{scope.row.takeStats ? '接管中' : '未接管'}}
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前控制单位" align="center" prop="takeUserName"></el-table-column> <el-table-column label="当前控制单位" align="center" prop="takeUserName"></el-table-column>
<el-table-column label="操作" align="center" prop="name"> <el-table-column label="操作" align="center" prop="name">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="onExit(scope.row)" type="text" size="small" v-if="scope.row.takeStats">退出接管</el-button> <el-buttonclas @click="onExit(scope.row)" type="text" class="color-aqua" size="small" v-if="scope.row.takeStats">退出接管</el-buttonclas>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination <el-pagination
layout="prev, pager, next" layout="prev, pager, next"
:total="page.total" :total="page.total"
...@@ -105,4 +107,12 @@ export default { ...@@ -105,4 +107,12 @@ export default {
} }
} }
} }
.dialog-content{
.color-aqua{
color: aqua;
}
.color-tomato{
color: #ff993f;
}
}
</style> </style>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论