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