-
-
档案类型
+
+ 档案类型
@@ -132,46 +173,73 @@ import PanelGroup from './dashboard/PanelGroup'
import lendAcross from '@/views/components/echarts/lendAcross.vue'
import catePie from '@/views/components/echarts/catePie.vue'
import typePie from '@/views/components/echarts/typePie.vue'
-import WarehouseWarning from '@/views/components/WarehouseWarning'
-import SecurityDoor from '@/views/components/SecurityDoor'
-// import SearchAcrives from '@/views/archivesManage/archivesSearch/index'
-import { statisticsCrud } from '@/views/system/archiveStatistics/mixins/statistics'
-import { FetchWaitBorrower } from '@/api/archivesManage/lendManage'
+import { FetchMainData } from '@/api/archivesManage/library'
+import { mapGetters } from 'vuex'
export default {
name: 'Dashboard',
components: {
- WarehouseWarning,
- SecurityDoor,
PanelGroup,
lendAcross,
catePie,
typePie
- // SearchAcrives
},
- mixins: [statisticsCrud],
data() {
return {
- waitBorrowerData: []
+ topObjectNum: {
+ archivesNum: 0,
+ caseNum: 0,
+ documentNum: 0,
+ fileNum: 0
+ },
+ archivesTotalNum: 0,
+ flowableData: [],
+ flowableTabIndex: 0,
+ lendData: [],
+ cateData: [],
+ typeData: []
}
},
+ computed: {
+ ...mapGetters([
+ 'user'
+ ])
+ },
created() {
- this.getWaitBorrower()
+ this.handleMainData()
},
methods: {
- getWaitBorrower() {
- FetchWaitBorrower().then(data => {
- if (data) {
- this.waitBorrowerData = data
- }
- })
+ formatterSame(percentage) {
+ return percentage
},
- changeActiveTab(id) {
- this.$router.push({
- name: 'warehouse3D',
- params: {
- roomId: id
+ handleMainData() {
+ const fondsAffiliation = []
+ fondsAffiliation.push(this.user.fonds.id.toString())
+ const params = {
+ fondsAffiliations: fondsAffiliation
+ }
+ FetchMainData(params).then(data => {
+ this.topObjectNum = {
+ archivesNum: data.archivesNum,
+ caseNum: data.caseNum,
+ documentNum: data.documentNum,
+ fileNum: data.fileNum
}
+ this.flowableData = data.flows
+ this.archivesTotalNum = data.archivesTotalNum
+
+ // '标签', '装盒', '入库', '借阅', '开放', '实体', '审批'
+ // "archivesTotalNum": 3, // 总数
+ // "archivesTagNum": 1, // 标签
+ // "installNum": 0, // 已装盒
+ // "storageNum": 0, //入库
+ // "borrowNum": 0, // 借阅
+ // "openNum": 0, // 开放
+ // "entityNum": 3, // 实体
+ // "approveNum": 2 //审批
+ this.lendData = [
+ data.archivesTagNum, data.installNum, data.storageNum, data.borrowNum, data.openNum, data.entityNum, data.approveNum
+ ]
})
}
}
@@ -184,7 +252,7 @@ export default {
position: relative;
.chart-wrapper {
- height: calc(100% - 40px);
+ height: calc(100% - 55px);
}
}
@media (max-width: 1024px) {
@@ -192,52 +260,6 @@ export default {
padding: 8px;
}
}
-.warehouse-tab {
- .warehouse-nav {
- display: flex;
- justify-content: space-around;
- position: absolute;
- bottom: 15px;
- z-index: 11;
- width: 100%;
- padding: 0;
- li {
- display: flex;
- flex-direction: column;
- align-items: center;
- flex-wrap: nowrap;
- align-content: center;
- justify-content: center;
- height: 90px;
- text-align: right;
- font-size: 14px;
- position: relative;
- &:hover {
- cursor: pointer;
- }
- span {
- width: 72px;
- height: 52px;
- margin-bottom: 7px;
- }
- p {
- text-align: left;
- }
- &:first-child span {
- background: url("~@/assets/images/tab_fullview_logo.png") no-repeat;
- }
- &:nth-child(2) span {
- background: url("~@/assets/images/tab_archives_logo.png") no-repeat;
- }
- &:nth-child(3) span {
- background: url("~@/assets/images/tab_collate_logo.png") no-repeat;
- }
- &:nth-child(4) span {
- background: url("~@/assets/images/tab_read_logo.png") no-repeat;
- }
- }
- }
-}
.el-col {
height: 100%;
}
@@ -248,68 +270,183 @@ export default {
.header-container-wrap {
min-height: 100%;
}
-.warehose-el-table ::v-deep .el-table__header-wrapper {
- box-shadow: inset 0px 0px 6px 1px #339cff;
- background: none !important;
-}
.container-wrap {
min-height: auto;
height: 100%;
}
-.todo-list {
+.home-item-title{
+ position: relative;
+ padding: 18px 0 18px 15px;
+ font-size: 16px;
+ color: #0C0E1E;
+ &::before{
+ position: absolute;
+ left: 0;
+ top: 50%;
+ content: "";
+ width: 3px;
+ height: 16px;
+ background-color: #0348F3;
+ transform: translateY(-50%);
+ }
+}
+.home-flowable{
padding: 0 20px;
- & li {
- height: 42px;
- line-height: 42px;
- margin-bottom: 10px;
- font-size: 13px;
- color: #ffffff;
- background: #02255f;
- box-shadow: inset 0px 0px 6px 1px #339cff;
- border-radius: 26px;
- opacity: 1;
+}
+.home-tab{
+ display: flex;
+ justify-content: flex-start;
+ span{
+ display: block;
+ margin-right: 30px;
+ padding-bottom: 3px;
+ border-bottom: 3px solid #fff;
cursor: pointer;
+ &.home-tab-active{
+ color: #0348F3;
+ border-bottom: 3px solid #0348F3;
+ }
+ }
+}
+::v-deep .home-flowable-list .el-table__body-wrapper::-webkit-scrollbar {
+ width: 5px !important;
+ height: 5px !important;
+ background-color: #DDE8FB !important;
+}
- & p {
+::v-deep .home-flowable-list .el-table__body-wrapper::-webkit-scrollbar-thumb {
+ border-radius: 3px;
+ background-color: #4578F6 !important;
+}
+
+::v-deep .home-flowable-list .el-table__body-wrapper::-webkit-scrollbar-thumb:hover {
+ background-color: #4578F6 !important;
+}
+
+::v-deep .home-flowable-list .el-table__body-wrapper::-webkit-scrollbar-corner {
+ background-color: #DDE8FB !important;
+}
+.progress-right-item{
+ width:100%;
+ height: calc(100% / 2);
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+}
+
+.progress-right-txt{
+ position: relative;
+ color: #545B65;
+ font-size: 14px;
+ padding-left: 12px;
+ margin-right: 50px;
+ span{
+ display: block;
+ font-size: 20px;
+ color: #0C0E1E;
+ padding-top: 4px;
+ i{
display: inline-block;
- width: calc(100% - 140px);
- padding-left: 10px;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- word-break: break-all;
+ font-size: 12px;
+ color: #A6ADB6;
+ }
+ }
+ &::before{
+ position: absolute;
+ left: 0;
+ top: 50%;
+ content: '';
+ width: 4px;
+ height: 50px;
+ background: linear-gradient(180deg, #FF9B3B 0%, #F7BA1E 100%);
+ border-radius: 100px;
+ transform: translateY(-50%);
+ }
+ &.right-txt1{
+ &::before{
+ background: linear-gradient(180deg, #FF9B3B 0%, #F7BA1E 100%);
}
- & span {
- float: right;
- padding-right: 10px;
+ }
+ &.right-txt2{
+ &::before{
+ background: linear-gradient(180deg, #14C9C9 0%, #83DBAD 100%);
}
}
}
-::v-deep
- .el-table--striped
- .el-table__body
- tr.el-table__row--striped
- td.el-table__cell {
- background: #02255f;
+
+.progress-class {
+ position: relative;
+ width: 200px;
+ height: 200px;
+ margin: 0 100px;
+ ::v-deep svg > path:nth-child(2) {
+ stroke: url(#red);
+ }
+ ::v-deep .el-progress-circle{
+ border-radius: 50%;
+ // box-shadow: 0 12px 12px #FEF1F3;
+ box-shadow: 0 6px 8px #D9F6F6;
+ }
}
-.search-area {
- width: 100%;
- height: 100%;
- margin: 0;
- display: flex;
- align-items: center;
- justify-content: center;
+.progress-class2{
+ position: relative;
+ width: 100px;
+ height: 100px;
+ ::v-deep svg > path:nth-child(2) {
+ stroke: url(#yellow);
+ }
+ ::v-deep .el-progress-circle{
+ border-radius: 50%;
+ box-shadow: 0 6px 8px #FFDEC1;
+ }
+}
+
+.progress-class3{
+ position: relative;
+ width: 100px;
+ height: 100px;
+ ::v-deep svg > path:nth-child(2) {
+ stroke: url(#green);
+ }
+ ::v-deep .el-progress-circle{
+ border-radius: 50%;
+ box-shadow: 0 6px 8px #D9F6F6;
+ }
+}
+
+::v-deep .el-progress__text{
+ white-space: pre;
+
+}
+::v-deep .el-progress-circle__track {
+ stroke: #F1F2F6;
}
-::v-deep .search-main{
- padding: 0 62px;
- .head-container{
- padding: 0;
- width: 100% !important;
- .search-input {
- width: 100% !important;
+
+.differ {
+ ::v-deep .el-progress__text {
+ top: 55%;
+ font-size: 30px !important;
+ color: #0C0E1E;
+ &::before {
+ content: 'CPU占比';
+ width: 100%;
+ position: absolute;
+ top: -85%;
+ left: 50%;
+ font-weight: normal;
+ font-size: 14px;
+ color: #545B65;
+ transform: translateX(-50%);
}
- .input-with-select{
- width: 100% !important;
+ &::after {
+ content: '%';
+ width: 100%;
+ position: absolute;
+ bottom: 6px;
+ left: 30px;
+ font-weight: normal;
+ font-size: 12px;
+ color: #DEE0E4;
}
}
}
diff --git a/src/views/system/archiveStatistics/mixins/statistics.js b/src/views/system/archiveStatistics/mixins/statistics.js
index 926c4f2..aa75403 100644
--- a/src/views/system/archiveStatistics/mixins/statistics.js
+++ b/src/views/system/archiveStatistics/mixins/statistics.js
@@ -15,6 +15,7 @@ export const statisticsCrud = {
}
},
lendData: [],
+ serviceData: [],
cateData: [],
typeData: [],
storageData: {