|
@@ -7,9 +7,10 @@
|
|
|
<span>会助理平台</span>
|
|
|
</div>
|
|
|
<div class="top_one middle">
|
|
|
- <el-input popper-class="my-autocomplete" v-model="queryWord" style="width: 81.25%;">
|
|
|
+ <el-input popper-class="my-autocomplete" v-model="queryWord" style="width: 81.25%;"
|
|
|
+ placeholder="搜索关键信息">
|
|
|
<i class="el-icon-search" slot="suffix" @click="handleQuery()"
|
|
|
- style="width:2%; height: 100%; display: flex;align-items: center;cursor: pointer">
|
|
|
+ style="width:6%; height: 100%; display: flex;align-items: center;cursor: pointer;margin-right: 1vh;">
|
|
|
</i>
|
|
|
</el-input>
|
|
|
</div>
|
|
@@ -29,12 +30,11 @@
|
|
|
</div>
|
|
|
<div class="top_two">
|
|
|
<div class="top_two left">
|
|
|
- <el-avatar size="medium"
|
|
|
- src="https://hzl.willalp.com/static/img/profile.b87e3d56.jpg"></el-avatar>
|
|
|
- <span style="margin-left: 2%;">xxx注册机构</span>
|
|
|
+ <img :src="thisTenant.agencyLogo" alt="" style="width: 4vh;">
|
|
|
+ <span style="margin-left: 2%;">{{ thisTenant.agencyName }}</span>
|
|
|
</div>
|
|
|
<div class="top_two middle">
|
|
|
- <el-menu default-active="1" class="top_two_menu" mode="horizontal" @select="">
|
|
|
+ <el-menu default-active="1" class="top_two_menu" mode="horizontal" @select="handleSelect">
|
|
|
<el-menu-item index="1">首页</el-menu-item>
|
|
|
<el-menu-item index="2">操作台</el-menu-item>
|
|
|
<el-menu-item index="3">个人中心</el-menu-item>
|
|
@@ -47,7 +47,8 @@
|
|
|
<div class="left_top left">
|
|
|
<div class="block" style="height:100%;width: 100%;">
|
|
|
<el-carousel height="29.5vh">
|
|
|
- <el-carousel-item v-for="item in 4" :key="item">
|
|
|
+ <el-carousel-item v-for="(item, index) in leftTopPics" :key="index">
|
|
|
+ <img :src="item.icon" alt="" style="width: 100%;height: 100%;">
|
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
|
</div>
|
|
@@ -57,13 +58,15 @@
|
|
|
<el-tabs v-model="leftTopRight" @tab-click="" style="width: 98%; margin: 0px auto">
|
|
|
<el-tab-pane label="机构资讯" name="">
|
|
|
<div style="overflow-y: auto;height: 20vh;">
|
|
|
- <el-row v-for="(item, index) of dataList" :key="index">
|
|
|
- <div>
|
|
|
- <el-row>
|
|
|
- <div style="margin-bottom: 5px;">
|
|
|
- <div class="leftContent">{{ item.title }}</div>
|
|
|
- <div class="rightContent">{{ item.createTime }}</div>
|
|
|
- </div>
|
|
|
+ <el-row v-for="(item, index) of leftTopOne" :key="index">
|
|
|
+ <div style="margin-bottom: 1.3vh;">
|
|
|
+ <el-row style="border-bottom: 1px solid #F2F2F2;">
|
|
|
+ <el-col :span="16">
|
|
|
+ <span class="leftContent"> {{ item.text }}</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <span class="rightContent">{{ parseTime(item.updateTime) }}</span>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</el-row>
|
|
@@ -80,12 +83,18 @@
|
|
|
<el-tab-pane label="专栏" name="">
|
|
|
<div style="overflow-y: auto;height: 30vh;">
|
|
|
<el-row v-for="(item, index) of dataList2" :key="index">
|
|
|
- <div>
|
|
|
- <el-row>
|
|
|
+ <div style="margin-bottom: 1.3vh;">
|
|
|
+ <el-row style="border-bottom: 1px solid #F2F2F2;">
|
|
|
<div style="margin-bottom: 5px;">
|
|
|
- <div class="leftContentPrefix">[ {{ item.tag }} ]</div>
|
|
|
- <div class="leftContent">{{ item.title }}</div>
|
|
|
- <div class="rightContent">{{ item.createTime }}</div>
|
|
|
+ <el-col :span="3">
|
|
|
+ <div class="leftContentPrefix">[ {{ item.tag }} ]</div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="16">
|
|
|
+ <span class="leftContent"> {{ item.title }}</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5">
|
|
|
+ <span class="rightContent">{{ parseTime(item.createTime) }}</span>
|
|
|
+ </el-col>
|
|
|
</div>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -101,8 +110,8 @@
|
|
|
<div class="left_bottom">
|
|
|
<a class="moreMessage" @click="">更多</a>
|
|
|
<el-tabs v-model="leftBottom" @tab-click="" style="width: 98%; margin: 0px auto">
|
|
|
- <el-tab-pane label="平台咨询" name="">
|
|
|
- <div class="sys_card" v-for="item in ptzxList">
|
|
|
+ <el-tab-pane label="平台资讯" name="">
|
|
|
+ <div class="sys_card" v-for="item in leftBottomList">
|
|
|
<img :src="item.coverPic" style="width: 100%;height: 100%;border-radius: 4px;"
|
|
|
@click=""></img>
|
|
|
<div class="sys_card_title">
|
|
@@ -132,11 +141,11 @@
|
|
|
<a class="moreMessage" @click="">更多</a>
|
|
|
<el-tabs @tab-click="" style="width: 98%; margin: 0px auto">
|
|
|
<el-tab-pane label="跳转模块" name="">
|
|
|
- <div v-for="(item, index) of menuList" :key="index" style="display: inline">
|
|
|
- <div class="listItem" @click="" style="cursor: pointer">
|
|
|
+ <div v-for="(item, index) of rightTopLink" :key="index" style="display: inline">
|
|
|
+ <div class="listItem" @click="goPage(item.path)" style="cursor: pointer">
|
|
|
<div>
|
|
|
<div class="menuImg">
|
|
|
- <img class="imgSty" :src="item.imgUrl" />
|
|
|
+ <img class="imgSty" :src="item.icon" />
|
|
|
</div>
|
|
|
<div class="titleSty">
|
|
|
<span>{{ item.name }}</span>
|
|
@@ -153,13 +162,17 @@
|
|
|
<el-tabs v-model="rightMiddle" @tab-click="" style="width: 98%; margin: 0px auto">
|
|
|
<el-tab-pane label="规章制度" name="">
|
|
|
<div style="overflow-y: auto;height: 30vh;">
|
|
|
- <el-row v-for="(item, index) of dataList3" :key="index">
|
|
|
- <div>
|
|
|
- <el-row>
|
|
|
+ <el-row v-for="(item, index) of dataList2" :key="index">
|
|
|
+ <div style="margin-bottom: 1.3vh;">
|
|
|
+ <el-row style="border-bottom: 1px solid #F2F2F2;">
|
|
|
<div style="margin-bottom: 5px;">
|
|
|
+ <el-col :span="18">
|
|
|
+ <span class="leftContent"> {{ item.title }}</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <span class="rightContent">{{ parseTime(item.createTime) }}</span>
|
|
|
+ </el-col>
|
|
|
<!-- <div class="leftContentPrefix">[ {{ item.tag }} ]</div> -->
|
|
|
- <div class="leftContent">{{ item.title }}</div>
|
|
|
- <div class="rightContent">{{ item.createTime }}</div>
|
|
|
</div>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -173,9 +186,9 @@
|
|
|
<el-tabs v-model="rightBottom" @tab-click="" style="width: 98%; margin: 0px auto">
|
|
|
<el-tab-pane label="文件下载" name="">
|
|
|
<div style="overflow-y: auto;height: 20vh;">
|
|
|
- <el-row v-for="(item, index) of dataList3" :key="index">
|
|
|
+ <el-row v-for="(item, index) of dataList2" :key="index">
|
|
|
<div>
|
|
|
- <el-row>
|
|
|
+ <el-row style="border-bottom: 1px solid #F2F2F2;">
|
|
|
<div style="margin-bottom: 5px;">
|
|
|
<!-- <div class="leftContentPrefix">[ {{ item.tag }} ]</div> -->
|
|
|
<div style="display: inline-block;">
|
|
@@ -202,7 +215,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-
|
|
|
+import {
|
|
|
+ getEnableList,
|
|
|
+ getEnableListPic,
|
|
|
+} from "@/api/system/moduleConfig";
|
|
|
+import { getHomePlatFormForWeb, getXGZXForWeb } from "@/api/content/platformInfo";
|
|
|
+import { getThisAgencyInfo } from "@/api/content/agencyInfo";
|
|
|
|
|
|
export default {
|
|
|
name: "Navigation",
|
|
@@ -210,56 +228,46 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ //当前机构
|
|
|
+ thisTenant: undefined,
|
|
|
+ //左上轮播图
|
|
|
+ leftTopPics: [],
|
|
|
+ //右上跳转模块
|
|
|
+ rightTopLink: [
|
|
|
+ { name: "市场1", icon: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
+ { name: "市场2", icon: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
+ { name: "市场3", icon: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
+ { name: "市场4", icon: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
+ { name: "市场5", icon: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
+ { name: "市场6", icon: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
+ { name: "市场7", icon: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
+ { name: "市场8", icon: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
+ { name: "市场9", icon: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
+ { name: "市场10", icon: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
+ ],
|
|
|
+ //左上机构咨询
|
|
|
+ leftTopOne: [],
|
|
|
+ //左下角平台咨询
|
|
|
+ leftBottomList: [],
|
|
|
queryWord: undefined,
|
|
|
leftTopRight: undefined,
|
|
|
leftMiddle: undefined,
|
|
|
rightMiddle: undefined,
|
|
|
leftBottom: undefined,
|
|
|
rightBottom: undefined,
|
|
|
- dataList: [
|
|
|
- { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- // { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- // { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- // { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- // { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- // { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- ],
|
|
|
+ // dataList: [
|
|
|
+ // { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
+ // { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
+ // { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
+ // { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
+ // ],
|
|
|
dataList2: [
|
|
|
{ tag: "党政要闻", title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
{ tag: "党政要闻", title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
{ tag: "党政要闻", title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
{ tag: "党政要闻", title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
{ tag: "党政要闻", title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- // { tag: "党政要闻", title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- // { tag: "党政要闻", title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- // { tag: "党政要闻", title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- // { tag: "党政要闻", title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- // { tag: "党政要闻", title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- ],
|
|
|
- dataList3: [
|
|
|
- { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- { title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
- ],
|
|
|
- menuList: [
|
|
|
- { name: "市场1", imgUrl: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
- { name: "市场2", imgUrl: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
- { name: "市场3", imgUrl: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
- { name: "市场4", imgUrl: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
- { name: "市场5", imgUrl: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
- { name: "市场6", imgUrl: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
- { name: "市场7", imgUrl: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
- { name: "市场8", imgUrl: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
- { name: "市场9", imgUrl: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
- { name: "市场10", imgUrl: "https://hzl.willalp.com:9000/willalpbucket/2.png" },
|
|
|
+ { tag: "党政要闻", title: "这是标题这是标题", createTime: "2024-09-07 15:23:22" },
|
|
|
],
|
|
|
ptzxList: [
|
|
|
{ coverPic: "https://ts.willalp.com:9002/willalpbucket/微信图片_2024032809233720240328092531.png", title: "清明放假通知", sketch: "放假时间:4月4-6日放假,共3天。4月7日(星期日)上班。" },
|
|
@@ -271,13 +279,57 @@ export default {
|
|
|
beforeCreate() {
|
|
|
},
|
|
|
created() {
|
|
|
-
|
|
|
+ this.getTemplate();
|
|
|
},
|
|
|
methods: {
|
|
|
+ //页面初始化数据获取
|
|
|
+ getTemplate() {
|
|
|
+ //获得当前机构信息
|
|
|
+ getThisAgencyInfo().then(res => {
|
|
|
+ this.thisTenant = res.data;
|
|
|
+ if (res.data.agencyLogo) {
|
|
|
+ this.thisTenant.agencyLogo = JSON.parse(res.data.agencyLogo)[0].url;
|
|
|
+ }
|
|
|
+ console.log(this.thisTenant)
|
|
|
+ })
|
|
|
+ //获得左上轮播图
|
|
|
+ getEnableListPic().then(res => {
|
|
|
+ this.leftTopPics = res.data;
|
|
|
+ });
|
|
|
+ //获得右上跳转模块
|
|
|
+ getEnableList().then(res => {
|
|
|
+ this.rightTopLink = res.data;
|
|
|
+ });
|
|
|
+ //平台资讯
|
|
|
+ getHomePlatFormForWeb().then(res => {
|
|
|
+ this.leftBottomList = res.data;
|
|
|
+ });
|
|
|
+ //相关资讯
|
|
|
+ getXGZXForWeb().then(res => {
|
|
|
+ if (res.data.size < 5) {
|
|
|
+ this.leftTopOne = res.data;
|
|
|
+ } else {
|
|
|
+ this.leftTopOne = res.data.slice(0, 4);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 处理搜索 */
|
|
|
handleQuery() {
|
|
|
console.log(this.queryWord)
|
|
|
},
|
|
|
+ /** 处理跳转 */
|
|
|
+ goPage(path) {
|
|
|
+ this.$router.push(path);
|
|
|
+ },
|
|
|
+ //导航栏跳转
|
|
|
+ handleSelect(key, keyPath) {
|
|
|
+ if (key == 2) {
|
|
|
+ this.$router.push("/");
|
|
|
+ }
|
|
|
+ if (key == 3) {
|
|
|
+ this.$router.push("/user/profile");
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
},
|
|
|
};
|
|
@@ -286,9 +338,16 @@ export default {
|
|
|
::v-deep .el-tabs__item {
|
|
|
color: #6F6F6F;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-tabs__item.is-active {
|
|
|
color: #333333;
|
|
|
}
|
|
|
+
|
|
|
+::v-deep .el-input--medium .el-input__inner {
|
|
|
+ border-radius: 47px 47px 47px 47px;
|
|
|
+ border: 2px solid #FFFFFF;
|
|
|
+}
|
|
|
+
|
|
|
.rightBottomButter {
|
|
|
background: #FF9736;
|
|
|
border-radius: 4px 4px 4px 4px;
|
|
@@ -302,6 +361,7 @@ export default {
|
|
|
text-align: left;
|
|
|
font-style: normal;
|
|
|
text-transform: none;
|
|
|
+ margin-top: 6%;
|
|
|
}
|
|
|
|
|
|
.sys_card_title_font {
|
|
@@ -338,6 +398,7 @@ export default {
|
|
|
|
|
|
.titleSty {
|
|
|
margin-top: 10px;
|
|
|
+ margin-bottom: 5px;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
@@ -360,8 +421,8 @@ export default {
|
|
|
}
|
|
|
|
|
|
.rightContent {
|
|
|
- /* display: inline-block; */
|
|
|
- float: right;
|
|
|
+ display: block;
|
|
|
+ /* float: right; */
|
|
|
margin-right: 25px;
|
|
|
|
|
|
font-family: Microsoft YaHei, Microsoft YaHei;
|
|
@@ -369,13 +430,17 @@ export default {
|
|
|
font-size: 12px;
|
|
|
color: #6F6F6F;
|
|
|
line-height: 25px;
|
|
|
- text-align: center;
|
|
|
+ text-align: right;
|
|
|
font-style: normal;
|
|
|
text-transform: none;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ -o-text-overflow: ellipsis;
|
|
|
}
|
|
|
|
|
|
.leftContentPrefix {
|
|
|
- display: inline-block;
|
|
|
+ display: block;
|
|
|
font-family: Microsoft YaHei, Microsoft YaHei;
|
|
|
font-weight: 400;
|
|
|
font-size: 16px;
|
|
@@ -384,16 +449,24 @@ export default {
|
|
|
font-style: normal;
|
|
|
text-transform: none;
|
|
|
margin-right: 1%;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ -o-text-overflow: ellipsis;
|
|
|
}
|
|
|
|
|
|
.leftContent {
|
|
|
- display: inline-block;
|
|
|
+ display: block;
|
|
|
font-family: Microsoft YaHei, Microsoft YaHei;
|
|
|
font-weight: 400;
|
|
|
font-size: 16px;
|
|
|
color: #333333;
|
|
|
- text-align: center;
|
|
|
+ text-align: left;
|
|
|
font-style: normal;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ -o-text-overflow: ellipsis;
|
|
|
}
|
|
|
|
|
|
.moreMessage {
|
|
@@ -430,13 +503,14 @@ export default {
|
|
|
.top {
|
|
|
height: 13vh;
|
|
|
width: 100%;
|
|
|
+ margin-bottom: 10px;
|
|
|
/* background-color: red; */
|
|
|
}
|
|
|
|
|
|
.top_one {
|
|
|
- height: 6.5vh;
|
|
|
+ height: 7.5vh;
|
|
|
width: 100%;
|
|
|
- background-color: #3B71DD;
|
|
|
+ background-color: #1890FF;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
}
|
|
@@ -456,7 +530,8 @@ export default {
|
|
|
letter-spacing: 8px;
|
|
|
font-style: normal;
|
|
|
text-transform: none;
|
|
|
- margin-left: 40px;
|
|
|
+ /* margin-left: 40px; */
|
|
|
+ text-align: left;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -567,7 +642,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.left_middle {
|
|
|
- height: 38vh;
|
|
|
+ height: 37vh;
|
|
|
margin-top: 2vh;
|
|
|
background-color: #FFFFFF;
|
|
|
position: relative;
|
|
@@ -597,7 +672,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.right_middle {
|
|
|
- height: 38vh;
|
|
|
+ height: 37vh;
|
|
|
margin-top: 2vh;
|
|
|
background-color: #FFFFFF;
|
|
|
position: relative;
|