批量操作

master
DongZeLiang 2024-09-21 09:11:37 +08:00
parent 58eda45f29
commit 6dd4e87011
2 changed files with 19 additions and 5 deletions

View File

@ -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;
})
} }
} }
} }

View File

@ -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]: ''