vue2-client 1.14.90 → 1.14.92
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.
- package/package.json +1 -1
- package/src/pages/WorkflowDetail/WorkFlowDemo2.vue +7 -5
- package/src/pages/WorkflowDetail/WorkflowDetail.vue +2 -10
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +1 -7
- package/src/pages/addressSelect/index.vue +2 -2
- package/src/router/async/router.map.js +2 -2
package/package.json
CHANGED
@@ -27,9 +27,9 @@
|
|
27
27
|
ref="workFlow"
|
28
28
|
@success="success"
|
29
29
|
@x-form-item-emit-func="handleFormItemEvent"
|
30
|
-
@address-selected="handleAddressSelected"
|
31
30
|
>
|
32
31
|
</WorkflowDetail>
|
32
|
+
<address-select ref="addressSelect" @setAddress="setForm"></address-select>
|
33
33
|
</a-card>
|
34
34
|
</template>
|
35
35
|
|
@@ -39,13 +39,15 @@ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XF
|
|
39
39
|
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
40
40
|
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
41
41
|
import { mapState } from 'vuex'
|
42
|
+
import AddressSelect from '@vue2-client/pages/addressSelect/index.vue'
|
42
43
|
|
43
44
|
export default {
|
44
45
|
name: 'Apply',
|
45
46
|
components: {
|
46
47
|
XFormTable,
|
47
48
|
XAddNativeForm,
|
48
|
-
WorkflowDetail
|
49
|
+
WorkflowDetail,
|
50
|
+
AddressSelect
|
49
51
|
},
|
50
52
|
data () {
|
51
53
|
return {
|
@@ -94,11 +96,11 @@ export default {
|
|
94
96
|
handleFormItemEvent (func, data, value) {
|
95
97
|
console.log('打印一下:', func, data, value)
|
96
98
|
if (func === 'selectAddress') {
|
97
|
-
this.$refs.
|
99
|
+
this.$refs.addressSelect.setFormShow()
|
98
100
|
}
|
99
101
|
},
|
100
|
-
|
101
|
-
this.$refs.workFlow.
|
102
|
+
setForm (record) {
|
103
|
+
this.$refs.workFlow.setFormValue({ address: record.f_address })
|
102
104
|
}
|
103
105
|
}
|
104
106
|
}
|
@@ -49,7 +49,6 @@
|
|
49
49
|
@success="success"
|
50
50
|
@nextClick="nextClick"
|
51
51
|
@x-form-item-emit-func="handleFormItemEvent"
|
52
|
-
@address-selected="handleAddressSelected"
|
53
52
|
class="handle-content"
|
54
53
|
/>
|
55
54
|
</template>
|
@@ -154,7 +153,7 @@ export default {
|
|
154
153
|
visible: false
|
155
154
|
}
|
156
155
|
},
|
157
|
-
expose: ['
|
156
|
+
expose: ['setFormValue'],
|
158
157
|
computed: {
|
159
158
|
...mapState('account', { currUser: 'user' }),
|
160
159
|
...mapState('setting', ['isMobile'])
|
@@ -249,15 +248,8 @@ export default {
|
|
249
248
|
handleFormItemEvent (func, data, value) {
|
250
249
|
this.$emit('x-form-item-emit-func', func, data, value)
|
251
250
|
},
|
252
|
-
handleAddressSelected (record) {
|
253
|
-
this.$emit('address-selected', record)
|
254
|
-
},
|
255
|
-
// 选择地址弹出框方法
|
256
|
-
openAddressSelect () {
|
257
|
-
this.$refs.workflowHandle.$refs.addressSelect.setFormShow()
|
258
|
-
},
|
259
251
|
// 给地址选择表单项赋值
|
260
|
-
|
252
|
+
setFormValue (record) {
|
261
253
|
this.$refs.workflowHandle.$refs.xAddForm.setForm(record)
|
262
254
|
}
|
263
255
|
}
|
@@ -215,7 +215,6 @@
|
|
215
215
|
</a-tab-pane>
|
216
216
|
</a-tabs>
|
217
217
|
</template>
|
218
|
-
<address-select ref="addressSelect" @selAddress="setFormValue"></address-select>
|
219
218
|
</div>
|
220
219
|
</template>
|
221
220
|
|
@@ -239,7 +238,6 @@ import * as util from '@vue2-client/utils/util'
|
|
239
238
|
import { getConfigByNameAsync, runLogic } from '@vue2-client/services/api/common'
|
240
239
|
import XTab from '@vue2-client/base-client/components/common/XTab/XTab.vue'
|
241
240
|
import WorkFlowPreview from './WorkFlowPreview'
|
242
|
-
import AddressSelect from '@vue2-client/pages/addressSelect/index.vue'
|
243
241
|
|
244
242
|
export default {
|
245
243
|
name: 'WorkFlowHandle',
|
@@ -253,8 +251,7 @@ export default {
|
|
253
251
|
FilePreview,
|
254
252
|
FileItem,
|
255
253
|
ImageItem,
|
256
|
-
WorkFlowPreview
|
257
|
-
AddressSelect
|
254
|
+
WorkFlowPreview
|
258
255
|
},
|
259
256
|
computed: {
|
260
257
|
...mapState('account', { currUser: 'user' }),
|
@@ -1042,9 +1039,6 @@ export default {
|
|
1042
1039
|
},
|
1043
1040
|
formItemEmitFunc (func, data, value) {
|
1044
1041
|
this.$emit('x-form-item-emit-func', func, data, value)
|
1045
|
-
},
|
1046
|
-
setFormValue (record) {
|
1047
|
-
this.$emit('address-selected', record)
|
1048
1042
|
}
|
1049
1043
|
},
|
1050
1044
|
watch: {}
|
@@ -60,7 +60,7 @@ export default {
|
|
60
60
|
f_address_id: record.tua_id
|
61
61
|
}
|
62
62
|
console.log('选择了地址是', form)
|
63
|
-
this.$emit('
|
63
|
+
this.$emit('setAddress', form)
|
64
64
|
this.selectAddressVisible = false
|
65
65
|
},
|
66
66
|
addAddress () {
|
@@ -136,7 +136,7 @@ export default {
|
|
136
136
|
if (res) {
|
137
137
|
this.$message.success(`${this.addAddressMsg}成功`)
|
138
138
|
this.addAddressFlag = false
|
139
|
-
this.
|
139
|
+
this.$refs.selAddressXFormTable.refreshTable(true)
|
140
140
|
}
|
141
141
|
})
|
142
142
|
},
|
@@ -55,7 +55,7 @@ routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynami
|
|
55
55
|
routerResource.example = {
|
56
56
|
path: 'example',
|
57
57
|
name: '示例主页面',
|
58
|
-
|
58
|
+
component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo2.vue'),
|
59
59
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
60
60
|
// component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
|
61
61
|
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
@@ -70,7 +70,7 @@ routerResource.example = {
|
|
70
70
|
// component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
|
71
71
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
72
72
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
73
|
-
component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
|
73
|
+
// component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
|
74
74
|
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
75
75
|
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
76
76
|
// component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
|