批量操作
parent
58eda45f29
commit
6dd4e87011
|
@ -99,9 +99,9 @@
|
|||
<el-descriptions-item>
|
||||
<template slot="label">
|
||||
<i class="el-icon-office-building" />
|
||||
联系地址
|
||||
报文模板
|
||||
</template>
|
||||
江苏省苏州市吴中区吴中大道 1188 号
|
||||
{{vehicle.messageTemplateName}}
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</el-card>
|
||||
|
@ -262,6 +262,7 @@ import {
|
|||
} from '@/api/vehicle/instance'
|
||||
import { positionList } from '@/api/vehicle/position'
|
||||
import { create, gen, remove } from '@/api/vehicle/vehicle'
|
||||
import {messageTemplateList} from "@/api/message/template";
|
||||
|
||||
export default {
|
||||
name: 'Vehicle',
|
||||
|
@ -292,15 +293,19 @@ export default {
|
|||
vehicleData: {},
|
||||
// 添加车辆抽屉
|
||||
addVehicleDrawer: false,
|
||||
// 报文模板集合
|
||||
messageTemplateList: [],
|
||||
// 添加表单
|
||||
addForm: {
|
||||
vinStr: null
|
||||
vinStr: null,
|
||||
messageTemplateId: null,
|
||||
},
|
||||
// 生成车辆弹框
|
||||
genVehicleDialog: false,
|
||||
// 生成车辆表单
|
||||
genForm: {
|
||||
number: 0
|
||||
number: 0,
|
||||
messageTemplateId: null,
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -308,6 +313,7 @@ export default {
|
|||
this.contentHeight = window.innerHeight - 60
|
||||
this.initInstanceList()
|
||||
this.initPositionList()
|
||||
this.selectMessageTemplateList()
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
@ -490,6 +496,14 @@ export default {
|
|||
type: response.code === 200 ? 'success' : 'error'
|
||||
})
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 获取报文模板集合
|
||||
*/
|
||||
selectMessageTemplateList(){
|
||||
messageTemplateList().then(response => {
|
||||
this.messageTemplateList = response.data;
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ module.exports = {
|
|||
},
|
||||
proxy: {
|
||||
[process.env.VUE_APP_BASE_API]: { // 使用环境变量中的值
|
||||
target: 'http://127.0.0.1:81', // 服务端接口地址
|
||||
target: 'http://127.0.0.1:9865', // 服务端接口地址
|
||||
changeOrigin: true,
|
||||
pathRewrite: { // 重写真实请求地址
|
||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
|
|
Loading…
Reference in New Issue