fix: 修改page-container

This commit is contained in:
blp 2023-02-01 18:15:30 +08:00
parent 59e4bacd74
commit 9304911139
5 changed files with 15 additions and 18 deletions

View File

@ -1,6 +1,6 @@
<!-- 物联卡查看 -->
<template>
<div class="page-container">
<page-container>
<!-- 新增编辑 -->
<Save
v-if="visible"
@ -117,7 +117,7 @@
</a-row>
</a-col>
</a-row>
</div>
</page-container>
</template>
<script setup lang="ts">
@ -138,7 +138,7 @@ const detail = ref<any>({});
const flowData = ref<any[]>([]);
const getDetail = () => {
queryDetail(route.query.id).then((resp: any) => {
queryDetail(route.params.id).then((resp: any) => {
if (resp.status === 200) {
detail.value = resp.result;
}

View File

@ -1,6 +1,6 @@
<!-- 物联卡管理 -->
<template>
<div class="page-container">
<page-container class="container">
<Search
:columns="columns"
target="iot-card-management-search"
@ -323,7 +323,7 @@
:data="current"
@change="saveChange"
/>
</div>
</page-container>
</template>
<script setup lang="ts">
@ -539,10 +539,7 @@ const getActions = (
icon: 'EyeOutlined',
onClick: () => {
router.push({
path: '/iot-card/CardManagement/Detail',
query: {
id: data.id,
},
path: `/iot-card/CardManagement/detail/${data.id}`,
});
},
},
@ -795,7 +792,7 @@ const handelRemove = async () => {
</script>
<style scoped lang="less">
.page-container {
.container {
.search {
width: calc(100% - 330px);
}

View File

@ -1,6 +1,6 @@
<!-- 物联卡-仪表盘 -->
<template>
<div class="page-container">
<page-container class="container">
<a-card>
<a-row :gutter="20" :style="{ marginBottom: '20px' }">
<a-col :span="24"><Guide title="数据统计" /></a-col>
@ -104,7 +104,7 @@
</a-col>
</a-row>
</a-card>
</div>
</page-container>
</template>
<script setup lang="ts">
@ -229,7 +229,7 @@ const dTime = [
getTopRang(dTime[0], dTime[1]);
</script>
<style scoped lang="less">
.page-container {
.container {
.data-statistics-item {
height: 140px;
background: #fcfcfc;

View File

@ -1,6 +1,6 @@
<!-- 物联卡-首页 -->
<template>
<div class="page-container">
<page-container>
<a-row :gutter="24">
<a-col :span="14">
<div class="home-guide">
@ -79,7 +79,7 @@
</div>
</a-col>
</a-row>
</div>
</page-container>
</template>
<script setup lang="ts">

View File

@ -1,9 +1,9 @@
<!-- 充值管理 -->
<template>
<div class="page-container">
<page-container>
<Search
:columns="columns"
target="iot-card-management-search"
target="recharge-search"
@search="handleSearch"
/>
<JTable
@ -71,7 +71,7 @@
<!-- 充值 -->
<Save v-if="visible" @change="saveChange" />
<Detail v-if="detailVisible" :data="current" @close="close" />
</div>
</page-container>
</template>
<script setup lang="ts">