车辆管理
parent
2566c4f57c
commit
18c7cbecc7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue