meixioacomponent 0.2.39 → 0.2.40
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/lib/meixioacomponent.common.js +21392 -158
- package/lib/meixioacomponent.umd.js +21392 -158
- package/lib/meixioacomponent.umd.min.js +137 -6
- package/package.json +1 -1
- package/packages/components/base/baseArea/baseArea.vue +12 -9
- package/packages/components/base/baseUpload/baseUploadItem.vue +1 -1
- package/packages/components/proForm/proForm/pro_form.vue +6 -9
package/package.json
CHANGED
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
</template>
|
|
93
93
|
|
|
94
94
|
<script>
|
|
95
|
+
import { json } from "body-parser";
|
|
95
96
|
import baseButtonHandleVue from "../baseButtonHandle/baseButtonHandle.vue";
|
|
96
97
|
//
|
|
97
98
|
import areaJson from "./area";
|
|
@@ -134,7 +135,6 @@ export default {
|
|
|
134
135
|
computed: {
|
|
135
136
|
module: {
|
|
136
137
|
set(val) {
|
|
137
|
-
console.log(val);
|
|
138
138
|
this.$emit("input", val);
|
|
139
139
|
},
|
|
140
140
|
get() {
|
|
@@ -340,15 +340,18 @@ export default {
|
|
|
340
340
|
for (let i = 0; i < this.areaValue.length; i++) {
|
|
341
341
|
value[`${areaConfig[i].value}`] = this.areaValue[i].label;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
|
|
344
|
+
if (JSON.stringify(value) != "{}") {
|
|
344
345
|
this.module = value;
|
|
345
346
|
}
|
|
346
|
-
|
|
347
|
-
this.$
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
347
|
+
this.$nextTick(() => {
|
|
348
|
+
if (this.$parent.$options._componentTag == "el-form-item") {
|
|
349
|
+
this.$emit("confirmAreaValue");
|
|
350
|
+
} else {
|
|
351
|
+
this.$emit("confirmAreaValue", value);
|
|
352
|
+
this.doClose();
|
|
353
|
+
}
|
|
354
|
+
});
|
|
352
355
|
},
|
|
353
356
|
|
|
354
357
|
doClose() {
|
|
@@ -377,7 +380,7 @@ export default {
|
|
|
377
380
|
watch: {
|
|
378
381
|
module(newVal, oldVal) {
|
|
379
382
|
if (!newVal) {
|
|
380
|
-
this.areaValue=[];
|
|
383
|
+
this.areaValue = [];
|
|
381
384
|
return;
|
|
382
385
|
}
|
|
383
386
|
if (this.$parent.$options._componentTag == "el-form-item") {
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
</el-form-item>
|
|
58
58
|
</div>
|
|
59
59
|
|
|
60
|
-
|
|
61
60
|
<baseButtonHandleVue
|
|
62
61
|
v-if="footer"
|
|
63
62
|
:align="`end`"
|
|
@@ -256,6 +255,7 @@ export default {
|
|
|
256
255
|
}
|
|
257
256
|
},
|
|
258
257
|
submitVerifiData(params) {
|
|
258
|
+
console.log(params);
|
|
259
259
|
if (this.$props.rules) {
|
|
260
260
|
// element 验证单条表单修改
|
|
261
261
|
let confrim = true;
|
|
@@ -263,15 +263,12 @@ export default {
|
|
|
263
263
|
if (rulesItem) {
|
|
264
264
|
console.log(rulesItem);
|
|
265
265
|
console.log(this.$refs.form);
|
|
266
|
-
this.$refs.form.validateField(
|
|
267
|
-
|
|
268
|
-
(errorMsg)
|
|
269
|
-
|
|
270
|
-
if (errorMsg) {
|
|
271
|
-
confrim = false;
|
|
272
|
-
}
|
|
266
|
+
this.$refs.form.validateField(`${params.config.key}`, (errorMsg) => {
|
|
267
|
+
console.log(errorMsg);
|
|
268
|
+
if (errorMsg) {
|
|
269
|
+
confrim = false;
|
|
273
270
|
}
|
|
274
|
-
);
|
|
271
|
+
});
|
|
275
272
|
}
|
|
276
273
|
return confrim;
|
|
277
274
|
} else {
|