apply-clients 7.1.36-yuchuan-37 → 7.1.36-yuchuan-40

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.
@@ -46,10 +46,9 @@
46
46
  methods: {
47
47
  // 获取功能配置
48
48
  async getConfig () {
49
- let res = await this.$resetpost(
50
- 'rs/logic/ApplyGetFunction',
51
- null,
52
- {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
49
+ let http = new HttpResetClass()
50
+ let res = await http.load('POST', 'rs/logic/ApplyGetFunction', null,
51
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
53
52
  )
54
53
  Vue.prototype.$function_vue = res.data
55
54
  }
@@ -218,8 +218,9 @@
218
218
  </div>
219
219
  </template>
220
220
  <script>
221
- import {PagedList} from 'vue-client'
221
+ import {HttpResetClass, PagedList} from 'vue-client'
222
222
  import {isEmpty} from '../../Util'
223
+ import Vue from "vue";
223
224
  export default {
224
225
  title: '报建业务信息',
225
226
  props: ['showData'],
@@ -320,9 +321,11 @@
320
321
  },
321
322
  async applyTypeChange () {
322
323
  if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
323
- let res = await this.$resetpost('rs/logic/getDefnameByType',
324
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
325
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
324
+ let http = new HttpResetClass()
325
+ let res = await http.load('POST', 'rs/logic/getDefnameByType', {
326
+ f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type
327
+ },
328
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
326
329
  )
327
330
 
328
331
  this.defnames = [{label: '全部', value: ''}, ...res.data]
@@ -331,28 +334,28 @@
331
334
  }
332
335
  },
333
336
  async getDesigner() {
337
+ let http = new HttpResetClass()
334
338
  let data = {
335
339
  source: 'this.getParentByType($organization$).getChildByName($设计人员$).getChildren()',
336
340
  userid: this.$login.f.id
337
341
  }
338
-
339
- let res = await this.$resetpost(
340
- 'rs/search',
341
- {data: data},
342
- {resolveMsg: null, rejectMsg: '设计人员人员查询失败!!!'}
343
- )
344
- console.log("ces",res.data.map(item => {
345
- return {
346
- label: item.name,
347
- value: item.name
348
- }
349
- }))
350
- this.designerPeoples = res.data.map(item => {
351
- return {
352
- label: item.name,
353
- value: item.name
354
- }
342
+ http.load('POST', 'rs/search', {
343
+ data
344
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
345
+ console.log("ces",res.data.map(item => {
346
+ return {
347
+ label: item.name,
348
+ value: item.name
349
+ }
350
+ }))
351
+ this.designerPeoples = res.data.map(item => {
352
+ return {
353
+ label: item.name,
354
+ value: item.name
355
+ }
356
+ })
355
357
  })
358
+
356
359
  },
357
360
  clear () {
358
361
  Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
@@ -1,92 +1,90 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <div :class="showData ? 'top' : 'auto'" v-if="!showtotal">
5
- <ignition-list v-ref:query :show-data="showData"></ignition-list>
6
- </div>
7
- <div v-if="showtotal">
8
- <div class="top">
9
- <ignition-list-manage :show-data="selectdata" :node-snapshot="true"></ignition-list-manage>
10
- </div>
11
- </div>
12
- </div>
13
- </div>
14
-
15
- </template>
16
- <script>
17
- import Vue from 'vue'
18
- import {HttpResetClass} from 'vue-client'
19
- export default {
20
- title: '点火派单列表',
21
- data () {
22
- return {
23
- showtotal: false, // 控制详细信息显示
24
- showData: true,
25
- selectdata: {},
26
- xmlname: '' // 配置文件名称
27
- }
28
- },
29
- created () {
30
- },
31
- methods: {
32
- // 获取页面配置json文件
33
- async loadName () {
34
- let data = {
35
- workname: this.selectdata.processname
36
- }
37
-
38
- let res = await this.$resetpost(
39
- 'rs/logic/ApplyGetConfigs',
40
- {data: data},
41
- {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
42
- )
43
-
44
- Vue.prototype.$workflow_vue = res.data
45
- }
46
- },
47
- events: {
48
- 'onMessage' (data) {
49
- console.log('接收消息')
50
- console.log(data)
51
- if (data.type === 'apply-task') {
52
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
53
- }
54
- },
55
- async 'apply' (val) {
56
- this.selectdata = val
57
- this.showtotal = false
58
-
59
- // 获取配置文件
60
- await this.loadName()
61
-
62
- this.$refs.query.$refs.cp.pager = false
63
- this.showData = false
64
-
65
- this.showtotal = true
66
- },
67
- 'search' () {
68
- // 关闭详细
69
- this.showtotal = false
70
- // 显示列表数据
71
- this.showData = true
72
- // 显示分页
73
- this.$refs.query.$refs.cp.pager = true
74
- // 调用查询
75
- this.$refs.query.$refs.cp.$refs.cri.search()
76
- },
77
- 'loadPage' () {
78
- // 关闭详细
79
- this.showtotal = false
80
- // 显示列表数据
81
- this.showData = true
82
- // 显示分页
83
- this.$refs.query.$refs.cp.pager = true
84
- // 调用查询
85
- this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
86
- }
87
- },
88
-
89
- watch: {
90
- }
91
- }
92
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <div :class="showData ? 'top' : 'auto'" v-if="!showtotal">
5
+ <ignition-list v-ref:query :show-data="showData"></ignition-list>
6
+ </div>
7
+ <div v-if="showtotal">
8
+ <div class="top">
9
+ <ignition-list-manage :show-data="selectdata" :node-snapshot="true"></ignition-list-manage>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </div>
14
+
15
+ </template>
16
+ <script>
17
+ import Vue from 'vue'
18
+ import {HttpResetClass} from 'vue-client'
19
+ export default {
20
+ title: '点火派单列表',
21
+ data () {
22
+ return {
23
+ showtotal: false, // 控制详细信息显示
24
+ showData: true,
25
+ selectdata: {},
26
+ xmlname: '' // 配置文件名称
27
+ }
28
+ },
29
+ created () {
30
+ },
31
+ methods: {
32
+ // 获取页面配置json文件
33
+ async loadName () {
34
+ let http = new HttpResetClass()
35
+ let data = {
36
+ workname: this.selectdata.processname
37
+ }
38
+ let res= await http.load('POST', 'rs/logic/ApplyGetConfigs', {
39
+ data
40
+ }, {resolveMsg: null, rejectMsg: null})
41
+
42
+ Vue.prototype.$workflow_vue = res.data
43
+ }
44
+ },
45
+ events: {
46
+ 'onMessage' (data) {
47
+ console.log('接收消息')
48
+ console.log(data)
49
+ if (data.type === 'apply-task') {
50
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
51
+ }
52
+ },
53
+ async 'apply' (val) {
54
+ this.selectdata = val
55
+ this.showtotal = false
56
+
57
+ // 获取配置文件
58
+ await this.loadName()
59
+
60
+ this.$refs.query.$refs.cp.pager = false
61
+ this.showData = false
62
+
63
+ this.showtotal = true
64
+ },
65
+ 'search' () {
66
+ // 关闭详细
67
+ this.showtotal = false
68
+ // 显示列表数据
69
+ this.showData = true
70
+ // 显示分页
71
+ this.$refs.query.$refs.cp.pager = true
72
+ // 调用查询
73
+ this.$refs.query.$refs.cp.$refs.cri.search()
74
+ },
75
+ 'loadPage' () {
76
+ // 关闭详细
77
+ this.showtotal = false
78
+ // 显示列表数据
79
+ this.showData = true
80
+ // 显示分页
81
+ this.$refs.query.$refs.cp.pager = true
82
+ // 调用查询
83
+ this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
84
+ }
85
+ },
86
+
87
+ watch: {
88
+ }
89
+ }
90
+ </script>
@@ -420,7 +420,7 @@
420
420
  </template>
421
421
 
422
422
  <script>
423
- import { PagedList } from "vue-client";
423
+ import {HttpResetClass, PagedList} from "vue-client";
424
424
 
425
425
  export default {
426
426
  title: "点火派单",
@@ -515,13 +515,13 @@ export default {
515
515
  ignitionOperator: this.operator,
516
516
  f_shared_dispatch: this.f_shared_dispatch,
517
517
  };
518
-
519
- let res = await this.$resetpost(
520
- "rs/logic/batchDispatchGas",
521
- { data: data },
522
- { resolveMsg: null, rejectMsg: "批量派单失败!!!" }
523
- );
524
-
518
+ let http = new HttpResetClass()
519
+ let res = await http.load(
520
+ 'POST',
521
+ `rs/logic/batchDispatchGas`,
522
+ {data: data},
523
+ {resolveMsg: null, rejectMsg: '批量派单失败!!!'}
524
+ )
525
525
  this.closeModal("details");
526
526
  this.search();
527
527
  } else {
@@ -529,11 +529,13 @@ export default {
529
529
  }
530
530
  },
531
531
  async getsliceareas() {
532
- let res = await this.$resetpost(
533
- "rs/logic/getsliceareas",
534
- { data: null },
535
- { resolveMsg: null, rejectMsg: "获取片区失败!!!" }
536
- );
532
+ let http = new HttpResetClass()
533
+ let res = await http.load(
534
+ 'POST',
535
+ `rs/logic/getsliceareas`,
536
+ {data: null},
537
+ {resolveMsg: null, rejectMsg: '获取片区失败!!!'}
538
+ )
537
539
  this.sliceareas = [{ label: "全部", value: "" }, ...res.data];
538
540
  },
539
541
  async openOperatorModal() {
@@ -554,13 +556,13 @@ export default {
554
556
  source: this.source,
555
557
  userid: this.$login.f.id,
556
558
  };
557
-
558
- let res = await this.$resetpost(
559
- "rs/search",
559
+ let http = new HttpResetClass()
560
+ let res = await http.load(
561
+ 'POST',
562
+ `rs/search`,
560
563
  { data: data },
561
- { resolveMsg: null, rejectMsg: "点火人员查询失败!!!" }
562
- );
563
-
564
+ {resolveMsg: null, rejectMsg: '点火人员查询失败!!!'}
565
+ )
564
566
  this.operatorList = res.data.map((item) => {
565
567
  return {
566
568
  label: item.name,
@@ -364,7 +364,7 @@
364
364
  </template>
365
365
 
366
366
  <script>
367
- import {PagedList} from 'vue-client'
367
+ import {HttpResetClass, PagedList} from 'vue-client'
368
368
  import {isEmpty} from "../../Util";
369
369
 
370
370
 
@@ -502,9 +502,10 @@ export default {
502
502
  },
503
503
  async applyTypeChange () {
504
504
  if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
505
- let res = await this.$resetpost('rs/logic/getDefnameByType',
506
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
507
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
505
+ let http = new HttpResetClass()
506
+ let res = await http.load('POST', 'rs/logic/getDefnameByType', {
507
+ f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type},
508
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
508
509
  )
509
510
  this.defnames = [{label: '全部', value: ''}, ...res.data]
510
511
  } else {
@@ -53,17 +53,14 @@ export default {
53
53
  methods: {
54
54
  // 获取页面配置json文件
55
55
  async loadName () {
56
-
56
+ let http = new HttpResetClass()
57
57
  let data = {
58
58
  workname: this.selectdata.processname
59
59
  }
60
- let res = await this.$resetpost(
61
- 'rs/logic/ApplyGetConfigs',
62
- {data: data},
63
- {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
64
- )
65
-
66
- Vue.prototype.$workflow_vue = res.data
60
+ let res=await http.load('POST', 'rs/logic/ApplyGetConfigs', {
61
+ data
62
+ }, {resolveMsg: null, rejectMsg: null})
63
+ Vue.prototype.$workflow_vue = res.data
67
64
  }
68
65
  },
69
66
  events: {
@@ -34,6 +34,7 @@
34
34
  <script>
35
35
  import Vue from 'vue'
36
36
  import {HttpResetClass} from 'vue-client'
37
+ import {isEmpty} from "../../Util";
37
38
  export default {
38
39
  title: '报建流程',
39
40
  props: ['xselectdata', 'mark'],
@@ -59,17 +60,14 @@ export default {
59
60
  methods: {
60
61
  // 获取页面配置json文件
61
62
  async loadName () {
62
-
63
+ let http = new HttpResetClass()
63
64
  let data = {
64
65
  workname: this.selectdata.processname
65
66
  }
66
- let res = await this.$resetpost(
67
- 'rs/logic/ApplyGetConfigs',
68
- {data: data},
69
- {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
70
- )
71
-
72
- Vue.prototype.$workflow_vue = res.data
67
+ let res= await http.load('POST', 'rs/logic/ApplyGetConfigs', {
68
+ data
69
+ }, {resolveMsg: null, rejectMsg: null})
70
+ Vue.prototype.$workflow_vue = res.data
73
71
  },
74
72
  async breakControl (servicedata) {
75
73
  if (servicedata.id) {
@@ -38,7 +38,7 @@
38
38
  v-if="false"
39
39
  :choose-col="true"></export-excel>
40
40
  <button class="button_search button_spacing" v-if="false" @click="$parent.$parent.search()" v-el:cx>查询</button>
41
- <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
41
+ <button class="button_search button_spacing" style="margin-top: 90px" @click="$parent.$parent.loadPage()">返回</button>
42
42
  <button class="button_clear button_spacing" v-if="false" @click="$parent.$parent.clear()">清空</button>
43
43
  <div
44
44
  v-if="false"
@@ -474,12 +474,13 @@ export default {
474
474
  this.$dispatch('search')
475
475
  },
476
476
  async applyTypeChange () {
477
+
477
478
  if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
478
- let res = await this.$resetpost('rs/logic/getDefnameByType',
479
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
480
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
479
+ let http = new HttpResetClass()
480
+ let res = await http.load('POST', 'rs/logic/getDefnameByType', {
481
+ f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type},
482
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
481
483
  )
482
-
483
484
  this.defnames = [{label: '全部', value: ''}, ...res.data]
484
485
 
485
486
  // this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
@@ -47,17 +47,14 @@ export default {
47
47
  methods: {
48
48
  // 获取页面配置json文件
49
49
  async loadName() {
50
-
50
+ let http = new HttpResetClass()
51
51
  let data = {
52
52
  workname: this.selectdata.processname
53
53
  }
54
- let res = await this.$resetpost(
55
- 'rs/logic/ApplyGetConfigs',
56
- {data: data},
57
- {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
58
- )
59
-
60
- Vue.prototype.$workflow_vue = res.data
54
+ let res= await http.load('POST', 'rs/logic/ApplyGetConfigs', {
55
+ data
56
+ }, {resolveMsg: null, rejectMsg: null})
57
+ Vue.prototype.$workflow_vue = res.data
61
58
  }
62
59
  },
63
60
  events: {
@@ -93,7 +90,7 @@ export default {
93
90
  let res = await this.$resetpost(
94
91
  'rs/sql/checkuser',
95
92
  {data: data},
96
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
93
+ {resolveMsg: null, rejectMsg:null}
97
94
  )
98
95
 
99
96
  this.selectdata = res.data[0]