按钮显示修改

This commit is contained in:
unknown 2022-09-26 09:26:47 +08:00
parent 7438e98f19
commit 43b36362c0
1 changed files with 16 additions and 5 deletions

View File

@ -451,20 +451,20 @@
type="primary"
@click="batchPicturePreview"
class="buttonAdd"
v-else
v-if="!cloudResourcesFlag"
>
批量预览
</a-button>
<!-- 添加至申购车 -->
<a-button type="primary" @click="addShoppingCart" class="buttonAdd">
<a-button type="primary" @click="addShoppingCart" class="buttonAdd" v-if="!cloudResourcesFlag">
添加至申购车
</a-button>
<!-- 一键申请 -->
<a-button type="primary" @click="apply" class="buttonAdd">
<a-button type="primary" @click="apply" class="buttonAdd" v-if="!cloudResourcesFlag">
一键申请
</a-button>
<!-- 申请政务云资源 -->
<a-button type="primary" @click="applyCloudResources" class="buttonAdd">
<a-button type="primary" @click="applyCloudResources" class="buttonAdd" v-if="cloudResourcesFlag">
我要申请政务云资源
</a-button>
</div>
@ -898,7 +898,7 @@
getCamera()
}
} else {
tabClick(0, '视频资源')
tabClick(0, '政务云资源')
getCamera()
}
@ -1340,11 +1340,13 @@
selectedList.value = []
if (clickList.value[indexFather].content.indexOf(name) != -1) {
if (name == '视频资源') {
cloudResourcesFlag.value = false;
room.value = true
tableHeight.value = 330
showMap.value = true
tabList.value[1].title = '视频标签'
} else if (name == '政务云资源') {
cloudResourcesFlag.value = true;
room.value = true
tableHeight.value = 600
showMap.value = false
@ -1353,6 +1355,7 @@
pagination.value.total = 0
tabList.value[1].title = '政务云资源分类'
} else if (name == '感知资源') {
cloudResourcesFlag.value = false;
room.value = true
tableHeight.value = 330
showMap.value = true
@ -1360,6 +1363,7 @@
dataSource2.value = []
pagination.value.total = 0
} else if (name == '城市云脑会客厅') {
cloudResourcesFlag.value = false;
// room.value = false
// wrjFlag.value = true
// showMap.value = false
@ -1376,6 +1380,7 @@
} else {
if (name == '视频资源') {
wrjFlag.value = false
cloudResourcesFlag.value = false;
tableHeight.value = 330
showMap.value = true
tabList.value[1].content = []
@ -1403,6 +1408,7 @@
emits('add', 1)
getCamera()
} else if (name == '政务云资源') {
cloudResourcesFlag.value = true;
tableHeight.value = 600
showMap.value = false
dataSource.value = []
@ -1425,6 +1431,7 @@
wrjFlag.value = false
emits('add', 2)
} else if (name == '感知资源') {
cloudResourcesFlag.value = false;
tableHeight.value = 330
showMap.value = true
clickList.value[1].content = []
@ -1438,6 +1445,7 @@
wrjFlag.value = false
emits('add', 3)
} else if (name == '无人机') {
cloudResourcesFlag.value = false;
room.value = true
tableHeight.value = 600
showMap.value = false
@ -1458,6 +1466,7 @@
})
wrjFlag.value = true
} else if (name == '单兵设备') {
cloudResourcesFlag.value = false;
room.value = true
tableHeight.value = 600
showMap.value = false
@ -1478,6 +1487,7 @@
})
wrjFlag.value = true
} else if (name == '城市云脑会客厅') {
cloudResourcesFlag.value = false;
showMap.value = false
dataSource.value = []
dataSource2.value = []
@ -1683,6 +1693,7 @@
// console.log('')
// }
const wrjFlag = ref(false)
const cloudResourcesFlag = ref(false)
const getCamera = (flag, str) => {
if (flag) {
mapSearchParam.value.cameraName = str