From 4b1856f0b478a284bcd1ed03d402c635f12131fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?=
<819653817@qq.com>
Date: Tue, 7 Jan 2025 17:07:34 +0800
Subject: [PATCH] =?UTF-8?q?=E7=81=B5=E5=B1=B1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/AttackEvent/AttackEvent.js | 54 +++++++++++
.../modules/AttackEvent/AttackEvent.json | 6 ++
.../modules/AttackEvent/AttackEvent.wxml | 25 +++++
.../modules/AttackEvent/AttackEvent.wxss | 97 +++++++++++++++++++
.../modules/HotlineRates/HotlineRates.js | 10 ++
.../modules/HotlineRates/HotlineRates.wxml | 16 +--
pages/statistics/statistics.json | 3 +-
pages/statistics/statistics.wxml | 11 ++-
pages/webView/webView.js | 25 +++--
pages/webView/webView.wxml | 4 +-
project.config.json | 2 +-
utils/api.js | 4 +-
utils/config.js | 4 +-
13 files changed, 237 insertions(+), 24 deletions(-)
create mode 100644 pages/statistics/modules/AttackEvent/AttackEvent.js
create mode 100644 pages/statistics/modules/AttackEvent/AttackEvent.json
create mode 100644 pages/statistics/modules/AttackEvent/AttackEvent.wxml
create mode 100644 pages/statistics/modules/AttackEvent/AttackEvent.wxss
diff --git a/pages/statistics/modules/AttackEvent/AttackEvent.js b/pages/statistics/modules/AttackEvent/AttackEvent.js
new file mode 100644
index 0000000..66ebca8
--- /dev/null
+++ b/pages/statistics/modules/AttackEvent/AttackEvent.js
@@ -0,0 +1,54 @@
+import {icEventList} from "../../../../utils/api";
+Component({
+ properties: {},
+ data: {
+ tableList: [],
+ tabValue: 'addressEvent',
+ data: {}
+ },
+ ready() {
+ this.getData()
+ },
+ methods: {
+ getData() {
+ let params = {
+ agencyId: "", // 代理商ID
+ deliveryStatus: "", // 交付状态
+ departId: "", // 部门ID
+ endTime: "", // 结束时间
+ eventContent: "", // 事件内容
+ firstIdList: [], // 第一个ID列表,可能是数组类型
+ handleStatus: "", // 处理状态
+ limitEndTime: "", // 限制结束时间
+ limitStartTime: "", // 限制开始时间
+ mobile: "", // 手机号
+ name: "", // 姓名
+ operationType: "", // 操作类型
+ pageNo: 1, // 页码,默认第一页
+ pageSize: "20", // 每页条数,作为字符串传递
+ selectType: "gjk", // 选择类型,可能是用于过滤
+ sourceType: "", // 来源类型
+ startTime: "", // 开始时间
+ status: "", // 状态
+ workOrderNum: "" // 工单号
+ }
+ icEventList(params).then(res => {
+ console.log(res,"sdkjldsf");
+ this.setData({
+ data: res.data
+ })
+ })
+ },
+ gotopage(e) {
+ console.log(e)
+ let data = e.currentTarget.dataset.obj
+ if (data.content) {
+ delete data.content
+ }
+ wx.navigateTo({
+ url: '/subpages/statistics/pages/problem/problem?type='+this.data.tabValue+'&data='+JSON.stringify(data)
+ })
+ }
+ },
+
+});
diff --git a/pages/statistics/modules/AttackEvent/AttackEvent.json b/pages/statistics/modules/AttackEvent/AttackEvent.json
new file mode 100644
index 0000000..1681017
--- /dev/null
+++ b/pages/statistics/modules/AttackEvent/AttackEvent.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "Tabs": "../../../../components/Tabs"
+ }
+}
\ No newline at end of file
diff --git a/pages/statistics/modules/AttackEvent/AttackEvent.wxml b/pages/statistics/modules/AttackEvent/AttackEvent.wxml
new file mode 100644
index 0000000..b397a27
--- /dev/null
+++ b/pages/statistics/modules/AttackEvent/AttackEvent.wxml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ 工单号:{{item.amount}}
+
+
+
+
+ {{item.content}}
+
+
+
+
+ {{item.mobile}}
+
+
+
+ {{item.name ? item.name : ''}} {{item.address}}
+
+
+
+
+
diff --git a/pages/statistics/modules/AttackEvent/AttackEvent.wxss b/pages/statistics/modules/AttackEvent/AttackEvent.wxss
new file mode 100644
index 0000000..854925a
--- /dev/null
+++ b/pages/statistics/modules/AttackEvent/AttackEvent.wxss
@@ -0,0 +1,97 @@
+.tag-list {
+ display: flex;
+ margin: 0 -8rpx;
+ justify-content: space-between;
+ margin-bottom: 15px;
+}
+.tag-list .tag {
+ padding: 10rpx 20rpx;
+ font-size: 28rpx;
+ margin: 0 8rpx;
+ color: #3A80E7;
+ background: #F1F6FF;
+ border: 1px solid #3A80E7;
+ border-radius: 1000rpx;
+}
+.tag-list .tag.cur {
+ background: #3A80E7;
+ color: #ffff;
+}
+
+.problem-item {
+ background: #F7F7F7;
+ border-radius: 20rpx;
+ padding: 30rpx 20rpx;
+ display: flex;
+ flex-direction: column;
+ margin-top: 15px;
+}
+
+
+.frequency {
+ margin-right: 20rpx;
+ border-radius: 20rpx;
+ text-align: center;
+ display: flex;
+ align-items: center;
+
+}
+.frequency_title{
+ display: flex;
+ flex-direction: row;
+ font-size:30rpx;
+ color: #000000;
+ font-weight: bold;
+}
+.workOrde{
+ margin-left: 20rpx;
+}
+
+
+.frequency.orange {
+ background: #FFEBE2;
+ color: #FC7031;
+}
+.frequency.purple {
+ background: #E2E2FF;
+ color: #8482F7;
+}
+.frequency.blue {
+ background: #D3EDFF;
+ color: #4AA2E2;
+}
+
+
+.right-con {
+ flex: 0 0 calc(100% - 100rpx);
+ width: calc(100% - 100rpx);
+}
+
+.right-con .right-con-txt {
+ font-size: 30rpx;
+ color: #333333;
+ line-height: 42rpx;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ height: 84rpx;
+}
+.right-con-address {
+ display: flex;
+ align-items: center;
+ margin-right: 14rpx;
+ margin-top: 30rpx;
+}
+.right-con-address .icon {
+ width: 24rpx;
+ height: 30rpx;
+}
+
+.right-con-address .right-con-address-txt {
+ font-size: 28rpx;
+ font-weight: 500;
+ color: #999999;
+ line-height: 40rpx;
+}
\ No newline at end of file
diff --git a/pages/statistics/modules/HotlineRates/HotlineRates.js b/pages/statistics/modules/HotlineRates/HotlineRates.js
index 908e1ae..94e898a 100644
--- a/pages/statistics/modules/HotlineRates/HotlineRates.js
+++ b/pages/statistics/modules/HotlineRates/HotlineRates.js
@@ -42,6 +42,15 @@ Component({
this.getList()
},
methods: {
+ toNumber(data) {
+ console.log(data.currentTarget.dataset,"dskljflksdfjl");
+ let type=data.currentTarget.dataset.type
+ let staffId=data.currentTarget.dataset.staffid
+ let token=wx.getStorageSync('token')
+ wx.navigateTo({
+ url: '/pages/webView/webView?worktoken='+token+'&staffId='+staffId+'&type='+type+'&day='+this.data.day+'&day2='+this.data.day2,
+ })
+ },
onChange(e) {
this.setData({
day: e.detail.value
@@ -126,3 +135,4 @@ Component({
}
}
});
+
diff --git a/pages/statistics/modules/HotlineRates/HotlineRates.wxml b/pages/statistics/modules/HotlineRates/HotlineRates.wxml
index f45c90a..6f85aca 100644
--- a/pages/statistics/modules/HotlineRates/HotlineRates.wxml
+++ b/pages/statistics/modules/HotlineRates/HotlineRates.wxml
@@ -41,7 +41,7 @@
{{item.assignOrgName}}
-
+
收件数
{{item.total}}
@@ -49,21 +49,23 @@
未回复
0
-->
-
+
不满意
{{item.notSatisfiedTotal}}
-
+
未解决
{{item.unresolveTotal}}
-
+
退件次数
{{item.returnTotal?item.returnTotal:0}}
-
- 超期退件
- {{item.overTimeTotal}}
+
+ 超期退件
+ {{item.overTimeTotal}}
diff --git a/pages/statistics/statistics.json b/pages/statistics/statistics.json
index dda9c82..345c049 100644
--- a/pages/statistics/statistics.json
+++ b/pages/statistics/statistics.json
@@ -11,6 +11,7 @@
"EventPrediction": "./modules/EventPrediction/EventPrediction",
"CrowdPortrait": "./modules/CrowdPortrait/CrowdPortrait",
"custom-tab-bar":"../../components/custom-tab-bar",
- "HotlineRates": "./modules/HotlineRates/HotlineRates"
+ "HotlineRates": "./modules/HotlineRates/HotlineRates",
+ "AttackEvent":"./modules/AttackEvent/AttackEvent"
}
}
\ No newline at end of file
diff --git a/pages/statistics/statistics.wxml b/pages/statistics/statistics.wxml
index 4fa8d74..af053ff 100644
--- a/pages/statistics/statistics.wxml
+++ b/pages/statistics/statistics.wxml
@@ -58,7 +58,16 @@
-
+
+
+ 攻坚事件
+
+ 更多
+
+
+
+
+
集中突出问题
diff --git a/pages/webView/webView.js b/pages/webView/webView.js
index 52bd0e2..5229f98 100644
--- a/pages/webView/webView.js
+++ b/pages/webView/webView.js
@@ -9,22 +9,31 @@
const app = getApp()
Page({
data: {
- worktoken: ''
+ worktoken: '',
+ staffId:"",
+ type:"",
+ day:"",
+ day2:""
},
onLoad: function (options) {
- console.log(options);
- console.log( decodeURIComponent(options.worktoken));
if (options.token) {
this.setData({
- worktoken: `${options.worktoken}`
- })
- console.log('url',this.data.worktoken)
+ worktoken: `${options.worktoken}`,
+ });
+ console.log('url', this.data.worktoken);
} else {
+ console.log(options, "dslfjlksd");
this.setData({
- worktoken: decodeURIComponent(options.worktoken)
- // url:`${options.url}?deptName=${options.deptName}&gridId=${options.gridId}`
+ worktoken: decodeURIComponent(options.worktoken),
+ staffId: options.staffId,
+ type: `${options.type}`,
+ day: options.day,
+ day2: options.day2
})
+
}
+ const url = `https://epmet-preview.elinkservice.cn/epmet-work-h5/#/Hotline?worktoken=${this.data.worktoken}&staffId=${this.data.staffId}&type=${this.data.type}&day=${this.data.day}&day2=${this.data.day2}`;
+ console.log('生成的 URL:', url);
},
onShow() {
this.onLoad()
diff --git a/pages/webView/webView.wxml b/pages/webView/webView.wxml
index d0509c7..dfc5c48 100644
--- a/pages/webView/webView.wxml
+++ b/pages/webView/webView.wxml
@@ -1,3 +1,3 @@
-
-
\ No newline at end of file
+
+
diff --git a/project.config.json b/project.config.json
index 49963e6..f31d2ee 100644
--- a/project.config.json
+++ b/project.config.json
@@ -51,7 +51,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.19.4",
- "appid": "wxaf87b420b87e2d79",
+ "appid": "wx5ea7e05330222458",
"projectname": "miniprogram-92",
"editorSetting": {
"tabIndent": "insertSpaces",
diff --git a/utils/api.js b/utils/api.js
index 99077a0..8152962 100644
--- a/utils/api.js
+++ b/utils/api.js
@@ -457,8 +457,8 @@ function Enterpriseambiguity(parm){
return fly.post(`actual/base/companyInfo/page`,parm)
}
//热线接办列表
-function icEventList(){
- return fly.post(`governance/icEvent/list`)
+function icEventList(parm){
+ return fly.post(`governance/icEvent/list`,parm)
}
//居民搜索热点
function hotResidentSearch(){
diff --git a/utils/config.js b/utils/config.js
index 86692a6..a722d39 100644
--- a/utils/config.js
+++ b/utils/config.js
@@ -13,8 +13,8 @@ module.exports = {
};
function BASEURL() {
- return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境
- // return 'http://192.168.1.144/api/' //测试环境
+ // return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境
+ return 'http://192.168.1.144/api/' //测试环境
// return 'http://219.146.91.110:30801/api/'
// return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境
// return 'http://192.168.1.144/api/' //测试环境