Browse Source

灵山

data-page-lingshan
是小王呀\24601 10 months ago
parent
commit
4b1856f0b4
  1. 54
      pages/statistics/modules/AttackEvent/AttackEvent.js
  2. 6
      pages/statistics/modules/AttackEvent/AttackEvent.json
  3. 25
      pages/statistics/modules/AttackEvent/AttackEvent.wxml
  4. 97
      pages/statistics/modules/AttackEvent/AttackEvent.wxss
  5. 10
      pages/statistics/modules/HotlineRates/HotlineRates.js
  6. 16
      pages/statistics/modules/HotlineRates/HotlineRates.wxml
  7. 3
      pages/statistics/statistics.json
  8. 11
      pages/statistics/statistics.wxml
  9. 25
      pages/webView/webView.js
  10. 4
      pages/webView/webView.wxml
  11. 2
      project.config.json
  12. 4
      utils/api.js
  13. 4
      utils/config.js

54
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)
})
}
},
});

6
pages/statistics/modules/AttackEvent/AttackEvent.json

@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"Tabs": "../../../../components/Tabs"
}
}

25
pages/statistics/modules/AttackEvent/AttackEvent.wxml

@ -0,0 +1,25 @@
<view class="problem-list">
<view class="problem-item" bind:tap="gotopage" data-obj="{{item}}" wx:for="{{data[tabValue]}}" wx:key="index" wx:if="{{index<3}}">
<view class="frequency">
<view class="frequency_title">
<image style="height: 36rpx; width: 36rpx;" src="https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet-saas/dev/20250107/98ae411b86df48529139259c58c8e748.png"></image>
<view class="workOrde">工单号:{{item.amount}}</view>
</view>
</view>
<view class="right-con">
<view class="right-con-txt">
{{item.content}}
</view>
<view class="right-con-address">
<block wx:if="{{tabValue === 'mobileEvent'}}">
<image src="../../../../images/statistics/avatar.png" mode="widthFix" class="icon" />
<text class="right-con-address-txt"> {{item.mobile}}</text>
</block>
<block wx:else>
<image src="../../../../images/statistics/address.png" mode="widthFix" class="icon" />
<text class="right-con-address-txt"> {{item.name ? item.name : ''}} {{item.address}}</text>
</block>
</view>
</view>
</view>
</view>

97
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;
}

10
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({
}
}
});

16
pages/statistics/modules/HotlineRates/HotlineRates.wxml

@ -41,7 +41,7 @@
<view class="leader-name" wx-if="{{curVal=='2'}}">{{item.assignOrgName}}</view>
</view>
<view class="num">
<view class="child">
<view class="child" bind:tap="toNumber" data-staffId="{{item.operateOrgLeader}}" data-type="Receiving">
<view class="lab">收件数</view>
<view class="val">{{item.total}}</view>
</view>
@ -49,21 +49,23 @@
<view class="lab">未回复</view>
<view class="val">0</view>
</view> -->
<view class="child">
<view class="child" bind:tap="toNumber" data-staffId="{{item.operateOrgLeader}}" data-type="notSatisfied">
<view class="lab">不满意</view>
<view class="val">{{item.notSatisfiedTotal}}</view>
</view>
<view class="child">
<view class="child" bind:tap="toNumber" data-staffId="{{item.operateOrgLeader}}" data-type="unresolve" >
<view class="lab">未解决</view>
<view class="val">{{item.unresolveTotal}}</view>
</view>
<view class="child" style="color: #FF9900 !important;">
<view class="child" style="color: #FF9900 !important;"
bind:tap="toNumber" data-staffId="{{item.operateOrgLeader}}" data-type="returnTotal"
>
<view class="lab" style="color: #FF9900!important;">退件次数</view>
<view class="val">{{item.returnTotal?item.returnTotal:0}}</view>
</view>
<view class="child" style="color: red !important;">
<view class="lab" style="color: red !important;">超期退件</view>
<view class="val">{{item.overTimeTotal}}</view>
<view class="child" style="color: red !important;" bind:tap="toNumber" data-staffId="{{item.operateOrgLeader}}" data-type="overTime">
<view class="lab" style="color: red !important;">超期退件</view>
<view class="val">{{item.overTimeTotal}}</view>
</view>
</view>
<view class="num">

3
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"
}
}

11
pages/statistics/statistics.wxml

@ -58,7 +58,16 @@
</view>
</view>
<view class="card">
<view class="title">
<text>攻坚事件</text>
<view class="view" bind:tap="gotopage" data-url="/subpages/statistics/pages/problemList/problemList?type={{tabValue}}">
更多
<image mode="widthFix" src="../../images/right.png"></image>
</view>
</view>
<AttackEvent bind:change="tabChange"/>
</view>
<view class="card">
<view class="title">
<text>集中突出问题</text>

25
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()

4
pages/webView/webView.wxml

@ -1,3 +1,3 @@
<!-- <view>https://epmet-preview.elinkservice.cn/epmet-work-h5/#/Hotline?worktoken={{worktoken}}</view> -->
<web-view src="https://epmet-preview.elinkservice.cn/epmet-work-h5/#/Hotline?worktoken={{worktoken}}">
</web-view>
<web-view src="https://epmet-preview.elinkservice.cn/epmet-work-h5/#/Hotline?worktoken={{worktoken}}&staffId={{staffId}}&type={{type}}&day={{day}}&&day2={{day2}}">
</web-view>

2
project.config.json

@ -51,7 +51,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.19.4",
"appid": "wxaf87b420b87e2d79",
"appid": "wx5ea7e05330222458",
"projectname": "miniprogram-92",
"editorSetting": {
"tabIndent": "insertSpaces",

4
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(){

4
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/' //测试环境

Loading…
Cancel
Save