apply-clients 7.1.36-yuchuan-9 → 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,201 +1,201 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <div :class="showData1 ? 'top' : 'auto'">
5
- <new-exploration-select v-ref:query :show-data="showData1"></new-exploration-select>
6
- </div>
7
- <!-- <div v-if="showtotal">-->
8
- <!-- <new-exploration-user :selectdata="selectdata"></new-exploration-user>-->
9
- <!-- </div>-->
10
- <div v-if="showtotal" style="height: 89%">
11
- <tabset v-ref:tabs :close="false" :active.sync="active">
12
- <tab :header='selectdata.defname'>
13
- <service-control v-ref:service :selectdata="selectdata"></service-control>
14
- </tab>
15
- <tab header='地图'>
16
- <apply-map-com :selectdata="selectdata"></apply-map-com>
17
- </tab>
18
- <tab header='附件'>
19
- <apply-upload :blodid="selectdata.f_process_id"
20
- :isupload = "true"
21
- :isdelete="true"
22
- :isusetype="true"
23
- :isremark = "true"
24
- :takeimg="true"
25
- :issearch="true"
26
- :defname="selectdata.defname">
27
- </apply-upload>
28
- </tab>
29
- </tabset>
30
- </div>
31
- </div>
32
- </div>
33
- </template>
34
- <script>
35
- import Vue from 'vue'
36
- import {HttpResetClass} from 'vue-client'
37
- export default {
38
- title: '报建流程',
39
- props: ['xselectdata', 'mark'],
40
- data () {
41
- return {
42
- showData1: false, // 控制列表数据
43
- showtotal: false, // 详情显示
44
- selectdata: {},
45
- xmlname: '', // 配置文件名
46
- active: 0 // 配置文件名
47
- }
48
- },
49
- ready () {
50
- console.log('=============用户信息=================')
51
- console.log(this.$login.f)
52
- console.log(this.$login.r)
53
-
54
- this.selectdata = this.xselectdata
55
- // this.loadName().then(res=>{
56
- // this.showtotal = true
57
- // })
58
- },
59
- methods: {
60
- // 获取页面配置json文件
61
- async loadName () {
62
-
63
- let data = {
64
- workname: this.selectdata.processname
65
- }
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
73
- },
74
- async breakControl (servicedata) {
75
-
76
- if (servicedata.id) {
77
- let data = {
78
- condition: `u.id = ${servicedata.id}`,
79
- data: {
80
- userid: this.$login.f.id,
81
- f_filiale: this.$login.f.f_fengongsi
82
- }
83
- }
84
- let res = await this.$resetpost(
85
- 'rs/sql/checkuser',
86
- {data: data},
87
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
88
- )
89
-
90
- this.selectdata = res.data[0]
91
- } else {
92
- this.selectdata = servicedata
93
- }
94
-
95
- this.showtotal = false
96
- this.$nextTick(() => {
97
- this.showtotal = true
98
- })
99
-
100
- },
101
- },
102
- events: {
103
- 'locationclick' (res) {
104
- console.log('/*/*/*/*/*/*/*/*/*/*/*/*/*/**/*/*/*/*')
105
- if (res.pname){
106
- this.$refs.service.setLabelValue('定位地址', res.pname + res.cityname + res.adname + res.address + res.name)
107
- }else {
108
- this.$refs.service.setLabelValue('定位地址', res.province + res.city + res.address + res.name)
109
- }
110
- this.$refs.service.show_data.f_lng = res.location.lng
111
- this.$refs.service.show_data.f_lat = res.location.lat
112
- this.active = 0
113
- },
114
- 'onMessage' (data) {
115
- console.log('接收消息')
116
- console.log(data)
117
- if (data.type === 'apply-task') {
118
- this.$refs.query.$refs.cp.$refs.cri.search()
119
- }
120
- },
121
- // 刷新控制层
122
- async 'breakControl' (servicedata) {
123
-
124
- if (servicedata.id) {
125
- let data = {
126
- condition: `u.id = ${servicedata.id}`,
127
- data: {
128
- userid: this.$login.f.id,
129
- f_filiale: this.$login.f.f_fengongsi
130
- }
131
- }
132
- let res = await this.$resetpost(
133
- 'rs/sql/checkuser',
134
- {data: data},
135
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
136
- )
137
-
138
- this.selectdata = res.data[0]
139
- } else {
140
- this.selectdata = servicedata
141
- }
142
-
143
- this.showtotal = false
144
- this.$nextTick(() => {
145
- this.showtotal = true
146
- })
147
-
148
- },
149
- // 初始化
150
- async 'apply' (val) {
151
- this.showtotal = false
152
- this.selectdata = val
153
-
154
- // 次方法必须同步执行,否则后续会出问题
155
- // 获取页面json配置文件
156
- await this.loadName()
157
-
158
- // 显示详细
159
- this.showtotal = true
160
- // 关闭列表数据
161
- this.showData1 = false
162
- // 关闭分页
163
- // this.$refs.query.$refs.cp.pager = false
164
- },
165
- 'search' () {
166
- this.selectdata = {}
167
- // 关闭详细
168
- this.showtotal = false
169
- // 显示列表数据
170
- this.showData1 = false
171
- // 显示分页
172
- // this.$refs.query.$refs.cp.pager = false
173
- // // 调用查询
174
- // this.$refs.query.$refs.cp.$refs.cri.search()
175
- },
176
- 'loadPage' () {
177
- this.selectdata = {}
178
- // 关闭详细
179
- this.showtotal = false
180
- // 显示列表数据
181
- this.showData1 = false
182
- // 调用查询
183
- // this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
184
- this.$dispatch('loadPage1', this.mark)
185
- }
186
- },
187
- watch: {
188
- "xselectdata"(val) {
189
- console.log("当前数据显示一下",this.xselectdata)
190
- this.selectdata = val
191
- if (val){
192
- this.loadName().then(res=>{
193
- this.showtotal = true
194
- })
195
- }else {
196
- this.showtotal = false
197
- }
198
- }
199
- }
200
- }
201
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <div :class="showData1 ? 'top' : 'auto'">
5
+ <new-exploration-select v-ref:query :show-data="showData1"></new-exploration-select>
6
+ </div>
7
+ <!-- <div v-if="showtotal">-->
8
+ <!-- <new-exploration-user :selectdata="selectdata"></new-exploration-user>-->
9
+ <!-- </div>-->
10
+ <div v-if="showtotal" style="height: 89%">
11
+ <tabset v-ref:tabs :close="false" :active.sync="active">
12
+ <tab :header='selectdata.defname'>
13
+ <service-control v-ref:service :selectdata="selectdata"></service-control>
14
+ </tab>
15
+ <tab header='地图'>
16
+ <apply-map-com :selectdata="selectdata"></apply-map-com>
17
+ </tab>
18
+ <tab header='附件'>
19
+ <apply-upload :blodid="selectdata.f_process_id"
20
+ :isupload = "true"
21
+ :isdelete="true"
22
+ :isusetype="true"
23
+ :isremark = "true"
24
+ :takeimg="true"
25
+ :issearch="true"
26
+ :defname="selectdata.defname">
27
+ </apply-upload>
28
+ </tab>
29
+ </tabset>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </template>
34
+ <script>
35
+ import Vue from 'vue'
36
+ import {HttpResetClass} from 'vue-client'
37
+ export default {
38
+ title: '报建流程',
39
+ props: ['xselectdata', 'mark'],
40
+ data () {
41
+ return {
42
+ showData1: false, // 控制列表数据
43
+ showtotal: false, // 详情显示
44
+ selectdata: {},
45
+ xmlname: '', // 配置文件名
46
+ active: 0 // 配置文件名
47
+ }
48
+ },
49
+ ready () {
50
+ console.log('=============用户信息=================')
51
+ console.log(this.$login.f)
52
+ console.log(this.$login.r)
53
+
54
+ this.selectdata = this.xselectdata
55
+ // this.loadName().then(res=>{
56
+ // this.showtotal = true
57
+ // })
58
+ },
59
+ methods: {
60
+ // 获取页面配置json文件
61
+ async loadName () {
62
+
63
+ let data = {
64
+ workname: this.selectdata.processname
65
+ }
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
73
+ },
74
+ async breakControl (servicedata) {
75
+
76
+ if (servicedata.id) {
77
+ let data = {
78
+ condition: `u.id = ${servicedata.id}`,
79
+ data: {
80
+ userid: this.$login.f.id,
81
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
82
+ }
83
+ }
84
+ let res = await this.$resetpost(
85
+ 'rs/sql/checkuser',
86
+ {data: data},
87
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
88
+ )
89
+
90
+ this.selectdata = res.data[0]
91
+ } else {
92
+ this.selectdata = servicedata
93
+ }
94
+
95
+ this.showtotal = false
96
+ this.$nextTick(() => {
97
+ this.showtotal = true
98
+ })
99
+
100
+ },
101
+ },
102
+ events: {
103
+ 'locationclick' (res) {
104
+ console.log('/*/*/*/*/*/*/*/*/*/*/*/*/*/**/*/*/*/*')
105
+ if (res.pname){
106
+ this.$refs.service.setLabelValue('定位地址', res.pname + res.cityname + res.adname + res.address + res.name)
107
+ }else {
108
+ this.$refs.service.setLabelValue('定位地址', res.province + res.city + res.address + res.name)
109
+ }
110
+ this.$refs.service.show_data.f_lng = res.location.lng
111
+ this.$refs.service.show_data.f_lat = res.location.lat
112
+ this.active = 0
113
+ },
114
+ 'onMessage' (data) {
115
+ console.log('接收消息')
116
+ console.log(data)
117
+ if (data.type === 'apply-task') {
118
+ this.$refs.query.$refs.cp.$refs.cri.search()
119
+ }
120
+ },
121
+ // 刷新控制层
122
+ async 'breakControl' (servicedata) {
123
+
124
+ if (servicedata.id) {
125
+ let data = {
126
+ condition: `u.id = ${servicedata.id}`,
127
+ data: {
128
+ userid: this.$login.f.id,
129
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
130
+ }
131
+ }
132
+ let res = await this.$resetpost(
133
+ 'rs/sql/checkuser',
134
+ {data: data},
135
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
136
+ )
137
+
138
+ this.selectdata = res.data[0]
139
+ } else {
140
+ this.selectdata = servicedata
141
+ }
142
+
143
+ this.showtotal = false
144
+ this.$nextTick(() => {
145
+ this.showtotal = true
146
+ })
147
+
148
+ },
149
+ // 初始化
150
+ async 'apply' (val) {
151
+ this.showtotal = false
152
+ this.selectdata = val
153
+
154
+ // 次方法必须同步执行,否则后续会出问题
155
+ // 获取页面json配置文件
156
+ await this.loadName()
157
+
158
+ // 显示详细
159
+ this.showtotal = true
160
+ // 关闭列表数据
161
+ this.showData1 = false
162
+ // 关闭分页
163
+ // this.$refs.query.$refs.cp.pager = false
164
+ },
165
+ 'search' () {
166
+ this.selectdata = {}
167
+ // 关闭详细
168
+ this.showtotal = false
169
+ // 显示列表数据
170
+ this.showData1 = false
171
+ // 显示分页
172
+ // this.$refs.query.$refs.cp.pager = false
173
+ // // 调用查询
174
+ // this.$refs.query.$refs.cp.$refs.cri.search()
175
+ },
176
+ 'loadPage' () {
177
+ this.selectdata = {}
178
+ // 关闭详细
179
+ this.showtotal = false
180
+ // 显示列表数据
181
+ this.showData1 = false
182
+ // 调用查询
183
+ // this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
184
+ this.$dispatch('loadPage1', this.mark)
185
+ }
186
+ },
187
+ watch: {
188
+ "xselectdata"(val) {
189
+ console.log("当前数据显示一下",this.xselectdata)
190
+ this.selectdata = val
191
+ if (val){
192
+ this.loadName().then(res=>{
193
+ this.showtotal = true
194
+ })
195
+ }else {
196
+ this.showtotal = false
197
+ }
198
+ }
199
+ }
200
+ }
201
+ </script>
@@ -342,7 +342,7 @@ export default {
342
342
  model: new PagedList('rs/sql/checkuser', 20, {
343
343
  data: {
344
344
  userid: this.$login.f.id,
345
- f_filiale: this.$login.f.f_fengongsi
345
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
346
346
  }
347
347
  }),
348
348
  // showModal: false, // 控制发起类型选择
@@ -532,7 +532,7 @@ export default {
532
532
  condition: this.$refs.cp.$refs.cri.condition,
533
533
  data: {
534
534
  userid: this.$login.f.id,
535
- f_filiale: this.$login.f.f_fengongsi
535
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
536
536
  }
537
537
  }
538
538
  }