vue2-client 1.9.75 → 1.9.76
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
|
@@ -85,13 +85,13 @@ export default {
|
|
|
85
85
|
* @param businessType 新增还是修改
|
|
86
86
|
*/
|
|
87
87
|
init ({
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
groups,
|
|
89
|
+
modifyModelData = {},
|
|
90
|
+
serviceName = process.env.VUE_APP_SYSTEM_NAME,
|
|
91
|
+
env = 'prod',
|
|
92
|
+
showLeftTab = false,
|
|
93
|
+
businessType = '新增'
|
|
94
|
+
}) {
|
|
95
95
|
Object.assign(this, { groups, modifyModelData, serviceName, env, showLeftTab, businessType })
|
|
96
96
|
this.initView()
|
|
97
97
|
this.$nextTick(() => {
|
|
@@ -170,8 +170,15 @@ export default {
|
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
// xfromitem 一路传递上来的事件
|
|
173
|
-
emitFunc (func, data) {
|
|
174
|
-
|
|
173
|
+
emitFunc (func, data, index) {
|
|
174
|
+
let value = null
|
|
175
|
+
try {
|
|
176
|
+
if (data && data.model && this.$refs[`nativeForm-${index}`]) {
|
|
177
|
+
value = this.$refs[`nativeForm-${index}`]?.form[data.model]
|
|
178
|
+
}
|
|
179
|
+
this.$emit(func, data, value)
|
|
180
|
+
} catch (error) { console.error(error) }
|
|
181
|
+
this.$emit('x-form-item-emit-func', func, data, value)
|
|
175
182
|
},
|
|
176
183
|
// 提交表单
|
|
177
184
|
asyncSubmit () {
|