|
@@ -1,11 +1,41 @@
|
|
|
<template>
|
|
|
- <div class="law-related">
|
|
|
+ <div class="law-related" v-if="lawPopupShow" v-drag>
|
|
|
+ <div class="law-details-popup" v-if="lawDetailsPopupShow">
|
|
|
+ <div class="law-details-popup-closebtn" @click="detailsCloseEvent"></div>
|
|
|
+ <div class="law-details-popup-inner"></div>
|
|
|
+ </div>
|
|
|
<div class="title">
|
|
|
<div class="title-text">XXXX疑点相关的法律法规</div>
|
|
|
+ <div class="title-close-btn" @click="closeEvent"></div>
|
|
|
+ </div>
|
|
|
+ <div class="option">
|
|
|
+ <div class="option-left">
|
|
|
+ <el-input class="search-input" placeholder="请输入关键字"></el-input>
|
|
|
+ <div class="search-icon"><i class="el-icon-search"></i></div>
|
|
|
+ </div>
|
|
|
+ <div class="option-right">
|
|
|
+ <NewSelect class="option-right-item" />
|
|
|
+ <NewSelect class="option-right-item" />
|
|
|
+ <NewSelect class="option-right-item" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="table">
|
|
|
+ <el-table
|
|
|
+ ref="singleTable"
|
|
|
+ highlight-current-row
|
|
|
+ style="width: 100%"
|
|
|
+ :data="tableData"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ >
|
|
|
+ <el-table-column prop="name" label="名称" align="center">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="date" label="日期" align="center">
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ <div class="footer">
|
|
|
+ <Pagination :paginationData="paginationData" />
|
|
|
</div>
|
|
|
- <div class="option"></div>
|
|
|
- <div class="table"></div>
|
|
|
- <div class="footer"></div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -21,6 +51,7 @@ export default {
|
|
|
components: { NewSelect, Pagination },
|
|
|
data() {
|
|
|
return {
|
|
|
+ lawDetailsPopupShow: false,
|
|
|
sortSelectVal: "土地资源",
|
|
|
sortOptions: [
|
|
|
{
|
|
@@ -42,7 +73,6 @@ export default {
|
|
|
label: "2018",
|
|
|
},
|
|
|
],
|
|
|
- paginationData: {},
|
|
|
tableData: [
|
|
|
{
|
|
|
name: "浦东新区区级政府投资项目审计监督办法",
|
|
@@ -54,8 +84,8 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
paginationData: {
|
|
|
- pageSize: 0,
|
|
|
- pagerCount: 7,
|
|
|
+ pageSize: 10,
|
|
|
+ pagerCount: 5,
|
|
|
currentPage: 1,
|
|
|
pageSizes: [5, 10, 20, 50],
|
|
|
total: 200,
|
|
@@ -66,8 +96,14 @@ export default {
|
|
|
this.handleSizeChange(val);
|
|
|
},
|
|
|
},
|
|
|
+ currentRow: null,
|
|
|
};
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ lawPopupShow() {
|
|
|
+ return this.$store.state.lawPopupShow;
|
|
|
+ },
|
|
|
+ },
|
|
|
methods: {
|
|
|
queryEvent() {
|
|
|
console.log("查询");
|
|
@@ -84,20 +120,82 @@ export default {
|
|
|
handleSizeChange(val) {
|
|
|
console.log(`每页 ${val} 条`);
|
|
|
},
|
|
|
+ closeEvent() {
|
|
|
+ this.$store.state.lawPopupShow = false;
|
|
|
+ },
|
|
|
+ // 法律法规详细信息弹窗关闭
|
|
|
+ detailsCloseEvent() {
|
|
|
+ this.lawDetailsPopupShow = false;
|
|
|
+ },
|
|
|
+ // 选中当前行
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ console.log(val, "currentRow");
|
|
|
+ this.currentRow = val;
|
|
|
+ this.lawDetailsPopupShow = true;
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
.law-related {
|
|
|
- width: 620px;
|
|
|
+ width: 700px;
|
|
|
height: 500px;
|
|
|
- background: rgba(0, 39, 77, 0.9);
|
|
|
+ background: rgba(0, 39, 77, 0.95);
|
|
|
border: 1px solid #2fb8ff;
|
|
|
- .title {
|
|
|
+ pointer-events: auto;
|
|
|
+ // 单击每一行后弹出法律相关的详细内容
|
|
|
+ .law-details-popup {
|
|
|
+ position: absolute;
|
|
|
width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ z-index: 99;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ background: rgba(0, 39, 77, 0.9);
|
|
|
+ border: 1px solid #2fb8ff;
|
|
|
+ &-closebtn {
|
|
|
+ width: 30px;
|
|
|
+ height: 30px;
|
|
|
+ position: absolute;
|
|
|
+ top: 1px;
|
|
|
+ right: 1px;
|
|
|
+ background: url("../../assets/image/close.png") no-repeat center;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ &-inner {
|
|
|
+ width: 95%;
|
|
|
+ height: 90%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .title {
|
|
|
+ margin: 0 auto;
|
|
|
+ width: 99%;
|
|
|
height: 8%;
|
|
|
- background: #2fb8ff;
|
|
|
position: relative;
|
|
|
+ border-bottom: 1px solid;
|
|
|
+ border-image: -webkit-linear-gradient(
|
|
|
+ -90deg,
|
|
|
+ rgba(255, 255, 255, 0) 0%,
|
|
|
+ rgba(47, 184, 255, 1) 50%,
|
|
|
+ rgba(255, 255, 255, 0) 99%
|
|
|
+ )
|
|
|
+ 2 2 2 2;
|
|
|
+ border-image: -moz-linear-gradient(
|
|
|
+ 90deg,
|
|
|
+ rgba(255, 255, 255, 0) 0%,
|
|
|
+ rgba(47, 184, 255, 1) 50%,
|
|
|
+ rgba(255, 255, 255, 0) 99%
|
|
|
+ )
|
|
|
+ 2 2 2 2;
|
|
|
+ border-image: linear-gradient(
|
|
|
+ 90deg,
|
|
|
+ rgba(255, 255, 255, 0) 0%,
|
|
|
+ rgba(47, 184, 255, 1) 50%,
|
|
|
+ rgba(255, 255, 255, 0) 99%
|
|
|
+ )
|
|
|
+ 2 2 2 2;
|
|
|
+
|
|
|
&-text {
|
|
|
position: absolute;
|
|
|
left: 10px;
|
|
@@ -110,25 +208,78 @@ export default {
|
|
|
font-weight: 300;
|
|
|
}
|
|
|
&-close-btn {
|
|
|
+ width: 30px;
|
|
|
+ height: 30px;
|
|
|
position: absolute;
|
|
|
- top: 7px;
|
|
|
- right: 10px;
|
|
|
+ top: 1px;
|
|
|
+ right: 1px;
|
|
|
+ background: url("../../assets/image/close.png") no-repeat center;
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
|
}
|
|
|
.option {
|
|
|
width: 100%;
|
|
|
- height: 12%;
|
|
|
- background: yellow;
|
|
|
+ height: 11%;
|
|
|
+ position: relative;
|
|
|
+ &-left {
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ width: 35%;
|
|
|
+ .search-input {
|
|
|
+ position: absolute;
|
|
|
+ top: 7px;
|
|
|
+ left: 5px;
|
|
|
+ width: 225px;
|
|
|
+ }
|
|
|
+ /deep/.el-input__inner {
|
|
|
+ height: 35px;
|
|
|
+ }
|
|
|
+ .search-icon {
|
|
|
+ position: absolute;
|
|
|
+ top: 12px;
|
|
|
+ right: 25px;
|
|
|
+ color: #fff;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &-right {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-around;
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ width: 65%;
|
|
|
+ &-item {
|
|
|
+ width: 120px;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 50px;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.table {
|
|
|
width: 100%;
|
|
|
height: 70%;
|
|
|
- background: red;
|
|
|
+ /deep/.el-table {
|
|
|
+ background: rgba(0, 39, 77, 0.6);
|
|
|
+ // font-size: 0.95rem;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ thead {
|
|
|
+ color: #4dc3ff;
|
|
|
+ font-size: 15px;
|
|
|
+ }
|
|
|
+ td {
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.footer {
|
|
|
+ margin: 0 auto;
|
|
|
width: 100%;
|
|
|
height: 10%;
|
|
|
- background: orange;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
}
|
|
|
}
|
|
|
</style>
|