apply-clients 7.1.34 → 7.1.35

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.
@@ -1,121 +1,121 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <div :class="showData ? 'top' : 'auto'">
5
- <supervisory-list v-ref:query :show-data="showData"></supervisory-list>
6
- </div>
7
- <div v-if="showtotal" style="height: 89%">
8
- <div class="col-sm-2">
9
- <supervisory-chart :selectdata="selectdata"></supervisory-chart>
10
- </div>
11
- <div class="col-sm-10">
12
- <tabset v-ref:tabs :close="false">
13
- <tab :header='selectdata.defname'>
14
- <supervisory-service-control :selectdata="selectdata" :node-snapshot="true"></supervisory-service-control>
15
- </tab>
16
- <tab header='附件'>
17
- <apply-upload :blodid="selectdata.f_process_id"
18
- :isupload = "false"
19
- :isdelete="false"
20
- :isusetype="true"
21
- :isremark = "true"
22
- :takeimg="false"
23
- :issearch="true"
24
- :defname="selectdata.defname">
25
- </apply-upload>
26
- </tab>
27
- </tabset>
28
- </div>
29
- </div>
30
- </div>
31
- </div>
32
-
33
- </template>
34
- <script>
35
- import Vue from 'vue'
36
- import {HttpResetClass} from 'vue-client'
37
- export default {
38
- title: '流程监控',
39
- data () {
40
- return {
41
- showtotal: false, // 控制详细信息显示
42
- showData: true,
43
- selectdata: {},
44
- xmlname: '' // 配置文件名称
45
- }
46
- },
47
- created () {
48
- },
49
- methods: {
50
- // 获取页面配置json文件
51
- async loadName () {
52
- let http = new HttpResetClass()
53
- let xmldata = {
54
- data: this.$login.f,
55
- workname: this.xmlname
56
- }
57
- let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
58
-
59
- if (res.data.code && res.data.code === 200) {
60
- Vue.prototype.$workflow_vue = res.data.workflow_vue
61
- } else {
62
- this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
63
- return
64
- }
65
- }
66
- },
67
- events: {
68
- 'onMessage' (data) {
69
- console.log('接收消息')
70
- console.log(data)
71
- if (data.type === 'apply-task') {
72
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
73
- }
74
- },
75
- async 'apply' (val) {
76
- this.selectdata = val
77
- this.showtotal = false
78
-
79
- if (this.selectdata.f_apply_type === '开发商集体报装') {
80
- this.xmlname = '开发商集体报建流程'
81
- } else if (this.selectdata.f_apply_type === '散户报建') {
82
- this.xmlname = '散户报建流程'
83
- } else if (this.selectdata.f_apply_type === '工业户报装') {
84
- this.xmlname = '工商户报建流程'
85
- } else if (this.selectdata.f_apply_type === '商业户报建') {
86
- this.xmlname = '工商户报建流程'
87
- } else if (this.selectdata.f_apply_type === '工商户报装') {
88
- this.xmlname = '工商户报建流程'
89
- } else if (this.selectdata.f_apply_type === '散户集体报装') {
90
- this.xmlname = '散户集体报建流程'
91
- } else if (this.selectdata.f_apply_type === '煤改气报建') {
92
- this.xmlname = '散户集体报建流程'
93
- } else {
94
- this.$showMessage('暂无此类报装')
95
- return
96
- }
97
-
98
- // 获取配置文件
99
- await this.loadName()
100
-
101
- this.$refs.query.$refs.cp.pager = false
102
- this.showData = false
103
-
104
- this.showtotal = true
105
- },
106
- 'search' () {
107
- // 关闭详细
108
- this.showtotal = false
109
- // 显示列表数据
110
- this.showData = true
111
- // 显示分页
112
- this.$refs.query.$refs.cp.pager = true
113
- // 调用查询
114
- this.$refs.query.$refs.cp.$refs.cri.search()
115
- }
116
- },
117
-
118
- watch: {
119
- }
120
- }
121
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <div :class="showData ? 'top' : 'auto'">
5
+ <supervisory-list v-ref:query :show-data="showData"></supervisory-list>
6
+ </div>
7
+ <div v-if="showtotal" style="height: 89%">
8
+ <div class="col-sm-2">
9
+ <supervisory-chart :selectdata="selectdata"></supervisory-chart>
10
+ </div>
11
+ <div class="col-sm-10">
12
+ <tabset v-ref:tabs :close="false">
13
+ <tab :header='selectdata.defname'>
14
+ <supervisory-service-control :selectdata="selectdata" :node-snapshot="true"></supervisory-service-control>
15
+ </tab>
16
+ <tab header='附件'>
17
+ <apply-upload :blodid="selectdata.f_process_id"
18
+ :isupload = "false"
19
+ :isdelete="false"
20
+ :isusetype="true"
21
+ :isremark = "true"
22
+ :takeimg="false"
23
+ :issearch="true"
24
+ :defname="selectdata.defname">
25
+ </apply-upload>
26
+ </tab>
27
+ </tabset>
28
+ </div>
29
+ </div>
30
+ </div>
31
+ </div>
32
+
33
+ </template>
34
+ <script>
35
+ import Vue from 'vue'
36
+ import {HttpResetClass} from 'vue-client'
37
+ export default {
38
+ title: '流程监控',
39
+ data () {
40
+ return {
41
+ showtotal: false, // 控制详细信息显示
42
+ showData: true,
43
+ selectdata: {},
44
+ xmlname: '' // 配置文件名称
45
+ }
46
+ },
47
+ created () {
48
+ },
49
+ methods: {
50
+ // 获取页面配置json文件
51
+ async loadName () {
52
+ let http = new HttpResetClass()
53
+ let xmldata = {
54
+ data: this.$login.f,
55
+ workname: this.xmlname
56
+ }
57
+ let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
58
+
59
+ if (res.data.code && res.data.code === 200) {
60
+ Vue.prototype.$workflow_vue = res.data.workflow_vue
61
+ } else {
62
+ this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
63
+ return
64
+ }
65
+ }
66
+ },
67
+ events: {
68
+ 'onMessage' (data) {
69
+ console.log('接收消息')
70
+ console.log(data)
71
+ if (data.type === 'apply-task') {
72
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
73
+ }
74
+ },
75
+ async 'apply' (val) {
76
+ this.selectdata = val
77
+ this.showtotal = false
78
+
79
+ if (this.selectdata.f_apply_type === '开发商集体报装') {
80
+ this.xmlname = '开发商集体报建流程'
81
+ } else if (this.selectdata.f_apply_type === '散户报建') {
82
+ this.xmlname = '散户报建流程'
83
+ } else if (this.selectdata.f_apply_type === '工业户报装') {
84
+ this.xmlname = '工商户报建流程'
85
+ } else if (this.selectdata.f_apply_type === '商业户报建') {
86
+ this.xmlname = '工商户报建流程'
87
+ } else if (this.selectdata.f_apply_type === '工商户报装') {
88
+ this.xmlname = '工商户报建流程'
89
+ } else if (this.selectdata.f_apply_type === '散户集体报装') {
90
+ this.xmlname = '散户集体报建流程'
91
+ } else if (this.selectdata.f_apply_type === '煤改气报建') {
92
+ this.xmlname = '散户集体报建流程'
93
+ } else {
94
+ this.$showMessage('暂无此类报装')
95
+ return
96
+ }
97
+
98
+ // 获取配置文件
99
+ await this.loadName()
100
+
101
+ this.$refs.query.$refs.cp.pager = false
102
+ this.showData = false
103
+
104
+ this.showtotal = true
105
+ },
106
+ 'search' () {
107
+ // 关闭详细
108
+ this.showtotal = false
109
+ // 显示列表数据
110
+ this.showData = true
111
+ // 显示分页
112
+ this.$refs.query.$refs.cp.pager = true
113
+ // 调用查询
114
+ this.$refs.query.$refs.cp.$refs.cri.search()
115
+ }
116
+ },
117
+
118
+ watch: {
119
+ }
120
+ }
121
+ </script>