vue2-client 1.15.30 → 1.15.32
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
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<a-tabs
|
4
4
|
:tabBarGutter="tabBarGutter"
|
5
5
|
:activeKey="activeKey"
|
6
|
-
@change="tabPaneChange"
|
6
|
+
@change="(activeKey) => tabPaneChange(activeKey, false)"
|
7
7
|
:hideAdd="true"
|
8
8
|
:tabBarStyle="{ display: showTabBar ? 'block' : 'none' }"
|
9
9
|
>
|
@@ -68,7 +68,7 @@ export default {
|
|
68
68
|
},
|
69
69
|
mounted () {
|
70
70
|
this.activeKey = this.defaultActiveKey
|
71
|
-
this.tabPaneChange('initTabLoading')
|
71
|
+
this.tabPaneChange('initTabLoading', true)
|
72
72
|
},
|
73
73
|
methods: {
|
74
74
|
// 自定义函数中调用的方法 这个不能删
|
@@ -80,7 +80,7 @@ export default {
|
|
80
80
|
getRealKeyData,
|
81
81
|
getConfigByName,
|
82
82
|
getConfigByNameAsync,
|
83
|
-
tabPaneChange (newKey) {
|
83
|
+
tabPaneChange (newKey, initStatus = false) {
|
84
84
|
let result = {}
|
85
85
|
if (this.activeKey === newKey) {
|
86
86
|
return
|
@@ -161,6 +161,9 @@ export default {
|
|
161
161
|
} else {
|
162
162
|
this.activeKey = newKey
|
163
163
|
}
|
164
|
+
if (initStatus) {
|
165
|
+
this.activeKey = this.defaultActiveKey
|
166
|
+
}
|
164
167
|
},
|
165
168
|
initConfig () {
|
166
169
|
if (this.configName) {
|
@@ -19,6 +19,7 @@ export default {
|
|
19
19
|
return {
|
20
20
|
selectAddressVisible: false,
|
21
21
|
addAddressFlag: false,
|
22
|
+
confirmLoading: false,
|
22
23
|
form: {
|
23
24
|
f_address_type: '',
|
24
25
|
f_residential_area_id: '',
|
@@ -120,25 +121,36 @@ export default {
|
|
120
121
|
this.$message.warning('请选择小区')
|
121
122
|
return
|
122
123
|
}
|
123
|
-
this.
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
124
|
+
this.confirmLoading = true
|
125
|
+
try {
|
126
|
+
this.deleteAddressData()
|
127
|
+
runLogic('addAddress', Object.assign({}, this.form, {
|
128
|
+
f_address: this.generateAddressString()
|
129
|
+
}, {
|
130
|
+
orgid: this.currUser.orgid,
|
131
|
+
f_orgid: this.currUser.orgid,
|
132
|
+
f_orgname: this.currUser.orgs,
|
133
|
+
f_depid: this.currUser.depids,
|
134
|
+
f_depname: this.currUser.deps,
|
135
|
+
f_operatorid: this.currUser.id,
|
136
|
+
f_operator: this.currUser.name,
|
137
|
+
f_filialeid: this.currUser.orgid
|
138
|
+
}), 'af-revenue').then(res => {
|
139
|
+
if (res) {
|
140
|
+
this.$message.success(`${this.addAddressMsg}成功`)
|
141
|
+
}
|
142
|
+
}).catch(() => {
|
143
|
+
this.$message.error('添加地址失败')
|
144
|
+
}).finally(() => {
|
145
|
+
this.confirmLoading = false
|
138
146
|
this.addAddressFlag = false
|
139
147
|
this.$refs.selAddressXFormTable.refreshTable(true)
|
140
|
-
}
|
141
|
-
})
|
148
|
+
})
|
149
|
+
} catch (error) {
|
150
|
+
this.$message.error('添加地址失败')
|
151
|
+
this.confirmLoading = false
|
152
|
+
this.addAddressFlag = false
|
153
|
+
}
|
142
154
|
},
|
143
155
|
// 删除 addressData 中存在 addressModel 不存在的字段
|
144
156
|
deleteAddressData () {
|
@@ -215,6 +227,8 @@ export default {
|
|
215
227
|
:dialog-style="{ top: '30px' }"
|
216
228
|
:z-index="1005"
|
217
229
|
@ok="addressSubmit"
|
230
|
+
:ok-button-props="{ loading: confirmLoading }"
|
231
|
+
:confirm-loading="confirmLoading"
|
218
232
|
@cancel="addAddressFlag = false"
|
219
233
|
title="新增地址信息"
|
220
234
|
:destroyOnClose="true">
|