前端展示优化,选择的时候展示为绿色按钮

master
DongZeLiang 2023-12-03 00:38:47 +08:00
parent f4a8d06943
commit 5f31da6db2
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,8 @@
<el-tag :type="!vehicle.online ? 'info' : 'success'" style="padding-left: 0; padding-right: 0">
{{ vehicle.vin }}
</el-tag>
<el-button style="float: right;" @click="checkVin = vehicle.vin" size="mini" :disabled="!vehicle.online">选择</el-button>
<el-button style="float: right;" :type="checkVin === vehicle.vin ? 'success' : ''"
@click="checkVin = vehicle.vin" size="mini" :disabled="!vehicle.online">{{checkVin === vehicle.vin ? "已选择" : "选择"}}</el-button>
<span style="float: right; color: rgba(255,255,255,0)">|</span>
<el-button v-if="!vehicle.online" style="float: right;" size="mini" @click="clientInit(vehicle.vin)">
上线
@ -308,6 +309,8 @@ export default {
*/
vehicleUnifiedOffline(){
unifiedOffline().then(response => {
// 线
this.checkVin = null;
this.$notify({
title: '操作提示',
message: response.msg,