提交 dba3290d 编写于 作者: 刘英杰's avatar 刘英杰

20241101 主页》新增文件总数统计

上级 3f229905
流水线 #30543 已通过 ,包含阶段
in 31 second
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimum-scale=1,viewport-fit=cover"><link rel="icon" href="favicon.ico"><title>制度文件</title><link href="static/css/chunk-59b6bb39.f6ea3e41.css" rel="prefetch"><link href="static/css/chunk-64895728.05f7ff7c.css" rel="prefetch"><link href="static/css/chunk-7bfc6c6d.2f9da1b1.css" rel="prefetch"><link href="static/css/chunk-ca7f468e.331f546b.css" rel="prefetch"><link href="static/js/chunk-59b6bb39.5e311370.js" rel="prefetch"><link href="static/js/chunk-64895728.2c4f31d1.js" rel="prefetch"><link href="static/js/chunk-7bfc6c6d.8d3a8eb3.js" rel="prefetch"><link href="static/js/chunk-ca7f468e.e6d8923f.js" rel="prefetch"><link href="static/css/app~748942c6.1203707a.css" rel="preload" as="style"><link href="static/css/chunk-vendors~253ae210.09af4a6b.css" rel="preload" as="style"><link href="static/css/chunk-vendors~cfbf0a2e.48dbcca1.css" rel="preload" as="style"><link href="static/js/app~748942c6.183bb98c.js" rel="preload" as="script"><link href="static/js/chunk-vendors~253ae210.b50231cf.js" rel="preload" as="script"><link href="static/js/chunk-vendors~2a42e354.a4bc0fdf.js" rel="preload" as="script"><link href="static/js/chunk-vendors~7d359b94.08414d6d.js" rel="preload" as="script"><link href="static/js/chunk-vendors~ac50015d.fd71f295.js" rel="preload" as="script"><link href="static/js/chunk-vendors~cfbf0a2e.db930841.js" rel="preload" as="script"><link href="static/css/chunk-vendors~253ae210.09af4a6b.css" rel="stylesheet"><link href="static/css/chunk-vendors~cfbf0a2e.48dbcca1.css" rel="stylesheet"><link href="static/css/app~748942c6.1203707a.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but votemanage_webapp doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="static/js/chunk-vendors~253ae210.b50231cf.js"></script><script src="static/js/chunk-vendors~2a42e354.a4bc0fdf.js"></script><script src="static/js/chunk-vendors~ac50015d.fd71f295.js"></script><script src="static/js/chunk-vendors~7d359b94.08414d6d.js"></script><script src="static/js/chunk-vendors~cfbf0a2e.db930841.js"></script><script src="static/js/app~748942c6.183bb98c.js"></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimum-scale=1,viewport-fit=cover"><link rel="icon" href="favicon.ico"><title>制度文件</title><link href="static/css/chunk-0a4c7d10.0d4ffbe9.css" rel="prefetch"><link href="static/css/chunk-6a5a2e48.3f17dbaf.css" rel="prefetch"><link href="static/css/chunk-719b0e87.3c931f7e.css" rel="prefetch"><link href="static/css/chunk-ca7f468e.331f546b.css" rel="prefetch"><link href="static/js/chunk-0a4c7d10.ef68b27b.js" rel="prefetch"><link href="static/js/chunk-6a5a2e48.835587d9.js" rel="prefetch"><link href="static/js/chunk-719b0e87.6073d2f0.js" rel="prefetch"><link href="static/js/chunk-ca7f468e.e6d8923f.js" rel="prefetch"><link href="static/css/app~748942c6.1203707a.css" rel="preload" as="style"><link href="static/css/chunk-vendors~253ae210.09af4a6b.css" rel="preload" as="style"><link href="static/css/chunk-vendors~cfbf0a2e.48dbcca1.css" rel="preload" as="style"><link href="static/js/app~748942c6.234fcb2d.js" rel="preload" as="script"><link href="static/js/chunk-vendors~253ae210.b50231cf.js" rel="preload" as="script"><link href="static/js/chunk-vendors~2a42e354.a4bc0fdf.js" rel="preload" as="script"><link href="static/js/chunk-vendors~7d359b94.08414d6d.js" rel="preload" as="script"><link href="static/js/chunk-vendors~ac50015d.fd71f295.js" rel="preload" as="script"><link href="static/js/chunk-vendors~cfbf0a2e.db930841.js" rel="preload" as="script"><link href="static/css/chunk-vendors~253ae210.09af4a6b.css" rel="stylesheet"><link href="static/css/chunk-vendors~cfbf0a2e.48dbcca1.css" rel="stylesheet"><link href="static/css/app~748942c6.1203707a.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but votemanage_webapp doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="static/js/chunk-vendors~253ae210.b50231cf.js"></script><script src="static/js/chunk-vendors~2a42e354.a4bc0fdf.js"></script><script src="static/js/chunk-vendors~ac50015d.fd71f295.js"></script><script src="static/js/chunk-vendors~7d359b94.08414d6d.js"></script><script src="static/js/chunk-vendors~cfbf0a2e.db930841.js"></script><script src="static/js/app~748942c6.234fcb2d.js"></script></body></html>
\ No newline at end of file
此差异已折叠。
此差异已折叠。
......@@ -23,12 +23,24 @@
<!-- 栏目卡片-->
<div class="nav">
<van-image
:src="require('@/assets/images/home/制度文件.png')"
class="image"
fit="contain"
/>
<!-- <van-image
:src="require('@/assets/images/home/制度文件.png')"
class="image"
fit="contain"
/>-->
<div class="images">
<div class="imagesText">
<div style="width: 100%;height: 100%;display: flex;align-items: center;justify-content: flex-end;padding-right: 34px; font-family: 黑体;color: white">
<div>
<span style="font-size: 16px">文件总数:</span>
<span style="font-size: 30px;font-weight: 550">{{columnFileTotal}}</span>
</div>
</div>
</div>
</div>
</div>
<van-cell-group v-for="(item,index) in search.option1" :key="index" inset>
<van-cell is-link style="height: 72px"
@click="go2NewsList(item)">
......@@ -38,8 +50,11 @@
</div>
</template>
<template #right-icon>
<div style="width: 25px;height:25px;border-radius: 50%; background: #8cbcff;color: white;display: flex;justify-content: center;align-items: center">{{item.num}}</div>
<van-icon name="arrow" color="#656E76" />
<div
style="width: 25px;height:25px;border-radius: 50%; background: #8cbcff;color: white;display: flex;justify-content: center;align-items: center">
{{ item.num }}
</div>
<van-icon color="#656E76" name="arrow"/>
</template>
<template #icon>
<div
......@@ -99,6 +114,7 @@ import {Toast} from "vant";
export default {
data() {
return {
columnFileTotal:0,
aaa: 123123,
timer: {},
userInfo: hooks.getStorage("accuracyControlDocumentWxUserInfo"),
......@@ -152,6 +168,7 @@ export default {
created() {
//获取一级栏目
GetCount().then((resp) => {
this.search.option1 = resp.data.map(cur => {
return {
text: cur.name,
......@@ -159,6 +176,10 @@ export default {
num: cur.num,
}
})
this.search.option1.forEach(item => {
//文件总数统计
this.columnFileTotal += item.num;
});
this.search.value1 = this.search.option1[0].value;
this.search.params = {
columnId: this.search.value1,
......@@ -186,7 +207,7 @@ export default {
})
},
go2Details(item) {
hooks.setSession(this.search.params, this.$route.path)
hooks.setSession(this.search.params, this.$route.path)
//跳转详情页
this.$router.push({
path: '/newsDetails',
......@@ -381,7 +402,7 @@ export default {
<style lang="less" scoped>
.cardList {
padding: 12px ;
padding: 12px;
/deep/ .van-cell {
position: relative;
......@@ -574,6 +595,24 @@ export default {
<style lang="less" scoped>
.nav {
width: 100%;
.images {
width: 100%;
height: 139.11px;
overflow: hidden;
background-size: 100% 100%;
background-image: url("../../assets/images/home/制度文件.png");
border-radius: 12px;
margin-bottom: 15px;
position: relative;
.imagesText{
width:50%;
position: absolute;
right: 0;
height: 75px;
bottom: 0;
}
}
.image {
width: 100%;
height: 100%;
......@@ -581,4 +620,6 @@ export default {
overflow: hidden;
}
}
</style>
\ No newline at end of file
......@@ -13,10 +13,14 @@
<van-dropdown-item v-model="search.value1" :options="search.option1">
<template #title>
<div style="width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;">
<span v-if="search.value1" style="margin-right: 5px; width: 22px;height:22px;border-radius: 50%; background: #8cbcff;color: white;display: flex;justify-content: center;align-items: center">
{{search.option1.find(cur=>cur.value === search.value1).num}}
<span v-if="search.value1"
style="margin-right: 5px; width: 22px;height:22px;border-radius: 50%; background: #8cbcff;color: white;display: flex;justify-content: center;align-items: center">
{{ search.option1.find(cur => cur.value === search.value1).num }}
</span>
<span v-if="search.value1" style="font-size: 18px;font-family: 黑体">{{search.option1.find(cur=>cur.value === search.value1).text}}</span>
<span v-if="search.value1"
style="font-size: 18px;font-family: 黑体">{{
search.option1.find(cur => cur.value === search.value1).text
}}</span>
</div>
</template>
</van-dropdown-item>
......@@ -79,16 +83,14 @@ import {Toast} from "vant";
export default {
data() {
return {
aaa:123123,
aaa: 123123,
timer: {},
userInfo: hooks.getStorage("accuracyControlDocumentWxUserInfo"),
columns: {
data: [],
},
search: {
option1: [
],
option1: [],
value1: 0,
params: {
columnId: '',
......@@ -173,7 +175,7 @@ export default {
this.search.params = {
columnId: this.searchValue === '' ? this.search.value1 : this.searchValue,
department: this.userInfo.departmentName,
name:this.searchValue === '' ? 'ColumnId' : 'Title' ,
name: this.searchValue === '' ? 'ColumnId' : 'Title',
teacherId: this.userInfo.id,
teacherName: this.userInfo.name,
}
......@@ -188,7 +190,7 @@ export default {
});
//获取栏目下的数据
ShowIndexResult(this.search.params).then((resp) => {
if (resp.data!==null){
if (resp.data !== null) {
let currentSelectName = this.search.option1.find(cur => {
return cur.value === this.search.value1
}).text
......@@ -201,7 +203,7 @@ export default {
this.aaa++
return resp
}).finally(()=>{
}).finally(() => {
toast.close();
});
},
......@@ -483,9 +485,11 @@ export default {
line-height: 36px;
background-color: #fff;
}
/deep/.van-dropdown-item__option--active .van-dropdown-item__icon {
/deep/ .van-dropdown-item__option--active .van-dropdown-item__icon {
color: #1989fa;
}
/deep/ .van-dropdown-menu__title--active {
color: #2aa9ff;
}
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或