部分问题修改
This commit is contained in:
parent
aa6022f599
commit
e01788b7b0
|
@ -176,14 +176,20 @@
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
v-show="this.departmentId === 3 || this.departmentId === 4"
|
v-show="this.departmentId === 3 || this.departmentId === 4"
|
||||||
>
|
>
|
||||||
<el-table-column prop="deptName" label="部门" width="180">
|
<el-table-column prop="deptName" label="部门" min-width="100%">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="resourceName" label="资源名称" width="180">
|
<el-table-column prop="resourceName" label="资源名称" min-width="100%">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="type" label="类型"> </el-table-column>
|
<el-table-column prop="type" label="类型" min-width="100%"> </el-table-column>
|
||||||
<el-table-column prop="createDate" label="日期"> </el-table-column>
|
<el-table-column prop="createDate" label="日期" min-width="100%"> </el-table-column>
|
||||||
<el-table-column prop="approveStatus" label="状态">
|
<el-table-column prop="approveStatus" label="状态" min-width="100%">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" min-width="100%">
|
||||||
|
<template slot-scope="scope" >
|
||||||
|
<el-link type="primary" v-if="scope.row.applyNumber" v-on:click="detailClick(scope.row)">查看详情</el-link>
|
||||||
|
<el-link type="info" v-else disabled>后台挂接,无详情</el-link>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
|
@ -216,17 +222,35 @@
|
||||||
:fatherId="fatherId"
|
:fatherId="fatherId"
|
||||||
@closeApplication="closeApplication"
|
@closeApplication="closeApplication"
|
||||||
></application-resources>
|
></application-resources>
|
||||||
|
<ability-detail v-if="detailsVisible"
|
||||||
|
:detailsVisible="detailsVisible" :detailParamss="detailParamss" :detailType="detailType" @closeModal="closeModal">
|
||||||
|
</ability-detail>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import componentServices from './componentServices.vue'
|
import componentServices from './componentServices.vue'
|
||||||
|
import AbilityDetail from './components/abilityDetails'
|
||||||
import applicationResources from './applicationResources.vue'
|
import applicationResources from './applicationResources.vue'
|
||||||
import ComponentUsed from './componentUsed.vue'
|
import ComponentUsed from './componentUsed.vue'
|
||||||
|
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
// const props = defineProps({
|
||||||
|
// processDefinitionName: { type: String, default: null },
|
||||||
|
// businessKey: { type: String, default: null },
|
||||||
|
// processInstanceId: { type: String, default: null },
|
||||||
|
// resourceId: { type: String, default: null },
|
||||||
|
// refObj: { type: Object, default: null },
|
||||||
|
// showType: { type: String, default: null },
|
||||||
|
// })
|
||||||
export default {
|
export default {
|
||||||
components: { componentServices, applicationResources, ComponentUsed },
|
components: { componentServices, applicationResources, ComponentUsed,AbilityDetail },
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
detailType:'',
|
||||||
|
detailParamss:{},
|
||||||
|
isBack:true,
|
||||||
|
detailsVisible:false,
|
||||||
inputTxt: '',
|
inputTxt: '',
|
||||||
tableId: '',
|
tableId: '',
|
||||||
fatherId: '',
|
fatherId: '',
|
||||||
|
@ -306,7 +330,7 @@ export default {
|
||||||
{ name: '数据资源', key: 3 },
|
{ name: '数据资源', key: 3 },
|
||||||
{ name: '知识库', key: 3 }
|
{ name: '知识库', key: 3 }
|
||||||
],
|
],
|
||||||
tableData: [{ deptName: '部门', resourceNum: 222 }],
|
tableData: [],
|
||||||
tableData2: [
|
tableData2: [
|
||||||
{
|
{
|
||||||
approveStatus: '',
|
approveStatus: '',
|
||||||
|
@ -356,16 +380,9 @@ export default {
|
||||||
...mapState(['departmentSelects'])
|
...mapState(['departmentSelects'])
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 搜索框
|
closeModal() {
|
||||||
// searchBtn(){
|
this.detailsVisible = false;
|
||||||
// this.getALLTree()
|
},
|
||||||
// },
|
|
||||||
// //树
|
|
||||||
// handleNodeClick(data) {
|
|
||||||
// console.log(data.name);
|
|
||||||
// this.getTreeName(data)
|
|
||||||
// },
|
|
||||||
// 翻页
|
|
||||||
handleCurrentChange (val) {
|
handleCurrentChange (val) {
|
||||||
if (this.choseId === 0) {
|
if (this.choseId === 0) {
|
||||||
this.getFirstTree(val)
|
this.getFirstTree(val)
|
||||||
|
@ -404,8 +421,13 @@ export default {
|
||||||
|
|
||||||
// 组件服务部门发布情况--改为能力上架统计
|
// 组件服务部门发布情况--改为能力上架统计
|
||||||
getFirstTree (page) {
|
getFirstTree (page) {
|
||||||
if(this.examineStatus== '全部'){
|
|
||||||
|
if(this.examineStatus== '-1' ){
|
||||||
this.status=''
|
this.status=''
|
||||||
|
}else if(this.examineStatus== '0' ){
|
||||||
|
this.status='审核中'
|
||||||
|
}else if(this.examineStatus== '1' ){
|
||||||
|
this.status='审核完成'
|
||||||
}else{
|
}else{
|
||||||
this.status=this.examineStatus
|
this.status=this.examineStatus
|
||||||
}
|
}
|
||||||
|
@ -452,8 +474,12 @@ export default {
|
||||||
},
|
},
|
||||||
// 组件服务部门使用情况列表-改为能力使用统计
|
// 组件服务部门使用情况列表-改为能力使用统计
|
||||||
getSecondTree () {
|
getSecondTree () {
|
||||||
if(this.examineStatus== '全部'){
|
if(this.examineStatus== '-1' ){
|
||||||
this.status=''
|
this.status=''
|
||||||
|
}else if(this.examineStatus== '0' ){
|
||||||
|
this.status='审核中'
|
||||||
|
}else if(this.examineStatus== '1' ){
|
||||||
|
this.status='审核完成'
|
||||||
}else{
|
}else{
|
||||||
this.status=this.examineStatus
|
this.status=this.examineStatus
|
||||||
}
|
}
|
||||||
|
@ -497,21 +523,74 @@ export default {
|
||||||
this.tableData = res.data.data
|
this.tableData = res.data.data
|
||||||
this.total = res.data.data.total
|
this.total = res.data.data.total
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
//点击查看详情
|
||||||
|
detailClick(row){
|
||||||
|
this.detailParamss={}
|
||||||
|
let applyNumber=row.applyNumber
|
||||||
|
if(applyNumber ==nu)
|
||||||
|
if (this.departmentId === 3) { //能力上架
|
||||||
|
this.detailType='能力上架'
|
||||||
|
let params = {
|
||||||
|
processInstanceId: applyNumber,
|
||||||
|
}
|
||||||
|
this.$http
|
||||||
|
.get('/act/his/getTaskHandleDetailInfo',{params})
|
||||||
|
.then((res) => {
|
||||||
|
if (res.data.code == 0) {
|
||||||
|
|
||||||
|
if(res.data.data!=null){
|
||||||
|
this.detailParamss.resourceApplication=[]
|
||||||
|
this.detailParamss.resourceApplication=res.data.data
|
||||||
|
this.detailsVisible=true
|
||||||
|
} else{
|
||||||
|
this.$message.info('暂无详情数据!')
|
||||||
|
}}else {
|
||||||
|
this.$message.error('数据请求失败!')
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
} else if (this.departmentId === 4) {//能力使用
|
||||||
|
|
||||||
|
this.detailType='能力使用'
|
||||||
|
this.$http
|
||||||
|
.get('/processForm/tabilityapplication/getByApplyFlag/'+applyNumber)
|
||||||
|
.then((res) => {
|
||||||
|
|
||||||
|
if (res.data.code == 0) {
|
||||||
|
if(res.data.data!=null){
|
||||||
|
this.detailParamss=res.data.data
|
||||||
|
this.detailsVisible=true }
|
||||||
|
else{
|
||||||
|
this.$message.info('暂无详情数据!')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$message.error('数据请求失败!')
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// 能力上架明细
|
// 能力上架明细
|
||||||
getOneDetail (page) {
|
getOneDetail (page) {
|
||||||
var passAndReview = '' // 转变"审核完成"字段为通过
|
var passAndReview = '' // 转变"审核完成"字段为通过
|
||||||
if (this.examineStatus === '审核完成') {
|
if(this.examineStatus== '-1' ){
|
||||||
passAndReview = '通过'
|
this.status=''
|
||||||
} else {
|
}else if(this.examineStatus== '0' ){
|
||||||
passAndReview = this.examineStatus
|
this.status='审核中'
|
||||||
|
}else if(this.examineStatus== '1' ){
|
||||||
|
this.status='通过'
|
||||||
|
}else{
|
||||||
|
this.status=this.examineStatus
|
||||||
}
|
}
|
||||||
this.$http
|
this.$http
|
||||||
.get('/census/center/selectCensusResourceTable', {
|
.get('/census/center/selectCensusResourceTable', {
|
||||||
params: {
|
params: {
|
||||||
// limit: 5,
|
// limit: 5,
|
||||||
// page: page || 1,
|
// page: page || 1,
|
||||||
approveStatus: passAndReview,
|
approveStatus: this.status,
|
||||||
deptId: this.abilityDepartment,
|
deptId: this.abilityDepartment,
|
||||||
type: this.abilityType,
|
type: this.abilityType,
|
||||||
startDate: this.startDate,
|
startDate: this.startDate,
|
||||||
|
@ -527,13 +606,12 @@ export default {
|
||||||
// 能力使用明细
|
// 能力使用明细
|
||||||
getTwoDetail (page) {
|
getTwoDetail (page) {
|
||||||
var passAndReview = '' // 转变"审核完成"字段为通过
|
var passAndReview = '' // 转变"审核完成"字段为通过
|
||||||
if (this.examineStatus === '审核完成') {
|
if(this.examineStatus== '-1' ){
|
||||||
passAndReview = '通过'
|
|
||||||
} else {
|
|
||||||
passAndReview = this.examineStatus
|
|
||||||
}
|
|
||||||
if(this.examineStatus== '全部'){
|
|
||||||
this.status=''
|
this.status=''
|
||||||
|
}else if(this.examineStatus== '0' ){
|
||||||
|
this.status='审核中'
|
||||||
|
}else if(this.examineStatus== '1' ){
|
||||||
|
this.status='通过'
|
||||||
}else{
|
}else{
|
||||||
this.status=this.examineStatus
|
this.status=this.examineStatus
|
||||||
}
|
}
|
||||||
|
@ -734,13 +812,6 @@ export default {
|
||||||
this.startDate =''
|
this.startDate =''
|
||||||
this.endDate =''
|
this.endDate =''
|
||||||
}
|
}
|
||||||
if (this.examineStatus == 0) {
|
|
||||||
this.examineStatus = '审核中'
|
|
||||||
} if (this.examineStatus == 1) {
|
|
||||||
this.examineStatus = '审核完成'
|
|
||||||
} else {
|
|
||||||
this.examineStatus = '全部'
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.abilityDepartment) {
|
if (this.abilityDepartment) {
|
||||||
this.abilityDepartment = this.abilityDepartment
|
this.abilityDepartment = this.abilityDepartment
|
||||||
|
@ -753,23 +824,10 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.abilityType = ''
|
this.abilityType = ''
|
||||||
}
|
}
|
||||||
if (this.departmentId === 1) {
|
if (this.departmentId === 1) {
|
||||||
// if (this.detailFlag) {
|
|
||||||
// this.handleChose(3)
|
|
||||||
// this.detailFlag = !this.detailFlag
|
|
||||||
// } else {
|
|
||||||
this.handleChose(1)
|
this.handleChose(1)
|
||||||
// this.detailFlag = !this.detailFlag
|
} else if (this.departmentId === 2) {
|
||||||
// }
|
|
||||||
// this.departmentId = 1;
|
|
||||||
} else if (this.departmentId === 2) {
|
|
||||||
// if (this.detailFlag) {
|
|
||||||
// this.handleChose(4)
|
|
||||||
// this.detailFlag = !this.detailFlag
|
|
||||||
// } else {
|
|
||||||
this.handleChose(2)
|
this.handleChose(2)
|
||||||
// this.detailFlag = !this.detailFlag
|
|
||||||
// }
|
|
||||||
} else if (this.departmentId === 3) {
|
} else if (this.departmentId === 3) {
|
||||||
this.handleChose(3)
|
this.handleChose(3)
|
||||||
} else {
|
} else {
|
||||||
|
@ -778,6 +836,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 重置按钮查询数据
|
// 重置按钮查询数据
|
||||||
resetDataList () {
|
resetDataList () {
|
||||||
|
this.value1=[]
|
||||||
this.startDate = ''
|
this.startDate = ''
|
||||||
this.endDate = ''
|
this.endDate = ''
|
||||||
this.examineStatus = '全部'
|
this.examineStatus = '全部'
|
||||||
|
|
|
@ -360,6 +360,15 @@ export function selectCollectComponentList(params) {
|
||||||
params,
|
params,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//首页 应用资源
|
||||||
|
export function selectCollectResourceList(params) {
|
||||||
|
return request({
|
||||||
|
url: 'resource/selectCollectResourceList',
|
||||||
|
method: 'get',
|
||||||
|
params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 根据instanceId获取摄像头列表
|
// 根据instanceId获取摄像头列表
|
||||||
export function getApplyCameraList(id) {
|
export function getApplyCameraList(id) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
</div> -->
|
</div> -->
|
||||||
<div
|
<div
|
||||||
class="name"
|
class="name"
|
||||||
v-for="(item, index) in zjList"
|
v-for="(item, index) in zjList.slice(0, 5)"
|
||||||
:key="item.name"
|
:key="item.name"
|
||||||
:class="index == 4 ? 'name-last' : ''"
|
:class="index == 4 ? 'name-last' : ''"
|
||||||
@click="selectOne1(item.name)"
|
@click="selectOne1(item.name)"
|
||||||
|
@ -30,14 +30,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="yy">应用资源</div>
|
<div class="yy">应用资源</div>
|
||||||
<div
|
<div
|
||||||
class="name"
|
class="name"
|
||||||
v-for="(item, index) in yyList"
|
v-for="(item, index) in yyList.slice(0, 5)"
|
||||||
:key="item.id"
|
:key="item.name"
|
||||||
:class="index == 4 ? 'name-last' : ''"
|
:class="index == 4 ? 'name-last' : ''"
|
||||||
@click="selectOne(item.id)"
|
@click="selectOne11(item.name)"
|
||||||
>
|
>
|
||||||
{{ index + 1 }}-{{ item.name }}
|
{{ item.name + '-' + item.num + '项' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="btn" @click="jumpPage('应用资源')">查看更多</div>
|
<div class="btn" @click="jumpPage('应用资源')">查看更多</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
<div class="jc">基础设施</div>
|
<div class="jc">基础设施</div>
|
||||||
<div
|
<div
|
||||||
class="name"
|
class="name"
|
||||||
v-for="(item, index) in jcList"
|
v-for="(item, index) in jcList.slice(0, 5)"
|
||||||
:key="item.name"
|
:key="item.name"
|
||||||
:class="index == 2 ? 'name-last' : ''"
|
:class="index == 2 ? 'name-last' : ''"
|
||||||
@click="selectOne2(item.name)"
|
@click="selectOne2(item.name)"
|
||||||
|
@ -89,7 +89,8 @@
|
||||||
pageWithAttrs,
|
pageWithAttrs,
|
||||||
getDataResource,
|
getDataResource,
|
||||||
selectInfrastructureList,
|
selectInfrastructureList,
|
||||||
selectCollectComponentList
|
selectCollectComponentList,
|
||||||
|
selectCollectResourceList
|
||||||
} from '@/api/home.js'
|
} from '@/api/home.js'
|
||||||
import { ref, reactive } from 'vue'
|
import { ref, reactive } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
|
@ -174,6 +175,7 @@
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
let type = paramsGetResources.type
|
let type = paramsGetResources.type
|
||||||
|
|
||||||
if (type == '基础设施') {
|
if (type == '基础设施') {
|
||||||
jcList.value = []
|
jcList.value = []
|
||||||
selectInfrastructureList().then((res) => {
|
selectInfrastructureList().then((res) => {
|
||||||
|
@ -264,7 +266,53 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
}
|
||||||
|
else if (type == '应用资源') {
|
||||||
|
yyList.value = []
|
||||||
|
selectCollectResourceList().then((res) => {
|
||||||
|
for (const key in res.data.data) {
|
||||||
|
if (whoShow1.value.itShowXiHaiAn) {
|
||||||
|
if (key === '视频资源') {
|
||||||
|
yyList.value.push({
|
||||||
|
name: key,
|
||||||
|
num: res.data.data[key],
|
||||||
|
})
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
yyList.value.push({
|
||||||
|
name: key,
|
||||||
|
num: res.data.data[key],
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 西海岸-单兵设备、无人机 获取数量
|
||||||
|
if (whoShow1.value.itShowXiHaiAn) {
|
||||||
|
getSoldierData('无人机')
|
||||||
|
.then((res) => {
|
||||||
|
let { total = 0 } = res.data.data
|
||||||
|
yyList.value.push({
|
||||||
|
name: '无人机',
|
||||||
|
num: total,
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log('err--无人机---------->', err)
|
||||||
|
})
|
||||||
|
getSoldierData('单兵设备')
|
||||||
|
.then((res) => {
|
||||||
|
let { total = 0 } = res.data.data
|
||||||
|
zjList.value.push({
|
||||||
|
name: '单兵设备',
|
||||||
|
num: total,
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log('err--单兵设备---------->', err)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
else {
|
||||||
pageWithAttrs(paramsGetResources).then((res) => {
|
pageWithAttrs(paramsGetResources).then((res) => {
|
||||||
console.log('object个数======>', type)
|
console.log('object个数======>', type)
|
||||||
obj.value = res.data.data.records
|
obj.value = res.data.data.records
|
||||||
|
@ -382,6 +430,15 @@
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const selectOne11 = (name) => {
|
||||||
|
router.push({
|
||||||
|
path: '/DetailsPageconetent',
|
||||||
|
query: {
|
||||||
|
type: name,
|
||||||
|
select: '应用资源',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
const selectOne2 = (name) => {
|
const selectOne2 = (name) => {
|
||||||
console.log('点击===============》', name)
|
console.log('点击===============》', name)
|
||||||
router.push({
|
router.push({
|
||||||
|
|
Loading…
Reference in New Issue