apply-clients 3.4.18 → 3.4.20

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,137 +1,137 @@
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" style="margin-top: 20px">
9
- <supervisory-chart :selectdata="selectdata"></supervisory-chart>
10
- </div>
11
- <div class="col-sm-10" style="margin-top: 20px">
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="true"
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 data = {
53
- workname: this.selectdata.processname
54
- }
55
-
56
- let res = await this.$resetpost(
57
- 'rs/logic/ApplyGetConfigs',
58
- {data: data},
59
- {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
60
- )
61
-
62
- Vue.prototype.$workflow_vue = res.data
63
- }
64
- },
65
- events: {
66
- // 刷新控制层
67
- async 'breakControl' (servicedata) {
68
-
69
- if (servicedata.id) {
70
- let data = {
71
- condition: `u.id = ${servicedata.id}`,
72
- data: {
73
- orgid: this.$login.f.orgid
74
- }
75
- }
76
- let res = await this.$resetpost(
77
- 'rs/sql/supervisory',
78
- {data: data},
79
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
80
- )
81
- this.selectdata = Object.assign({}, this.selectdata, res.data[0])
82
- } else {
83
- this.selectdata = servicedata
84
- }
85
-
86
- this.showtotal = false
87
- this.$nextTick(() => {
88
- this.showtotal = true
89
- })
90
-
91
- },
92
- 'onMessage' (data) {
93
- console.log('接收消息')
94
- console.log(data)
95
- if (data.type === 'apply-task') {
96
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
97
- }
98
- },
99
- async 'apply' (val) {
100
- this.selectdata = null
101
- this.selectdata = val
102
- this.showtotal = false
103
-
104
- // 获取配置文件
105
- await this.loadName()
106
-
107
- this.$refs.query.$refs.cp.pager = false
108
- this.showData = false
109
-
110
- this.showtotal = true
111
- },
112
- 'search' () {
113
- // 关闭详细
114
- this.showtotal = false
115
- // 显示列表数据
116
- this.showData = true
117
- // 显示分页
118
- this.$refs.query.$refs.cp.pager = true
119
- // 调用查询
120
- this.$refs.query.$refs.cp.$refs.cri.search()
121
- },
122
- 'loadPage' () {
123
- // 关闭详细
124
- this.showtotal = false
125
- // 显示列表数据
126
- this.showData = true
127
- // 显示分页
128
- this.$refs.query.$refs.cp.pager = true
129
- // 调用查询
130
- this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
131
- }
132
- },
133
-
134
- watch: {
135
- }
136
- }
137
- </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" style="margin-top: 20px">
9
+ <supervisory-chart :selectdata="selectdata"></supervisory-chart>
10
+ </div>
11
+ <div class="col-sm-10" style="margin-top: 20px">
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 data = {
53
+ workname: this.selectdata.processname
54
+ }
55
+
56
+ let res = await this.$resetpost(
57
+ 'rs/logic/ApplyGetConfigs',
58
+ {data: data},
59
+ {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
60
+ )
61
+
62
+ Vue.prototype.$workflow_vue = res.data
63
+ }
64
+ },
65
+ events: {
66
+ // 刷新控制层
67
+ async 'breakControl' (servicedata) {
68
+
69
+ if (servicedata.id) {
70
+ let data = {
71
+ condition: `u.id = ${servicedata.id}`,
72
+ data: {
73
+ orgid: this.$login.f.orgid
74
+ }
75
+ }
76
+ let res = await this.$resetpost(
77
+ 'rs/sql/supervisory',
78
+ {data: data},
79
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
80
+ )
81
+ this.selectdata = Object.assign({}, this.selectdata, res.data[0])
82
+ } else {
83
+ this.selectdata = servicedata
84
+ }
85
+
86
+ this.showtotal = false
87
+ this.$nextTick(() => {
88
+ this.showtotal = true
89
+ })
90
+
91
+ },
92
+ 'onMessage' (data) {
93
+ console.log('接收消息')
94
+ console.log(data)
95
+ if (data.type === 'apply-task') {
96
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
97
+ }
98
+ },
99
+ async 'apply' (val) {
100
+ this.selectdata = null
101
+ this.selectdata = val
102
+ this.showtotal = false
103
+
104
+ // 获取配置文件
105
+ await this.loadName()
106
+
107
+ this.$refs.query.$refs.cp.pager = false
108
+ this.showData = false
109
+
110
+ this.showtotal = true
111
+ },
112
+ 'search' () {
113
+ // 关闭详细
114
+ this.showtotal = false
115
+ // 显示列表数据
116
+ this.showData = true
117
+ // 显示分页
118
+ this.$refs.query.$refs.cp.pager = true
119
+ // 调用查询
120
+ this.$refs.query.$refs.cp.$refs.cri.search()
121
+ },
122
+ 'loadPage' () {
123
+ // 关闭详细
124
+ this.showtotal = false
125
+ // 显示列表数据
126
+ this.showData = true
127
+ // 显示分页
128
+ this.$refs.query.$refs.cp.pager = true
129
+ // 调用查询
130
+ this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
131
+ }
132
+ },
133
+
134
+ watch: {
135
+ }
136
+ }
137
+ </script>