Browse Source

完成向上级联->选择通道-001

pull/29/head
panlinlin 4 years ago
parent
commit
0020402685
  1. 29
      src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java
  2. 1
      src/main/java/com/genersoft/iot/vmp/storager/dao/ParentPlatformMapper.java
  3. 11
      web_src/src/components/ParentPlatformList.vue
  4. 2
      web_src/src/components/channelList.vue

29
src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java

@ -8,15 +8,15 @@ import org.springframework.context.annotation.Configuration;
public class SipConfig { public class SipConfig {
@Value("${sip.ip}") @Value("${sip.ip}")
String sipIp; private String sipIp;
@Value("${sip.port}") @Value("${sip.port}")
Integer sipPort; private Integer sipPort;
@Value("${sip.domain}") @Value("${sip.domain}")
String sipDomain; private String sipDomain;
@Value("${sip.id}") @Value("${sip.id}")
String sipId; private String sipId;
@Value("${sip.password}") @Value("${sip.password}")
String sipPassword; private String sipPassword;
@Value("${sip.ptz.speed:50}") @Value("${sip.ptz.speed:50}")
Integer speed; Integer speed;
@ -25,47 +25,28 @@ public class SipConfig {
return sipIp; return sipIp;
} }
public void setSipIp(String sipIp) {
this.sipIp = sipIp;
}
public Integer getSipPort() { public Integer getSipPort() {
return sipPort; return sipPort;
} }
public void setSipPort(Integer sipPort) {
this.sipPort = sipPort;
}
public String getSipDomain() { public String getSipDomain() {
return sipDomain; return sipDomain;
} }
public void setSipDomain(String sipDomain) {
this.sipDomain = sipDomain;
}
public String getSipId() { public String getSipId() {
return sipId; return sipId;
} }
public void setSipId(String sipId) {
this.sipId = sipId;
}
public String getSipPassword() { public String getSipPassword() {
return sipPassword; return sipPassword;
} }
public void setSipPassword(String sipPassword) {
this.sipPassword = sipPassword;
}
public Integer getSpeed() { public Integer getSpeed() {
return speed; return speed;
} }
public void setSpeed(Integer speed) {
this.speed = speed;
}
} }

1
src/main/java/com/genersoft/iot/vmp/storager/dao/ParentPlatformMapper.java

@ -45,7 +45,6 @@ public interface ParentPlatformMapper {
@Delete("DELETE FROM parent_platform WHERE deviceGBId=#{deviceGBId}") @Delete("DELETE FROM parent_platform WHERE deviceGBId=#{deviceGBId}")
int delParentPlatform(ParentPlatform parentPlatform); int delParentPlatform(ParentPlatform parentPlatform);
@Select("SELECT * FROM parent_platform") @Select("SELECT * FROM parent_platform")
List<ParentPlatform> getParentPlatformList(); List<ParentPlatform> getParentPlatformList();

11
web_src/src/components/ParentPlatformList.vue

@ -39,7 +39,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="deviceGBId" label="设备国标编号" width="240" align="center"></el-table-column> <el-table-column prop="deviceGBId" label="设备国标编号" width="240" align="center"></el-table-column>
<el-table-column prop="transport" label="传输模式" width="120" align="center"></el-table-column> <el-table-column prop="transport" label="信令传输模式" width="120" align="center"></el-table-column>
<el-table-column prop="channelCount" label="通道数" align="center"></el-table-column> <el-table-column prop="channelCount" label="通道数" align="center"></el-table-column>
<el-table-column label="操作" width="300" align="center" fixed="right"> <el-table-column label="操作" width="300" align="center" fixed="right">
@ -61,6 +61,7 @@
:total="total"> :total="total">
</el-pagination> </el-pagination>
<platformEdit ref="platformEdit" ></platformEdit> <platformEdit ref="platformEdit" ></platformEdit>
<chooseChannelDialog ref="chooseChannelDialog" ></chooseChannelDialog>
</el-main> </el-main>
</el-container> </el-container>
</div> </div>
@ -69,11 +70,13 @@
<script> <script>
import platformEdit from './platformEdit.vue' import platformEdit from './platformEdit.vue'
import uiHeader from './UiHeader.vue' import uiHeader from './UiHeader.vue'
import chooseChannelDialog from './gb28181/chooseChannel.vue'
export default { export default {
name: 'app', name: 'app',
components: { components: {
platformEdit, platformEdit,
uiHeader uiHeader,
chooseChannelDialog
}, },
data() { data() {
return { return {
@ -86,11 +89,13 @@ export default {
}; };
}, },
computed: { computed: {
getcurrentDeviceChannels: function() { getcurrentDeviceChannels: function() {
} }
}, },
mounted() { mounted() {
this.$refs.chooseChannelDialog.openDialog()
this.initData(); this.initData();
this.updateLooper = setInterval(this.initData, 10000); this.updateLooper = setInterval(this.initData, 10000);
}, },
@ -133,7 +138,7 @@ export default {
}); });
}, },
chooseChannel: function(platform) { chooseChannel: function(platform) {
this.$refs.chooseChannelDialog.openDialog()
}, },
initData: function() { initData: function() {
this.getPlatformList(); this.getPlatformList();

2
web_src/src/components/channelList.vue

@ -31,6 +31,8 @@
<el-table ref="channelListTable" :data="deviceChannelList" :height="winHeight" border style="width: 100%"> <el-table ref="channelListTable" :data="deviceChannelList" :height="winHeight" border style="width: 100%">
<el-table-column prop="channelId" label="通道编号" width="210"> <el-table-column prop="channelId" label="通道编号" width="210">
</el-table-column> </el-table-column>
<el-table-column prop="channelId" label="设备编号" width="210">
</el-table-column>
<el-table-column prop="name" label="通道名称"> <el-table-column prop="name" label="通道名称">
</el-table-column> </el-table-column>
<el-table-column prop="subCount" label="子节点数"> <el-table-column prop="subCount" label="子节点数">

Loading…
Cancel
Save