This commit is contained in:
guoyue 2022-10-26 15:03:29 +08:00
commit 82718e3d02
9 changed files with 210 additions and 96 deletions

View File

@ -1,8 +1,8 @@
/* /*
* @Author: hisense.wuhongjian * @Author: hisense.wuhongjian
* @Date: 2022-08-25 14:37:49 * @Date: 2022-08-25 14:37:49
* @LastEditors: hisense.wuhongjian * @LastEditors: Light
* @LastEditTime: 2022-10-13 16:46:41 * @LastEditTime: 2022-10-26 10:48:52
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
*/ */
var _global = {} var _global = {}
@ -43,8 +43,8 @@ var CONFIGITEM = {
}, },
dev: { dev: {
previewUrl: 'http://localhost:8080/', previewUrl: 'http://localhost:8080/',
apiURL: 'http://192.168.124.233:8888/renren-admin', apiURL: 'http://192.168.124.243:8888/renren-admin',
websocketURL: 'ws://192.168.124.236:8888/renren-admin/websocket' websocketURL: 'ws://192.168.124.243:8888/renren-admin/websocket'
} }
} }
} }

View File

@ -1,8 +1,8 @@
<!-- <!--
* @Author: hisense.wuhongjian * @Author: hisense.wuhongjian
* @Date: 2022-04-11 16:30:04 * @Date: 2022-04-11 16:30:04
* @LastEditors: hisense.liangjunhua * @LastEditors: Light
* @LastEditTime: 2022-07-16 15:07:44 * @LastEditTime: 2022-10-26 11:05:07
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
--> -->
<template> <template>
@ -31,7 +31,7 @@
<!-- 审核意见 --> <!-- 审核意见 -->
<el-table-column prop="comment" :label="$t('process.comment')" header-align="center" align="center"></el-table-column> <el-table-column prop="comment" :label="$t('process.comment')" header-align="center" align="center"></el-table-column>
<!-- 任务时长 --> <!-- 任务时长 -->
<el-table-column prop="durationInSeconds" :label="$t('task.durationInSeconds')" header-align="center" align="center" width="180"></el-table-column> <el-table-column prop="duration" :label="$t('task.durationInSeconds')" header-align="center" align="center" width="180"></el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
v-if="dataForm.pid === '0'" v-if="dataForm.pid === '0'"

View File

@ -1,5 +1,6 @@
<template> <template>
<el-dialog <el-dialog
width="70%"
:destroy-on-close="true" :destroy-on-close="true"
:close-on-click-modal="false" :close-on-click-modal="false"
@close="closeModal" @close="closeModal"
@ -104,6 +105,11 @@
label="任务名称" label="任务名称"
width="180"> width="180">
</el-table-column> </el-table-column>
<el-table-column
prop="assigneeDeptName"
label="处理人部门"
width="200">
</el-table-column>
<el-table-column <el-table-column
prop="assigneeName" prop="assigneeName"
label="处理人" label="处理人"
@ -142,126 +148,125 @@ export default {
props: { props: {
detailType: { detailType: {
type: String, type: String,
default: "", default: ''
}, },
detailsVisible: { detailsVisible: {
type: Boolean, type: Boolean,
default: false, default: false
}, },
detailParamss: { detailParamss: {
type: Object, type: Object,
default: {}, default: {}
}, }
}, },
watch: { watch: {
detailsVisible: { detailsVisible: {
handler(newVal) { handler (newVal) {
this.detailsVisibleCopy = newVal; this.detailsVisibleCopy = newVal
}, },
immediate: true, immediate: true
}, },
detailParamss: { detailParamss: {
handler(newVal) { handler (newVal) {
this.detailParams = newVal; this.detailParams = newVal
this.getDetail(newVal); this.getDetail(newVal)
}, },
immediate: true, immediate: true
}, }
}, },
data() { data () {
return { return {
detailsVisibleCopy: false, detailsVisibleCopy: false,
columns: [ columns: [
{ {
title: "任务名称", title: '任务名称',
dataIndex: "activityName", dataIndex: 'activityName',
key: "activityName", key: 'activityName'
}, },
{ {
title: "处理人", title: '处理人',
dataIndex: "assigneeName", dataIndex: 'assigneeName',
key: "assigneeName", key: 'assigneeName'
}, },
{ {
title: "任务开始时间", title: '任务开始时间',
dataIndex: "startTime", dataIndex: 'startTime',
key: "startTime", key: 'startTime'
}, },
{ {
title: "任务结束时间", title: '任务结束时间',
dataIndex: "endTime", dataIndex: 'endTime',
key: "endTime", key: 'endTime'
}, },
{ {
title: "审核意见", title: '审核意见',
dataIndex: "comment", dataIndex: 'comment',
key: "comment", key: 'comment'
}, },
{ {
title: "任务时长/秒", title: '任务时长/秒',
dataIndex: "durationInSeconds", dataIndex: 'durationInSeconds',
key: "durationInSeconds", key: 'durationInSeconds'
}, }
], ],
dataSource: [{ data: [] }], dataSource: [{ data: [] }],
showArr: [], showArr: []
}; }
}, },
computed: {}, computed: {},
components: {}, components: {},
methods: { methods: {
getDetail(newVal) { getDetail (newVal) {
if (newVal.resourceApplication) { if (newVal.resourceApplication) {
this.dataSource.data = []; this.dataSource.data = []
if (this.detailType == "能力上架") { if (this.detailType == '能力上架') {
let arr = []; const arr = []
newVal.resourceApplication.forEach((item) => { newVal.resourceApplication.forEach((item) => {
arr.push(item); arr.push(item)
}); })
this.dataSource.data.push([ this.dataSource.data.push([
newVal.resourceApplication.processInstanceId, newVal.resourceApplication.processInstanceId,
arr, arr
]); ])
} else { } else {
for (const key in newVal.resourceApplication) { for (const key in newVal.resourceApplication) {
if (newVal.resourceApplication[key].length > 0) { if (newVal.resourceApplication[key].length > 0) {
newVal.resourceApplication[key].map((item) => { newVal.resourceApplication[key].map((item) => {
this.dataSource.data.push([ this.dataSource.data.push([
item.instanceId, item.instanceId,
item.taskHandleDetailInfo, item.taskHandleDetailInfo
]); ])
}); })
} }
} }
} }
this.showArr.value = []; this.showArr.value = []
for (const key in newVal.resourceApplication) { for (const key in newVal.resourceApplication) {
if (newVal.resourceApplication[key].length > 0) { if (newVal.resourceApplication[key].length > 0) {
let obj = { name: "", instanceId: "", list: [], list2: [] }; const obj = { name: '', instanceId: '', list: [], list2: [] }
obj.name = key; obj.name = key
newVal.resourceApplication[key].map((item) => { newVal.resourceApplication[key].map((item) => {
obj.instanceId = item.instanceId; obj.instanceId = item.instanceId
obj.backToFirst = item.backToFirst; obj.backToFirst = item.backToFirst
obj.ended = item.ended; obj.ended = item.ended
obj.approveStatus = item.approveStatus; obj.approveStatus = item.approveStatus
if (item.resources.length > 0) { if (item.resources.length > 0) {
item.resources.map((val) => { item.resources.map((val) => {
obj.list.push(val); obj.list.push(val)
}); })
} else { } else {
item.camera.map((val) => { item.camera.map((val) => {
obj.list2.push(val); obj.list2.push(val)
}); })
} }
}); })
this.showArr.push(obj); this.showArr.push(obj)
} }
} }
} }
console.log("this.dataSource.data[0]========",this.dataSource.data[0][1]) console.log('this.dataSource.data[0]========', this.dataSource.data[0][1])
}, },
// init () { // init () {
// this.visible = true // this.visible = true
@ -269,11 +274,11 @@ export default {
// this.$refs['dataForm'].resetFields() // this.$refs['dataForm'].resetFields()
// }) // })
// }, // },
closeModal() { closeModal () {
this.$emit("closeModal"); this.$emit('closeModal')
}, }
}, }
}; }
</script> </script>
<style scoped> <style scoped>
.title { .title {
@ -457,4 +462,3 @@ export default {
} }
} }
</style> </style>

View File

@ -350,12 +350,12 @@ export default {
{ name: '应用资源', value: 5 }, { name: '应用资源', value: 5 },
{ name: '会议室', value: 6 } { name: '会议室', value: 6 }
], // ], //
typeOptions1: [// typeOptions1: [//
{ name: '智能算法', value: 1 }, { name: '智能算法', value: 1 },
{ name: '图层服务', value: 2 }, { name: '图层服务', value: 2 },
{ name: '开发组件', value: 3 }, { name: '开发组件', value: 3 },
{ name: '业务组件', value: 4 }, { name: '业务组件', value: 4 },
{ name: '应用资源', value: 5 }, { name: '应用资源', value: 5 }
], // ], //
detailFlag: false, // detailFlag: false, //
@ -386,13 +386,18 @@ export default {
}, },
mounted() { mounted() {
// this.getFirstTree() // this.getFirstTree()
if (this.departmentId === 1) { console.log('this.$route.query.Id;', this.$route.query.type)
this.handleChose(3) if (this.$route.query.type === 'use') {
// this.departmentId = 1;
} else if (this.departmentId === 2) {
this.handleChose(4) this.handleChose(4)
// this.departmentId = 2;
} else { } else {
if (this.departmentId === 1) {
this.handleChose(3)
// this.departmentId = 1;
} else if (this.departmentId === 2) {
this.handleChose(4)
// this.departmentId = 2;
} else {
}
} }
}, },
computed: { computed: {
@ -809,6 +814,8 @@ export default {
handleChose(index) { handleChose(index) {
this.checked = false this.checked = false
this.departmentId = index this.departmentId = index
this.currentPage=1
this.pageSize=10
if (index === 1) { if (index === 1) {
if (this.choseId === 0) { if (this.choseId === 0) {
if (!this.detailFlag) { if (!this.detailFlag) {
@ -867,7 +874,9 @@ export default {
this.handleCurrentChange(1) this.handleCurrentChange(1)
}, },
// ////////// // //////////
goToDetail() { goToDetail () {
this.currentPage=1
this.pageSize=10
this.detailFlag = !this.detailFlag this.detailFlag = !this.detailFlag
if (this.departmentId === 1) { if (this.departmentId === 1) {
this.handleChose(3) this.handleChose(3)
@ -881,6 +890,8 @@ export default {
// //
goToBack() { goToBack() {
this.checked = false this.checked = false
this.currentPage=1,
this.pageSize=10,
// departmentId 13 24 // departmentId 13 24
this.detailFlag = !this.detailFlag this.detailFlag = !this.detailFlag
if (this.departmentId === 3) { if (this.departmentId === 3) {

View File

@ -4,19 +4,19 @@
<div v-if="!noData" v-loading="loading"> <div v-if="!noData" v-loading="loading">
<div class="no-box"> <div class="no-box">
<div class="no no2"> <div class="no no2">
<el-tooltip effect="dark" :content="no2Obj.name" placement="top"> <el-tooltip effect="dark" :content="no2Obj.name" placement="top" v-if="no2Obj.name">
<div class="name ellipsis" :style="{ color: colorObj[2] }">{{ no2Obj.name || '--' }}</div> <div class="name ellipsis" :style="{ color: colorObj[2] }">{{ no2Obj.name || '--' }}</div>
</el-tooltip> </el-tooltip>
<div class="count">{{ formatCount(no2Obj.count) }}</div> <div class="count">{{ formatCount(no2Obj.count) }}</div>
</div> </div>
<div class="no no1"> <div class="no no1">
<el-tooltip effect="dark" :content="no1Obj.name" placement="top"> <el-tooltip effect="dark" :content="no1Obj.name" placement="top" v-if="no1Obj.name">
<div class="name ellipsis" :style="{ color: colorObj[1] }">{{ no1Obj.name || '--' }}</div> <div class="name ellipsis" :style="{ color: colorObj[1] }">{{ no1Obj.name || '--' }}</div>
</el-tooltip> </el-tooltip>
<div class="count">{{ formatCount(no1Obj.count) }}</div> <div class="count">{{ formatCount(no1Obj.count) }}</div>
</div> </div>
<div class="no no3"> <div class="no no3">
<el-tooltip effect="dark" :content="no3Obj.name" placement="top"> <el-tooltip effect="dark" :content="no3Obj.name" placement="top" v-if="no3Obj.name">
<div class="name ellipsis" :style="{ color: colorObj[3] }">{{ no3Obj.name || '--' }}</div> <div class="name ellipsis" :style="{ color: colorObj[3] }">{{ no3Obj.name || '--' }}</div>
</el-tooltip> </el-tooltip>
@ -26,7 +26,7 @@
<div class="flex-row-between row-name" v-for="(data, i) in listInfo" :key="i"> <div class="flex-row-between row-name" v-for="(data, i) in listInfo" :key="i">
<div class="left"> <div class="left">
<div class="row-index">{{ i + 4 }}</div> <div class="row-index">{{ i + 4 }}</div>
<el-tooltip effect="dark" :content="data.name" placement="top"> <el-tooltip effect="dark" :content="data.name" placement="top" v-if="data.name">
<div class="name-text ellipsis">{{ data.name || '--' }}</div> <div class="name-text ellipsis">{{ data.name || '--' }}</div>
</el-tooltip> </el-tooltip>
</div> </div>

View File

@ -87,7 +87,7 @@ var CONFIGITEM = {
}, },
backUrl: 'http://localhost:8001', backUrl: 'http://localhost:8001',
previewUrl: 'http://192.168.124.243:9796/', previewUrl: 'http://192.168.124.243:9796/',
websocketURL: '192.168.124.254:8888/renren-admin', websocketURL: '192.168.124.243:8888/renren-admin',
// websocketURL: '10.18.1.99:8889/renren-admin', // websocketURL: '10.18.1.99:8889/renren-admin',
POI_URL: POI_URL:
'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address',

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian * @Author: hisense.wuhongjian
* @Date: 2022-04-01 19:19:40 * @Date: 2022-04-01 19:19:40
* @LastEditors: Light * @LastEditors: Light
* @LastEditTime: 2022-10-25 09:51:56 * @LastEditTime: 2022-10-26 10:35:36
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
*/ */
import request from '@/utils/request' import request from '@/utils/request'
@ -419,11 +419,14 @@ export function updateIntegrationServices(data) {
} }
// //
export function getCountByFuzzyQuery(params) { export function getCountByFuzzyQuery(params, flag) {
return request({ return request({
url: '/resource/getCountByFuzzyQuery?keyWorld=' + params, url:
'/resource/getCountByFuzzyQuery?keyWorld=' +
params +
'&nonChinese=' +
flag,
method: 'get', method: 'get',
params,
}) })
} }
@ -513,6 +516,6 @@ export function getGisByArea(data) {
return request({ return request({
url: '/resource/getSquareList', url: '/resource/getSquareList',
method: 'post', method: 'post',
data data,
}) })
} }

View File

@ -109,7 +109,7 @@
break break
case '资源申请量': case '资源申请量':
window.open( window.open(
window.SITE_CONFIG.backUrl + '/#/abilityStatistics-index', window.SITE_CONFIG.backUrl + '/#/abilityStatistics-index?type=use',
'_blank' '_blank'
) )
break break

View File

@ -1140,7 +1140,25 @@
const globalSearch = () => { const globalSearch = () => {
if (searchValue.value) { if (searchValue.value) {
globalFlag.value = true globalFlag.value = true
getCountByFuzzyQuery(searchValue.value || '').then((res) => { let flag = true
let str = ''
let r = null
if (
searchValue.value.length >= 2 &&
paramsGetResources.type !== '基础设施'
) {
str = searchValue.value.substring(0, 2)
r = re.test(str)
}
if (
(searchValue.value.length > 1 && r) ||
paramsGetResources.type === '基础设施'
) {
flag = false
} else {
flag = true
}
getCountByFuzzyQuery(searchValue.value || '', flag).then((res) => {
console.log('全局搜索==========》', res.data.data) console.log('全局搜索==========》', res.data.data)
globalData.data = res.data.data globalData.data = res.data.data
let mapFlag = true let mapFlag = true
@ -1240,6 +1258,7 @@
(searchValue.value.length > 1 && r) || (searchValue.value.length > 1 && r) ||
paramsGetResources.type === '基础设施' paramsGetResources.type === '基础设施'
) { ) {
paramsGetResources.nonChinese = false
paramsGetResources.name = searchValue.value paramsGetResources.name = searchValue.value
paramsGetResources.type = Cardsname.value paramsGetResources.type = Cardsname.value
if ( if (
@ -1317,7 +1336,84 @@
paramsGetResources2.value.name = paramsGetResources.name paramsGetResources2.value.name = paramsGetResources.name
} }
} else { } else {
message.error('请以两位以上汉字或数字开头') paramsGetResources.nonChinese = true
paramsGetResources.name = searchValue.value
paramsGetResources.type = Cardsname.value
if (
!whoShow1.value.itShowBaoTou &&
paramsGetResources.type === '数据资源'
) {
if (switchIndex != '分页查询') {
paramsGetResources.pageNum = 1
}
let dataResourceParams = {
serviceName: paramsGetResources.name || '', //
orderField: whoShow1.value.itShowQingDao
? paramsGetResources.orderField == 'applyCount'
? 'syqk'
: 'fbrq'
: paramsGetResources.orderField == 'applyCount'
? 'requestCount'
: 'createTime', //
orderType: paramsGetResources.orderType.toLowerCase(), //descasc
pageNum: paramsGetResources.pageNum, //
pageSize: paramsGetResources.pageSize, //
}
getDataResource(dataResourceParams).then((res) => {
loading.value = false
console.log('res.data.data----874-------->', res.data.data)
if (whoShow1.value.itShowQingDao) {
if (whoShow1.value.itShowZhanTingDev) {
// itShowZhanTingDev: 西
console.log('999----->', res.data.data.list)
getXiHaiAn(res)
} else {
getQingDao(res)
}
} else if (whoShow1.value.itShowXiHaiAn) {
getXiHaiAn(res)
}
})
} else if (
paramsGetResources.type !== '数据资源' &&
(paramsGetResources.type !== '基础设施' ||
!whoShow1.value.itShowXiHaiAn)
) {
if (switchIndex != '分页查询') {
paramsGetResources.pageNum = 1
}
pageWithAttrs(paramsGetResources).then((res) => {
if (res.data.code != 0) {
return message.error(res.data.msg)
}
console.log(
'查询列表====22========>',
resourceList,
res.data.data
)
resourceList.data = []
videoList.data = []
if (Cardsname.value === '基础设施') {
resourceList.data = res.data.data.records || []
resourceTotal.value = res.data.data.total || ''
loading.value = false
} else {
resourceTotal.value = res.data.data.total || ''
resourceList.data = res.data.data.records || []
}
})
} else if (
paramsGetResources.type === '基础设施' &&
whoShow1.value.itShowXiHaiAn
) {
if (switchIndex != '分页查询') {
paramsGetResources.pageNum = 1
}
paramsGetResources2.value.pageNum = paramsGetResources.pageNum
paramsGetResources2.value.pageSize = paramsGetResources.pageSize
paramsGetResources2.value.name = paramsGetResources.name
}
// message.error('')
} }
} else { } else {
//switchIndex //switchIndex