apply-clients 7.1.36-yuchuan-10 → 7.1.36-yuchuan-11

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,219 +1,219 @@
1
- <template>
2
- <div style="height: 100%">
3
- <tabset class="tab1" v-ref:tabs :close="false" :active.sync="active">
4
- <tab :header="dataname+'查询列表'" :class="showData ? 'top' : 'auto'">
5
- <component :is="'exploration-select'" v-ref:query :dataname = "dataname" :show-data="showData"></component>
6
- </tab>
7
- <tab header='页面1' class="tab3">
8
- <component :is="'new1-exploration-user'" :xselectdata="selectdata1" :mark="'1'"></component>
9
- </tab>
10
- <tab header='页面2'>
11
- <component :is="'new1-exploration-user'" :xselectdata="selectdata2" :mark="'2'"></component>
12
- </tab>
13
- <tab header='页面3'>
14
- <component :is="'new1-exploration-user'" :xselectdata="selectdata3" :mark="'3'"></component>
15
- </tab>
16
- </tabset>
17
- </div>
18
- </template>
19
-
20
- <script>
21
- import Vue from 'vue'
22
- import {HttpResetClass} from 'vue-client'
23
-
24
- export default {
25
- title: '报建流程',
26
- props: ['dataname'],
27
- data() {
28
- return {
29
- showData: true, // 控制列表数据
30
- showtotal: false, // 详情显示
31
- selectdata: {},
32
- selectdata1: null,
33
- show1: false,
34
- selectdata2: null,
35
- show2: false,
36
- selectdata3: null,
37
- show3: false,
38
- xmlname: '', // 配置文件名
39
- active: 0 // 配置文件名
40
- }
41
- },
42
- ready() {
43
- console.log('=============用户信息=================')
44
- console.log(this.$login.f)
45
- console.log(this.$login.r)
46
- },
47
- methods: {
48
- // 获取页面配置json文件
49
- async loadName() {
50
-
51
- let data = {
52
- workname: this.selectdata.processname
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
61
- }
62
- },
63
- events: {
64
- 'locationclick'(res) {
65
- console.log('/*/*/*/*/*/*/*/*/*/*/*/*/*/**/*/*/*/*')
66
- if (res.pname) {
67
- this.$refs.service.setLabelValue('定位地址', res.pname + res.cityname + res.adname + res.address + res.name)
68
- } else {
69
- this.$refs.service.setLabelValue('定位地址', res.province + res.city + res.address + res.name)
70
- }
71
- this.$refs.service.show_data.f_lng = res.location.lng
72
- this.$refs.service.show_data.f_lat = res.location.lat
73
- this.active = 0
74
- },
75
- 'onMessage'(data) {
76
- console.log('接收消息')
77
- console.log(data)
78
- if (data.type === 'apply-task') {
79
- this.$refs.query.$refs.cp.$refs.cri.search()
80
- }
81
- },
82
- // 刷新控制层
83
- async 'breakControl'(servicedata) {
84
-
85
- if (servicedata.id) {
86
- let data = {
87
- condition: `u.id = ${servicedata.id}`,
88
- data: {
89
- userid: this.$login.f.id,
90
- f_filiale: this.$login.f.f_fengongsi
91
- }
92
- }
93
- let res = await this.$resetpost(
94
- 'rs/sql/checkuser',
95
- {data: data},
96
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
97
- )
98
-
99
- this.selectdata = res.data[0]
100
- } else {
101
- this.selectdata = servicedata
102
- }
103
-
104
- this.showtotal = false
105
- this.$nextTick(() => {
106
- this.showtotal = true
107
- })
108
- this.active = 0
109
-
110
- },
111
- // 初始化
112
- async 'apply'(val) {
113
- console.log("当前数据", val)
114
- this.showtotal = false
115
- if (!this.selectdata1) {
116
- this.selectdata1 = val
117
- } else if (!this.selectdata2) {
118
- this.selectdata2 = val
119
- } else if (!this.selectdata3) {
120
- this.selectdata3 = val
121
- }else {
122
- this.$showMessage("请关闭之前的页面后,再打开新的页面")
123
- return
124
- }
125
- this.selectdata = val
126
-
127
- // 次方法必须同步执行,否则后续会出问题
128
- // 获取页面json配置文件
129
- // await this.loadName()
130
-
131
- // 显示详细
132
- // this.showtotal = true
133
- // 关闭列表数据
134
- // this.showData = false
135
- // 关闭分页
136
- // this.$refs.query.$refs.cp.pager = false
137
- },
138
- 'search'() {
139
- this.selectdata = {}
140
- // 关闭详细
141
- this.showtotal = false
142
- // 显示列表数据
143
- this.showData = true
144
- // 显示分页
145
- this.$refs.query.$refs.cp.pager = true
146
- // 调用查询
147
- this.$refs.query.$refs.cp.$refs.cri.search()
148
- },
149
- 'loadPage1'(val) {
150
- if (val === '1'){
151
- console.log("sssss1")
152
- this.selectdata1 = null
153
- // this.show1 = false
154
- // this.active = 0
155
- }else if (val === '2'){
156
- console.log("sssss2")
157
- this.selectdata2 = null
158
- // this.show2 = false
159
- // this.active = 0
160
- }else if (val === '3'){
161
- console.log("sssss3")
162
- this.selectdata3 = null
163
- // this.show3 = false
164
- // this.active = 0
165
- }
166
- console.log("vass",val)
167
- // this.selectdata = {}
168
- // 关闭详细
169
- // this.showtotal = false
170
- // 显示列表数据
171
- this.showData = true
172
- // 显示分页
173
- // this.$refs.query.$refs.cp.pager = true
174
- // 调用查询
175
- this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
176
- }
177
- },
178
- watch: {
179
- "selectdata1" (val) {
180
- if(val){
181
- this.show1 = true
182
- this.active = 1
183
- }else {
184
- this.show1 = false
185
- this.active = 0
186
- }
187
- },
188
- "selectdata2" (val) {
189
- if(val){
190
- this.show2 = true
191
- this.active = 2
192
- }else {
193
- this.show2 = false
194
- this.active = 0
195
- }
196
- },
197
- "selectdata3" (val) {
198
- if(val){
199
- this.show3 = true
200
- this.active = 3
201
- }else {
202
- this.show3 = false
203
- this.active = 0
204
- }
205
- }
206
- }
207
- }
208
- </script>
209
- <style scoped>
210
- .tab1{
211
- padding: 0.4%;
212
- background-color: #ffffff;
213
- border-radius: 14px;
214
- box-shadow: 0px 1px 10px 0px rgba(2, 56, 104, 0.13);
215
- }
216
- .tab3{
217
- background-color: #ffffff !important
218
- }
219
- </style>
1
+ <template>
2
+ <div style="height: 100%">
3
+ <tabset class="tab1" v-ref:tabs :close="false" :active.sync="active">
4
+ <tab :header="dataname+'查询列表'" :class="showData ? 'top' : 'auto'">
5
+ <component :is="'exploration-select'" v-ref:query :dataname = "dataname" :show-data="showData"></component>
6
+ </tab>
7
+ <tab header='页面1' class="tab3">
8
+ <component :is="'new1-exploration-user'" :xselectdata="selectdata1" :mark="'1'"></component>
9
+ </tab>
10
+ <tab header='页面2'>
11
+ <component :is="'new1-exploration-user'" :xselectdata="selectdata2" :mark="'2'"></component>
12
+ </tab>
13
+ <tab header='页面3'>
14
+ <component :is="'new1-exploration-user'" :xselectdata="selectdata3" :mark="'3'"></component>
15
+ </tab>
16
+ </tabset>
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ import Vue from 'vue'
22
+ import {HttpResetClass} from 'vue-client'
23
+
24
+ export default {
25
+ title: '报建流程',
26
+ props: ['dataname'],
27
+ data() {
28
+ return {
29
+ showData: true, // 控制列表数据
30
+ showtotal: false, // 详情显示
31
+ selectdata: {},
32
+ selectdata1: null,
33
+ show1: false,
34
+ selectdata2: null,
35
+ show2: false,
36
+ selectdata3: null,
37
+ show3: false,
38
+ xmlname: '', // 配置文件名
39
+ active: 0 // 配置文件名
40
+ }
41
+ },
42
+ ready() {
43
+ console.log('=============用户信息=================')
44
+ console.log(this.$login.f)
45
+ console.log(this.$login.r)
46
+ },
47
+ methods: {
48
+ // 获取页面配置json文件
49
+ async loadName() {
50
+
51
+ let data = {
52
+ workname: this.selectdata.processname
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
61
+ }
62
+ },
63
+ events: {
64
+ 'locationclick'(res) {
65
+ console.log('/*/*/*/*/*/*/*/*/*/*/*/*/*/**/*/*/*/*')
66
+ if (res.pname) {
67
+ this.$refs.service.setLabelValue('定位地址', res.pname + res.cityname + res.adname + res.address + res.name)
68
+ } else {
69
+ this.$refs.service.setLabelValue('定位地址', res.province + res.city + res.address + res.name)
70
+ }
71
+ this.$refs.service.show_data.f_lng = res.location.lng
72
+ this.$refs.service.show_data.f_lat = res.location.lat
73
+ this.active = 0
74
+ },
75
+ 'onMessage'(data) {
76
+ console.log('接收消息')
77
+ console.log(data)
78
+ if (data.type === 'apply-task') {
79
+ this.$refs.query.$refs.cp.$refs.cri.search()
80
+ }
81
+ },
82
+ // 刷新控制层
83
+ async 'breakControl'(servicedata) {
84
+
85
+ if (servicedata.id) {
86
+ let data = {
87
+ condition: `u.id = ${servicedata.id}`,
88
+ data: {
89
+ userid: this.$login.f.id,
90
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
91
+ }
92
+ }
93
+ let res = await this.$resetpost(
94
+ 'rs/sql/checkuser',
95
+ {data: data},
96
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
97
+ )
98
+
99
+ this.selectdata = res.data[0]
100
+ } else {
101
+ this.selectdata = servicedata
102
+ }
103
+
104
+ this.showtotal = false
105
+ this.$nextTick(() => {
106
+ this.showtotal = true
107
+ })
108
+ this.active = 0
109
+
110
+ },
111
+ // 初始化
112
+ async 'apply'(val) {
113
+ console.log("当前数据", val)
114
+ this.showtotal = false
115
+ if (!this.selectdata1) {
116
+ this.selectdata1 = val
117
+ } else if (!this.selectdata2) {
118
+ this.selectdata2 = val
119
+ } else if (!this.selectdata3) {
120
+ this.selectdata3 = val
121
+ }else {
122
+ this.$showMessage("请关闭之前的页面后,再打开新的页面")
123
+ return
124
+ }
125
+ this.selectdata = val
126
+
127
+ // 次方法必须同步执行,否则后续会出问题
128
+ // 获取页面json配置文件
129
+ // await this.loadName()
130
+
131
+ // 显示详细
132
+ // this.showtotal = true
133
+ // 关闭列表数据
134
+ // this.showData = false
135
+ // 关闭分页
136
+ // this.$refs.query.$refs.cp.pager = false
137
+ },
138
+ 'search'() {
139
+ this.selectdata = {}
140
+ // 关闭详细
141
+ this.showtotal = false
142
+ // 显示列表数据
143
+ this.showData = true
144
+ // 显示分页
145
+ this.$refs.query.$refs.cp.pager = true
146
+ // 调用查询
147
+ this.$refs.query.$refs.cp.$refs.cri.search()
148
+ },
149
+ 'loadPage1'(val) {
150
+ if (val === '1'){
151
+ console.log("sssss1")
152
+ this.selectdata1 = null
153
+ // this.show1 = false
154
+ // this.active = 0
155
+ }else if (val === '2'){
156
+ console.log("sssss2")
157
+ this.selectdata2 = null
158
+ // this.show2 = false
159
+ // this.active = 0
160
+ }else if (val === '3'){
161
+ console.log("sssss3")
162
+ this.selectdata3 = null
163
+ // this.show3 = false
164
+ // this.active = 0
165
+ }
166
+ console.log("vass",val)
167
+ // this.selectdata = {}
168
+ // 关闭详细
169
+ // this.showtotal = false
170
+ // 显示列表数据
171
+ this.showData = true
172
+ // 显示分页
173
+ // this.$refs.query.$refs.cp.pager = true
174
+ // 调用查询
175
+ this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
176
+ }
177
+ },
178
+ watch: {
179
+ "selectdata1" (val) {
180
+ if(val){
181
+ this.show1 = true
182
+ this.active = 1
183
+ }else {
184
+ this.show1 = false
185
+ this.active = 0
186
+ }
187
+ },
188
+ "selectdata2" (val) {
189
+ if(val){
190
+ this.show2 = true
191
+ this.active = 2
192
+ }else {
193
+ this.show2 = false
194
+ this.active = 0
195
+ }
196
+ },
197
+ "selectdata3" (val) {
198
+ if(val){
199
+ this.show3 = true
200
+ this.active = 3
201
+ }else {
202
+ this.show3 = false
203
+ this.active = 0
204
+ }
205
+ }
206
+ }
207
+ }
208
+ </script>
209
+ <style scoped>
210
+ .tab1{
211
+ padding: 0.4%;
212
+ background-color: #ffffff;
213
+ border-radius: 14px;
214
+ box-shadow: 0px 1px 10px 0px rgba(2, 56, 104, 0.13);
215
+ }
216
+ .tab3{
217
+ background-color: #ffffff !important
218
+ }
219
+ </style>
@@ -1052,7 +1052,7 @@ export default {
1052
1052
  condition: `ui.f_process_id = '${this.selectdata.f_process_id}'`,
1053
1053
  data: {
1054
1054
  userid: this.$login.f.id,
1055
- f_filiale: this.$login.f.f_fengongsi
1055
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
1056
1056
  }
1057
1057
  }
1058
1058
  },
@@ -1115,7 +1115,7 @@ export default {
1115
1115
  condition: `ui.f_process_id = '${this.selectdata.f_process_id}'`,
1116
1116
  data: {
1117
1117
  userid: this.$login.f.id,
1118
- f_filiale: this.$login.f.f_fengongsi
1118
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
1119
1119
  }
1120
1120
  }
1121
1121
  }
@@ -1548,7 +1548,7 @@ export default {
1548
1548
  f_user_id: userinfo.f_user_id,
1549
1549
  f_userinfo_id: userinfo.f_userinfo_id,
1550
1550
  record: {
1551
- f_filiale: this.$login.f.f_fengongsi,
1551
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气',
1552
1552
  f_instruct_meta_data: this.show_data.button.button_name === '退出强制状态' ? '退出强制阀控' : '进入强制阀控',
1553
1553
  f_instruct_title: this.show_data.button.button_name === '退出强制状态' ? '退出强制阀控' : '进入强制阀控',
1554
1554
  f_instruct_type: '阀门控制',
@@ -543,7 +543,7 @@
543
543
  condition: this.$refs.cp.$refs.cri.condition,
544
544
  data: {
545
545
  // orgid: this.$login.f.orgid
546
- f_filiale: this.$login.f.f_fengongsi
546
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
547
547
  }
548
548
  }
549
549
  },