调整ptzType字段名称
parent
bfafe45b26
commit
97dc926b28
|
@ -142,13 +142,13 @@ public class DeviceChannel {
|
||||||
* 云台类型
|
* 云台类型
|
||||||
*/
|
*/
|
||||||
@Schema(description = "云台类型")
|
@Schema(description = "云台类型")
|
||||||
private int PTZType;
|
private int ptzType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 云台类型描述字符串
|
* 云台类型描述字符串
|
||||||
*/
|
*/
|
||||||
@Schema(description = "云台类型描述字符串")
|
@Schema(description = "云台类型描述字符串")
|
||||||
private String PTZTypeText;
|
private String ptzTypeText;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
|
@ -266,23 +266,23 @@ public class DeviceChannel {
|
||||||
this.deviceId = deviceId;
|
this.deviceId = deviceId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPTZType(int PTZType) {
|
public void setPtzType(int ptzType) {
|
||||||
this.PTZType = PTZType;
|
this.ptzType = ptzType;
|
||||||
switch (PTZType) {
|
switch (ptzType) {
|
||||||
case 0:
|
case 0:
|
||||||
this.PTZTypeText = "未知";
|
this.ptzTypeText = "未知";
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
this.PTZTypeText = "球机";
|
this.ptzTypeText = "球机";
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
this.PTZTypeText = "半球";
|
this.ptzTypeText = "半球";
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
this.PTZTypeText = "固定枪机";
|
this.ptzTypeText = "固定枪机";
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
this.PTZTypeText = "遥控枪机";
|
this.ptzTypeText = "遥控枪机";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -448,15 +448,15 @@ public class DeviceChannel {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getPTZType() {
|
public int getPTZType() {
|
||||||
return PTZType;
|
return ptzType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPTZTypeText() {
|
public String getPTZTypeText() {
|
||||||
return PTZTypeText;
|
return ptzTypeText;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPTZTypeText(String PTZTypeText) {
|
public void setPTZTypeText(String PTZTypeText) {
|
||||||
this.PTZTypeText = PTZTypeText;
|
this.ptzTypeText = PTZTypeText;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isStatus() {
|
public boolean isStatus() {
|
||||||
|
|
|
@ -568,14 +568,14 @@ public class XmlUtil {
|
||||||
String ptzTypeFromInfo = XmlUtil.getText(info, "PTZType");
|
String ptzTypeFromInfo = XmlUtil.getText(info, "PTZType");
|
||||||
if(!ObjectUtils.isEmpty(ptzTypeFromInfo)){
|
if(!ObjectUtils.isEmpty(ptzTypeFromInfo)){
|
||||||
try {
|
try {
|
||||||
deviceChannel.setPTZType(Integer.parseInt(ptzTypeFromInfo));
|
deviceChannel.setPtzType(Integer.parseInt(ptzTypeFromInfo));
|
||||||
}catch (NumberFormatException e){
|
}catch (NumberFormatException e){
|
||||||
logger.warn("[xml解析] 从通道数据info中获取PTZType失败: {}", ptzTypeFromInfo);
|
logger.warn("[xml解析] 从通道数据info中获取PTZType失败: {}", ptzTypeFromInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
deviceChannel.setPTZType(Integer.parseInt(ptzType));
|
deviceChannel.setPtzType(Integer.parseInt(ptzType));
|
||||||
}catch (NumberFormatException e){
|
}catch (NumberFormatException e){
|
||||||
logger.warn("[xml解析] 从通道数据中获取PTZType失败: {}", ptzType);
|
logger.warn("[xml解析] 从通道数据中获取PTZType失败: {}", ptzType);
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,9 +100,9 @@
|
||||||
<span v-show="!scope.row.edit">{{ scope.row.location }}</span>
|
<span v-show="!scope.row.edit">{{ scope.row.location }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="ptztype" label="云台类型" min-width="100">
|
<el-table-column prop="ptzType" label="云台类型" min-width="100">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<el-select v-show="scope.row.edit" v-model="scope.row.ptztype"
|
<el-select v-show="scope.row.edit" v-model="scope.row.ptzType"
|
||||||
placeholder="云台类型" filterable>
|
placeholder="云台类型" filterable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(value, key) in ptzTypes"
|
v-for="(value, key) in ptzTypes"
|
||||||
|
@ -111,7 +111,7 @@
|
||||||
:value="key"
|
:value="key"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<div v-show="!scope.row.edit">{{ scope.row.ptztypeText }}</div>
|
<div v-show="!scope.row.edit">{{ scope.row.ptzTypeText }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="开启音频" min-width="100">
|
<el-table-column label="开启音频" min-width="100">
|
||||||
|
@ -312,7 +312,7 @@ export default {
|
||||||
that.total = res.data.data.total;
|
that.total = res.data.data.total;
|
||||||
that.deviceChannelList = res.data.data.list;
|
that.deviceChannelList = res.data.data.list;
|
||||||
that.deviceChannelList.forEach(e => {
|
that.deviceChannelList.forEach(e => {
|
||||||
e.ptztype = e.ptztype + "";
|
e.ptzType = e.ptzType + "";
|
||||||
that.$set(e, "edit", false);
|
that.$set(e, "edit", false);
|
||||||
that.$set(e, "location", "");
|
that.$set(e, "location", "");
|
||||||
if (e.longitude && e.latitude) {
|
if (e.longitude && e.latitude) {
|
||||||
|
@ -460,7 +460,7 @@ export default {
|
||||||
this.total = res.data.data.total;
|
this.total = res.data.data.total;
|
||||||
this.deviceChannelList = res.data.data.list;
|
this.deviceChannelList = res.data.data.list;
|
||||||
this.deviceChannelList.forEach(e => {
|
this.deviceChannelList.forEach(e => {
|
||||||
e.ptztype = e.ptztype + "";
|
e.ptzType = e.ptzType + "";
|
||||||
this.$set(e, "edit", false);
|
this.$set(e, "edit", false);
|
||||||
this.$set(e, "location", "");
|
this.$set(e, "location", "");
|
||||||
if (e.longitude && e.latitude) {
|
if (e.longitude && e.latitude) {
|
||||||
|
|
Loading…
Reference in New Issue