提交修改

This commit is contained in:
gongjiale 2023-01-12 14:00:46 +08:00
parent 3f19913e5a
commit 23196b42a1
2 changed files with 43 additions and 4 deletions

View File

@ -195,7 +195,7 @@
flex-direction: column;
justify-content: space-between;
}
.detail-content {
/* .detail-content {
margin-top: 90px;
}
} */
</style>

View File

@ -61,6 +61,16 @@
>
重置
</a-button> -->
</div>
<div class="order">
申请时间
<span @click="changeOrder(orderType) "
class="arrow" :class="
orderType == 'ASC'
? 'down'
: ''
"></span>
</div>
</div>
<div v-if="roomYuyue">
@ -114,6 +124,7 @@
{{ item.description }}
</a-tooltip> -->
</div>
<div style="font-size:14px;margin-top:40px">申请量{{item.applyCount}}</div>
</div>
<a-button
style="
@ -976,6 +987,7 @@
const fileList = ref([])
const useForm = Form.useForm
const roomInput = ref('')
let orderType = ref('ASC')
const rulesRef = reactive({
bookDate: [
{
@ -1059,6 +1071,7 @@
let roomStr = router.currentRoute.value.query.str
if (roomStr) {
roomInput.value = roomStr
getCamera()
}
//
@ -1198,7 +1211,16 @@
tabList.value[0].content.push('无人机')
tabList.value[0].content.push('单兵设备')
}
//
const changeOrder = (type) => {
if(type == 'DESC'){
type='ASC'
}else{
type = 'DESC'
}
orderType.value = type
searchData()
}
//
const rowClickData = ref(null)
//
@ -1268,6 +1290,7 @@
page: roomPage.value,
limit: roomLimit.value,
roomName: roomInput.value,
}
getYuyue(query).then(({ data: res }) => {
dataRoom.value = res.data.list
@ -1584,6 +1607,8 @@
name: roomInput.value, //
page: roomPage.value, //
limit: roomLimit.value, //
orderField: "applyCount",
orderType: orderType.value
}
getRoomSearch(query).then(({ data: res }) => {
roomList.value = res.data.list
@ -2786,7 +2811,21 @@
.roomSearch {
display: flex;
align-items: center;
.order{
margin-left: 629px;
.arrow {
display: inline-block;
width: 12px;
height: 12px;
background: url('~@/assets/newHome/arrow.png');
margin-left: 10px;
}
.down {
background: url('~@/assets/newHome/down.png');
margin-top: 6px;
}
}
.searchInput {
display: flex;
margin-right: 0.2rem;