- {{ item.contact }}:{{ item.facilitator.values }}
+
+ {{ item.contact }}
From 5ead4f085bc440ccca91797f6fce8816cdddebf2 Mon Sep 17 00:00:00 2001
From: hucongqian
Date: Thu, 30 Jun 2022 16:50:01 +0800
Subject: [PATCH 02/19] =?UTF-8?q?=E8=B6=8B=E5=8A=BF=E6=8E=A5=E5=8F=A3?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
back/src/views/modules/workBench/api.js | 20 +++++-
.../workBench/components/lineOption.js | 2 +-
.../workBench/components/trend-view.vue | 64 +++++++++++++++----
3 files changed, 70 insertions(+), 16 deletions(-)
diff --git a/back/src/views/modules/workBench/api.js b/back/src/views/modules/workBench/api.js
index 9e3bf5de..da7c16a2 100644
--- a/back/src/views/modules/workBench/api.js
+++ b/back/src/views/modules/workBench/api.js
@@ -15,6 +15,20 @@ function Request({
})
})
+}
+function RequestPost({
+ methods, url, data, success, fali
+}) {
+ return new Promise((resolve, reject) => {
+ http[methods](url,
+ data
+ ).then(res => {
+ resolve(res)
+ }, err => {
+ reject(err)
+ })
+ })
+
}
// /resource/getByDept:获取当前登录用户所在部门发布的资源
@@ -125,9 +139,9 @@ export const getApplyByDept = (data, success, fail) => {
}
// 部门发布能力被调用趋势
export const getByDept = (data, success, fail) => {
- Request({
- methods: 'get',
- url: '/resource/getByDept',
+ RequestPost({
+ methods: 'post',
+ url: '/resource/trafficDeptResource',
data
}).then(res => {
success && success(res)
diff --git a/back/src/views/modules/workBench/components/lineOption.js b/back/src/views/modules/workBench/components/lineOption.js
index 75c33e08..cc9a5142 100644
--- a/back/src/views/modules/workBench/components/lineOption.js
+++ b/back/src/views/modules/workBench/components/lineOption.js
@@ -67,7 +67,7 @@ export const trendLineChart = (id, chartData, _option) => {
},
}],
series: [{
- name: '合格数据百分比',
+ name: '使用量',
type: 'line',
showAllSymbol: true,
symbolSize: 0,
diff --git a/back/src/views/modules/workBench/components/trend-view.vue b/back/src/views/modules/workBench/components/trend-view.vue
index 9b644e34..3ccaf9c1 100644
--- a/back/src/views/modules/workBench/components/trend-view.vue
+++ b/back/src/views/modules/workBench/components/trend-view.vue
@@ -23,7 +23,14 @@ export default {
return {
titles: ["近七日", "月度"],
selectedTitle: 0,
- trendChartData:{}
+ trendChartData: {},
+ startDate: "",
+ endDate:
+ new Date().getFullYear() +
+ "-" +
+ (new Date().getMonth() + 1) +
+ "-" +
+ new Date().getDate()
};
},
components: {
@@ -32,25 +39,38 @@ export default {
mounted() {
this.initChart();
},
+ watch: {
+ selectedTitle: {
+ handler: function(newVal, oldVal) {
+ this.startDate = this.getData(newVal == 0 ? 7 : 30);
+ },
+ deep: true,
+ immediate: true
+ }
+ },
methods: {
//发布动态
initChart() {
- let data = {
- limit: 10,
- page: 1
- };
Apis.getByDept(
- data,
+ {
+ startDate: this.startDate,
+ endDate: this.endDate
+ },
res => {
if (res.data.code !== 0) {
return;
}
- this.data = res.data.data.records || [];
- let xaxis=[],ydata=[]
- this.data.forEach(v=>{
- xaxis.push(v.createDate)
- ydata.push(v.visits)
- })
+ this.data = res.data.data.browseDayList || [];
+ let xaxis = [],
+ ydata = [];
+ this.data.forEach(v => {
+ Object.keys(v).map((key, value) => {
+ xaxis.push(key);
+ ydata.push(value);
+ });
+ });
+ console.log(xaxis)
+ console.log(ydata)
this.trendChartData = {
xaxis: xaxis,
ydata: ydata
@@ -66,7 +86,27 @@ export default {
},
handleTitleSwitch(idx) {
this.selectedTitle = idx;
+ this.startDate = this.getData(this.selectedTitle == 0 ? 7 : 30);
+ console.log(this.startDate);
this.initChart();
+ },
+ getData(aa) {
+ let date1 = new Date(),
+ time1 =
+ date1.getFullYear() +
+ "-" +
+ (date1.getMonth() + 1) +
+ "-" +
+ date1.getDate(); //time1表示当前时间
+ let date2 = new Date(date1);
+ date2.setDate(date1.getDate() - aa);
+ let time2 =
+ date2.getFullYear() +
+ "-" +
+ (date2.getMonth() + 1) +
+ "-" +
+ date2.getDate();
+ return time2;
}
}
};
From 814ed5ff92c01c27619162b3729b3e124156e470 Mon Sep 17 00:00:00 2001
From: gaoxiaolong <327091900@qq.com>
Date: Thu, 30 Jun 2022 17:53:39 +0800
Subject: [PATCH 03/19] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E7=BB=9F=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../applicationResources.vue | 610 ++++++++++++------
.../abilityStatistics/componentServices.vue | 593 ++++++++++-------
.../views/modules/abilityStatistics/index.vue | 285 ++++----
3 files changed, 949 insertions(+), 539 deletions(-)
diff --git a/back/src/views/modules/abilityStatistics/applicationResources.vue b/back/src/views/modules/abilityStatistics/applicationResources.vue
index 2c24531a..aea5855f 100644
--- a/back/src/views/modules/abilityStatistics/applicationResources.vue
+++ b/back/src/views/modules/abilityStatistics/applicationResources.vue
@@ -1,7 +1,11 @@
-
应用资源
-
发布情况统计
+
+ 应用资源
+ 发布情况统计
+ 返回
+
+
应用贡献组件被调用次数分布
@@ -57,31 +61,215 @@
import * as echarts from 'echarts';
export default {
+ props:{
+ tableId:{
+ type:String,
+ default:''
+ },
+ fatherId:{
+ type:Number,
+ default:null,
+ }
+ },
data(){
return{
+ data2:[],
+ data3:[],
+ data4:[],
+ data5:[],
+ data6:[],
+ data7:[],
+ data8:[],
+ data9:[],
+ data10:[],
+ data11:[],
colorList:['linear-gradient(to right, rgba(82, 106, 255,0.8),transparent)', 'linear-gradient(to right,rgba(251, 123, 5),transparent)','linear-gradient(to right,rgba(250, 179, 2,.6),transparent)','linear-gradient(to right,rgba(82, 106, 255,.6),transparent','linear-gradient(to right,rgba(82, 106, 255,.6),transparent)',],
widthList:['90px','80px','70px','60px','50px'],
numColorList:['#fc5656','#ff8a00','#f9af0a','#808fff','#808fff'],
usedList:[{name:'组件名称一',count:111},{name:'组件名称一',count:111},{name:'组件名称一',count:111},{name:'组件名称四',count:111},{name:'组件名称五',count:111},],
}
+ },
+ created(){
+ this.getDistributedList()
+ this.getUsedList()
+ this.getTopList()
+ this.getApplicationDistribution()
+ this.getFieldDistribution()
+ this.getStatuesDistribution()
},
mounted(){
+
this.myEcharts1()
- this.myEcharts2()
- this.myEcharts3()
- this.myEcharts4()
- this.myEcharts6()
- this.myEcharts7()
- this.myEcharts8()
- this.myEcharts9()
+ // this.myEcharts2()
+ // this.myEcharts3()
+ // this.myEcharts4()
+ // this.myEcharts6()
+ // this.myEcharts7()
+ // this.myEcharts8()
+ // this.myEcharts9()
},
methods:{
+ // 应用贡献组件数量分布(算法、图层、开发、业务)
+ getDistributedList () {
+ this.$http.get('/census/center/v3/assemblerUseProjectInfo/' ,{
+ params : {
+ keyId:'1522550195034857476'
+ // this.tableId
+ }
+ }).then(res => {
+ let arry=[]
+ arry=res.data.data
+ arry.forEach((item)=>{
+ const single={
+ value:item.num,
+ name:item.attr_value
+ }
+ this.data2.push(single)
+ this.data5.push(single.value)
+ this.data6.push(single.name)
+ this.myEcharts2()
+ this.myEcharts4()
+ })
+
+ })
+ },
+ // 应用贡献组件分别被多少应用使用
+ getUsedList () {
+ this.$http.get('/census/center/v3/applicationUsedCapabilityNum/' ,{
+ params : {
+ id:
+ // '1522550195034857476'
+ this.tableId
+ }
+ }).then(res => {
+ let arry=[]
+ arry=res.data.data
+ arry.forEach((item)=>{
+ const single={
+ value:item.useNum,
+ name:item.name
+ }
+ this.data3.push(single.name)
+ this.data4.push(single.value)
+ console.log("2222", this.data3);
+ this.myEcharts3()
+ })
+
+ })
+ },
+ //评分分布12345
+ getTopList () {
+ this.$http.get('/census/center/v3/assemblerScoreInfo/' ,{
+ params : {
+ id:this.tableId,
+ // '1067246875800000066',
+ resourceType:'应用资源'
+ }
+ }).then(res => {
+ let arry=[]
+ arry=res.data.data
+ arry.forEach((item)=>{
+ const single={
+ value:item.scoreNum,
+ name:item.score
+ }
+ this.data8.push(single)
+ this.myEcharts6()
+ })
+
+ })
+ },
+ //发布端应用分布情况
+ getApplicationDistribution() {
+ this.$http.get('/census/center/v3/applicationReleaseCapabilitySet/' ,{
+ params : {
+ id:
+ // '1067246875800000066',
+ this.tableId,
+ resourceType:'应用资源'
+ }
+ }).then(res => {
+ let arry=[]
+ arry=res.data.data
+ arry.forEach((item)=>{
+ const single={
+ value:item.num,
+ name:item.publisher
+ }
+ this.data7.push(single)
+ this.myEcharts7()
+ })
+
+ })
+ },
+ //应用领域分布情况
+ getFieldDistribution() {
+ this.$http.get('/census/center/v3/applicationAreaCapabilityList/' ,{
+ params : {
+ id:
+ // '1067246875800000066',
+ this.tableId,
+ resourceType:'应用资源'
+ }
+ }).then(res => {
+ let arry=[]
+ arry=res.data.data
+ arry.forEach((item)=>{
+ const single={
+ value:item.total,
+ name:item.type
+ }
+ this.data9.push(single)
+ this.myEcharts8()
+ })
+
+ })
+ },
+ //应用状态分布情况
+ getStatuesDistribution() {
+ this.$http.get('/census/center/v3/applicationStateCapabilitySet/' ,{
+ params : {
+ id:
+ // '1067246875800000066',
+ this.tableId,
+ resourceType:'应用资源'
+ }
+ }).then(res => {
+ let arry=[]
+ arry=res.data.data
+ arry.forEach((item)=>{
+ const single={
+ value:item.num,
+ name:item.state
+ }
+ this.data10.push(single)
+ this.myEcharts9()
+ })
+
+ })
+ },
myEcharts1(){
var chartDom = document.getElementById('main1');
var myChart = echarts.init(chartDom);
var option;
option = {
+ tooltip: { // 鼠标悬浮提示框显示 X和Y 轴数据
+ trigger: 'axis',
+ backgroundColor: 'rgba(32, 33, 36,.7)',
+ borderColor: 'rgba(32, 33, 36,0.20)',
+ borderWidth: 1,
+ textStyle: { // 文字提示样式
+ color: '#fff',
+ fontSize: '12'
+ },
+ axisPointer: { // 坐标轴虚线
+ type: 'cross',
+ label: {
+ backgroundColor: '#6a7985'
+ }
+ },
+ },
grid: {
bottom: '23%',
},
@@ -231,12 +419,7 @@ export default {
labelLine: {
show: false
},
- data: [
- { value: 1048, name: '算法' },
- { value: 735, name: '图层' },
- { value: 580, name: '开发' },
- { value: 484, name: '业务' },
- ]
+ data:this.data2
}
]
};
@@ -248,12 +431,29 @@ export default {
var myChart = echarts.init(chartDom);
var option;
option = {
+ tooltip: { // 鼠标悬浮提示框显示 X和Y 轴数据
+ trigger: 'axis',
+ backgroundColor: 'rgba(32, 33, 36,.7)',
+ borderColor: 'rgba(32, 33, 36,0.20)',
+ borderWidth: 1,
+ textStyle: { // 文字提示样式
+ color: '#fff',
+ fontSize: '12'
+ },
+ axisPointer: { // 坐标轴虚线
+ type: 'cross',
+ label: {
+ backgroundColor: '#6a7985'
+ }
+ },
+ },
grid: {
bottom: '23%',
},
xAxis: {
type: 'category',
- data: ['算法', '图层', '开发', '业务'],
+ data:this.data3,
+ fontSize:12,
color:['#f5f5f5'],
axisTick:{
show:false,//不显示坐标轴刻度线
@@ -268,8 +468,17 @@ export default {
}
},
axisLabel: {//x轴文字的配置
+ formatter: val => {
+ let txt = val
+ if (val.length > 3) {
+ txt = val.substr(0, 3) + '...'
+ }
+ return txt
+ },
textStyle: {
color: "#999999",//x轴内容文字颜色
+
+
},
},
},
@@ -300,7 +509,7 @@ export default {
},
series: [
{
- data: [5, 5, 5, 5],
+ data: [1, 1, 1, 1, 1, 1],
type: 'bar',
barWidth: 14,
stack: '1',
@@ -314,7 +523,7 @@ export default {
},
},
{
- data: [60, 90, 50, 80],
+ data: this.data4,
type: 'bar',
barWidth: 14,
stack: '1',
@@ -343,7 +552,7 @@ export default {
},
xAxis: {
type: 'category',
- data: ['组件名称1', '组件名称2', '组件名称3', '组件名称4', '组件名称5', '组件名称6'],
+ data:this.data6,
color:['#f5f5f5'],
axisTick: { // 坐标轴 刻度
show: false, // 是否显示
@@ -404,7 +613,7 @@ export default {
},
},
{
- data: [60, 90, 50, 80, 50, 80],
+ data:this.data5,
type: 'bar',
barWidth: 14,
stack: '1',
@@ -486,13 +695,7 @@ export default {
labelLine: {
show: false
},
- data: [
- { value: 1048, name: '1分' },
- { value: 735, name: '2分' },
- { value: 580, name: '3分' },
- { value: 484, name: '4分' },
- { value: 300, name: '5分' }
- ]
+ data:this.data8
}
]
};
@@ -564,175 +767,197 @@ export default {
labelLine: {
show: false
},
- data: [
- { value: 1048, name: '应用名称1' },
- { value: 735, name: '应用名称2' },
- { value: 580, name: '应用名称3' },
- { value: 484, name: '应用名称4' },
- { value: 300, name: '应用名称5' }
- ]
+ data:this.data7
+ // [
+ // { value: 1048, name: '应用名称1' },
+ // { value: 735, name: '应用名称2' },
+ // { value: 580, name: '应用名称3' },
+ // { value: 484, name: '应用名称4' },
+ // { value: 300, name: '应用名称5' }
+ // ]
}
]
};
option && myChart.setOption(option);
},
- myEcharts8(){
- var chartDom = document.getElementById('main8');
- var myChart = echarts.init(chartDom);
- var option;
- option = {
- tooltip: {
- trigger: 'item'
- },
- legend: {
- orient: '',
- top: '14%',
- left: '40%',
- width:"auto",
- height:"auto",
- orient: "vertical",
- itemGap: 15,
- itemWidth: 14,
- // 使用回调函数
- formatter: function(name) {
- var data = option.series[0].data;
- var total = 0;
- var tarValue;
- for (var i = 0; i < data.length; i++) {
- total += data[i].value;
- if (data[i].name == name) {
- tarValue = data[i].value;
- }
- }
- var v = tarValue;
- var p = Math.round(((tarValue / total) * 100));
- return `${name} ${p}%`;
- },
- itemStyle:{},
- textStyle: {
- color: "#666666",
- fontSize:12,
- padding:[0,8,0,10]
- },
- },
- color: ['#0087ff', '#51cb8d', '#fcc549', '#ef6567', '#ff8a00', '#fc5656'],
- series: [
- {
- type: 'pie',
- radius: ['30%', '45%'],
- center:['19%', '50%'],
- avoidLabelOverlap: false,
- itemStyle: {
- borderRadius: 10,
- borderColor: '#fff',
- borderWidth: 2
- },
- label: {
- show: false,
- position: 'center'
- },
- // emphasis: {
- // label: {
- // show: true,
- // fontSize: '40',
- // fontWeight: 'bold'
- // }
- // },
- labelLine: {
- show: false
- },
- data: [
- { value: 1048, name: '应用领域1' },
- { value: 735, name: '应用领域2' },
- { value: 580, name: '应用领域3' },
- { value: 484, name: '应用领域4' },
- { value: 300, name: '应用领域5' }
- ]
- }
- ]
- };
+ myEcharts8(){
+ var chartDom = document.getElementById('main8');
+ var myChart = echarts.init(chartDom);
+ var option;
+ option = {
+ tooltip: {
+ trigger: 'item'
+ },
+ legend: {
+ orient: "vertical", type: 'scroll',
+ top: '14%',
+ left: '40%',
+ width:"auto",
+ height:"auto",
+ orient: "vertical",
+ itemGap: 15,
+ itemWidth: 14,
+ // 使用回调函数
+ formatter: function(name) {
+ var data = option.series[0].data;
+ var total = 0;
+ var tarValue;
+ for (var i = 0; i < data.length; i++) {
+ total += data[i].value;
+ if (data[i].name == name) {
+ tarValue = data[i].value;
+ }
+ }
+ var v = tarValue;
+ var p = Math.round(((tarValue / total) * 100));
+ return `{a|${name}} {b|${p}%}`;
+ },
+ itemStyle:{},
+ textStyle: {
+ color: "#666666",
+ fontSize:12,
+ rich: {
+ // 通过富文本rich给每个项设置样式,下面的oneone、twotwo、threethree可以理解为"每一列"的样式
+ a: {
+ // 设置文字、数学、英语这一列的样式
+ width: 80,
+ color: "#000000",
+ fontSize: 12,
+ fontWeight: "bolder",
+ },
+ b: {
+ // 设置10分、20分、30分这一列的样式
+ width: 35,
+ color: "#333",
+ fontSize: 12,
+ },
+ },
+ padding:[0,8,0,10]
+ },
+ },
+ color: ['#0087ff', '#51cb8d', '#fcc549', '#ef6567', '#ff8a00', '#fc5656'],
+ series: [
+ {
+ type: 'pie',
+ radius: ['30%', '45%'],
+ center:['19%', '50%'],
+ avoidLabelOverlap: false,
+ itemStyle: {
+ borderRadius: 10,
+ borderColor: '#fff',
+ borderWidth: 2
+ },
+ label: {
+ show: false,
+ position: 'center'
+ },
+ // emphasis: {
+ // label: {
+ // show: true,
+ // fontSize: '40',
+ // fontWeight: 'bold'
+ // }
+ // },
+ labelLine: {
+ show: false
+ },
+ data:this.data9
+ // [
+ // { value: 1048, name: '应用领域1' },
+ // { value: 735, name: '应用领域2' },
+ // { value: 580, name: '应用领域3' },
+ // { value: 484, name: '应用领域4' },
+ // { value: 300, name: '应用领域5' }
+ // ]
+ }
+ ]
+ };
- option && myChart.setOption(option);
- },
- myEcharts9(){
- var chartDom = document.getElementById('main9');
- var myChart = echarts.init(chartDom);
- var option;
- option = {
- tooltip: {
- trigger: 'item'
- },
- legend: {
- orient: '',
- top: '14%',
- left: '47%',
- width:"auto",
- height:"auto",
- orient: "vertical",
- itemGap: 15,
- itemWidth: 14,
- // 使用回调函数
- formatter: function(name) {
- var data = option.series[0].data;
- var total = 0;
- var tarValue;
- for (var i = 0; i < data.length; i++) {
- total += data[i].value;
- if (data[i].name == name) {
- tarValue = data[i].value;
- }
- }
- var v = tarValue;
- var p = Math.round(((tarValue / total) * 100));
- return `${name} ${p}%`;
- },
- itemStyle:{},
- textStyle: {
- color: "#666666",
- fontSize:12,
- padding:[0,8,0,10]
- },
- },
- color: ['#0087ff', '#51cb8d', '#fcc549', '#ef6567', '#ff8a00', '#fc5656'],
- series: [
- {
- type: 'pie',
- radius: ['30%', '45%'],
- center:['22%', '50%'],
- avoidLabelOverlap: false,
- itemStyle: {
- borderRadius: 10,
- borderColor: '#fff',
- borderWidth: 2
- },
- label: {
- show: false,
- position: 'center'
- },
- // emphasis: {
- // label: {
- // show: true,
- // fontSize: '40',
- // fontWeight: 'bold'
- // }
- // },
- labelLine: {
- show: false
- },
- data: [
- { value: 1048, name: '应用状态1' },
- { value: 735, name: '应用状态2' },
- { value: 580, name: '应用状态3' },
- { value: 484, name: '应用状态4' },
- { value: 300, name: '应用状态5' }
- ]
- }
- ]
- };
+ option && myChart.setOption(option);
+ },
+ myEcharts9(){
+ var chartDom = document.getElementById('main9');
+ var myChart = echarts.init(chartDom);
+ var option;
+ option = {
+ tooltip: {
+ trigger: 'item'
+ },
+ legend: {
+ orient: '',
+ top: '14%',
+ left: '47%',
+ width:"auto",
+ height:"auto",
+ orient: "vertical",
+ itemGap: 15,
+ itemWidth: 14,
+ // 使用回调函数
+ formatter: function(name) {
+ var data = option.series[0].data;
+ var total = 0;
+ var tarValue;
+ for (var i = 0; i < data.length; i++) {
+ total += data[i].value;
+ if (data[i].name == name) {
+ tarValue = data[i].value;
+ }
+ }
+ var v = tarValue;
+ var p = Math.round(((tarValue / total) * 100));
+ return `${name} ${p}%`;
+ },
+ itemStyle:{},
+ textStyle: {
+ color: "#666666",
+ fontSize:12,
+ padding:[0,8,0,10]
+ },
+ },
+ color: ['#0087ff', '#51cb8d', '#fcc549', '#ef6567', '#ff8a00', '#fc5656'],
+ series: [
+ {
+ type: 'pie',
+ radius: ['30%', '45%'],
+ center:['22%', '50%'],
+ avoidLabelOverlap: false,
+ itemStyle: {
+ borderRadius: 10,
+ borderColor: '#fff',
+ borderWidth: 2
+ },
+ label: {
+ show: false,
+ position: 'center'
+ },
+ // emphasis: {
+ // label: {
+ // show: true,
+ // fontSize: '40',
+ // fontWeight: 'bold'
+ // }
+ // },
+ labelLine: {
+ show: false
+ },
+ data:this.data10
+ // [
+ // { value: 1048, name: '应用状态1' },
+ // { value: 735, name: '应用状态2' },
+ // { value: 580, name: '应用状态3' },
+ // { value: 484, name: '应用状态4' },
+ // { value: 300, name: '应用状态5' }
+ // ]
+ }
+ ]
+ };
- option && myChart.setOption(option);
- },
+ option && myChart.setOption(option);
+ },
+ backBtn(){
+ this.$emit('closeApplication')
+ }
}
}
@@ -740,6 +965,8 @@ export default {
+
diff --git a/front/src/views/newHome/components/PopularAbility.vue b/front/src/views/newHome/components/PopularAbility.vue
index 66f7475a..82206d55 100644
--- a/front/src/views/newHome/components/PopularAbility.vue
+++ b/front/src/views/newHome/components/PopularAbility.vue
@@ -16,7 +16,7 @@
>
{{ sel }}
@@ -32,7 +32,7 @@
-
+
{{ select }}:{{ item.visits }}
@@ -63,8 +63,8 @@
import { useStore } from 'vuex'
const store = useStore()
const router = useRouter()
- const select = ref('访问量')
- const selList = ref(['访问量', '申购量', '收藏量'])
+ const select = ref('浏览量')
+ const selList = ref(['浏览量', '申购量', '收藏量'])
const list = ref([])
const paramsGetResources = {
@@ -74,13 +74,13 @@
type: '',
name: '',
infoList: [],
- orderField: 'visits', // total 综合 visits 访问量 applyCount 申请量 score 评分 collectCount 收藏量
+ orderField: 'visits', // total 综合 visits 浏览量 applyCount 申请量 score 评分 collectCount 收藏量
orderType: 'DESC', // ASC 升序 DESC 降序
}
const selectChange = (sel) => {
select.value = sel
switch (select.value) {
- case '访问量':
+ case '浏览量':
paramsGetResources.orderField = 'visits'
break
case '申购量':
diff --git a/front/src/views/newHome/components/WorkDynamics.vue b/front/src/views/newHome/components/WorkDynamics.vue
index 1bb82323..3169b131 100644
--- a/front/src/views/newHome/components/WorkDynamics.vue
+++ b/front/src/views/newHome/components/WorkDynamics.vue
@@ -146,9 +146,9 @@
'智能算法',
'图层服务',
'开发组件',
- '办公组件',
+ // '办公组件',
'业务组件',
- '其他',
+ // '其他',
])
const visible = ref(false)
const showModal = () => {
diff --git a/front/src/views/personalCenter/components/MyPublish.vue b/front/src/views/personalCenter/components/MyPublish.vue
index da9c0698..e9c4b535 100644
--- a/front/src/views/personalCenter/components/MyPublish.vue
+++ b/front/src/views/personalCenter/components/MyPublish.vue
@@ -318,9 +318,9 @@
'智能算法',
'图层服务',
'开发组件',
- '办公组件',
+ // '办公组件',
'业务组件',
- '其他',
+ // '其他',
])
let tabname = ref('组件服务')
function tabqiehuan(item, index) {
From 8fcdff051b0013ca3db66fb33f9fb949ca7fd411 Mon Sep 17 00:00:00 2001
From: wuhongjian
Date: Thu, 30 Jun 2022 19:04:35 +0800
Subject: [PATCH 08/19] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
front/public/index.html | 4 +-
.../src/views/detailsAll/AlgorithmDetails.vue | 7 +++-
.../Algorithm/AlgorithmAssociatedAbility.vue | 23 +++++++----
.../Algorithm/AlgorithmNavigation.vue | 41 ++++++++++++++-----
4 files changed, 51 insertions(+), 24 deletions(-)
diff --git a/front/public/index.html b/front/public/index.html
index 6353bd6c..46cadfa4 100644
--- a/front/public/index.html
+++ b/front/public/index.html
@@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian
* @Date: 2022-03-29 16:45:25
* @LastEditors: hisense.wuhongjian
- * @LastEditTime: 2022-06-29 19:38:31
+ * @LastEditTime: 2022-06-30 15:30:25
* @Description: 告诉大家这是什么
-->
@@ -47,7 +47,7 @@
window.SITE_CONFIG['backUrl'] = 'http://15.2.21.238:9797';
window.SITE_CONFIG['previewUrl'] = 'http://15.2.21.238:9796/';
window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.238:9796/document/#/devModelFile/';
- window.SITE_CONFIG['apiURL'] = 'http://15.2.21.238:8888/renren-admin';
+ window.SITE_CONFIG['apiURL'] = 'http://15.2.21.239:8888/renren-admin';
window.SITE_CONFIG['POI_URL'] = 'http://15.2.21.238:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address';
// 穿透版本
// window.SITE_CONFIG['backUrl'] = 'http://124.222.94.39:9797';
diff --git a/front/src/views/detailsAll/AlgorithmDetails.vue b/front/src/views/detailsAll/AlgorithmDetails.vue
index caa53ed5..81159a55 100644
--- a/front/src/views/detailsAll/AlgorithmDetails.vue
+++ b/front/src/views/detailsAll/AlgorithmDetails.vue
@@ -1,8 +1,8 @@
@@ -23,6 +23,7 @@
>
{
associatedComponents.value[index].dataList = res.data.data
+ loading.value = false
})
})
} else if (obj) {
diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmAssociatedAbility.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmAssociatedAbility.vue
index 95e54415..023501d8 100644
--- a/front/src/views/detailsAll/components/Algorithm/AlgorithmAssociatedAbility.vue
+++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmAssociatedAbility.vue
@@ -1,6 +1,6 @@
-
+
{
- router.push({
- path: '/details',
- query: {
- id: id,
- },
- })
+ // router.push({
+ // path: '/details',
+ // query: {
+ // id: id,
+ // },
+ // })
+ window.open(window.SITE_CONFIG.previewUrl+ '#/details?id=' + id)
+ // alert(id)
}
- if (props.associatedComponents) {
+ console.log('这个是空值', props.associatedComponents[0])
+ if (props.associatedComponents[0].dataList.length > 0) {
+ console.log('这个是空值', props.associatedComponents)
flag.value = true
dataFrom.value = props.associatedComponents
console.log('dataFrom.value', dataFrom.value)
@@ -82,7 +86,7 @@
margin-top: 0.4rem;
width: 13.3rem;
display: flex;
- justify-content: space-between;
+ justify-content: space-around;
.associated-ability-card {
width: 3.2rem;
display: flex;
@@ -106,6 +110,7 @@
color: #999;
margin-right: 0.15rem;
margin-top: 0.15rem;
+ text-align: center;
}
}
}
diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue
index bb2ac893..e920f5eb 100644
--- a/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue
+++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue
@@ -1,8 +1,8 @@
@@ -21,8 +21,14 @@
+
\ No newline at end of file
diff --git a/back/src/views/modules/abilityStatistics/index.vue b/back/src/views/modules/abilityStatistics/index.vue
index 75b8343a..ba73d740 100644
--- a/back/src/views/modules/abilityStatistics/index.vue
+++ b/back/src/views/modules/abilityStatistics/index.vue
@@ -111,15 +111,18 @@
+
From c8e1881fae3988fc6911d2f0aade87d0a6b9932f Mon Sep 17 00:00:00 2001
From: wuhongjian
Date: Fri, 1 Jul 2022 11:10:23 +0800
Subject: [PATCH 17/19] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
front/public/index.html | 4 +-
front/src/api/home.js | 11 +++-
front/src/views/home/infrastructurePage.vue | 2 +-
.../personalCenter/components/MyApply.vue | 62 ++++++++++++++++++-
4 files changed, 71 insertions(+), 8 deletions(-)
diff --git a/front/public/index.html b/front/public/index.html
index f76fb049..184e2fb1 100644
--- a/front/public/index.html
+++ b/front/public/index.html
@@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian
* @Date: 2022-03-29 16:45:25
* @LastEditors: hisense.wuhongjian
- * @LastEditTime: 2022-06-30 19:06:47
+ * @LastEditTime: 2022-06-30 21:21:10
* @Description: 告诉大家这是什么
-->
@@ -47,7 +47,7 @@
window.SITE_CONFIG['backUrl'] = 'http://15.2.21.238:9797';
window.SITE_CONFIG['previewUrl'] = 'http://15.2.21.238:9796/';
window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.238:9796/document/#/devModelFile/';
- window.SITE_CONFIG['apiURL'] = 'http://15.2.21.239:8888/renren-admin';
+ window.SITE_CONFIG['apiURL'] = 'http://15.2.21.238:8888/renren-admin';
window.SITE_CONFIG['POI_URL'] = 'http://15.2.21.238:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address';
// 穿透版本
// window.SITE_CONFIG['backUrl'] = 'http://124.222.94.39:9797';
diff --git a/front/src/api/home.js b/front/src/api/home.js
index fbc1578f..2f536134 100644
--- a/front/src/api/home.js
+++ b/front/src/api/home.js
@@ -1,8 +1,8 @@
/*
* @Author: hisense.wuhongjian
* @Date: 2022-04-01 19:19:40
- * @LastEditors: hisense.liangjunhua
- * @LastEditTime: 2022-06-30 18:03:17
+ * @LastEditors: hisense.wuhongjian
+ * @LastEditTime: 2022-06-30 19:36:48
* @Description: 告诉大家这是什么
*/
import request from '@/utils/request'
@@ -322,3 +322,10 @@ export function selectInfrastructureList(params) {
params,
})
}
+// 根据instanceId获取摄像头列表
+export function getApplyCameraList(id) {
+ return request({
+ url: '/resource/getApplyCameraList/' + id,
+ method: 'get',
+ })
+}
diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue
index 15f9cf34..8f791563 100644
--- a/front/src/views/home/infrastructurePage.vue
+++ b/front/src/views/home/infrastructurePage.vue
@@ -34,7 +34,7 @@
{{ pagination.total }}
个
-
+
已选
{{ selectedRowKeys.length }}
diff --git a/front/src/views/personalCenter/components/MyApply.vue b/front/src/views/personalCenter/components/MyApply.vue
index dfa3d105..bc685583 100644
--- a/front/src/views/personalCenter/components/MyApply.vue
+++ b/front/src/views/personalCenter/components/MyApply.vue
@@ -48,7 +48,8 @@
{{ item.name }}
- 名称:{{ item.name }}
+
名称:{{ item.name }}
+
名称:{{ item.name }}
@@ -71,7 +72,8 @@
- 申请结果:{{ item.comment || '暂无' }}
+ 申请结果:{{ '列表地址:' + backUrl + 'resource/getApplyCameraList/' + item.processInstanceId+';'+ '视频流地址:'+backUrl + '/resource/hls/getHls/?channelId='}}
+ 申请结果:{{ item.comment || '暂无' }}
+
+
+
+
+
+
+
@@ -231,7 +246,7 @@
getTaskHandleDetailInfo,
// getProcDefBizRoute,
} from '@/api/personalCenter'
- import { updateRes, relaunch, selectOne } from '@/api/home'
+ import { updateRes, relaunch, selectOne,getApplyCameraList } from '@/api/home'
import { useRouter } from 'vue-router'
import { message } from 'ant-design-vue'
import ApplyDetails from '@/views/personalCenter/components/ApplyDetails'
@@ -241,6 +256,40 @@
// const contentListClone = reactive({ data: [] })
// let contentListLength = contentList.length
let tabIndex = ref(0)
+ const videoVisible = ref(false)
+ const columns = ref([{
+ title: '摄像头名称',
+ dataIndex: 'name'
+ }])
+ const xVideoList = ref([{
+ name: '111'
+ }, {
+ name: '222'
+ },{
+ name: '111'
+ }, {
+ name: '222'
+ },{
+ name: '111'
+ }, {
+ name: '222'
+ },{
+ name: '111'
+ }, {
+ name: '222'
+ },{
+ name: '111'
+ }, {
+ name: '222'
+ },{
+ name: '111'
+ }, {
+ name: '222'
+ },{
+ name: '111'
+ }, {
+ name: '222'
+ },])
function tabqiehuan(item, index) {
// debugger
tabIndex.value = index
@@ -272,6 +321,7 @@
const visible = ref(false)
const delObj = ref({})
const taskId = ref('')
+ const backUrl = ref(window.SITE_CONFIG.apiURL + '/')
const showDetail = (item) => {
console.log('showDetail', item)
// getProcDefBizRoute(item.processDefinitionId)
@@ -281,6 +331,12 @@
processInstanceId.value = item.processInstanceId
resourceId.value = item.resourceId
}
+ const showVideoList = (item) => {
+ // getApplyCameraList(item.processInstanceId).then(res=>{
+ // console.log('res', res)
+ // })
+ videoVisible.value = true
+ }
const copyComment = (data) => {
let url = data
let oInput = document.createElement('input')
From 91c7e6c904e1d0c8179712dff398a5a511250312 Mon Sep 17 00:00:00 2001
From: a0049873 <79py69t9wb@privaterelay.appleid.com>
Date: Fri, 1 Jul 2022 11:10:58 +0800
Subject: [PATCH 18/19] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=A0=E9=99=A4?=
=?UTF-8?q?=E6=A0=A1=E9=AA=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
front/src/views/home/AbilityToApplyFor.vue | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/front/src/views/home/AbilityToApplyFor.vue b/front/src/views/home/AbilityToApplyFor.vue
index af0309ac..7fd3236b 100644
--- a/front/src/views/home/AbilityToApplyFor.vue
+++ b/front/src/views/home/AbilityToApplyFor.vue
@@ -36,6 +36,7 @@