manage-client 3.2.103-2 → 3.2.103-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.103-2",
3
+ "version": "3.2.103-03",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -84,7 +84,7 @@
84
84
 
85
85
  <script>
86
86
  import {HttpResetClass} from "vue-client";
87
-
87
+ import dataManage from 'src/components/daping/json/dataManage.json'
88
88
  export default {
89
89
  title: '收费',
90
90
  data() {
@@ -114,19 +114,31 @@
114
114
  let load1 = new HttpResetClass()
115
115
  let load2 = new HttpResetClass()
116
116
  let load3 = new HttpResetClass()
117
- load1.load('POST', 'rs/sql/getCallSum', {data: {}}, {rejectMsg: null, resolveMsg: null}).then((res) => {
118
- this.callData = res.data[0]
119
- })
120
- load2.load('POST', 'rs/sql/getCallSumCompare', {data: {}}, {rejectMsg: null, resolveMsg: null}).then((rea) => {
121
- this.arrs = rea.data
122
- })
123
- load3.load('POST', 'rs/sql/getCallSumByUnit', {data: {}}, {rejectMsg: null, resolveMsg: null}).then((ret) => {
124
- this.items = ret.data
125
- // this.items =ret.data
126
- // this.items.push(ret.data.filter((item) => item.name === "滨河")[0])
127
- // this.items.push(ret.data.filter((item) => item.name === "乌达")[0])
128
- // this.items.push(ret.data.filter((item) => item.name === "海勃湾")[0])
129
- })
117
+ if(!dataManage.callData){
118
+ load1.load('POST', 'rs/sql/getCallSum', {data: {}}, {rejectMsg: null, resolveMsg: null}).then((res) => {
119
+ this.callData = res.data[0]
120
+ })
121
+ } else {
122
+ this.callData = dataManage.callData
123
+ }
124
+ if (!dataManage.callSum) {
125
+ load2.load('POST', 'rs/sql/getCallSumCompare', {data: {}}, {rejectMsg: null, resolveMsg: null}).then((rea) => {
126
+ this.arrs = rea.data
127
+ })
128
+ } else {
129
+ this.arrs = dataManage.callSum
130
+ }
131
+ if (!dataManage.callSumByUnit) {
132
+ load3.load('POST', 'rs/sql/getCallSumByUnit', {data: {}}, {rejectMsg: null, resolveMsg: null}).then((ret) => {
133
+ ret.data
134
+ // this.items =ret.data
135
+ // this.items.push(ret.data.filter((item) => item.name === "滨河")[0])
136
+ // this.items.push(ret.data.filter((item) => item.name === "乌达")[0])
137
+ // this.items.push(ret.data.filter((item) => item.name === "海勃湾")[0])
138
+ })
139
+ } else {
140
+ this.items = dataManage.callSumByUnit
141
+ }
130
142
 
131
143
  },
132
144
  props: {}
@@ -11,10 +11,10 @@
11
11
  <span class="font-title">安检</span>
12
12
  </div>
13
13
  <div class="flex-inline col-sm-6 auto" >
14
- <span id="weiruhu">{{checkData.wrhsum > 10000 ? (checkData.wrhsum/10000).toFixed(0) + '万' : checkData.wrhsum}}</span>
14
+ <span id="weiruhu">{{checkData.wrhsum > 1000000 ? (checkData.wrhsum/10000).toFixed(2) + '万' : checkData.wrhsum}}</span>
15
15
  </div>
16
16
  <div class="flex-inline col-sm-6 auto" >
17
- <span id="anjian">{{checkData.jhsum > 10000 ? (checkData.jhsum/10000).toFixed(0) + '万' : checkData.jhsum}}</span>
17
+ <span id="anjian">{{checkData.jhsum > 1000000 ? (checkData.jhsum/10000).toFixed(2) + '万' : checkData.jhsum}}</span>
18
18
  </div>
19
19
  <div class="flex-inline col-sm-6 auto" >
20
20
  <span class="normal-font" >三年未入户总数</span>
@@ -84,6 +84,7 @@
84
84
 
85
85
  <script>
86
86
  import {HttpResetClass} from 'vue-client'
87
+ import dataManage from 'src/components/daping/json/dataManage.json'
87
88
  export default {
88
89
  title: '数据展示',
89
90
  data() {
@@ -115,10 +116,16 @@ export default {
115
116
  console.log('穿过来的值')
116
117
  this.changeshow = !this.changeshow
117
118
  console.log(this.changeshow)
118
- let http = new HttpResetClass()
119
- await http.load('post', '/rs/sql/getCheckSum', {data:{}}, {rejectMsg: null, resolveMsg: null}).then((res)=>{
120
- this.checkData = res.data[0]
121
- })
119
+ if(!dataManage.checkData){
120
+ let http = new HttpResetClass()
121
+ await http.load('post', '/rs/sql/getCheckSum', {data:{}}, {rejectMsg: null, resolveMsg: null}).then((res)=>{
122
+ this.checkData = res.data[0]
123
+ })
124
+ } else {
125
+ this.checkData = dataManage.checkData
126
+
127
+ }
128
+
122
129
  // await http.load('post', '/rs/sql/getHeatStationTable', {data:{}}, {rejectMsg: null, resolveMsg: null}).then((res)=>{
123
130
  // console.log('热源厂---------------')
124
131
  // console.log(res)
@@ -5,7 +5,7 @@
5
5
 
6
6
  <script>
7
7
  import {HttpResetClass} from "vue-client";
8
-
8
+ // import dataManage from 'src/components/daping/json/dataManage.json'
9
9
  export default {
10
10
  title: '收费',
11
11
  data () {
@@ -16,6 +16,7 @@
16
16
  },
17
17
  methods: {
18
18
  async resize(){
19
+ // if(dataManage.safeCheckRing)
19
20
  let http = new HttpResetClass()
20
21
  // 收费
21
22
  await http.load('post', '/rs/sql/getSafecheckSumByType', {data:{}}, {rejectMsg: null, resolveMsg: null}).then((res)=>{
@@ -5,7 +5,7 @@
5
5
 
6
6
  <script>
7
7
  import {HttpResetClass} from "vue-client";
8
-
8
+ import dataManage from 'src/components/daping/json/dataManage.json'
9
9
  export default {
10
10
  title: '收费',
11
11
  data() {
@@ -17,14 +17,23 @@
17
17
  },
18
18
  methods: {
19
19
  async resize(){
20
- let http = new HttpResetClass()
21
- // 收费
22
- await http.load('post', '/rs/sql/getSafecheckSumByMonth', {data:{}}, {rejectMsg: null, resolveMsg: null}).then((res)=>{
23
- this.xData = res.data.map(item => item.time)
24
- this.yData1 = res.data.map(item => item.allnum)
25
- this.yData2 = res.data.map(item => item.sucnum)
20
+ if(!dataManage.checkByMonth){
21
+ let http = new HttpResetClass()
22
+ // 收费
23
+ await http.load('post', '/rs/sql/getSafecheckSumByMonth', {data:{}}, {rejectMsg: null, resolveMsg: null}).then((res)=>{
24
+ this.xData = res.data.map(item => item.time)
25
+ this.yData1 = res.data.map(item => item.allnum)
26
+ this.yData2 = res.data.map(item => item.sucnum)
27
+ this.init()
28
+ })
29
+ }else{
30
+ let res = dataManage.checkByMonth
31
+ this.xData = res.map(item => item.time)
32
+ this.yData1 = res.map(item => item.allnum)
33
+ this.yData2 = res.map(item => item.sucnum)
26
34
  this.init()
27
- })
35
+ }
36
+
28
37
  },
29
38
  init() {
30
39
  var xData = this.xData,
@@ -0,0 +1,26 @@
1
+ {
2
+ "checkData":{
3
+ "wrhsum":2458,
4
+ "jhsum":81300
5
+ },
6
+ "checkByMonth":[{"sucnum":8359,"time":"2021-11","allnum":8359},
7
+ {"sucnum":2114,"time":"2021-12","allnum":2114},
8
+ {"sucnum":5528,"time":"2022-01","allnum":5528},
9
+ {"sucnum":6921,"time":"2022-02","allnum":6921},
10
+ {"sucnum":3820,"time":"2022-03","allnum":3820}
11
+ ],
12
+ "callData":{
13
+ "yearamount":12101,
14
+ "sumsend":2453,
15
+ "dayamount":12101,
16
+ "sumwmm":2397
17
+ },
18
+ "callSum":[
19
+ {"lastyear":100,"addvalue":10,"year":118,"name":"昨日呼入量"},
20
+ {"lastyear":56,"addvalue":3,"year":70,"name":"昨日派单量"}
21
+ ],
22
+ "callSumByUnit":[
23
+ {"value":100,"addvalue":99,"name":"昨日呼入量"},
24
+ {"value":56,"addvalue":98,"name":"昨日派单量"}
25
+ ]
26
+ }