Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

1170 rindas
31 KiB

  1. <template>
  2. <view class="cented-box">
  3. <view class="Switchingbox">
  4. <view class="Switching1">
  5. <image class="Switching1-img" src="../../static/images/building.png" mode=""></image>
  6. </view>
  7. <view class="Switching2">项目:</view>
  8. <view class="Switching3">{{buildingname}}</view>
  9. <view class="Switching4" v-if="buildingishow" @click="piskbuilding()">切换项目</view>
  10. </view>
  11. <view class="title" style="margin-top: 30rpx;" v-if="Myworkcard">我的工牌</view>
  12. <view v-if="Myworkcard">
  13. <view class="Workcard" v-if="Whetheroffline==true">
  14. <view class="Workcard-box">
  15. <view class="Workcardimg">
  16. <view class="Workcardimg1">
  17. <view v-if="percentage>20" class="bar" :style="{width : percentage + '%' }"></view>
  18. <view v-if="percentage<20" class="bar1" :style="{width : percentage + '%' }"></view>
  19. </view>
  20. </view>
  21. <view class="Workcardtext">电量:{{percentage}}%</view>
  22. </view>
  23. <view class="Workcard-box">
  24. <view class="Workcardimg">
  25. <image v-if="signalDevice==''" class="Workcardimg2" src="../../static/images/signal0.png"
  26. mode=""></image>
  27. <image v-else-if="signalDevice<20 && signalDevice>0" class="Workcardimg2"
  28. src="../../static/images/signal1.png" mode=""></image>
  29. <image v-else-if="signalDevice<50 && signalDevice>20" class="Workcardimg2"
  30. src="../../static/images/signal2.png" mode=""></image>
  31. <image v-else-if="signalDevice<70 && signalDevice>50" class="Workcardimg2"
  32. src="../../static/images/signal3.png" mode=""></image>
  33. <image v-else-if="signalDevice<90 && signalDevice>70" class="Workcardimg2"
  34. src="../../static/images/signal4.png" mode=""></image>
  35. <image v-else-if="signalDevice<=100 && signalDevice>90" class="Workcardimg2"
  36. src="../../static/images/signal5.png" mode=""></image>
  37. </view>
  38. <view class="Workcardtext">信号:{{signalDevicetext}}</view>
  39. </view>
  40. <view class="Workcard-box">
  41. <view class="Workcardimg">
  42. <image v-if="audioStatus=='true'" class="Workcardimg3"
  43. src="../../static/images/Thtapedrive1.png" mode=""></image>
  44. <image v-if="audioStatus=='false'" class="Workcardimg3"
  45. src="../../static/images/Thtapedrive2.png" mode=""></image>
  46. </view>
  47. <view v-if="audioStatus=='true'" class="Workcardtext">录音:已开启</view>
  48. <view v-if="audioStatus=='false'" class="Workcardtext">录音:未开启</view>
  49. </view>
  50. </view>
  51. <view class="Workcard" v-if="Whetheroffline==false">
  52. <view class="Workcard-box">
  53. <view class="Workcardimg">
  54. <image class="Workcardimg4" src="../../static/images/offline.png" mode=""></image>
  55. </view>
  56. <view class="Workcardtext">设备离线</view>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="title" v-if="equipmentisshow">设备</view>
  61. <view class="shebenbox" v-if="equipmentisshow">
  62. <view class="shebenche" @click="tapjumpequipment(0)">
  63. <view class="shebenchenum">{{equipmentobj.totalNum || 0}}</view>
  64. <view class="shebenchetext">设备总数</view>
  65. </view>
  66. <view class="shebenche" @click="tapjumpequipment(1)">
  67. <view class="shebenchenum">{{equipmentobj.onlineNum || 0}}</view>
  68. <view class="shebenchetext">在线</view>
  69. </view>
  70. <view class="shebenche" @click="tapjumpequipment(3)">
  71. <view class="shebenchenum">{{equipmentobj.activeNum || 0}}</view>
  72. <view class="shebenchetext">活跃</view>
  73. </view>
  74. <view class="shebenche" @click="tapjumpequipment(2)">
  75. <view class="shebenchenum" style="color: red;">{{equipmentobj.lowPowerNum || 0}}</view>
  76. <view class="shebenchetext">急需充电</view>
  77. </view>
  78. </view>
  79. <view class="title">实时统计</view>
  80. <!-- <view class="real-timebox">
  81. <view class="timebox">
  82. </view>
  83. <view class="timebox">
  84. </view>
  85. </view> -->
  86. <view class="real-timebox">
  87. <view class="timebox">
  88. <view class="real" @click="tapjumpreception('1')">
  89. <view class="realnum">{{realtimeobj.receptionCount || 0}}</view>
  90. <view class="realtext">接待量</view>
  91. </view>
  92. <view class="real" @click="tapjumpreception('6')">
  93. <view class="realnum">{{realtimeobj.activeCustomer|| 0}}</view>
  94. <view class="realtext">有效接待</view>
  95. </view>
  96. <view class="real" @click="tapjumpreception('2')">
  97. <view class="realnum">{{realtimeobj.receivingCustomer || 0}}</view>
  98. <view class="realtext">正在接待</view>
  99. </view>
  100. <view class="real" @click="tapjumpreception('4')">
  101. <view class="realnum">{{realtimeobj.tagCustomer || 0}}</view>
  102. <view class="realtext">未标顾问</view>
  103. </view>
  104. </view>
  105. <view class="timebox">
  106. <view class="real" @click="tapjumpreception('auth')">
  107. <view class="realnum">{{realtimeobj.avgDuration|| 0}}</view>
  108. <view class="realtext">平均接待时长</view>
  109. </view>
  110. <view class="real" @click="tapjumpreception('auth')">
  111. <view class="realnum">{{realtimeobj.fraction || 0}}%</view>
  112. <view class="realtext">平均执行率</view>
  113. </view>
  114. <view class="real">
  115. <view @click="prohibitedtap(1)" v-if="methodsisshow==true" class="realnum" style="color: red;">
  116. {{realtimeobj.prohibitedCustomer || 0}}
  117. </view>
  118. <view @click="prohibitedtap(1)" v-if="methodsisshow==true" class="realtext">违禁预警</view>
  119. </view>
  120. <view class="real">
  121. <view class="realnum"></view>
  122. <view class="realtext"></view>
  123. </view>
  124. </view>
  125. </view>
  126. <view class="title" style="display: flex;">
  127. <view style="width: 55%;">概览</view>
  128. <view class="cet" style="display: flex;">
  129. <view class="cetview" :class="{ activecllasscet: zhixingcenterindex == 2 }" @click="tabtimeclick(2)">近7天
  130. </view>
  131. <view class="cetview" :class="{ activecllasscet: zhixingcenterindex == 6 }" @click="tabtimeclick(6)">
  132. 近30天</view>
  133. <view class="cetview" :class="{ activecllasscet: zhixingcenterindex == 7 }" @click="tabtimeclick(7)">自定义
  134. </view>
  135. </view>
  136. </view>
  137. <view class="real-timebox">
  138. <view class="timebox">
  139. <view class="real" @click="tapjumpreception('3')">
  140. <view class="realnum">{{Thisweekobj.receptionCount || 0}}</view>
  141. <view class="realtext">接待量</view>
  142. </view>
  143. <view class="real" @click="tapjumpreception('7')">
  144. <view class="realnum">{{Thisweekobj.activeCustomer|| 0}}</view>
  145. <view class="realtext">有效接待</view>
  146. </view>
  147. <view class="real" @click="tapjumpreception('333')">
  148. <view class="realnum">{{Thisweekobj.fraction || 0}}%</view>
  149. <view class="realtext">平均执行率</view>
  150. </view>
  151. </view>
  152. <view class="timebox">
  153. <view class="real" @click="tapjumpreception('333')">
  154. <view class="realnum">{{Thisweekobj.avgDuration|| 0}}</view>
  155. <view class="realtext">平均接待时长</view>
  156. </view>
  157. <view class="real" @click="prohibitedtap(2)" v-if="methodsisshow==true">
  158. <view class="realnum" style="color: red;">{{Thisweekobj.prohibitedCustomer || 0}}</view>
  159. <view class="realtext">违禁预警</view>
  160. </view>
  161. <view class="real" v-else>
  162. <view class="realnum"></view>
  163. <view class="realtext"></view>
  164. </view>
  165. <view class="real">
  166. <view class="realnum"></view>
  167. <view class="realtext"></view>
  168. </view>
  169. </view>
  170. </view>
  171. <view class="title">常用功能</view>
  172. <view class="commonly-box">
  173. <!-- 权限菜单控制显隐 因为后台添加的按钮权限并不会在此返回所以需要手动添加 showMenu -->
  174. <view class="commonly" @click="Piabodata(item.name)" v-for="(item,index) in Menulist" :key="index"
  175. v-if="showMenu(item.name)">
  176. <view class="commonly-img">
  177. <image class="commonly-img1" :src="item.name | imgFilter" mode=""></image>
  178. </view>
  179. <view class="commonly-text">{{item.name}}</view>
  180. </view>
  181. </view>
  182. <!-- 项目切换 -->
  183. <view v-if="Showhiddenunits">
  184. <u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="lpanlist"
  185. @cancel="cancel" @confirm="confirm"></u-select>
  186. </view>
  187. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  188. <view class="update" v-if="isShowUpdate">
  189. <view class="updateBox">
  190. <view class="top">
  191. <image src="../../static/images/updateIcon.png"></image>
  192. </view>
  193. <view class="content">
  194. <view class="tit">{{tit}}</view>
  195. <u-parse class="ql-editor" :content="content" @preview="preview" @navigate="navigate" />
  196. <!-- <rich-text :nodes="content"></rich-text> -->
  197. </view>
  198. <view class="btn" @click="lookDetail">查看详情</view>
  199. <view class="close" @click="close">
  200. <u-icon name="close-circle" size="80" color="#FFFFFF"></u-icon>
  201. </view>
  202. </view>
  203. </view>
  204. <u-tabbar activeColor="#1296db" inactiveColor="#999999" v-model="current" :list="tabbarList"></u-tabbar>
  205. </view>
  206. </template>
  207. <script>
  208. var config = require("../../config");
  209. var util = require("../../utils/util.js");
  210. import tabbarList from '@/utils/tabbar.js'
  211. import uParse from '../../components/gaoyia-parse/parse.vue'
  212. export default {
  213. data() {
  214. return {
  215. id: "",
  216. isShowUpdate: false,
  217. tit: "",
  218. content: "",
  219. tabbarList: tabbarList,
  220. current: 0,
  221. userInfo: {},
  222. Showhiddenunits: false,
  223. lpanlist: [], //项目列表
  224. buildingname: '', //项目名
  225. buildingID: '', //项目id
  226. buildingishow: false, //是否选择项目
  227. Myworkcard: false,
  228. percentage: '', //设备电量
  229. Whetheroffline: false, //是否离线
  230. signalDevice: 0, //信号
  231. signalDevicetext: "",
  232. audioStatus: false,
  233. equipmentisshow: false,
  234. equipmentobj: {
  235. totalNum: '',
  236. onlineNum: '',
  237. activeNum: '',
  238. lowPowerNum: '',
  239. },
  240. Menulist: [],
  241. realtimeobj: {
  242. sumCustomer: '',
  243. receivingCustomer: '',
  244. activeCustomer: '',
  245. prohibitedCustomer: '',
  246. tagCustomer: '',
  247. fraction: '',
  248. receptionCount: ''
  249. },
  250. Thisweekobj: {
  251. sumCustomer: '',
  252. receivingCustomer: '',
  253. activeCustomer: '',
  254. prohibitedCustomer: '',
  255. tagCustomer: '',
  256. fraction: '',
  257. receptionCount: ''
  258. },
  259. methodsisshow: false,
  260. zhixingcenterindex: 2,
  261. totalTimeShow: false,
  262. statDateStart: '',
  263. statDateEnd: '',
  264. needShow: ['客户管理', '接待记录', '销讲数据', '设备管理', '值班顾问', '顾问排名', '违禁记录'], // 权限配置需要展示出来的功能入口
  265. };
  266. },
  267. computed: {
  268. showMenu() {
  269. return name => {
  270. if (this.needShow.findIndex(item => item == name) != -1) {
  271. return true
  272. } else {
  273. return false
  274. }
  275. }
  276. }
  277. },
  278. components: {
  279. uParse
  280. },
  281. onShow() {
  282. this.getMenu()
  283. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  284. if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
  285. this.methodsisshow = false;
  286. } else {
  287. this.methodsisshow = true;
  288. }
  289. if (this.userInfo.zkProperties.length == 1) {
  290. this.buildingID = uni.getStorageSync('buildingID').id;
  291. this.buildingname = uni.getStorageSync('buildingID').name;
  292. this.buildingishow = false;
  293. } else {
  294. this.buildingishow = true;
  295. this.buildingname = uni.getStorageSync('buildingID').name;
  296. this.buildingID = uni.getStorageSync('buildingID').id;
  297. this.userInfo.zkProperties.forEach(item => {
  298. item.label = item.propertyName;
  299. item.value = item.id
  300. })
  301. this.lpanlist = this.userInfo.zkProperties
  302. }
  303. if (this.userInfo.dataCode == 6) {
  304. this.Myworkcard = true;
  305. this.equipmentisshow = false;
  306. this.iniodianloang()
  307. } else {
  308. this.equipmentisshow = true;
  309. this.Myworkcard = false;
  310. this.initequipment()
  311. }
  312. this.initworkThisWeek()
  313. this.initrealTimeStatistics()
  314. this.updateInit()
  315. },
  316. onPullDownRefresh() {
  317. this.getMenu()
  318. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  319. if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
  320. this.methodsisshow = false;
  321. } else {
  322. this.methodsisshow = true;
  323. }
  324. if (this.userInfo.zkProperties.length == 1) {
  325. this.buildingID = uni.getStorageSync('buildingID').id;
  326. this.buildingname = uni.getStorageSync('buildingID').name;
  327. this.buildingishow = false;
  328. } else {
  329. this.buildingishow = true;
  330. this.buildingname = uni.getStorageSync('buildingID').name;
  331. this.buildingID = uni.getStorageSync('buildingID').id;
  332. this.userInfo.zkProperties.forEach(item => {
  333. item.label = item.propertyName;
  334. item.value = item.id
  335. })
  336. this.lpanlist = this.userInfo.zkProperties
  337. }
  338. if (this.userInfo.dataCode == 6) {
  339. // this.Myworkcard = true;
  340. this.equipmentisshow = false;
  341. this.iniodianloang()
  342. } else {
  343. this.equipmentisshow = true;
  344. // this.Myworkcard = false;
  345. this.initequipment()
  346. // this.waitForOperation()
  347. }
  348. this.initworkThisWeek()
  349. this.initrealTimeStatistics()
  350. setTimeout(() => {
  351. uni.stopPullDownRefresh()
  352. }, 3000)
  353. },
  354. onLoad() {
  355. this.initPopup()
  356. },
  357. methods: {
  358. close() {
  359. this.isShowUpdate = false;
  360. },
  361. lookDetail() {
  362. let datas = {
  363. id: this.id,
  364. title: this.tit,
  365. content: this.content
  366. }
  367. this.$store.commit('setMessageObj', datas)
  368. uni.navigateTo({
  369. url: "../mine/messageDetail"
  370. })
  371. let data = {
  372. id: this.id,
  373. accountId: uni.getStorageSync('weapp_session_userInfo_data').accountId
  374. }
  375. uni.request({
  376. url: config.service.updateRead,
  377. method: "GET",
  378. header: {
  379. 'content-type': 'application/json',
  380. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  381. },
  382. data,
  383. success: (res) => {
  384. this.initPopup()
  385. }
  386. })
  387. this.isShowUpdate = false;
  388. },
  389. initPopup() {
  390. uni.request({
  391. url: config.service.updatePopup,
  392. method: "GET",
  393. header: {
  394. 'content-type': 'application/json',
  395. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  396. },
  397. data: {
  398. },
  399. success: (res) => {
  400. this.first(res.data.data.id)
  401. this.content = res.data.data.content
  402. this.tit = res.data.data.title
  403. this.aid = res.data.data.accountId
  404. this.id = res.data.data.id
  405. this.isShowUpdate = res.data.data.readFlag == 0 ? true : false;
  406. }
  407. })
  408. },
  409. first(id) {
  410. uni.request({
  411. url: config.service.firstShowPopup,
  412. method: "GET",
  413. header: {
  414. 'content-type': 'application/json',
  415. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  416. },
  417. data: {
  418. id
  419. },
  420. success: (res) => {}
  421. })
  422. },
  423. updateInit() {
  424. uni.request({
  425. url: config.service.notReadNum,
  426. method: "GET",
  427. data: {
  428. id: uni.getStorageSync('weapp_session_userInfo_data').accountId,
  429. projectId: uni.getStorageSync('buildingID').id,
  430. },
  431. header: {
  432. 'content-type': 'application/json',
  433. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  434. },
  435. success: (res) => {
  436. this.count = res.data.data
  437. this.tabbarList[3].count = res.data.data || 0
  438. }
  439. })
  440. },
  441. //获取权限
  442. getMenu() {
  443. this.$u.get("/user/getMenu").then(data => {
  444. uni.setStorageSync("weapp_session_Menu_data", data)
  445. this.Menulist = uni.getStorageSync('weapp_session_Menu_data');
  446. console.log(this.Menulist, 'adasdasds123')
  447. })
  448. },
  449. //自定义时间
  450. totalTimeChange(e) {
  451. this.statDateStart = e.startDate;
  452. this.statDateEnd = e.endDate;
  453. this.zhixingcenterindex = 7;
  454. this.initworkThisWeek()
  455. },
  456. //时间选择
  457. tabtimeclick(i) {
  458. if (i == 7) {
  459. this.totalTimeShow = true;
  460. } else {
  461. this.zhixingcenterindex = i;
  462. this.initworkThisWeek()
  463. }
  464. },
  465. //获取概览数据
  466. initworkThisWeek() {
  467. uni.request({
  468. url: config.service.workThisWeek,
  469. method: "POST",
  470. header: {
  471. 'content-type': 'application/json',
  472. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  473. },
  474. data: {
  475. houseId: this.buildingID,
  476. dateType: this.zhixingcenterindex == 7 ? null : this.zhixingcenterindex,
  477. statDateStart: this.statDateStart,
  478. statDateEnd: this.statDateEnd
  479. },
  480. success: (data) => {
  481. if (data.data.data == null) {
  482. return
  483. } else {
  484. this.Thisweekobj = {
  485. sumCustomer: data.data.data.sumCustomer,
  486. receivingCustomer: data.data.data.receivingCustomer,
  487. activeCustomer: data.data.data.activeCustomer,
  488. prohibitedCustomer: data.data.data.prohibitedCustomer,
  489. avgDuration: Math.floor(data.data.data.avgDuration / 60) || 0,
  490. tagCustomer: data.data.data.tagCustomer,
  491. fraction: data.data.data.fraction,
  492. receptionCount: data.data.data.receptionCount
  493. }
  494. }
  495. }
  496. })
  497. },
  498. //实时统计
  499. initrealTimeStatistics() {
  500. uni.request({
  501. url: config.service.realTimeStatistics,
  502. method: "POST",
  503. header: {
  504. 'content-type': 'application/json',
  505. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  506. },
  507. data: {
  508. houseId: this.buildingID
  509. },
  510. success: (data) => {
  511. if (data.data.data == null) {
  512. return
  513. } else {
  514. this.realtimeobj = {
  515. sumCustomer: data.data.data.sumCustomer,
  516. receivingCustomer: data.data.data.receivingCustomer,
  517. activeCustomer: data.data.data.activeCustomer,
  518. prohibitedCustomer: data.data.data.prohibitedCustomer,
  519. avgDuration: Math.floor(data.data.data.avgDuration / 60) || 0,
  520. tagCustomer: data.data.data.tagCustomer,
  521. fraction: data.data.data.fraction,
  522. receptionCount: data.data.data.receptionCount
  523. }
  524. }
  525. }
  526. })
  527. },
  528. //设备
  529. initequipment() {
  530. uni.request({
  531. url: config.service.findEquipmentState,
  532. method: "POST",
  533. header: {
  534. 'content-type': 'application/json',
  535. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  536. },
  537. data: {
  538. propertyId: this.buildingID
  539. },
  540. success: (data) => {
  541. if (data.data.data == null) {
  542. return
  543. } else {
  544. this.equipmentobj = {
  545. totalNum: data.data.data.totalNum,
  546. onlineNum: data.data.data.onlineNum,
  547. activeNum: data.data.data.activeNum,
  548. lowPowerNum: data.data.data.lowPowerNum,
  549. }
  550. }
  551. }
  552. })
  553. },
  554. //我的工牌
  555. iniodianloang() {
  556. uni.request({
  557. url: config.service.findElectricity,
  558. method: "POST",
  559. header: {
  560. 'content-type': 'application/json',
  561. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  562. },
  563. data: {},
  564. success: (data) => {
  565. if (data.data.data == null) {
  566. return
  567. } else {
  568. if (data.data.data > 100) {
  569. this.percentage = 100;
  570. } else {
  571. if (data.data.data.onLine == 0) {
  572. this.Whetheroffline = false;
  573. } else {
  574. this.Whetheroffline = true;
  575. this.percentage = data.data.data.electricity;
  576. this.signalDevice = data.data.data.signalDevice / 1;
  577. console.log(this.signalDevice)
  578. this.audioStatus = data.data.data.audioStatus;
  579. if (this.signalDevice > 80) {
  580. this.signalDevicetext = '高';
  581. } else {
  582. if (this.signalDevice == 0) {
  583. this.signalDevicetext = '无';
  584. } else {
  585. this.signalDevicetext = '低';
  586. }
  587. }
  588. }
  589. }
  590. }
  591. }
  592. })
  593. },
  594. //选择项目弹框
  595. piskbuilding() {
  596. // this.Showhiddenunits = true;
  597. uni.navigateTo({
  598. url: "../mine/selectBuilding"
  599. })
  600. },
  601. // 项目选择确认
  602. confirm(e) {
  603. this.buildingname = e[0].label;
  604. this.buildingID = e[0].value;
  605. let lopan = {
  606. id: e[0].value,
  607. name: e[0].label
  608. }
  609. uni.setStorageSync("buildingID", lopan); //项目id写入缓存
  610. this.initworkThisWeek()
  611. this.initrealTimeStatistics()
  612. this.initequipment()
  613. this.iniodianloang()
  614. },
  615. // 项目选择取消
  616. cancel() {
  617. this.Showhiddenunits = false;
  618. },
  619. tapjumpequipment(i) {
  620. this.Menulist.forEach(item => {
  621. if (item.name == '设备管理') {
  622. uni.navigateTo({
  623. url: '/pages/mine/equipment/index?active=' + i
  624. });
  625. }
  626. })
  627. },
  628. prohibitedtap(i) {
  629. if (i == 1) {
  630. uni.navigateTo({
  631. url: '/pages/center/prohibited/index?refresh=' + 'refresh' + '&activeTotal=' + '0' +
  632. '&violatedStatus=1'
  633. });
  634. } else {
  635. if (this.zhixingcenterindex == 2) {
  636. uni.navigateTo({
  637. url: '/pages/center/prohibited/index?refresh=' + 'refresh' + '&activeTotal=' + '2' +
  638. '&violatedStatus=1'
  639. });
  640. } else if (this.zhixingcenterindex == 6) {
  641. uni.navigateTo({
  642. url: '/pages/center/prohibited/index?refresh=' + 'refresh' + '&activeTotal=' + '3' +
  643. '&violatedStatus=1'
  644. });
  645. } else {
  646. uni.navigateTo({
  647. url: '/pages/center/prohibited/index?refresh=' + 'refresh' + '&activeTotal=' + '4' +
  648. '&staTime=' + this.statDateStart + '&endtime=' + this.statDateEnd +
  649. '&violatedStatus=1'
  650. });
  651. }
  652. }
  653. },
  654. tapjumpreception(i) {
  655. this.Menulist.forEach(item => {
  656. if (item.name == '接待记录') {
  657. if (i == 1) {
  658. uni.navigateTo({
  659. url: '/pages/center/records/index?refresh=' + 'refresh' + '&activeTotal=' +
  660. '0'
  661. });
  662. } else if (i == 'auth') {
  663. uni.navigateTo({
  664. url: '/pages/center/records/index?refresh=' + 'refresh' + '&activeTotal=' +
  665. '0' + '&validInvalid=0'
  666. });
  667. } else if (i == 2) {
  668. uni.switchTab({
  669. url: '/pages/index/customer'
  670. });
  671. } else if (i == 3) {
  672. if (this.zhixingcenterindex == 2) {
  673. uni.navigateTo({
  674. url: '/pages/center/records/index?refresh=' + 'refresh' +
  675. '&activeTotal=' + '2'
  676. });
  677. } else if (this.zhixingcenterindex == 6) {
  678. uni.navigateTo({
  679. url: '/pages/center/records/index?refresh=' + 'refresh' +
  680. '&activeTotal=' + '3'
  681. });
  682. } else {
  683. uni.navigateTo({
  684. url: '/pages/center/records/index?refresh=' + 'refresh' +
  685. '&activeTotal=' + '4' + '&staTime=' + this.statDateStart +
  686. '&endtime=' + this.statDateEnd
  687. });
  688. }
  689. } else if (i == 333) {
  690. if (this.zhixingcenterindex == 2) {
  691. uni.navigateTo({
  692. url: '/pages/center/records/index?refresh=' + 'refresh' +
  693. '&activeTotal=' + '2' + '&validInvalid=0'
  694. });
  695. } else if (this.zhixingcenterindex == 6) {
  696. uni.navigateTo({
  697. url: '/pages/center/records/index?refresh=' + 'refresh' +
  698. '&activeTotal=' + '3' + '&validInvalid=0'
  699. });
  700. } else {
  701. uni.navigateTo({
  702. url: '/pages/center/records/index?refresh=' + 'refresh' +
  703. '&activeTotal=' + '4' + '&staTime=' + this.statDateStart +
  704. '&endtime=' + this.statDateEnd + '&validInvalid=0'
  705. });
  706. }
  707. } else if (i == 3) {
  708. if (this.zhixingcenterindex == 2) {
  709. uni.navigateTo({
  710. url: '/pages/center/records/index?refresh=' + 'refresh' +
  711. '&activeTotal=' + '2'
  712. });
  713. } else if (this.zhixingcenterindex == 6) {
  714. uni.navigateTo({
  715. url: '/pages/center/records/index?refresh=' + 'refresh' +
  716. '&activeTotal=' + '3'
  717. });
  718. } else {
  719. uni.navigateTo({
  720. url: '/pages/center/records/index?refresh=' + 'refresh' +
  721. '&activeTotal=' + '4' + '&staTime=' + this.statDateStart +
  722. '&endtime=' + this.statDateEnd
  723. });
  724. }
  725. } else if (i == 6) {
  726. uni.navigateTo({
  727. url: '/pages/center/records/index?refresh=' + 'refresh' + '&activeTotal=' +
  728. '0' + '&validInvalid=0'
  729. });
  730. } else if (i == 7) {
  731. if (this.zhixingcenterindex == 2) {
  732. uni.navigateTo({
  733. url: '/pages/center/records/index?refresh=' + 'refresh' +
  734. '&activeTotal=' + '2' + '&validInvalid=0'
  735. });
  736. } else if (this.zhixingcenterindex == 6) {
  737. uni.navigateTo({
  738. url: '/pages/center/records/index?refresh=' + 'refresh' +
  739. '&activeTotal=' + '3' + '&validInvalid=0'
  740. });
  741. } else {
  742. uni.navigateTo({
  743. url: '/pages/center/records/index?refresh=' + 'refresh' +
  744. '&activeTotal=' + '4' + '&staTime=' + this.statDateStart +
  745. '&endtime=' + this.statDateEnd + '&validInvalid=0'
  746. });
  747. }
  748. } else if (i == 4) {
  749. uni.navigateTo({
  750. url: '/pages/center/records/index?refresh=' + 'refresh' +
  751. '&activeTotal=0' + '&markAdvisor=0' + '&validInvalid=0'
  752. });
  753. } else {
  754. uni.navigateTo({
  755. url: '/pages/center/records/index?refresh=' + 'refresh' +
  756. '&activeTotal=0' + '&markAdvisor=0'
  757. });
  758. }
  759. }
  760. })
  761. },
  762. Piabodata(item) {
  763. if (item == '销讲数据') {
  764. uni.navigateTo({
  765. url: '/pages/center/Piabodata/index'
  766. });
  767. } else if (item == '接待记录') {
  768. uni.navigateTo({
  769. url: '/pages/center/records/index?refresh=' + 'refresh'
  770. });
  771. } else if (item == '值班顾问') {
  772. uni.navigateTo({
  773. url: '/pages/mine/consultanonduty/index'
  774. });
  775. } else if (item == '设备管理') {
  776. uni.navigateTo({
  777. url: '/pages/mine/equipment/index'
  778. });
  779. } else if (item == '顾问排名') {
  780. uni.navigateTo({
  781. url: '/pages/center/Piabodata/Employeesstatistics'
  782. });
  783. } else if (item == '违禁记录') {
  784. uni.navigateTo({
  785. url: '/pages/center/prohibited/index?refresh=' + 'refresh'
  786. });
  787. } else {
  788. uni.navigateTo({
  789. url: '/pages/center/consumer/index?refresh=' + 'refresh'
  790. });
  791. }
  792. },
  793. },
  794. filters: {
  795. imgFilter(type) {
  796. let path = ''
  797. switch (type) {
  798. case '客户管理':
  799. path = '../../static/images/function1.png'
  800. break
  801. case '接待记录':
  802. path = '../../static/images/function2.png'
  803. break
  804. case '销讲数据':
  805. path = '../../static/images/function4.png'
  806. break
  807. case '设备管理':
  808. path = '../../static/images/function5.png'
  809. break
  810. case '值班顾问':
  811. path = '../../static/images/function6.png'
  812. break
  813. case '顾问排名':
  814. path = '../../static/images/rankingguwen.png'
  815. break
  816. case '违禁记录':
  817. path = '../../static/images/prohibited.png'
  818. break
  819. }
  820. return path
  821. }
  822. }
  823. };
  824. </script>
  825. <style lang="scss" scoped>
  826. .update {
  827. width: 100%;
  828. height: 100%;
  829. background: rgba(0, 0, 0, 0.5);
  830. position: fixed;
  831. top: 0;
  832. left: 0;
  833. bottom: 0;
  834. right: 0;
  835. z-index: 9999;
  836. .updateBox {
  837. width: 80%;
  838. background: #FFFFFF;
  839. position: relative;
  840. left: 50%;
  841. margin-left: -40%;
  842. padding: 20rpx;
  843. border-radius: 10rpx;
  844. top: 140rpx;
  845. .top {
  846. width: 350rpx;
  847. height: 220rpx;
  848. margin: 0 auto;
  849. image {
  850. width: 100%;
  851. height: 100%;
  852. }
  853. }
  854. .btn {
  855. width: 510rpx;
  856. height: 88rpx;
  857. background: #2671E2;
  858. margin: 0 auto;
  859. display: flex;
  860. justify-content: center;
  861. align-items: center;
  862. font-size: 36rpx;
  863. border-radius: 8rpx;
  864. color: #FFFFFF;
  865. }
  866. .content {
  867. height: 268rpx;
  868. overflow-y: auto;
  869. margin: 46rpx 0;
  870. }
  871. .tit {
  872. font-size: 40rpx;
  873. text-align: center;
  874. font-weight: bold;
  875. }
  876. .close {
  877. position: absolute;
  878. bottom: -100rpx;
  879. left: 50%;
  880. margin-left: -50rpx;
  881. }
  882. }
  883. }
  884. .activecllasscet {
  885. font-size: 28rpx;
  886. font-weight: 400;
  887. color: #008ef2;
  888. }
  889. .cet {
  890. font-size: 28rpx;
  891. font-weight: 400;
  892. color: #333333;
  893. .cetview {
  894. margin-left: 20rpx;
  895. }
  896. }
  897. .cented-box {
  898. padding: 30rpx;
  899. background: #F8F8F8;
  900. width: 100%;
  901. height: 100%;
  902. }
  903. .Switchingbox {
  904. width: 100%;
  905. height: 44rpx;
  906. display: flex;
  907. align-items: center;
  908. .Switching1 {
  909. width: 44rpx;
  910. height: 44rpx;
  911. .Switching1-img {
  912. width: 44rpx;
  913. height: 44rpx;
  914. }
  915. }
  916. .Switching2 {
  917. margin-left: 12rpx;
  918. font-size: 32rpx;
  919. color: #303030;
  920. font-weight: 500;
  921. }
  922. .Switching3 {
  923. width: calc(100% - 280rpx);
  924. font-size: 32rpx;
  925. color: #303030;
  926. font-weight: 500;
  927. }
  928. .Switching4 {
  929. width: 112rpx;
  930. font-size: 28rpx;
  931. color: #303030;
  932. font-weight: 400;
  933. text-align: right;
  934. text-decoration: underline
  935. }
  936. }
  937. .Workcard {
  938. width: 100%;
  939. background: #FFFFFF;
  940. height: 154rpx;
  941. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  942. border-radius: 12rpx;
  943. display: flex;
  944. .Workcard-box {
  945. flex: 1;
  946. height: 100%;
  947. .Workcardimg {
  948. width: 100%;
  949. display: flex;
  950. justify-content: center;
  951. margin-top: 42rpx;
  952. .Workcardimg1 {
  953. width: 64rpx;
  954. height: 36rpx;
  955. background-image: url(../../static/images/battery.png);
  956. background-size: 100% 100%;
  957. padding: 8rpx;
  958. .bar {
  959. background-color: #43CD80;
  960. height: 100%;
  961. border-radius: 4rpx;
  962. }
  963. .bar1 {
  964. background-color: red;
  965. height: 100%;
  966. border-radius: 4rpx;
  967. }
  968. }
  969. .Workcardimg2 {
  970. width: 56rpx;
  971. height: 36rpx;
  972. }
  973. .Workcardimg3 {
  974. width: 34rpx;
  975. height: 36rpx;
  976. }
  977. .Workcardimg4 {
  978. width: 50rpx;
  979. height: 40rpx;
  980. }
  981. }
  982. .Workcardtext {
  983. width: 100%;
  984. text-align: center;
  985. font-size: 24rpx;
  986. font-weight: 400;
  987. color: #666666;
  988. margin-top: 20rpx;
  989. }
  990. }
  991. }
  992. .title {
  993. width: 100%;
  994. height: 30rpx;
  995. font-size: 30rpx;
  996. font-weight: 600;
  997. color: #333333;
  998. margin-top: 40rpx;
  999. margin-bottom: 24rpx;
  1000. }
  1001. .shebenbox {
  1002. width: 100%;
  1003. height: 156rpx;
  1004. background: #FFFFFF;
  1005. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  1006. border-radius: 12rpx;
  1007. display: flex;
  1008. .shebenche {
  1009. width: 25%;
  1010. height: 100%;
  1011. .shebenchenum {
  1012. width: 100%;
  1013. font-size: 36rpx;
  1014. font-weight: 600;
  1015. color: #333333;
  1016. text-align: center;
  1017. margin-top: 28rpx;
  1018. }
  1019. .shebenchetext {
  1020. width: 100%;
  1021. font-size: 24rpx;
  1022. font-weight: 400;
  1023. color: #666666;
  1024. text-align: center;
  1025. margin-top: 24rpx;
  1026. }
  1027. }
  1028. }
  1029. .real-timebox {
  1030. width: 100%;
  1031. background: #FFFFFF;
  1032. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  1033. border-radius: 12rpx;
  1034. padding-bottom: 36rpx;
  1035. .timebox {
  1036. width: 100%;
  1037. display: flex;
  1038. .real {
  1039. flex: 1;
  1040. height: 100%;
  1041. .realnum {
  1042. width: 100%;
  1043. font-size: 36rpx;
  1044. font-weight: 600;
  1045. color: #333333;
  1046. text-align: center;
  1047. margin-top: 36rpx;
  1048. }
  1049. .realtext {
  1050. width: 100%;
  1051. font-size: 24rpx;
  1052. font-weight: 400;
  1053. color: #666666;
  1054. text-align: center;
  1055. margin-top: 24rpx;
  1056. }
  1057. }
  1058. }
  1059. }
  1060. .commonly-box {
  1061. width: 100%;
  1062. background: #FFFFFF;
  1063. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  1064. border-radius: 12rpx;
  1065. display: flex;
  1066. flex-wrap: wrap;
  1067. padding-bottom: 36rpx;
  1068. .commonly {
  1069. width: 25%;
  1070. margin-top: 36rpx;
  1071. .commonly-img {
  1072. width: 100%;
  1073. height: 68rpx;
  1074. text-align: center;
  1075. .commonly-img1 {
  1076. width: 68rpx;
  1077. height: 68rpx;
  1078. border-radius: 50%;
  1079. }
  1080. }
  1081. .commonly-text {
  1082. width: 100%;
  1083. text-align: center;
  1084. font-size: 24rpx;
  1085. font-weight: 400;
  1086. color: #333333;
  1087. margin-top: 16rpx;
  1088. }
  1089. }
  1090. }
  1091. </style>