diff --git a/api/api.js b/api/api.js
index c6dd51f..4933319 100644
--- a/api/api.js
+++ b/api/api.js
@@ -353,8 +353,13 @@ const install = (Vue, vm) => {
authorizations: true,
isparams: false
})
+ // 通知公告/
+ let getNoticeList = (params) => http.get('/blade-desk/notice/list', params, {
+ authorizations: true,
+ isparams: false
+ })
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
- vm.$u.api = { getTenantInfo, login, logout, registerUser, getworkbench, getLoginRecords, getEditRecords, subEditRecords, getChildList, getDeviceList, workOrderSave, getWorkOrderRecords, getBreakdownInfo, workOrderupdate, evaluateSign, getRepairPersons, getGoodsList, getDictionaryList, getUserList, workList, deviceList, upkeepStat, pieStat, getUserInfo, overview, sendOrders, cloneOrder, editData, repairReject, applySave, sendVerify, serviceman, servicemanReceive, servicemanSubmit, supervisorReject, supervisorconfirm, customerConfirm, customerReject, servicemanRepairSubmit, evaluateRepairReject, getDeviceDetail, getTaskPage, getTaskDetail, taskSupervisorconfirm, taskServicemanreceive, updateCoordinate, taskServicemanUpdateTime, getPlanDetail, getRepairPage, updateDetaile, taskServicemanSubmit, taskCustomerConfirm, taskCustomerRefuse, taskSolutionSave, taskSolutionSubmit, repairSolutionSupervisor, repairSolutionRefuse, repairSolutionCustomer, repairCustomerRefuse, repairServicemanSubmit,repairConfirmFinish,repairRefuseFinish ,confirmPayment,getPosition,getRepairDetail,updatePosition,resetPwd};
+ vm.$u.api = { getTenantInfo, login, logout, registerUser, getworkbench, getLoginRecords, getEditRecords, subEditRecords, getChildList, getDeviceList, workOrderSave, getWorkOrderRecords, getBreakdownInfo, workOrderupdate, evaluateSign, getRepairPersons, getGoodsList, getDictionaryList, getUserList, workList, deviceList, upkeepStat, pieStat, getUserInfo, overview, sendOrders, cloneOrder, editData, repairReject, applySave, sendVerify, serviceman, servicemanReceive, servicemanSubmit, supervisorReject, supervisorconfirm, customerConfirm, customerReject, servicemanRepairSubmit, evaluateRepairReject, getDeviceDetail, getTaskPage, getTaskDetail, taskSupervisorconfirm, taskServicemanreceive, updateCoordinate, taskServicemanUpdateTime, getPlanDetail, getRepairPage, updateDetaile, taskServicemanSubmit, taskCustomerConfirm, taskCustomerRefuse, taskSolutionSave, taskSolutionSubmit, repairSolutionSupervisor, repairSolutionRefuse, repairSolutionCustomer, repairCustomerRefuse, repairServicemanSubmit,repairConfirmFinish,repairRefuseFinish ,confirmPayment,getPosition,getRepairDetail,updatePosition,resetPwd,getNoticeList};
}
export default {
diff --git a/manifest.json b/manifest.json
index 2633e0f..ab2ab68 100644
--- a/manifest.json
+++ b/manifest.json
@@ -53,7 +53,10 @@
"sdkConfigs" : {
"ad" : {},
"push" : {
- "unipush" : {}
+ "unipush" : {
+ "version" : "2",
+ "offline" : false
+ }
},
"maps" : {
"amap" : {
diff --git a/pages.json b/pages.json
index a3460d1..17f36a9 100644
--- a/pages.json
+++ b/pages.json
@@ -9,6 +9,20 @@
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
+ },
+ {
+ "path": "pages/notice/index",
+ "style": {
+ "navigationBarTitleText": "消息中心",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/notice/announcement",
+ "style": {
+ "navigationBarTitleText": "公告中心",
+ "enablePullDownRefresh": false
+ }
}
],
"subPackages": [
diff --git a/pages/home/components/eacharts.vue b/pages/home/components/eacharts.vue
index e1c1579..37d131a 100644
--- a/pages/home/components/eacharts.vue
+++ b/pages/home/components/eacharts.vue
@@ -1,31 +1,9 @@
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
- 故障现象分类
-
-
-
- 设备分类
-
-
-
\ No newline at end of file
diff --git a/pages/home/components/eacharts_nightpie.vue b/pages/home/components/eacharts_nightpie.vue
new file mode 100644
index 0000000..8cb7f6e
--- /dev/null
+++ b/pages/home/components/eacharts_nightpie.vue
@@ -0,0 +1,130 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/home/components/eacharts_pie.vue b/pages/home/components/eacharts_pie.vue
new file mode 100644
index 0000000..090d8d8
--- /dev/null
+++ b/pages/home/components/eacharts_pie.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/home/components/swiper.vue b/pages/home/components/swiper.vue
index 8d6a15f..48a3768 100644
--- a/pages/home/components/swiper.vue
+++ b/pages/home/components/swiper.vue
@@ -1,8 +1,7 @@
- 实验室巡检
+
-
+
+
+
+
+
+
+
+
+
+
+
- 科研医疗建筑运维平台
-
-
- 工作台
-
-
-
-
-
+
-
-
-
-
-
-
-
+
+ 设备统计
+
+
+ 检修单状态
+
+
维修统计
-
+
@@ -41,27 +83,43 @@
import swiperSlider from "./components/swiper.vue";
import alarm from "./components/alarm.vue";
import eacharts from "./components/eacharts.vue";
+import eachartsPie from "./components/eacharts_pie.vue";
+import eachartsNightpie from "./components/eacharts_nightpie.vue";
export default {
components: {
swiperSlider,
alarm,
eacharts,
+ eachartsPie,
+ eachartsNightpie
+ },
+ computed: {
+
+ dataTypes() {
+ return this.$store.state.dataType
+ },
},
data() {
return {
swiperList: [],
workList: [],
+ pieInfo: [],//饼图数据
+ noticeList: [
+
+ ],//通知列表
};
},
+ onLoad() {
+ this.pieStat()
+ },
onShow() {
this.$nextTick(() => {
this.$refs.tabbarRef.getPermission();
- // this.BetLoading.show();
- // setTimeout(() => {
- // this.BetLoading.hide();
- // }, 1000);
+ this.getNoticeList()
+
});
//工作台
+
this.getUserInfo()
this.getoverview()
},
@@ -111,14 +169,9 @@ export default {
})
},
goPage(item) {
- if (item.pagePath == '') {
- uni.showToast({ title: "功能正在完善中,敬请期待!", icon: "none" });
- } else {
- uni.navigateTo({
- url: item.pagePath,
- });
- }
-
+ uni.navigateTo({
+ url: item,
+ });
},
scanCode() {
uni.scanCode({
@@ -131,7 +184,32 @@ export default {
console.error('扫码失败:' + err);
}
});
- }
+ },
+ // 饼图数据
+ pieStat() {
+ this.$u.api.pieStat().then(res => {
+ if (res.code == 200) {
+ this.pieInfo = res.data.fault
+ }
+ })
+ },
+ // 通知公告
+ getNotice() {
+ uni.navigateTo({
+ url: '/pages/notice/announcement',
+ });
+ },
+
+ getNoticeList() {
+ this.$u.api.getNoticeList().then(res => {
+ if (res.code == 200) {
+ let data = res.data.records
+ data.forEach(item => {
+ this.noticeList.push(item.title)
+ })
+ }
+ })
+ },
},
};
@@ -140,11 +218,10 @@ export default {
width: 100%;
// min-height: 100%;
padding: 0;
- background: rgba(239, 239, 239, 1);
padding-top: var(--status-bar-height);
.banner-swiper {
- margin-bottom: 64rpx;
+ margin-bottom: 32rpx;
position: relative;
.logo-txt {
@@ -169,6 +246,7 @@ export default {
color: rgba(16, 16, 16, 1);
font-size: 32rpx;
padding: 0 0 32rpx 36rpx;
+ margin-top: 32rpx;
}
.workbench {
@@ -219,5 +297,99 @@ export default {
.statistics_pie {
width: 100%;
}
+
+ .menu_box {
+ background: #fff;
+ position: relative;
+ margin: 0 32rpx;
+ border-radius: 20rpx;
+
+ &::after {
+ content: '';
+ position: absolute;
+ height: 4rpx;
+ width: 100%;
+ background: #38D79F;
+ position: absolute;
+ top: 0;
+ left: 0;
+ }
+
+ .menu_title {
+ height: 100rpx;
+ font-weight: 500;
+ font-size: 32rpx;
+ color: #333333;
+ line-height: 100rpx;
+ text-align: left;
+ font-style: normal;
+ margin: 0 32rpx;
+ position: relative;
+
+ &::after {
+ content: '';
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ height: 2rpx;
+ background: #f5f5f5;
+ width: 100%;
+ }
+
+ }
+
+ .menu_list {
+ padding-bottom: 32rpx;
+ margin-left: 32rpx;
+ margin-right: 32rpx;
+ margin-top: 24rpx;
+
+ .item_box {
+ width: 50%;
+ float: left;
+
+ &:nth-child(1) {
+ position: relative;
+
+ &::after {
+ content: '';
+ position: absolute;
+ width: 4rpx;
+ height: 100%;
+ background: #f5f5f5;
+ right: 20rpx;
+ top: 0;
+ }
+ }
+
+ .item_img {
+ width: 64rpx;
+ height: 64rpx;
+ float: left;
+
+ image {
+ width: 100%;
+ height: 100%;
+ }
+ }
+
+ .item_txt {
+ font-weight: 400;
+ font-size: 32rpx;
+ color: #333333;
+ line-height: 64rpx;
+ text-align: left;
+ font-style: normal;
+ padding-left: 20rpx;
+ float: left;
+ }
+ }
+ }
+ }
+
+ .notice_box {
+ width: 100%;
+ background: #fff;
+ }
}
\ No newline at end of file
diff --git a/pages/inspection/quest.vue b/pages/inspection/quest.vue
index 4e5e207..080c74c 100644
--- a/pages/inspection/quest.vue
+++ b/pages/inspection/quest.vue
@@ -1,6 +1,6 @@
-
-
+
@@ -212,7 +212,7 @@ export default {
// 实验室巡检 跳转进来
if (!this.planOrderId) {
- this.$refs.tabbarRef.getPermission();
+ // this.$refs.tabbarRef.getPermission();
}
});
diff --git a/pages/login/authInfo.vue b/pages/login/authInfo.vue
index 85a5b51..15ed0af 100644
--- a/pages/login/authInfo.vue
+++ b/pages/login/authInfo.vue
@@ -110,7 +110,6 @@
width: 100%;
// min-height: 100%;
padding: 0;
- background: rgba(239, 239, 239, 1);
padding-top: var(--status-bar-height);
.banner-swiper {
margin-bottom: 64rpx;
diff --git a/pages/my/feedback.vue b/pages/my/feedback.vue
index 21c31ca..edcb355 100644
--- a/pages/my/feedback.vue
+++ b/pages/my/feedback.vue
@@ -135,7 +135,6 @@ export default {
\ No newline at end of file
diff --git a/pages/notice/index.vue b/pages/notice/index.vue
new file mode 100644
index 0000000..112b0bc
--- /dev/null
+++ b/pages/notice/index.vue
@@ -0,0 +1,187 @@
+
+
+
+
+ 一键标记为已读
+
+
+
+ -
+
+
+ {{ item.title }}
+
+
+ {{ item.createdAt }}
+
+
+ {{ item.content }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/submission/index.vue b/pages/submission/index.vue
index a731c87..97626a3 100644
--- a/pages/submission/index.vue
+++ b/pages/submission/index.vue
@@ -35,7 +35,6 @@ export default {