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,158 +1,158 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <div :class="showData ? 'top' : 'auto'">
5
- <exploration-select v-ref:query :show-data="showData"></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
- data () {
40
- return {
41
- showData: true, // 控制列表数据
42
- showtotal: false, // 详情显示
43
- selectdata: {},
44
- xmlname: '', // 配置文件名
45
- active: 0 // 配置文件名
46
- }
47
- },
48
- ready () {
49
- console.log('=============用户信息=================')
50
- console.log(this.$login.f)
51
- console.log(this.$login.r)
52
- },
53
- methods: {
54
- // 获取页面配置json文件
55
- async loadName () {
56
-
57
- let data = {
58
- workname: this.selectdata.processname
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
67
- }
68
- },
69
- events: {
70
- 'locationclick' (res) {
71
- console.log('/*/*/*/*/*/*/*/*/*/*/*/*/*/**/*/*/*/*')
72
- if (res.pname){
73
- this.$refs.service.setLabelValue('定位地址', res.pname + res.cityname + res.adname + res.address + res.name)
74
- }else {
75
- this.$refs.service.setLabelValue('定位地址', res.province + res.city + res.address + res.name)
76
- }
77
- this.$refs.service.show_data.f_lng = res.location.lng
78
- this.$refs.service.show_data.f_lat = res.location.lat
79
- this.active = 0
80
- },
81
- 'onMessage' (data) {
82
- console.log('接收消息')
83
- console.log(data)
84
- if (data.type === 'apply-task') {
85
- this.$refs.query.$refs.cp.$refs.cri.search()
86
- }
87
- },
88
- // 刷新控制层
89
- async 'breakControl' (servicedata) {
90
-
91
- if (servicedata.id) {
92
- let data = {
93
- condition: `u.id = ${servicedata.id}`,
94
- data: {
95
- userid: this.$login.f.id,
96
- f_filiale: this.$login.f.f_fengongsi
97
- }
98
- }
99
- let res = await this.$resetpost(
100
- 'rs/sql/checkuser',
101
- {data: data},
102
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
103
- )
104
-
105
- this.selectdata = res.data[0]
106
- } else {
107
- this.selectdata = servicedata
108
- }
109
-
110
- this.showtotal = false
111
- this.$nextTick(() => {
112
- this.showtotal = true
113
- })
114
-
115
- },
116
- // 初始化
117
- async 'apply' (val) {
118
- this.showtotal = false
119
- this.selectdata = val
120
-
121
- // 次方法必须同步执行,否则后续会出问题
122
- // 获取页面json配置文件
123
- await this.loadName()
124
-
125
- // 显示详细
126
- this.showtotal = true
127
- // 关闭列表数据
128
- this.showData = false
129
- // 关闭分页
130
- this.$refs.query.$refs.cp.pager = false
131
- },
132
- 'search' () {
133
- this.selectdata = {}
134
- // 关闭详细
135
- this.showtotal = false
136
- // 显示列表数据
137
- this.showData = true
138
- // 显示分页
139
- this.$refs.query.$refs.cp.pager = true
140
- // 调用查询
141
- this.$refs.query.$refs.cp.$refs.cri.search()
142
- },
143
- 'loadPage' () {
144
- this.selectdata = {}
145
- // 关闭详细
146
- this.showtotal = false
147
- // 显示列表数据
148
- this.showData = true
149
- // 显示分页
150
- this.$refs.query.$refs.cp.pager = true
151
- // 调用查询
152
- this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
153
- }
154
- },
155
- watch: {
156
- }
157
- }
158
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <div :class="showData ? 'top' : 'auto'">
5
+ <exploration-select v-ref:query :show-data="showData"></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
+ data () {
40
+ return {
41
+ showData: true, // 控制列表数据
42
+ showtotal: false, // 详情显示
43
+ selectdata: {},
44
+ xmlname: '', // 配置文件名
45
+ active: 0 // 配置文件名
46
+ }
47
+ },
48
+ ready () {
49
+ console.log('=============用户信息=================')
50
+ console.log(this.$login.f)
51
+ console.log(this.$login.r)
52
+ },
53
+ methods: {
54
+ // 获取页面配置json文件
55
+ async loadName () {
56
+
57
+ let data = {
58
+ workname: this.selectdata.processname
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
67
+ }
68
+ },
69
+ events: {
70
+ 'locationclick' (res) {
71
+ console.log('/*/*/*/*/*/*/*/*/*/*/*/*/*/**/*/*/*/*')
72
+ if (res.pname){
73
+ this.$refs.service.setLabelValue('定位地址', res.pname + res.cityname + res.adname + res.address + res.name)
74
+ }else {
75
+ this.$refs.service.setLabelValue('定位地址', res.province + res.city + res.address + res.name)
76
+ }
77
+ this.$refs.service.show_data.f_lng = res.location.lng
78
+ this.$refs.service.show_data.f_lat = res.location.lat
79
+ this.active = 0
80
+ },
81
+ 'onMessage' (data) {
82
+ console.log('接收消息')
83
+ console.log(data)
84
+ if (data.type === 'apply-task') {
85
+ this.$refs.query.$refs.cp.$refs.cri.search()
86
+ }
87
+ },
88
+ // 刷新控制层
89
+ async 'breakControl' (servicedata) {
90
+
91
+ if (servicedata.id) {
92
+ let data = {
93
+ condition: `u.id = ${servicedata.id}`,
94
+ data: {
95
+ userid: this.$login.f.id,
96
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
97
+ }
98
+ }
99
+ let res = await this.$resetpost(
100
+ 'rs/sql/checkuser',
101
+ {data: data},
102
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
103
+ )
104
+
105
+ this.selectdata = res.data[0]
106
+ } else {
107
+ this.selectdata = servicedata
108
+ }
109
+
110
+ this.showtotal = false
111
+ this.$nextTick(() => {
112
+ this.showtotal = true
113
+ })
114
+
115
+ },
116
+ // 初始化
117
+ async 'apply' (val) {
118
+ this.showtotal = false
119
+ this.selectdata = val
120
+
121
+ // 次方法必须同步执行,否则后续会出问题
122
+ // 获取页面json配置文件
123
+ await this.loadName()
124
+
125
+ // 显示详细
126
+ this.showtotal = true
127
+ // 关闭列表数据
128
+ this.showData = false
129
+ // 关闭分页
130
+ this.$refs.query.$refs.cp.pager = false
131
+ },
132
+ 'search' () {
133
+ this.selectdata = {}
134
+ // 关闭详细
135
+ this.showtotal = false
136
+ // 显示列表数据
137
+ this.showData = true
138
+ // 显示分页
139
+ this.$refs.query.$refs.cp.pager = true
140
+ // 调用查询
141
+ this.$refs.query.$refs.cp.$refs.cri.search()
142
+ },
143
+ 'loadPage' () {
144
+ this.selectdata = {}
145
+ // 关闭详细
146
+ this.showtotal = false
147
+ // 显示列表数据
148
+ this.showData = true
149
+ // 显示分页
150
+ this.$refs.query.$refs.cp.pager = true
151
+ // 调用查询
152
+ this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
153
+ }
154
+ },
155
+ watch: {
156
+ }
157
+ }
158
+ </script>