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