This commit is contained in:
parent
f4f02dfc85
commit
eea0de5291
|
@ -1,13 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="dialogPage">
|
<div class="dialogPage">
|
||||||
<el-dialog
|
<el-dialog v-model="dialogShow" width="80vw" :show-close="false" center :close-on-click-modal="false"
|
||||||
v-model="dialogShow"
|
:close-on-press-escape="false">
|
||||||
width="80vw"
|
|
||||||
:show-close="false"
|
|
||||||
center
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:close-on-press-escape="false"
|
|
||||||
>
|
|
||||||
<template #header="{ close, titleId, titleClass }">
|
<template #header="{ close, titleId, titleClass }">
|
||||||
<div class="my-header">
|
<div class="my-header">
|
||||||
<el-icon size="26" color="#fff" @click="closeDialog">
|
<el-icon size="26" color="#fff" @click="closeDialog">
|
||||||
|
@ -24,18 +18,11 @@
|
||||||
<div class="name">{{ title }}详情</div>
|
<div class="name">{{ title }}详情</div>
|
||||||
<img src="@/assets/images/table_r.png" alt="" style="margin-left:10px;" />
|
<img src="@/assets/images/table_r.png" alt="" style="margin-left:10px;" />
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img class="title_botton" src="@/assets/images/table_c.png" alt="" />
|
||||||
class="title_botton"
|
|
||||||
src="@/assets/images/table_c.png"
|
|
||||||
alt=""
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<div style="width: 100%; height: calc(100% - 110px);">
|
||||||
:data="data.tableData"
|
<el-table :data="data.tableData" height="100%" :header-cell-style="{ background: '#008FCD' }">
|
||||||
height="calc(100% - 110px)"
|
|
||||||
:header-cell-style="{ background: '#008FCD' }"
|
|
||||||
>
|
|
||||||
<!-- <el-table-column
|
<!-- <el-table-column
|
||||||
v-for="(item, index) in data.columns"
|
v-for="(item, index) in data.columns"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
@ -45,43 +32,22 @@
|
||||||
align="center"
|
align="center"
|
||||||
/> -->
|
/> -->
|
||||||
<template v-for="item in data.columns">
|
<template v-for="item in data.columns">
|
||||||
<el-table-column
|
<el-table-column :key="item.label" v-if="item.type === 'slot'" :width="item.width" :label="item.label"
|
||||||
:key="item.label"
|
:property="item.property" align="center">
|
||||||
v-if="item.type === 'slot'"
|
|
||||||
:width="item.width"
|
|
||||||
:label="item.label"
|
|
||||||
:property="item.property"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<slot
|
<slot :name="item.property" :currentCol="item" :currentData="scope.row"></slot>
|
||||||
:name="item.property"
|
|
||||||
:currentCol="item"
|
|
||||||
:currentData="scope.row"
|
|
||||||
></slot>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column :key="item.label" :property="item.property" :label="item.label" :width="item.width"
|
||||||
:key="item.label"
|
align="center" v-else />
|
||||||
:property="item.property"
|
|
||||||
:label="item.label"
|
|
||||||
:width="item.width"
|
|
||||||
align="center"
|
|
||||||
v-else
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="pagePart">
|
<div class="pagePart">
|
||||||
<el-pagination
|
<el-pagination background layout="prev, pager, next" :page-size="pagination.pageSize"
|
||||||
background
|
:total="pagination.total" prev-text="上一页" next-text="下一页" @current-change="handle"
|
||||||
layout="prev, pager, next"
|
v-model:current-page="pagination.currentPage" />
|
||||||
:page-size="pagination.pageSize"
|
|
||||||
:total="pagination.total"
|
|
||||||
prev-text="上一页"
|
|
||||||
next-text="下一页"
|
|
||||||
@current-change="handle"
|
|
||||||
v-model:current-page="pagination.currentPage"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
@ -180,25 +146,18 @@ const handle = (current) => {
|
||||||
.tabelPart {
|
.tabelPart {
|
||||||
height: 80vh;
|
height: 80vh;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
background: linear-gradient(
|
background: linear-gradient(270deg,
|
||||||
270deg,
|
|
||||||
rgba(0, 77, 131, 0.69) 0%,
|
rgba(0, 77, 131, 0.69) 0%,
|
||||||
rgba(0, 51, 83, 0.77) 50%,
|
rgba(0, 51, 83, 0.77) 50%,
|
||||||
rgba(0, 77, 131, 0.74) 100%
|
rgba(0, 77, 131, 0.74) 100%),
|
||||||
),
|
radial-gradient(66% 40% at 50% 0%,
|
||||||
radial-gradient(
|
|
||||||
66% 40% at 50% 0%,
|
|
||||||
rgba(1, 150, 243, 0.55) 0%,
|
rgba(1, 150, 243, 0.55) 0%,
|
||||||
rgba(0, 116, 255, 0) 100%
|
rgba(0, 116, 255, 0) 100%);
|
||||||
);
|
|
||||||
box-shadow: inset 0px 0px 56px 0px rgba(100, 191, 255, 0.5);
|
box-shadow: inset 0px 0px 56px 0px rgba(100, 191, 255, 0.5);
|
||||||
border: 2px solid;
|
border: 2px solid;
|
||||||
border-image: linear-gradient(
|
border-image: linear-gradient(180deg,
|
||||||
180deg,
|
|
||||||
rgba(21, 150, 255, 1),
|
rgba(21, 150, 255, 1),
|
||||||
rgba(0, 157, 227, 0)
|
rgba(0, 157, 227, 0)) 2 2;
|
||||||
)
|
|
||||||
2 2;
|
|
||||||
|
|
||||||
:deep(.el-table) {
|
:deep(.el-table) {
|
||||||
--el-table-bg-color: none;
|
--el-table-bg-color: none;
|
||||||
|
@ -216,6 +175,7 @@ const handle = (current) => {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
:deep(.el-pagination) {
|
:deep(.el-pagination) {
|
||||||
--el-pagination-button-disabled-bg-color: none;
|
--el-pagination-button-disabled-bg-color: none;
|
||||||
--el-pagination-bg-color: none;
|
--el-pagination-bg-color: none;
|
||||||
|
@ -223,25 +183,31 @@ const handle = (current) => {
|
||||||
--el-pagination-button-color: #fff;
|
--el-pagination-button-color: #fff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-pagination button:disabled) {
|
:deep(.el-pagination button:disabled) {
|
||||||
background-color: rgba(0, 116, 255, 0) !important;
|
background-color: rgba(0, 116, 255, 0) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bo {
|
.bo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
margin: 10px auto;
|
margin: 10px auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
&_top {
|
&_top {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: end;
|
align-items: end;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
height: 33px;
|
height: 33px;
|
||||||
width: 33px;
|
width: 33px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
font-family: PangMenZhengDao, PangMenZhengDao;
|
font-family: PangMenZhengDao, PangMenZhengDao;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
@ -252,10 +218,13 @@ const handle = (current) => {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
letter-spacing: 2px;
|
letter-spacing: 2px;
|
||||||
background: linear-gradient(180deg, #ffffff 0%, #51ffef 100%);
|
background: linear-gradient(180deg, #ffffff 0%, #51ffef 100%);
|
||||||
-webkit-background-clip: text; /*将设置的背景颜色限制在文字中*/
|
-webkit-background-clip: text;
|
||||||
-webkit-text-fill-color: transparent; /*给文字设置成透明*/
|
/*将设置的背景颜色限制在文字中*/
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
/*给文字设置成透明*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&_botton {
|
&_botton {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
|
|
|
@ -262,7 +262,6 @@ const setChart = () => {
|
||||||
// 使用刚指定的配置项和数据显示图表。
|
// 使用刚指定的配置项和数据显示图表。
|
||||||
myChart.setOption(data.option);
|
myChart.setOption(data.option);
|
||||||
myChart.on("click", function (params) {
|
myChart.on("click", function (params) {
|
||||||
console.log(params);
|
|
||||||
emit('village',params.name);
|
emit('village',params.name);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -206,6 +206,7 @@
|
||||||
<ylXZZC :list1="data.zccs1" :list2="data.zccs2" @village='chooseVillage'></ylXZZC>
|
<ylXZZC :list1="data.zccs1" :list2="data.zccs2" @village='chooseVillage'></ylXZZC>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -232,7 +233,7 @@ const change = (name, index) => {
|
||||||
leftchoose.value[name] = index;
|
leftchoose.value[name] = index;
|
||||||
};
|
};
|
||||||
const chooseVillage=(village)=>{
|
const chooseVillage=(village)=>{
|
||||||
console.log(village);
|
console.log('village',village);
|
||||||
}
|
}
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
leftTop1: [],
|
leftTop1: [],
|
||||||
|
|
Loading…
Reference in New Issue