meixioacomponent 0.2.39 → 0.2.42
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 +21490 -253
- package/lib/meixioacomponent.umd.js +21490 -253
- 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/base/upload/upload.vue +11 -9
- package/packages/components/base/upload/uploadItem.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") {
|
|
@@ -93,20 +93,22 @@ export default {
|
|
|
93
93
|
this.isDown = !this.isDown;
|
|
94
94
|
},
|
|
95
95
|
async startUpload() {
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
let uploadArray = this.$props.uploadArray;
|
|
97
|
+
for (let i = 0; i < uploadArray.length; i++) {
|
|
98
|
+
let item = uploadArray[i];
|
|
98
99
|
this.createUpload(item);
|
|
99
100
|
}
|
|
100
101
|
},
|
|
101
102
|
|
|
102
103
|
appendUploadItem(list) {
|
|
104
|
+
let uploadArray = this.$props.uploadArray;
|
|
103
105
|
if (list instanceof Array) {
|
|
104
106
|
list.forEach((item) => {
|
|
105
|
-
|
|
107
|
+
uploadArray.push(item);
|
|
106
108
|
this.createUpload(item);
|
|
107
109
|
});
|
|
108
110
|
} else {
|
|
109
|
-
|
|
111
|
+
uploadArray.push(list);
|
|
110
112
|
}
|
|
111
113
|
},
|
|
112
114
|
createUpload(uploadItem) {
|
|
@@ -158,17 +160,17 @@ export default {
|
|
|
158
160
|
},
|
|
159
161
|
|
|
160
162
|
uploadEd() {
|
|
161
|
-
let
|
|
163
|
+
let uploadArray = this.$props.uploadArray;
|
|
164
|
+
let flag = uploadArray.every((item) => {
|
|
162
165
|
return !item.upload || item.upload.state != 0;
|
|
163
166
|
});
|
|
164
167
|
if (flag) {
|
|
165
168
|
if (this.$props.uploadEdEvent) {
|
|
166
|
-
|
|
169
|
+
uploadArray = uploadArray.filter((item) => {
|
|
167
170
|
return item.process == 100 || !item.upload;
|
|
168
171
|
});
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
this.$props.uploadEdEvent(list);
|
|
172
|
+
|
|
173
|
+
this.$props.uploadEdEvent(uploadArray);
|
|
172
174
|
}
|
|
173
175
|
}
|
|
174
176
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="item-wrap" :class="[type]">
|
|
3
3
|
<div class="item-type">
|
|
4
|
-
<svg
|
|
4
|
+
<base-svg class="svg" :icon-class="`${svgKey}`"></base-svg>
|
|
5
5
|
</div>
|
|
6
6
|
<div class="item-content">
|
|
7
7
|
<div class="item-info">
|
|
@@ -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 {
|