Compare commits
2 Commits
e077a04c08
...
c55eedc5b4
Author | SHA1 | Date |
---|---|---|
guoyue | c55eedc5b4 | |
guoyue | e906d9adc5 |
|
@ -344,6 +344,7 @@
|
||||||
<a @click="goToApply(record)" style="margin-right: 10px">
|
<a @click="goToApply(record)" style="margin-right: 10px">
|
||||||
申请
|
申请
|
||||||
</a>
|
</a>
|
||||||
|
<a @click="showWrj(record)">详情</a>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
|
@ -405,43 +406,23 @@
|
||||||
</a-modal>
|
</a-modal>
|
||||||
<a-modal wrapClassName="wrj" v-model:visible="wrjVisible" :width="1000" :title="wrjName + '详情'"
|
<a-modal wrapClassName="wrj" v-model:visible="wrjVisible" :width="1000" :title="wrjName + '详情'"
|
||||||
@ok="wrjVisible = false">
|
@ok="wrjVisible = false">
|
||||||
<template v-if="dataSource2[0].type !== '单兵设备'">
|
<div v-for="(db, key) in wrjData" :key="key">
|
||||||
<div v-for="wrj in wrjData" :key="wrj.name">
|
<template v-if="typeof db == 'object'">
|
||||||
<div style="
|
<div style="
|
||||||
font-size: 20px;
|
|
||||||
font-weight: 600;
|
|
||||||
margin: 10px 0;
|
|
||||||
text-align: center;
|
|
||||||
">
|
|
||||||
{{ wrj.name }}
|
|
||||||
</div>
|
|
||||||
<div style="padding: 0 30px" v-for="(value, key) in wrj.attribute" :key="value">
|
|
||||||
{{ key + ':' + value }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<template v-else>
|
|
||||||
<div v-for="(db, key) in wrjData" :key="key">
|
|
||||||
<template v-if="typeof db == 'object'">
|
|
||||||
<div style="
|
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
">
|
">
|
||||||
{{ key }}
|
{{ db.attrType || '--' }}
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0 30px" v-for="(value, key2) in db" :key="value">
|
<template v-if="db.attrValue">
|
||||||
|
<div style="padding: 0 30px" v-for="(value, key2) in JSON.parse(db.attrValue)" :key="value">
|
||||||
{{ key2 + ':' + value }}
|
{{ key2 + ':' + value }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
</template>
|
||||||
<div style="padding: 0 30px">
|
</div>
|
||||||
{{ key + ':' + db }}
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -670,8 +651,26 @@ const wrjVisible = ref(false)
|
||||||
const wrjName = ref('')
|
const wrjName = ref('')
|
||||||
const wrjData = ref([])
|
const wrjData = ref([])
|
||||||
const showWrj = (data) => {
|
const showWrj = (data) => {
|
||||||
|
console.log('data---dddd--------->', data);
|
||||||
wrjName.value = data.wrjName
|
wrjName.value = data.wrjName
|
||||||
wrjData.value = data.details
|
// wrjData.value = data.details
|
||||||
|
wrjData.value = data.deviceAttrDTOList
|
||||||
|
// wrjData.value = []
|
||||||
|
// data.deviceAttrDTOList.map(v => {
|
||||||
|
// console.log('v.attrType------------>', v.attrType);
|
||||||
|
// console.log('v.attrValue------------>', v.attrValue);
|
||||||
|
// try {
|
||||||
|
// let obj = {
|
||||||
|
// name: v.attrType,
|
||||||
|
// list: v.attrValue && JSON.parse(v.attrValue)
|
||||||
|
// }
|
||||||
|
// wrjData.value.push(obj)
|
||||||
|
// } catch (error) {
|
||||||
|
// console.log('error------------>', error);
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// console.log('wrjData.value------------>', wrjData.value);
|
||||||
|
|
||||||
wrjVisible.value = true
|
wrjVisible.value = true
|
||||||
}
|
}
|
||||||
const goToWrj = (data) => {
|
const goToWrj = (data) => {
|
||||||
|
@ -1188,7 +1187,7 @@ const tabClick = (indexFather, name) => {
|
||||||
getSoldierData(indexFather, name)
|
getSoldierData(indexFather, name)
|
||||||
} else if (name == '单兵设备') {
|
} else if (name == '单兵设备') {
|
||||||
pagination.value.current = 1;
|
pagination.value.current = 1;
|
||||||
getSoldierData(indexFather , name)
|
getSoldierData(indexFather, name)
|
||||||
} else if (name == '城市云脑会客厅') {
|
} else if (name == '城市云脑会客厅') {
|
||||||
showMap.value = false
|
showMap.value = false
|
||||||
dataSource.value = []
|
dataSource.value = []
|
||||||
|
@ -1218,7 +1217,7 @@ const tabClick = (indexFather, name) => {
|
||||||
})
|
})
|
||||||
console.log('选中的标签code', mapSearchParam.value)
|
console.log('选中的标签code', mapSearchParam.value)
|
||||||
mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + ''
|
mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + ''
|
||||||
|
|
||||||
if (name == '云资源' || name == '感知资源') {
|
if (name == '云资源' || name == '感知资源') {
|
||||||
dataSource.value = []
|
dataSource.value = []
|
||||||
dataSource2.value = []
|
dataSource2.value = []
|
||||||
|
@ -1262,7 +1261,7 @@ const getSoldierData = (indexFather, name) => {
|
||||||
}
|
}
|
||||||
let { list = [], total = 0 } = res.data.data;
|
let { list = [], total = 0 } = res.data.data;
|
||||||
console.log('total------------>', total);
|
console.log('total------------>', total);
|
||||||
|
|
||||||
pagination.value.total = total
|
pagination.value.total = total
|
||||||
if (name == '无人机') {
|
if (name == '无人机') {
|
||||||
list.map((wrj) => {
|
list.map((wrj) => {
|
||||||
|
@ -1413,7 +1412,7 @@ const dept = reactive({})
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
if (infrastructure) {
|
if (infrastructure) {
|
||||||
console.log('infrastructure------------>', infrastructure);
|
console.log('infrastructure------------>', infrastructure);
|
||||||
|
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
dept.deptId = infrastructure.deptId || ''
|
dept.deptId = infrastructure.deptId || ''
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
|
@ -1631,12 +1630,12 @@ const handleTableChange = (val) => {
|
||||||
mapSearchParam.value.pageNum = val.current
|
mapSearchParam.value.pageNum = val.current
|
||||||
mapSearchParam.value.pageSize = val.pageSize
|
mapSearchParam.value.pageSize = val.pageSize
|
||||||
|
|
||||||
let _arr = clickList.value.filter(v=>v.content.includes('单兵设备') || v.content.includes('无人机')) || []
|
let _arr = clickList.value.filter(v => v.content.includes('单兵设备') || v.content.includes('无人机')) || []
|
||||||
let _tab_name = _arr[0] && _arr[0].content && _arr[0].content[0]
|
let _tab_name = _arr[0] && _arr[0].content && _arr[0].content[0]
|
||||||
// 无人机、单兵设备
|
// 无人机、单兵设备
|
||||||
if(_tab_name) {
|
if (_tab_name) {
|
||||||
getSoldierData(0, _tab_name)
|
getSoldierData(0, _tab_name)
|
||||||
}else {
|
} else {
|
||||||
getCamera()
|
getCamera()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1977,6 +1976,7 @@ const showMsg = () => {
|
||||||
.wrj {
|
.wrj {
|
||||||
.ant-modal-body {
|
.ant-modal-body {
|
||||||
height: 700px !important;
|
height: 700px !important;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2087,5 +2087,4 @@ const showMsg = () => {
|
||||||
video::-webkit-media-controls {
|
video::-webkit-media-controls {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue