代码提交
This commit is contained in:
parent
fd4ae39dba
commit
91120e7bda
|
@ -1 +1 @@
|
|||
{"remainingRequest":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\babel-loader\\lib\\index.js!E:\\视频边缘计算管理平台\\TransFlow\\src\\config\\apiurl.js","dependencies":[{"path":"E:\\视频边缘计算管理平台\\TransFlow\\src\\config\\apiurl.js","mtime":1677222728913},{"path":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _defineProperty from \"E:/\\u89C6\\u9891\\u8FB9\\u7F18\\u8BA1\\u7B97\\u7BA1\\u7406\\u5E73\\u53F0/TransFlow/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.regexp.split\";\n\nvar _dataUrl$getSpareElem;\n\nvar ipUurl = window.location.host.split(':')[0];\nexport default (_dataUrl$getSpareElem = {\n // dataUrl: \"http://172.16.1.22:8080/api/AddShipjk\",\n // getSpareElementOrder: \"http://172.16.1.22:8080/api/Upload\",\n // postSetQuanjsz: \"http://172.16.1.22:8080/api/SetQuanjsz\",\n // //新增图形接口\n // addFigure: \"http://172.16.1.22:8080/api/AddJianktx\",\n // //编辑图形名称\n // editFigure: \"http://172.16.1.22:8080/api/EditTuxmc\",\n // //编辑保存组件弹窗传参\n // editComponent: \"http://172.16.1.22:8080/api/SetMonqjkzjcs\",\n dataUrl: 'http://172.16.1.168:5000/api/AddShipjk',\n getSpareElementOrder: 'http://172.16.1.168:5000/api/Upload',\n postSetQuanjsz: 'http://172.16.1.168:5000/api/SetQuanjsz',\n saveRoleApi: 'http://172.16.1.168:5000/api/AddZhangh',\n editRoleApi: 'http://172.16.1.168:5000/api/EditZhangh'\n}, _defineProperty(_dataUrl$getSpareElem, \"editRoleApi\", 'http://172.16.1.168:5000/api/EditZhangh'), _defineProperty(_dataUrl$getSpareElem, \"addFigure\", 'http://172.16.1.168:5000/api/AddJianktx'), _defineProperty(_dataUrl$getSpareElem, \"editFigure\", 'http://172.16.1.168:5000/api/EditTuxmc'), _defineProperty(_dataUrl$getSpareElem, \"setHostName\", 'http://172.16.1.168:5000/api/SetHostName'), _dataUrl$getSpareElem);",{"version":3,"sources":["E:/视频边缘计算管理平台/TransFlow/src/config/apiurl.js"],"names":["ipUurl","window","location","host","split","dataUrl","getSpareElementOrder","postSetQuanjsz","saveRoleApi","editRoleApi"],"mappings":";;;;;AAAA,IAAIA,MAAM,GAAGC,MAAM,CAACC,QAAP,CAAgBC,IAAhB,CAAqBC,KAArB,CAA2B,GAA3B,EAAgC,CAAhC,CAAb;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEAC,EAAAA,OAAO,EAAE,wCAXb;AAYIC,EAAAA,oBAAoB,EAAE,qCAZ1B;AAaIC,EAAAA,cAAc,EAAE,yCAbpB;AAcIC,EAAAA,WAAW,EAAE,wCAdjB;AAeIC,EAAAA,WAAW,EAAE;AAfjB,yDAiBiB,yCAjBjB,uDAmBe,yCAnBf,wDAqBgB,wCArBhB,yDAuBiB,0CAvBjB","sourcesContent":["var ipUurl = window.location.host.split(':')[0];\r\nexport default {\r\n // dataUrl: \"http://172.16.1.22:8080/api/AddShipjk\",\r\n // getSpareElementOrder: \"http://172.16.1.22:8080/api/Upload\",\r\n // postSetQuanjsz: \"http://172.16.1.22:8080/api/SetQuanjsz\",\r\n // //新增图形接口\r\n // addFigure: \"http://172.16.1.22:8080/api/AddJianktx\",\r\n // //编辑图形名称\r\n // editFigure: \"http://172.16.1.22:8080/api/EditTuxmc\",\r\n // //编辑保存组件弹窗传参\r\n // editComponent: \"http://172.16.1.22:8080/api/SetMonqjkzjcs\",\r\n\r\n dataUrl: 'http://172.16.1.168:5000/api/AddShipjk',\r\n getSpareElementOrder: 'http://172.16.1.168:5000/api/Upload',\r\n postSetQuanjsz: 'http://172.16.1.168:5000/api/SetQuanjsz',\r\n saveRoleApi: 'http://172.16.1.168:5000/api/AddZhangh',\r\n editRoleApi: 'http://172.16.1.168:5000/api/EditZhangh',\r\n //保存主机名称\r\n editRoleApi: 'http://172.16.1.168:5000/api/EditZhangh',\r\n //新增图形接口\r\n addFigure: 'http://172.16.1.168:5000/api/AddJianktx',\r\n //编辑图形名称\r\n editFigure: 'http://172.16.1.168:5000/api/EditTuxmc',\r\n //编辑保存组件弹窗传参\r\n setHostName: 'http://172.16.1.168:5000/api/SetHostName'\r\n\r\n // `http://${ipUurl}:5000/api/AddShipjk`\r\n // dataUrl: `http://${ipUurl}:5000/api/AddShipjk`,\r\n // getSpareElementOrder: `http://${ipUurl}:5000/api/Upload`,\r\n // postSetQuanjsz: `http://${ipUurl}:5000/api/SetQuanjsz`,\r\n // //新增图形接口\r\n // addFigure: `http://${ipUurl}:5000/api/AddJianktx`,\r\n // //编辑图形名称\r\n // editFigure: `http://${ipUurl}:5000/api/EditTuxmc`,\r\n // //编辑保存组件弹窗传参\r\n // editComponent: `http://${ipUurl}:5000/api/SetMonqjkzjcs`,\r\n};\r\n"]}]}
|
||||
{"remainingRequest":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\babel-loader\\lib\\index.js!E:\\视频边缘计算管理平台\\TransFlow\\src\\config\\apiurl.js","dependencies":[{"path":"E:\\视频边缘计算管理平台\\TransFlow\\src\\config\\apiurl.js","mtime":1677224492153},{"path":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _defineProperty from \"E:/\\u89C6\\u9891\\u8FB9\\u7F18\\u8BA1\\u7B97\\u7BA1\\u7406\\u5E73\\u53F0/TransFlow/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.regexp.split\";\n\nvar _dataUrl$getSpareElem;\n\nvar ipUurl = window.location.host.split(':')[0];\nexport default (_dataUrl$getSpareElem = {\n // dataUrl: \"http://172.16.1.22:8080/api/AddShipjk\",\n // getSpareElementOrder: \"http://172.16.1.22:8080/api/Upload\",\n // postSetQuanjsz: \"http://172.16.1.22:8080/api/SetQuanjsz\",\n // //新增图形接口\n // addFigure: \"http://172.16.1.22:8080/api/AddJianktx\",\n // //编辑图形名称\n // editFigure: \"http://172.16.1.22:8080/api/EditTuxmc\",\n dataUrl: 'http://172.16.1.168:5000/api/AddShipjk',\n getSpareElementOrder: 'http://172.16.1.168:5000/api/Upload',\n postSetQuanjsz: 'http://172.16.1.168:5000/api/SetQuanjsz',\n saveRoleApi: 'http://172.16.1.168:5000/api/AddZhangh',\n editRoleApi: 'http://172.16.1.168:5000/api/EditZhangh',\n // //编辑保存组件弹窗传参\n editComponent: \"http://172.16.1.22:8080/api/SetMonqjkzjcs\"\n}, _defineProperty(_dataUrl$getSpareElem, \"editRoleApi\", 'http://172.16.1.168:5000/api/EditZhangh'), _defineProperty(_dataUrl$getSpareElem, \"addFigure\", 'http://172.16.1.168:5000/api/AddJianktx'), _defineProperty(_dataUrl$getSpareElem, \"editFigure\", 'http://172.16.1.168:5000/api/EditTuxmc'), _defineProperty(_dataUrl$getSpareElem, \"setHostName\", 'http://172.16.1.168:5000/api/SetHostName'), _dataUrl$getSpareElem);",{"version":3,"sources":["E:/视频边缘计算管理平台/TransFlow/src/config/apiurl.js"],"names":["ipUurl","window","location","host","split","dataUrl","getSpareElementOrder","postSetQuanjsz","saveRoleApi","editRoleApi","editComponent"],"mappings":";;;;;AAAA,IAAIA,MAAM,GAAGC,MAAM,CAACC,QAAP,CAAgBC,IAAhB,CAAqBC,KAArB,CAA2B,GAA3B,EAAgC,CAAhC,CAAb;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AAGAC,EAAAA,OAAO,EAAE,wCAVb;AAWIC,EAAAA,oBAAoB,EAAE,qCAX1B;AAYIC,EAAAA,cAAc,EAAE,yCAZpB;AAaIC,EAAAA,WAAW,EAAE,wCAbjB;AAcIC,EAAAA,WAAW,EAAE,yCAdjB;AAeK;AACCC,EAAAA,aAAa,EAAE;AAhBrB,yDAkBiB,yCAlBjB,uDAoBe,yCApBf,wDAsBgB,wCAtBhB,yDAwBiB,0CAxBjB","sourcesContent":["var ipUurl = window.location.host.split(':')[0];\r\nexport default {\r\n // dataUrl: \"http://172.16.1.22:8080/api/AddShipjk\",\r\n // getSpareElementOrder: \"http://172.16.1.22:8080/api/Upload\",\r\n // postSetQuanjsz: \"http://172.16.1.22:8080/api/SetQuanjsz\",\r\n // //新增图形接口\r\n // addFigure: \"http://172.16.1.22:8080/api/AddJianktx\",\r\n // //编辑图形名称\r\n // editFigure: \"http://172.16.1.22:8080/api/EditTuxmc\",\r\n \r\n\r\n dataUrl: 'http://172.16.1.168:5000/api/AddShipjk',\r\n getSpareElementOrder: 'http://172.16.1.168:5000/api/Upload',\r\n postSetQuanjsz: 'http://172.16.1.168:5000/api/SetQuanjsz',\r\n saveRoleApi: 'http://172.16.1.168:5000/api/AddZhangh',\r\n editRoleApi: 'http://172.16.1.168:5000/api/EditZhangh',\r\n // //编辑保存组件弹窗传参\r\n editComponent: \"http://172.16.1.22:8080/api/SetMonqjkzjcs\",\r\n //保存主机名称\r\n editRoleApi: 'http://172.16.1.168:5000/api/EditZhangh',\r\n //新增图形接口\r\n addFigure: 'http://172.16.1.168:5000/api/AddJianktx',\r\n //编辑图形名称\r\n editFigure: 'http://172.16.1.168:5000/api/EditTuxmc',\r\n //编辑保存组件弹窗传参\r\n setHostName: 'http://172.16.1.168:5000/api/SetHostName'\r\n\r\n // `http://${ipUurl}:5000/api/AddShipjk`\r\n // dataUrl: `http://${ipUurl}:5000/api/AddShipjk`,\r\n // getSpareElementOrder: `http://${ipUurl}:5000/api/Upload`,\r\n // postSetQuanjsz: `http://${ipUurl}:5000/api/SetQuanjsz`,\r\n // //新增图形接口\r\n // addFigure: `http://${ipUurl}:5000/api/AddJianktx`,\r\n // //编辑图形名称\r\n // editFigure: `http://${ipUurl}:5000/api/EditTuxmc`,\r\n // //编辑保存组件弹窗传参\r\n // editComponent: `http://${ipUurl}:5000/api/SetMonqjkzjcs`,\r\n};\r\n"]}]}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -259,7 +259,9 @@ export default {
|
|||
} else if (title === '拥堵') {
|
||||
series[0].data = newVal.map(val => { });
|
||||
}
|
||||
|
||||
series.forEach(ele=>{
|
||||
ele.data.reverse()
|
||||
})
|
||||
return series
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,9 +143,11 @@ export default {
|
|||
};
|
||||
},
|
||||
created() {
|
||||
// console.log(this.title + 'TYPECHARTdataArr', this.dataArr)
|
||||
console.log(this.title);
|
||||
},
|
||||
methods: {
|
||||
// 计算类型数量的总和
|
||||
|
||||
getTotal(dataArr) {
|
||||
return dataArr[0].type_data.reduce(function(prev, cur) {
|
||||
return cur.quantity + prev
|
||||
|
@ -166,13 +168,13 @@ export default {
|
|||
// }else if(dataArr[0].timeMode=='周期时刻'){
|
||||
|
||||
// }
|
||||
if (dataArr[0].n_queue) {
|
||||
this.queue = dataArr[0].n_queue
|
||||
} else if (dataArr[0].ave_queue) {
|
||||
this.queue = dataArr[0].ave_queue
|
||||
} else if (dataArr[0].timeMode == '周期时刻') {
|
||||
// if (dataArr[0].n_queue) {
|
||||
// this.queue = dataArr[0].n_queue
|
||||
// } else if (dataArr[0].ave_queue) {
|
||||
// this.queue = dataArr[0].ave_queue
|
||||
// } else if (dataArr[0].timeMode == '周期时刻') {
|
||||
|
||||
}
|
||||
// }
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -186,7 +188,7 @@ export default {
|
|||
dataArr: {
|
||||
handler(newVal) {
|
||||
// console.log('dataArr', newVal);
|
||||
this.getNewQueue(newVal)
|
||||
// this.getNewQueue(newVal)
|
||||
},
|
||||
|
||||
immediate: true
|
||||
|
|
|
@ -36,11 +36,12 @@
|
|||
:echartArr="o.presentationForm" :title="o.componentName.split('_')[0]"
|
||||
:chartName="o.combinationName" :typeValue="typeCycleTimeData" />
|
||||
<!-- 周期统计的组件 -->
|
||||
<typeChart ref="typeChartRef2" style="width: 100%;" v-if="o.timeMode === '周期统计'"
|
||||
:pageType="o.graphicType" :triggerType="o.timeMode"
|
||||
:componentName="o.componentName" :dataArr="o.cycleStatistics"
|
||||
:echartArr="o.presentationForm" :title="o.componentName.split('_')[0]"
|
||||
:chartName="o.combinationName" :typeValue="typeCycleStatistics" />
|
||||
<typeChart ref="typeChartRef2" style="width: 100%;"
|
||||
v-if="o.timeMode === '周期统计'" :pageType="o.graphicType"
|
||||
:triggerType="o.timeMode" :componentName="o.componentName"
|
||||
:dataArr="o.cycleStatistics" :echartArr="o.presentationForm"
|
||||
:title="o.componentName.split('_')[0]" :chartName="o.combinationName"
|
||||
:typeValue="typeCycleStatistics" />
|
||||
</el-collapse-item>
|
||||
</div>
|
||||
</el-collapse>
|
||||
|
@ -252,13 +253,18 @@ export default {
|
|||
|
||||
for (let i = 0; i < _this.$refs.typeChartRef.length; i++) {
|
||||
// console.log(_this.$refs.typeChartRef[i], '触发接收的表格数据');
|
||||
let item = _this.$refs.typeChartRef[i]
|
||||
_this.$refs.typeChartRef[i].$refs.lineChartRef.drawLine(_this.$refs.typeChartRef[i].dataArr,_this.$refs.typeChartRef[i].componentName.split('_')[0])
|
||||
if(item.componentName.split('_')[0]=="类型"){
|
||||
// 数据改变重新渲染柱状图
|
||||
item.$refs.barChartRef.drawBar(item.dataArr[0])
|
||||
// 数据改变重新渲染饼图
|
||||
let item = _this.$refs.typeChartRef[i]
|
||||
_this.$refs.typeChartRef[i].$refs.lineChartRef.drawLine(_this.$refs.typeChartRef[i].dataArr, _this.$refs.typeChartRef[i].componentName.split('_')[0])
|
||||
if (item.componentName.split('_')[0] == "类型") {
|
||||
if(item.echartArr.includes('直方图')){
|
||||
// 数据改变重新渲染柱状图
|
||||
item.$refs.barChartRef.drawBar(item.dataArr[0])
|
||||
}
|
||||
if(item.echartArr.includes('饼状图')){
|
||||
// 数据改变重新渲染饼图
|
||||
item.$refs.pieChartRef.drawPie(item.dataArr[0])
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -304,7 +310,19 @@ export default {
|
|||
that.$nextTick(() => {
|
||||
// 轮循周期时刻生成的各类组件
|
||||
for (let i = 0; i < that.$refs.typeChartRef1.length; i++) {
|
||||
item = that.$refs.typeChartRef1[i]
|
||||
that.$refs.typeChartRef1[i].$refs.lineChartRef.drawLine(that.$refs.typeChartRef1[i].dataArr, that.$refs.typeChartRef[i].componentName.split('_')[0])
|
||||
if (item.componentName.split('_')[0] == "类型") {
|
||||
if (item.echartArr.includes('直方图')){
|
||||
// 数据改变重新渲染柱状图
|
||||
item.$refs.barChartRef.drawBar(item.dataArr[0])
|
||||
}
|
||||
if (item.echartArr.includes('饼状图')){
|
||||
// 数据改变重新渲染饼图
|
||||
item.$refs.pieChartRef.drawPie(item.dataArr[0])
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -317,7 +335,7 @@ export default {
|
|||
},
|
||||
cycleStatistics: {
|
||||
handler(newVal) {
|
||||
console.log(newVal,'周期统计数据');
|
||||
console.log(newVal, '周期统计数据');
|
||||
if (newVal.length != 0 && this.sectionData) {
|
||||
this.componentList.forEach(ele => {
|
||||
if (ele.cycleStatistics == undefined && ele.timeMode == '周期统计') {
|
||||
|
@ -330,13 +348,24 @@ export default {
|
|||
} else {
|
||||
item.time = item.time.split('.')[0];
|
||||
if (item.type_data != null) {
|
||||
//周期时刻的类型数据
|
||||
this.typeCycleStatistics = item;
|
||||
}
|
||||
ele.cycleStatistics.unshift(item);
|
||||
for (let i = 0; i < this.$refs.typeChartRef2.length; i++) {
|
||||
// console.log(_this.$refs.typeChartRef[i], '触发接收的表格数据');
|
||||
this.$refs.typeChartRef2[i].$refs.lineChartRef.drawLine(this.$refs.typeChartRef2[i].dataArr,_this.$refs.typeChartRe2f[i].componentName.split('_')[0])
|
||||
item = that.$refs.typeChartRef2[i]
|
||||
// console.log(_this.$refs.typeChartRef[i], '触发接收的表格数据');
|
||||
this.$refs.typeChartRef2[i].$refs.lineChartRef.drawLine(this.$refs.typeChartRef2[i].dataArr, _this.$refs.typeChartRe2f[i].componentName.split('_')[0])
|
||||
if (item.componentName.split('_')[0] == "类型") {
|
||||
if (item.echartArr.includes('直方图')) {
|
||||
// 数据改变重新渲染柱状图
|
||||
item.$refs.barChartRef.drawBar(item.dataArr[0])
|
||||
}
|
||||
if (item.echartArr.includes('饼状图')) {
|
||||
// 数据改变重新渲染饼图
|
||||
item.$refs.pieChartRef.drawPie(item.dataArr[0])
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue