Browse Source

攻坚

v5.0
是小王呀\24601 10 months ago
parent
commit
d10939ada7
  1. 10
      pages/statistics/modules/HotlineRates/HotlineRates.js
  2. 20
      pages/statistics/modules/HotlineRates/HotlineRates.wxml
  3. 3
      pages/statistics/statistics.json
  4. 11
      pages/statistics/statistics.wxml
  5. 25
      pages/webView/webView.js
  6. 2
      pages/webView/webView.wxml
  7. 4
      utils/api.js

10
pages/statistics/modules/HotlineRates/HotlineRates.js

@ -42,6 +42,15 @@ Component({
this.getList() this.getList()
}, },
methods: { 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) { onChange(e) {
this.setData({ this.setData({
day: e.detail.value day: e.detail.value
@ -126,3 +135,4 @@ Component({
} }
} }
}); });

20
pages/statistics/modules/HotlineRates/HotlineRates.wxml

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

3
pages/statistics/statistics.json

@ -11,6 +11,7 @@
"EventPrediction": "./modules/EventPrediction/EventPrediction", "EventPrediction": "./modules/EventPrediction/EventPrediction",
"CrowdPortrait": "./modules/CrowdPortrait/CrowdPortrait", "CrowdPortrait": "./modules/CrowdPortrait/CrowdPortrait",
"custom-tab-bar":"../../components/custom-tab-bar", "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> </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="card">
<view class="title"> <view class="title">
<text>集中突出问题</text> <text>集中突出问题</text>

25
pages/webView/webView.js

@ -9,22 +9,31 @@
const app = getApp() const app = getApp()
Page({ Page({
data: { data: {
worktoken: '' worktoken: '',
staffId:"",
type:"",
day:"",
day2:""
}, },
onLoad: function (options) { onLoad: function (options) {
console.log(options);
console.log( decodeURIComponent(options.worktoken));
if (options.token) { if (options.token) {
this.setData({ this.setData({
worktoken: `${options.worktoken}` worktoken: `${options.worktoken}`,
}) });
console.log('url',this.data.worktoken) console.log('url', this.data.worktoken);
} else { } else {
console.log(options, "dslfjlksd");
this.setData({ this.setData({
worktoken: decodeURIComponent(options.worktoken) worktoken: decodeURIComponent(options.worktoken),
// url:`${options.url}?deptName=${options.deptName}&gridId=${options.gridId}` 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() { onShow() {
this.onLoad() this.onLoad()

2
pages/webView/webView.wxml

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

4
utils/api.js

@ -457,8 +457,8 @@ function Enterpriseambiguity(parm){
return fly.post(`actual/base/companyInfo/page`,parm) return fly.post(`actual/base/companyInfo/page`,parm)
} }
//热线接办列表 //热线接办列表
function icEventList(){ function icEventList(parm){
return fly.post(`governance/icEvent/list`) return fly.post(`governance/icEvent/list`,parm)
} }
//居民搜索热点 //居民搜索热点
function hotResidentSearch(){ function hotResidentSearch(){

Loading…
Cancel
Save