From aa6022f5990f43f050c55bc59cfbb8705ce6c89f Mon Sep 17 00:00:00 2001
From: gongjiale <942894820@qq.com>
Date: Sun, 2 Oct 2022 16:42:34 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86usc?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../assignedScene/add-update-scene.vue | 5 +
.../modules/ability/assignedScene/index.vue | 1 +
.../views/modules/abilityStatistics/index.vue | 115 ++++++++++--------
front/src/api/home.js | 8 ++
.../views/capacityOnTheShelf/Application.vue | 19 +--
.../home/components/ApplicationTopDetails.vue | 16 ++-
.../components/integrationServiceOrder.vue | 10 +-
front/src/views/home/integrationServices.vue | 6 +-
front/src/views/home/productService.vue | 2 +-
.../components/CapabilityConvergence.vue | 68 ++++++++++-
.../views/newHome/components/Navigation.vue | 8 +-
11 files changed, 184 insertions(+), 74 deletions(-)
diff --git a/back/src/views/modules/ability/assignedScene/add-update-scene.vue b/back/src/views/modules/ability/assignedScene/add-update-scene.vue
index 3db71513..5f1f133e 100644
--- a/back/src/views/modules/ability/assignedScene/add-update-scene.vue
+++ b/back/src/views/modules/ability/assignedScene/add-update-scene.vue
@@ -27,10 +27,14 @@
+
+
+
+
+
+
@@ -315,7 +316,8 @@ export default {
type: ''
}
],
- examineStatus: '0', // 审核状态
+ examineStatus: '-1', // 审核状态
+ status:'',
value1: [], // 起始时间
abilityDepartment: '', // 部门
abilityType: '', // 能力
@@ -335,17 +337,17 @@ export default {
},
created () {
// 当前设定的日期时间
- const d = new Date()
- let year1, month1, day1
- ;[year1, month1, day1] = [d.getFullYear(), d.getMonth(), d.getDate()]
- const date1 = new Date(year1, month1, day1, 7)
- this.value1.push(date1)
- // 前一天设定的日期时间
- let year2, month2, day2
- d.setTime(d.getTime() - 24 * 60 * 60 * 1000)
- ;[year2, month2, day2] = [d.getFullYear(), d.getMonth(), d.getDate()]
- const date2 = new Date(year2, month2, day2, 7)
- this.value1.unshift(date2)
+ // const d = new Date()
+ // let year1, month1, day1
+ // ;[year1, month1, day1] = [d.getFullYear(), d.getMonth(), d.getDate()]
+ // const date1 = new Date(year1, month1, day1, 7)
+ // this.value1.push(date1)
+ // // 前一天设定的日期时间
+ // let year2, month2, day2
+ // d.setTime(d.getTime() - 24 * 60 * 60 * 1000)
+ // ;[year2, month2, day2] = [d.getFullYear(), d.getMonth(), d.getDate()]
+ // const date2 = new Date(year2, month2, day2, 7)
+ // this.value1.unshift(date2)
},
mounted () {
this.getFirstTree()
@@ -402,12 +404,17 @@ export default {
// 组件服务部门发布情况--改为能力上架统计
getFirstTree (page) {
+ if(this.examineStatus== '全部'){
+ this.status=''
+ }else{
+ this.status=this.examineStatus
+ }
this.$http
.get('/census/center/selectDeptDetailTypeCountList/', {
params: {
page: page || 1,
limit: 5,
- approveStatus: this.examineStatus,
+ approveStatus: this.status,
deptId: this.abilityDepartment,
params: '',
startDate: this.startDate,
@@ -445,12 +452,17 @@ export default {
},
// 组件服务部门使用情况列表-改为能力使用统计
getSecondTree () {
+ if(this.examineStatus== '全部'){
+ this.status=''
+ }else{
+ this.status=this.examineStatus
+ }
this.$http
.get('/census/center/selectApplyDeptDetailTypeCountList', {
params: {
// page: page || 1,
// limit: 5,
- approveStatus: this.examineStatus,
+ approveStatus: this.status,
deptId: this.abilityDepartment,
params: '',
startDate: this.startDate,
@@ -501,7 +513,7 @@ export default {
// page: page || 1,
approveStatus: passAndReview,
deptId: this.abilityDepartment,
- type: '',
+ type: this.abilityType,
startDate: this.startDate,
endDate: this.endDate
}
@@ -520,14 +532,19 @@ export default {
} else {
passAndReview = this.examineStatus
}
+ if(this.examineStatus== '全部'){
+ this.status=''
+ }else{
+ this.status=this.examineStatus
+ }
this.$http
.get('/census/center/selectCensusApplyTable', {
params: {
// limit: 5,
// page: page || 1,
- approveStatus: this.examineStatus,
+ approveStatus: this.status,
deptId: this.abilityDepartment,
- type: '',
+ type: this.abilityType,
startDate: this.startDate,
endDate: this.endDate
}
@@ -710,14 +727,19 @@ export default {
},
// 点击查询按钮查询数据
getDataList () {
- if (this.value1.length > 0) {
+ if (this.value1 && this.value1.length > 0) {
this.startDate = this.handleTime(this.value1[0], 'yyyy-MM-dd HH:mm:ss')
this.endDate = this.handleTime(this.value1[1], 'yyyy-MM-dd HH:mm:ss')
+ }else{
+ this.startDate =''
+ this.endDate =''
}
if (this.examineStatus == 0) {
this.examineStatus = '审核中'
- } else {
+ } if (this.examineStatus == 1) {
this.examineStatus = '审核完成'
+ } else {
+ this.examineStatus = '全部'
}
if (this.abilityDepartment) {
@@ -731,28 +753,23 @@ export default {
} else {
this.abilityType = ''
}
- console.log('查询参数开始时间1', this.startDate)
- console.log('查询参数结束时间2', this.endDate)
- console.log('查询参数审核状态', this.examineStatus)
- console.log('查询参数部门', this.abilityDepartment)
- console.log('查询参数类型', this.abilityType)
if (this.departmentId === 1) {
- if (this.detailFlag) {
- this.handleChose(3)
- this.detailFlag = !this.detailFlag
- } else {
+ // if (this.detailFlag) {
+ // this.handleChose(3)
+ // this.detailFlag = !this.detailFlag
+ // } else {
this.handleChose(1)
- this.detailFlag = !this.detailFlag
- }
+ // this.detailFlag = !this.detailFlag
+ // }
// this.departmentId = 1;
} else if (this.departmentId === 2) {
- if (this.detailFlag) {
- this.handleChose(4)
- this.detailFlag = !this.detailFlag
- } else {
+ // if (this.detailFlag) {
+ // this.handleChose(4)
+ // this.detailFlag = !this.detailFlag
+ // } else {
this.handleChose(2)
- this.detailFlag = !this.detailFlag
- }
+ // this.detailFlag = !this.detailFlag
+ // }
} else if (this.departmentId === 3) {
this.handleChose(3)
} else {
@@ -763,26 +780,26 @@ export default {
resetDataList () {
this.startDate = ''
this.endDate = ''
- this.examineStatus = '审核中'
+ this.examineStatus = '全部'
this.abilityDepartment = ''
this.abilityType = ''
if (this.departmentId === 1) {
- if (this.detailFlag) {
- this.handleChose(3)
- this.detailFlag = !this.detailFlag
- } else {
+ // if (this.detailFlag) {
+ // this.handleChose(3)
+ // this.detailFlag = !this.detailFlag
+ // } else {
this.handleChose(1)
- this.detailFlag = !this.detailFlag
- }
+ // this.detailFlag = !this.detailFlag
+ // }
// this.departmentId = 1;
} else if (this.departmentId === 2) {
- if (this.detailFlag) {
- this.handleChose(4)
- this.detailFlag = !this.detailFlag
- } else {
+ // if (this.detailFlag) {
+ // this.handleChose(4)
+ // this.detailFlag = !this.detailFlag
+ // } else {
this.handleChose(2)
- this.detailFlag = !this.detailFlag
- }
+ // this.detailFlag = !this.detailFlag
+ // }
} else if (this.departmentId === 3) {
this.handleChose(3)
} else {
diff --git a/front/src/api/home.js b/front/src/api/home.js
index e29fce91..158f64f5 100644
--- a/front/src/api/home.js
+++ b/front/src/api/home.js
@@ -352,6 +352,14 @@ export function selectInfrastructureList(params) {
params,
})
}
+//首页 组件服务
+export function selectCollectComponentList(params) {
+ return request({
+ url: 'resource/selectCollectComponentList',
+ method: 'get',
+ params,
+ })
+}
// 根据instanceId获取摄像头列表
export function getApplyCameraList(id) {
return request({
diff --git a/front/src/views/capacityOnTheShelf/Application.vue b/front/src/views/capacityOnTheShelf/Application.vue
index aa31de8e..a616eb81 100644
--- a/front/src/views/capacityOnTheShelf/Application.vue
+++ b/front/src/views/capacityOnTheShelf/Application.vue
@@ -346,15 +346,15 @@
) {
notFilled.value.push('应用领域')
}
- // if (
- // !dataFrom.value.infoList.filter(
- // (val) => val.attrType === '应用状态'
- // )[0] ||
- // !dataFrom.value.infoList.filter((val) => val.attrType === '应用状态')[0]
- // .attrValue
- // ) {
- // notFilled.value.push('应用状态')
- // }
+ if (
+ !dataFrom.value.infoList.filter(
+ (val) => val.attrType === '应用状态'
+ )[0] ||
+ !dataFrom.value.infoList.filter((val) => val.attrType === '应用状态')[0]
+ .attrValue
+ ) {
+ notFilled.value.push('应用状态')
+ }
if (
!dataFrom.value.infoList.filter(
(val) => val.attrType === '应用类型'
@@ -373,6 +373,7 @@
// ) {
// notFilled.value.push('共享条件')
// }
+
if (notFilled.value.length > 0) {
message.warning('请填写必填字段')
console.log(notFilled.value)
diff --git a/front/src/views/home/components/ApplicationTopDetails.vue b/front/src/views/home/components/ApplicationTopDetails.vue
index 92fe68ad..d25d5f09 100644
--- a/front/src/views/home/components/ApplicationTopDetails.vue
+++ b/front/src/views/home/components/ApplicationTopDetails.vue
@@ -27,9 +27,12 @@
{{ props.dataList.shareCondition }}
+
+
+
@@ -72,7 +80,9 @@
-->
-
+
+
+