Commit 194efd3f authored by wangdong's avatar wangdong

5211

parent f825f812
...@@ -77,12 +77,19 @@ export default { ...@@ -77,12 +77,19 @@ export default {
let dataList = let dataList =
result.eNB_config[0].eNB.cellConfig[0].sliceConfig.dl.slices; result.eNB_config[0].eNB.cellConfig[0].sliceConfig.dl.slices;
let ue_list = result.mac_stats[0].ue_list let ue_list = result.mac_stats[0].ue_list
let ue_list1 = result.mac_stats[1].ue_list
this.$store.commit("updateSlices", { this.$store.commit("updateSlices", {
slice_info: dataList, slice_info: dataList,
}); });
this.$store.commit("updateBS_ID", {
bs_id: result.eNB_config[0].bs_id,
});
this.$store.commit("updateUes", { this.$store.commit("updateUes", {
ue_list: ue_list, ue_list: ue_list,
}); });
this.$store.commit("updateUes1", {
ue_list1: ue_list1,
});
dataList.forEach(e => { dataList.forEach(e => {
e = e.ddqn e = e.ddqn
}); });
...@@ -92,7 +99,13 @@ export default { ...@@ -92,7 +99,13 @@ export default {
// console.log(dataList) // console.log(dataList)
}); });
flexranAPI.GET_SLICE_RE().then((res)=>{
this.$store.commit("updateRE", {
re: res,
});
})
}, 1000); }, 1000);
}, },
methods: { methods: {
open(link) { open(link) {
......
<template> <template>
<div> <div>
<el-card> <el-switch
v-model="value1"
active-text="With AI-Enabled"
inactive-text="Without AI-Enabled">
</el-switch>
<el-card v-show="value1">
<el-tag>With AI-Enabled BaseStation</el-tag>
<el-table :data="littleDate" border stripe> <el-table :data="littleDate" border stripe>
<el-table-column type="index" label="UE"></el-table-column> <el-table-column type="index" label="UE"></el-table-column>
<el-table-column prop="rnti" label="RNTI" width="100"> <el-table-column prop="rnti" label="RNTI" width="100">
...@@ -58,6 +65,43 @@ ...@@ -58,6 +65,43 @@
:current-page="currentPage" :current-page="currentPage"
> >
</el-pagination> </el-pagination>
</el-card>
<el-card v-show="!value1">
<el-tag>Without AI-Enabled BaseStation</el-tag>
<el-table :data="littleDate1" border stripe>
<el-table-column type="index" label="UE"></el-table-column>
<el-table-column prop="rnti" label="RNTI" width="100">
</el-table-column>
<el-table-column label="速度">
<template slot-scope="scope">
<el-button >{{ scope.row.Mbs }}</el-button>
</template>
</el-table-column>
<el-table-column label="切片">
<template slot-scope="scope">
<el-dropdown>
<el-button type="primary">
NONE {{scope.row.id}}
</el-button>
</el-dropdown>
</template>
</el-table-column>
<el-table-column prop="imsi" label="IMSI"> </el-table-column>
</el-table>
<el-pagination
layout="prev, pager, next"
:total="dataList1.length"
style="margin-top:5px"
:page-size="4"
background
@current-change="handleCurrentChange1"
:current-page="currentPage1"
>
</el-pagination>
</el-card> </el-card>
</div> </div>
...@@ -69,9 +113,12 @@ import * as flexranAPI from "../../../utils/flexranAPI"; ...@@ -69,9 +113,12 @@ import * as flexranAPI from "../../../utils/flexranAPI";
export default { export default {
data() { data() {
return { return {
value1:true,
currentPage:1, currentPage:1,
currentPage1:1,
hover: false, hover: false,
littleDate:[], littleDate:[],
littleDate1:[],
pingInfo: pingInfo:
"PING 172.16.0.x (172.16.0.x) 56(84) bytes of data.<br/>64 bytes from 172.16.0.6: icmp_seq=1 ttl=64 time=39.5 ms<br/>64 bytes from 172.16.0.6: icmp_seq=2 ttl=64 time=39.1 ms<br/>64 bytes from 172.16.0.6: icmp_seq=3 ttl=64 time=28.7 ms<br/>64 bytes from 172.16.0.6: icmp_seq=4 ttl=64 time=45.6 ms<br/><br/>--- 172.16.0.6 ping statistics ---<br/>4 packets transmitted, 4 received, 0% packet loss, time 242ms<br/>rtt min/avg/max/mdev = 28.799/38.307/45.687/6.068 ms<br/>", "PING 172.16.0.x (172.16.0.x) 56(84) bytes of data.<br/>64 bytes from 172.16.0.6: icmp_seq=1 ttl=64 time=39.5 ms<br/>64 bytes from 172.16.0.6: icmp_seq=2 ttl=64 time=39.1 ms<br/>64 bytes from 172.16.0.6: icmp_seq=3 ttl=64 time=28.7 ms<br/>64 bytes from 172.16.0.6: icmp_seq=4 ttl=64 time=45.6 ms<br/><br/>--- 172.16.0.6 ping statistics ---<br/>4 packets transmitted, 4 received, 0% packet loss, time 242ms<br/>rtt min/avg/max/mdev = 28.799/38.307/45.687/6.068 ms<br/>",
}; };
...@@ -86,6 +133,9 @@ export default { ...@@ -86,6 +133,9 @@ export default {
dataList() { dataList() {
return this.$store.state.ue_list; return this.$store.state.ue_list;
}, },
dataList1() {
return this.$store.state.ue_list1;
}
}, },
watch: { watch: {
hover: { hover: {
...@@ -106,9 +156,16 @@ export default { ...@@ -106,9 +156,16 @@ export default {
}, },
deep: true, deep: true,
}, },
dataList1: {
handler(newValue, oldValue) {
this.littleDate1=newValue.slice((this.currentPage-1)*4,(this.currentPage-1)*4+4)
},
deep: true,
},
}, },
mounted(){ mounted(){
this.littleDate=this.dataList.slice(0*4,+4) this.littleDate=this.dataList.slice(0*4,+4)
this.littleDate1=this.dataList1.slice(0*4,+4)
}, },
methods: { methods: {
handleCurrentChange(val){ handleCurrentChange(val){
...@@ -117,6 +174,13 @@ export default { ...@@ -117,6 +174,13 @@ export default {
val=val-1 val=val-1
console.log(this.currentPage) console.log(this.currentPage)
this.littleDate=this.dataList.slice(val*4,val*4+4) this.littleDate=this.dataList.slice(val*4,val*4+4)
},
handleCurrentChange1(val){
console.log(val)
this.currentPage1=val
val=val-1
console.log(this.currentPage1)
this.littleDate1=this.dataList1.slice(val*4,val*4+4)
}, },
async getping(imsi) { async getping(imsi) {
this.timer = setInterval(() => { this.timer = setInterval(() => {
...@@ -143,7 +207,7 @@ export default { ...@@ -143,7 +207,7 @@ export default {
}, },
], ],
}, },
-1 this.$store.state.bs_id
) )
.then((res) => { .then((res) => {
console.log(res); console.log(res);
......
...@@ -40,9 +40,14 @@ ...@@ -40,9 +40,14 @@
{{ scope.row.ddqn.arb }} {{ scope.row.ddqn.arb }}
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="Limit">
<template slot-scope="scope">
{{ getterRE[Number(scope.row.id)-1] }}
</template>
</el-table-column> -->
</el-table> </el-table>
</el-card> </el-card>
{{getterRE}}
<flex-ran></flex-ran> <flex-ran></flex-ran>
...@@ -76,6 +81,10 @@ export default { ...@@ -76,6 +81,10 @@ export default {
getterSlice(){ getterSlice(){
return this.$store.getters.getterSlice return this.$store.getters.getterSlice
} }
,
getterRE(){
return this.$store.state.re
}
}, },
watch:{ watch:{
// slice_info:{ // slice_info:{
......
...@@ -5,6 +5,9 @@ const mutations = { ...@@ -5,6 +5,9 @@ const mutations = {
updateUes(state, obj) { updateUes(state, obj) {
return state.ue_list = obj.ue_list; return state.ue_list = obj.ue_list;
} , } ,
updateUes1(state, obj) {
return state.ue_list1 = obj.ue_list1;
} ,
addUes(state, obj) { addUes(state, obj) {
return state.ue_nums += 1; return state.ue_nums += 1;
} , } ,
...@@ -16,6 +19,12 @@ const mutations = { ...@@ -16,6 +19,12 @@ const mutations = {
} }
return state.prb_info.push(obj.prb_info); return state.prb_info.push(obj.prb_info);
},
updateBS_ID(state, obj) {
return state.bs_id = obj.bs_id;
},
updateRE(state, obj) {
return state.re = obj.re;
} }
} }
const resize_ = (arr)=>{ const resize_ = (arr)=>{
......
const state = { const state = {
slice_info:[], slice_info:[],
ue_list:[], ue_list:[],
ue_list1:[],
prb_info:[], prb_info:[],
ue_nums:0 ue_nums:0,
re:[0,0,0],
bs_id:-1
} }
export default state; export default state;
\ No newline at end of file
...@@ -166,7 +166,22 @@ export function GET_URL (data = {}) { ...@@ -166,7 +166,22 @@ export function GET_URL (data = {}) {
data data
}) })
} }
export function SET_SLICE_RE (data = {}, ENB_ID) {
// 接口请求
return request({
url: `http://${url}:8110/api/setRequire/`,
method: `post`,
data
})
}
export function GET_SLICE_RE (data = {}) {
// 接口请求
return request({
url: `http://${url}:8110/api/getRate/` ,
method: `get`,
data
})
}
/** /**
* @description This API endpoint deletes slices as specified in the JSON data in the body specified as a JSON file with the format of the sliceConfig as contained in the cellConfig of a agent configuration for a given agent. A valid slice ID must present. Slice 0 can not be removed. To remove the slice algorithm, consider posting the None slice algorithm instead. * @description This API endpoint deletes slices as specified in the JSON data in the body specified as a JSON file with the format of the sliceConfig as contained in the cellConfig of a agent configuration for a given agent. A valid slice ID must present. Slice 0 can not be removed. To remove the slice algorithm, consider posting the None slice algorithm instead.
* @param {Object} data { * @param {Object} data {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment