车辆管理

dev.breakdown
lwj 2024-09-26 14:35:31 +08:00
parent 2566c4f57c
commit 18c7cbecc7
1 changed files with 46 additions and 1 deletions

View File

@ -61,6 +61,15 @@
>
删除
</el-button>
<el-button
type="danger"
icon="el-icon-delete"
size="mini"
@click="findStrategy(scope.row)"
>
配置策略
</el-button>
</template>
</el-table-column>
</el-table>
@ -121,13 +130,34 @@
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
<el-dialog :visible.sync="strategy">
<el-select v-model="carStrategy.strategyId" placeholder="请选择">
<el-option
v-for="item in strategyList"
:key="item.strategyName"
:label="item.strategyName"
:value="item.strategyName">
</el-option>
</el-select>
<el-button @click="addCarStrategy()">
确定
</el-button>
</el-dialog>
</div>
</template>
<script>
import {listManager , getManagerId , addManager,updateManager,delManager} from "@/api/car/ListManager";
import { findStrategyList } from '@/api/platform/strategy'
export default {
@ -136,6 +166,12 @@ import {listManager , getManagerId , addManager,updateManager,delManager} from "
props: {},
data() {
return {
carStrategy:{
sysCarId:'',
strategyId:''
},
strategy:false,
strategyList:[],
total: 0,
open: false,
form: {},
@ -156,6 +192,15 @@ import {listManager , getManagerId , addManager,updateManager,delManager} from "
};
},
methods: {
//
findStrategy(row){
findStrategyList(3).then(res=>{
this.strategyList=res.data.rows;
})
this.carStrategy.sysCarId=row.id;
this.strategy=true;
},
toVehicleData(row){
const carVin = row.carVin;
alert(carVin);