Browse Source

优化

master
blankk 2 years ago
parent
commit
d5fe031637
  1. 15
      src/views/basic/station/index.vue

15
src/views/basic/station/index.vue

@ -150,7 +150,7 @@
<el-input v-model="form.bzsw" placeholder="请输入保证水位" /> <el-input v-model="form.bzsw" placeholder="请输入保证水位" />
</el-form-item> </el-form-item>
<el-form-item label="摄像头"> <el-form-item label="摄像头">
<el-select v-model="form.cameraSn" placeholder="请选择摄像头"> <el-select v-model="form.cameraSn" placeholder="请选择摄像头" clearable>
<el-option <el-option
v-for="dict in cameraList" v-for="dict in cameraList"
:key="dict.id" :key="dict.id"
@ -188,7 +188,8 @@ export default {
// - // -
infoList: [], infoList: [],
// //
cameraList:[], cameraList:[
],
// //
title: "", title: "",
// //
@ -229,7 +230,6 @@ export default {
}, },
created() { created() {
this.getList(); this.getList();
this.getCameraList();
}, },
methods: { methods: {
/** /**
@ -297,6 +297,7 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.getCameraList();
this.open = true; this.open = true;
this.title = "添加水尺-测站信息"; this.title = "添加水尺-测站信息";
}, },
@ -304,6 +305,14 @@ export default {
async handleUpdate(row) { async handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids const id = row.id || this.ids
// 使
this.getCameraList();
//
let response = await this.$axiosGet('/web/camera/cameraBySid/'+id);
if(response.code === 0){
this.cameraList.push(response.data)
}
let res = await this.$axiosGet('/system/info/info/'+id); let res = await this.$axiosGet('/system/info/info/'+id);
if(res.code === 0){ if(res.code === 0){
this.form = res.data; this.form = res.data;

Loading…
Cancel
Save