meixioacomponent 0.3.42 → 0.3.44
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 +406 -380
- package/lib/meixioacomponent.umd.js +406 -380
- package/lib/meixioacomponent.umd.min.js +28 -28
- package/lib/style/element/index.css +5 -1
- package/package.json +1 -1
- package/packages/components/base/baseArea/baseArea.vue +109 -108
- package/packages/components/base/baseLineInfoGroup/baseLineInfoGroup.vue +17 -14
- package/packages/components/base/baseLineInfoItem/baseLineInfoItem.vue +21 -1
- package/packages/components/base/baseUpload/baseUpload.vue +15 -12
- package/packages/components/base/baseUpload/baseUploadItem.vue +73 -70
- package/packages/components/base/baseUpload/mixins.js +10 -3
- package/packages/components/proForm/proForm/pro_form_item.vue +5 -1
- package/packages/components/proPageTable/oa_pro_table.vue +6 -5
- package/packages/components/style/element/index.css +5 -1
- package/src/App.vue +20 -1
- package/src/component/test.vue +54 -60
- package/src/main.js +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
ref="inputFile"
|
|
11
11
|
:accept="accept"
|
|
12
12
|
@change="valueChange"
|
|
13
|
-
style="display: none"
|
|
13
|
+
style="display: none;"
|
|
14
14
|
v-if="type == 'upload'"
|
|
15
15
|
:multiple="uploadType == 'single' ? false : true"
|
|
16
16
|
/>
|
|
@@ -31,10 +31,11 @@
|
|
|
31
31
|
:name="`el-icon-upload`"
|
|
32
32
|
></base-icon>
|
|
33
33
|
<div class="upload-notic-wrap" :class="{ disabled: disabled }">
|
|
34
|
-
<span @click="clickFile"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
>
|
|
34
|
+
<span @click="clickFile">
|
|
35
|
+
点击上传
|
|
36
|
+
<br />
|
|
37
|
+
</span>
|
|
38
|
+
<span class="primary-color">或点击该处后Ctrl+V 黏贴QQ或微信截图</span>
|
|
38
39
|
</div>
|
|
39
40
|
</div>
|
|
40
41
|
</div>
|
|
@@ -59,15 +60,16 @@
|
|
|
59
60
|
</template>
|
|
60
61
|
|
|
61
62
|
<script>
|
|
62
|
-
import baseImgVue from
|
|
63
|
+
import baseImgVue from '../baseImg/baseImg.vue'
|
|
63
64
|
|
|
64
|
-
import { baseUploadMixins } from
|
|
65
|
+
import { baseUploadMixins } from './mixins'
|
|
65
66
|
export default {
|
|
66
|
-
name:
|
|
67
|
+
name: 'baseUploadItem',
|
|
67
68
|
data() {
|
|
68
|
-
return {}
|
|
69
|
+
return {}
|
|
69
70
|
},
|
|
70
|
-
|
|
71
|
+
|
|
72
|
+
mounted() {},
|
|
71
73
|
mixins: [baseUploadMixins],
|
|
72
74
|
components: {
|
|
73
75
|
baseImgVue,
|
|
@@ -75,17 +77,17 @@ export default {
|
|
|
75
77
|
props: {
|
|
76
78
|
type: {
|
|
77
79
|
type: String,
|
|
78
|
-
default:
|
|
80
|
+
default: 'upload',
|
|
79
81
|
},
|
|
80
82
|
|
|
81
83
|
uploadType: {
|
|
82
84
|
type: String,
|
|
83
|
-
default:
|
|
85
|
+
default: 'single',
|
|
84
86
|
},
|
|
85
87
|
|
|
86
88
|
fileType: {
|
|
87
89
|
type: String,
|
|
88
|
-
default:
|
|
90
|
+
default: 'other',
|
|
89
91
|
},
|
|
90
92
|
|
|
91
93
|
uploadItem: {},
|
|
@@ -93,7 +95,7 @@ export default {
|
|
|
93
95
|
shape: {
|
|
94
96
|
// square rect cir
|
|
95
97
|
type: String,
|
|
96
|
-
default:
|
|
98
|
+
default: 'rect',
|
|
97
99
|
},
|
|
98
100
|
|
|
99
101
|
value: {
|
|
@@ -108,124 +110,120 @@ export default {
|
|
|
108
110
|
type: Boolean,
|
|
109
111
|
default: false,
|
|
110
112
|
},
|
|
113
|
+
isGroup: {
|
|
114
|
+
default: false,
|
|
115
|
+
},
|
|
111
116
|
},
|
|
112
117
|
computed: {
|
|
113
118
|
module: {
|
|
114
119
|
get() {
|
|
115
|
-
return this.$props.value
|
|
120
|
+
return this.$props.value
|
|
116
121
|
},
|
|
117
122
|
set(val) {
|
|
118
|
-
this.$emit(
|
|
123
|
+
this.$emit('input', val)
|
|
119
124
|
},
|
|
120
125
|
},
|
|
121
126
|
|
|
122
127
|
imgSrc() {
|
|
123
|
-
if (this.
|
|
124
|
-
|
|
125
|
-
return "";
|
|
126
|
-
}
|
|
127
|
-
return this.uploadItem.url;
|
|
128
|
+
if (this.module) {
|
|
129
|
+
return this.module[0]?.url
|
|
128
130
|
} else {
|
|
129
|
-
return this.
|
|
131
|
+
return this.uploadItem.url
|
|
130
132
|
}
|
|
131
133
|
},
|
|
132
134
|
|
|
133
135
|
accept() {
|
|
134
|
-
let accept =
|
|
135
|
-
let fileType = this.$props.fileType
|
|
136
|
+
let accept = ''
|
|
137
|
+
let fileType = this.$props.fileType
|
|
136
138
|
switch (fileType) {
|
|
137
|
-
case
|
|
138
|
-
accept =
|
|
139
|
-
break
|
|
140
|
-
case
|
|
141
|
-
accept =
|
|
142
|
-
break
|
|
139
|
+
case 'img':
|
|
140
|
+
accept = 'image/*'
|
|
141
|
+
break
|
|
142
|
+
case 'other':
|
|
143
|
+
accept = ''
|
|
144
|
+
break
|
|
143
145
|
default:
|
|
144
|
-
break
|
|
146
|
+
break
|
|
145
147
|
}
|
|
146
|
-
return accept
|
|
148
|
+
return accept
|
|
147
149
|
},
|
|
148
150
|
|
|
149
151
|
isUploadProImg() {
|
|
150
|
-
let props = this.$props
|
|
152
|
+
let props = this.$props
|
|
151
153
|
return (
|
|
152
|
-
props.shape ==
|
|
153
|
-
props.fileType ==
|
|
154
|
-
props.uploadType ==
|
|
155
|
-
)
|
|
156
|
-
},
|
|
157
|
-
|
|
158
|
-
isGroup() {
|
|
159
|
-
return this.$parent.$options.name == "baseUpload";
|
|
154
|
+
props.shape == 'pro' &&
|
|
155
|
+
props.fileType == 'img' &&
|
|
156
|
+
props.uploadType == 'single'
|
|
157
|
+
)
|
|
160
158
|
},
|
|
161
159
|
},
|
|
162
160
|
methods: {
|
|
163
161
|
clickFile() {
|
|
164
|
-
const { disabled } = this.$props
|
|
165
|
-
if (disabled) return
|
|
166
|
-
this.$refs.inputFile.click()
|
|
162
|
+
const { disabled } = this.$props
|
|
163
|
+
if (disabled) return
|
|
164
|
+
this.$refs.inputFile.click()
|
|
167
165
|
},
|
|
168
166
|
|
|
169
167
|
async returnFiles(files) {
|
|
170
|
-
let list = []
|
|
168
|
+
let list = []
|
|
171
169
|
for (let i = 0; i < files.length; i++) {
|
|
172
170
|
let obj = {
|
|
173
171
|
url: null,
|
|
174
172
|
process: 0,
|
|
175
173
|
file: files[i],
|
|
176
|
-
}
|
|
177
|
-
list.push(obj)
|
|
174
|
+
}
|
|
175
|
+
list.push(obj)
|
|
178
176
|
}
|
|
179
|
-
return list
|
|
177
|
+
return list
|
|
180
178
|
},
|
|
181
179
|
|
|
182
180
|
async valueChange(e) {
|
|
183
|
-
let files = e.target.files
|
|
184
|
-
let list = await this.returnFiles(files)
|
|
185
|
-
this.emitEvent(list)
|
|
186
|
-
this.$refs.inputFile.value =
|
|
181
|
+
let files = e.target.files
|
|
182
|
+
let list = await this.returnFiles(files)
|
|
183
|
+
this.emitEvent(list)
|
|
184
|
+
this.$refs.inputFile.value = ''
|
|
187
185
|
},
|
|
188
186
|
|
|
189
187
|
emitEvent(list) {
|
|
190
188
|
if (this.isGroup) {
|
|
191
|
-
this.$emit(
|
|
189
|
+
this.$emit('inputChange', list)
|
|
192
190
|
} else {
|
|
193
|
-
this.inputChange(list)
|
|
191
|
+
this.inputChange(list)
|
|
194
192
|
}
|
|
195
193
|
},
|
|
196
194
|
|
|
197
195
|
handleDeleteUploadItem() {
|
|
198
196
|
if (this.isGroup) {
|
|
199
|
-
this.$emit(
|
|
197
|
+
this.$emit('handleDeleteUploadItem')
|
|
200
198
|
} else {
|
|
201
|
-
this.module = []
|
|
199
|
+
this.module = []
|
|
202
200
|
}
|
|
203
201
|
},
|
|
204
202
|
|
|
205
203
|
async onPasteFile() {
|
|
206
|
-
const { disabled } = this.$props
|
|
207
|
-
if (this.uploadLoading || disabled) return
|
|
208
|
-
const items = (event.clipboardData || window.clipboardData).items
|
|
209
|
-
const rowList = []
|
|
210
|
-
if (this.fileType ==
|
|
204
|
+
const { disabled } = this.$props
|
|
205
|
+
if (this.uploadLoading || disabled) return
|
|
206
|
+
const items = (event.clipboardData || window.clipboardData).items
|
|
207
|
+
const rowList = []
|
|
208
|
+
if (this.fileType == 'img') {
|
|
211
209
|
for (var i = 0; i < items.length; i++) {
|
|
212
|
-
if (items[i].type.indexOf(
|
|
213
|
-
let file = items[i].getAsFile()
|
|
214
|
-
rowList.push(file)
|
|
210
|
+
if (items[i].type.indexOf('image') !== -1) {
|
|
211
|
+
let file = items[i].getAsFile() // getAsFile 如果拖拽项的对象是一个文件, 则返回 File 对象; 否则返回 null
|
|
212
|
+
rowList.push(file)
|
|
215
213
|
}
|
|
216
214
|
}
|
|
217
215
|
} else {
|
|
218
216
|
for (var i = 0; i < items.length; i++) {
|
|
219
|
-
let file = items[i].getAsFile()
|
|
220
|
-
rowList.push(file)
|
|
217
|
+
let file = items[i].getAsFile() // getAsFile 如果拖拽项的对象是一个文件, 则返回 File 对象; 否则返回 null
|
|
218
|
+
rowList.push(file)
|
|
221
219
|
}
|
|
222
220
|
}
|
|
223
|
-
if (rowList.length <= 0) return
|
|
224
|
-
let list = await this.returnFiles(rowList)
|
|
225
|
-
this.emitEvent(list)
|
|
221
|
+
if (rowList.length <= 0) return
|
|
222
|
+
let list = await this.returnFiles(rowList)
|
|
223
|
+
this.emitEvent(list)
|
|
226
224
|
},
|
|
227
225
|
},
|
|
228
|
-
}
|
|
226
|
+
}
|
|
229
227
|
</script>
|
|
230
228
|
|
|
231
229
|
<style lang="less" scoped>
|
|
@@ -309,6 +307,11 @@ export default {
|
|
|
309
307
|
height: auto;
|
|
310
308
|
display: none;
|
|
311
309
|
position: absolute;
|
|
310
|
+
border-radius: var(--radius);
|
|
311
|
+
background: rgba(0, 0, 0, 0.3);
|
|
312
|
+
/deep/ i {
|
|
313
|
+
color: var(--text-white) !important;
|
|
314
|
+
}
|
|
312
315
|
}
|
|
313
316
|
}
|
|
314
317
|
}
|
|
@@ -6,8 +6,12 @@ export const baseUploadMixins = {
|
|
|
6
6
|
dynamicmount: null,
|
|
7
7
|
};
|
|
8
8
|
},
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
created() {
|
|
10
|
+
},
|
|
11
|
+
mounted() {
|
|
12
|
+
|
|
13
|
+
},
|
|
14
|
+
beforeDestroy() { },
|
|
11
15
|
|
|
12
16
|
props: {
|
|
13
17
|
uploadPath: {
|
|
@@ -15,6 +19,7 @@ export const baseUploadMixins = {
|
|
|
15
19
|
return [0, 1];
|
|
16
20
|
},
|
|
17
21
|
},
|
|
22
|
+
|
|
18
23
|
},
|
|
19
24
|
computed: {
|
|
20
25
|
isMax() {
|
|
@@ -52,7 +57,9 @@ export const baseUploadMixins = {
|
|
|
52
57
|
},
|
|
53
58
|
|
|
54
59
|
uploadEd(list) {
|
|
55
|
-
this.
|
|
60
|
+
if (!this.isGroup) {
|
|
61
|
+
this.module = list;
|
|
62
|
+
}
|
|
56
63
|
this.uploadLoading = false;
|
|
57
64
|
this.$emit("uploadEd", list);
|
|
58
65
|
},
|
|
@@ -142,11 +142,12 @@
|
|
|
142
142
|
|
|
143
143
|
<span
|
|
144
144
|
v-else
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
class="cell-content-text"
|
|
146
|
+
:class="[
|
|
147
|
+
item.fun ? 'fun' : '',
|
|
148
|
+
item.click ? 'primary' : '',
|
|
149
|
+
item.color ? item.color : '',
|
|
150
|
+
]"
|
|
150
151
|
@click="rowClick(item, scope.row)"
|
|
151
152
|
>
|
|
152
153
|
{{ scope.row[`${item.key}`] }}
|
|
@@ -11513,7 +11513,7 @@
|
|
|
11513
11513
|
resize: vertical;
|
|
11514
11514
|
padding: var(--padding-2) var(--padding-3);
|
|
11515
11515
|
line-height: 1.5;
|
|
11516
|
-
border:
|
|
11516
|
+
border: 2px solid var(--color-gray-d) !important;
|
|
11517
11517
|
-webkit-box-sizing: border-box;
|
|
11518
11518
|
box-sizing: border-box;
|
|
11519
11519
|
width: 100%;
|
|
@@ -11527,6 +11527,10 @@
|
|
|
11527
11527
|
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
11528
11528
|
}
|
|
11529
11529
|
|
|
11530
|
+
.el-textarea__inner:hover {
|
|
11531
|
+
border-color: var(--color-primary) !important;
|
|
11532
|
+
}
|
|
11533
|
+
|
|
11530
11534
|
.el-textarea__inner::-webkit-input-placeholder {
|
|
11531
11535
|
color: #8f959e;
|
|
11532
11536
|
}
|
package/src/App.vue
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<div id="app">
|
|
3
3
|
<div style="height: 100vh;">
|
|
4
4
|
<test></test>
|
|
5
|
+
<!-- <base-upload v-model="test"></base-upload> -->
|
|
5
6
|
</div>
|
|
6
7
|
</div>
|
|
7
8
|
</template>
|
|
@@ -11,8 +12,9 @@ import test from './component/test.vue'
|
|
|
11
12
|
|
|
12
13
|
import BaseArea from '../packages/components/base/baseArea/baseArea.vue'
|
|
13
14
|
import BaseTimeLine from '../packages/components/base/baseTimeLine/baseTimeLine.vue'
|
|
15
|
+
import BaseUpload from '../packages/components/base/baseUpload/baseUpload.vue'
|
|
14
16
|
export default {
|
|
15
|
-
components: { test, BaseArea, BaseTimeLine },
|
|
17
|
+
components: { test, BaseArea, BaseTimeLine, BaseUpload },
|
|
16
18
|
data() {
|
|
17
19
|
return {
|
|
18
20
|
test: [],
|
|
@@ -28,6 +30,23 @@ export default {
|
|
|
28
30
|
value3: [],
|
|
29
31
|
|
|
30
32
|
flag: false,
|
|
33
|
+
infoList: [
|
|
34
|
+
{
|
|
35
|
+
label: '手机号(登录名)',
|
|
36
|
+
value: '18626860059',
|
|
37
|
+
key: 'phone',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: '姓名',
|
|
41
|
+
value: '余群',
|
|
42
|
+
key: 'accountname',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: '部门',
|
|
46
|
+
value: '技术部',
|
|
47
|
+
key: 'deptName',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
31
50
|
}
|
|
32
51
|
},
|
|
33
52
|
mounted() {},
|
package/src/component/test.vue
CHANGED
|
@@ -311,7 +311,7 @@ export default {
|
|
|
311
311
|
}
|
|
312
312
|
</style> -->
|
|
313
313
|
|
|
314
|
-
<template>
|
|
314
|
+
<!-- <template>
|
|
315
315
|
<div class="page-table-wrap" ref="pageTableWrap">
|
|
316
316
|
<base-pro-table
|
|
317
317
|
:align="`left`"
|
|
@@ -326,9 +326,9 @@ export default {
|
|
|
326
326
|
:headerConfig="headerConfig"
|
|
327
327
|
:totalPropsList="totalPropsList"
|
|
328
328
|
:proScreenConfig="proScreenConfig"
|
|
329
|
-
>
|
|
330
|
-
|
|
331
|
-
|
|
329
|
+
> -->
|
|
330
|
+
<!-- 表格头部插槽 -->
|
|
331
|
+
<!-- <template>
|
|
332
332
|
<base-icon
|
|
333
333
|
:color="`m`"
|
|
334
334
|
:event="true"
|
|
@@ -357,15 +357,15 @@ export default {
|
|
|
357
357
|
<el-dropdown-item>蚵仔煎</el-dropdown-item>
|
|
358
358
|
</el-dropdown-menu>
|
|
359
359
|
</el-dropdown>
|
|
360
|
-
</template>
|
|
360
|
+
</template> -->
|
|
361
361
|
|
|
362
|
-
|
|
363
|
-
|
|
362
|
+
<!-- 自定义模板列 -->
|
|
363
|
+
<!-- <template v-slot:name="data">template-{{ data.scope }}</template>
|
|
364
364
|
<template v-slot:address="data">template-{{ data.scope }}</template>
|
|
365
365
|
</base-pro-table>
|
|
366
366
|
</div>
|
|
367
|
-
</template>
|
|
368
|
-
|
|
367
|
+
</template> -->
|
|
368
|
+
<!--
|
|
369
369
|
<script>
|
|
370
370
|
import tableTable from '../test'
|
|
371
371
|
export default {
|
|
@@ -551,10 +551,10 @@ export default {
|
|
|
551
551
|
height: 100%;
|
|
552
552
|
background: inherit;
|
|
553
553
|
}
|
|
554
|
-
</style>
|
|
554
|
+
</style> -->
|
|
555
555
|
|
|
556
556
|
<!-- 普通表单 -->
|
|
557
|
-
|
|
557
|
+
<template>
|
|
558
558
|
<div class="add-company-step-two-wrap">
|
|
559
559
|
<base-form
|
|
560
560
|
:footer="false"
|
|
@@ -567,7 +567,6 @@ export default {
|
|
|
567
567
|
@formSubmit="formSubmit"
|
|
568
568
|
>
|
|
569
569
|
<template v-slot:form-businessLicense="data">
|
|
570
|
-
|
|
571
570
|
<div class="upload-wrap">
|
|
572
571
|
<base-upload-item
|
|
573
572
|
:shape="`pro`"
|
|
@@ -575,12 +574,10 @@ export default {
|
|
|
575
574
|
@uploadEd="uploadEd"
|
|
576
575
|
:uploadType="`single`"
|
|
577
576
|
v-model="data.scope[3].value"
|
|
578
|
-
>
|
|
579
|
-
</base-upload-item>
|
|
577
|
+
></base-upload-item>
|
|
580
578
|
</div>
|
|
581
579
|
</template>
|
|
582
580
|
<template v-slot:form-idPositive="data">
|
|
583
|
-
|
|
584
581
|
<div class="upload-wrap">
|
|
585
582
|
<base-upload-item
|
|
586
583
|
:shape="`pro`"
|
|
@@ -588,12 +585,10 @@ export default {
|
|
|
588
585
|
@uploadEd="uploadEd"
|
|
589
586
|
:uploadType="`single`"
|
|
590
587
|
v-model="data.scope[4].value"
|
|
591
|
-
>
|
|
592
|
-
</base-upload-item>
|
|
588
|
+
></base-upload-item>
|
|
593
589
|
</div>
|
|
594
590
|
</template>
|
|
595
591
|
<template v-slot:form-idBack="data">
|
|
596
|
-
|
|
597
592
|
<div class="upload-wrap">
|
|
598
593
|
<base-upload-item
|
|
599
594
|
:shape="`pro`"
|
|
@@ -601,111 +596,110 @@ export default {
|
|
|
601
596
|
@uploadEd="uploadEd"
|
|
602
597
|
:uploadType="`single`"
|
|
603
598
|
v-model="data.scope[5].value"
|
|
604
|
-
>
|
|
605
|
-
</base-upload-item>
|
|
599
|
+
></base-upload-item>
|
|
606
600
|
</div>
|
|
607
601
|
</template>
|
|
608
602
|
</base-form>
|
|
609
603
|
</div>
|
|
610
|
-
</template>
|
|
604
|
+
</template>
|
|
611
605
|
|
|
612
|
-
|
|
606
|
+
<script>
|
|
613
607
|
export default {
|
|
614
608
|
data() {
|
|
615
609
|
return {
|
|
616
610
|
formList: [
|
|
617
611
|
{
|
|
618
|
-
value:
|
|
619
|
-
key:
|
|
620
|
-
type:
|
|
621
|
-
label:
|
|
612
|
+
value: '',
|
|
613
|
+
key: 'companyName',
|
|
614
|
+
type: 'input',
|
|
615
|
+
label: '企业名称',
|
|
622
616
|
},
|
|
623
617
|
{
|
|
624
|
-
value:
|
|
625
|
-
key:
|
|
626
|
-
type:
|
|
627
|
-
label:
|
|
618
|
+
value: '',
|
|
619
|
+
key: 'companyAddress',
|
|
620
|
+
type: 'area',
|
|
621
|
+
label: '通讯地址',
|
|
628
622
|
},
|
|
629
623
|
{
|
|
630
|
-
value:
|
|
631
|
-
key:
|
|
632
|
-
type:
|
|
633
|
-
label:
|
|
624
|
+
value: '',
|
|
625
|
+
key: 'companyDetail',
|
|
626
|
+
type: 'textarea',
|
|
627
|
+
label: '详细地址',
|
|
634
628
|
},
|
|
635
629
|
{
|
|
636
630
|
value: [],
|
|
637
|
-
key:
|
|
638
|
-
type:
|
|
639
|
-
label:
|
|
631
|
+
key: 'businessLicense',
|
|
632
|
+
type: 'template',
|
|
633
|
+
label: '营业执照正面彩照',
|
|
640
634
|
},
|
|
641
635
|
{
|
|
642
636
|
value: [],
|
|
643
|
-
key:
|
|
644
|
-
type:
|
|
645
|
-
label:
|
|
637
|
+
key: 'idPositive',
|
|
638
|
+
type: 'template',
|
|
639
|
+
label: '法人身份证人像照',
|
|
646
640
|
},
|
|
647
641
|
{
|
|
648
642
|
value: [],
|
|
649
|
-
key:
|
|
650
|
-
type:
|
|
651
|
-
label:
|
|
643
|
+
key: 'idBack',
|
|
644
|
+
type: 'template',
|
|
645
|
+
label: '法人身份证国徽照',
|
|
652
646
|
},
|
|
653
647
|
],
|
|
654
648
|
rules: {
|
|
655
649
|
companyName: [
|
|
656
650
|
{
|
|
657
651
|
required: true,
|
|
658
|
-
message:
|
|
659
|
-
trigger:
|
|
652
|
+
message: '请输入企业名称',
|
|
653
|
+
trigger: 'blur',
|
|
660
654
|
},
|
|
661
655
|
],
|
|
662
656
|
companyAddress: [
|
|
663
657
|
{
|
|
664
658
|
required: true,
|
|
665
|
-
message:
|
|
666
|
-
trigger:
|
|
659
|
+
message: '请输入通讯地址',
|
|
660
|
+
trigger: 'blur',
|
|
667
661
|
},
|
|
668
662
|
],
|
|
669
663
|
companyDetail: [
|
|
670
664
|
{
|
|
671
665
|
required: true,
|
|
672
|
-
message:
|
|
673
|
-
trigger:
|
|
666
|
+
message: '请输入详细地址',
|
|
667
|
+
trigger: 'blur',
|
|
674
668
|
},
|
|
675
669
|
],
|
|
676
670
|
businessLicense: [
|
|
677
671
|
{
|
|
678
672
|
required: true,
|
|
679
|
-
message:
|
|
680
|
-
trigger:
|
|
673
|
+
message: '请上传营业彩照',
|
|
674
|
+
trigger: 'blur',
|
|
681
675
|
},
|
|
682
676
|
],
|
|
683
677
|
idPositive: [
|
|
684
678
|
{
|
|
685
679
|
required: true,
|
|
686
|
-
message:
|
|
687
|
-
trigger:
|
|
680
|
+
message: '请上传法人身份证人像照',
|
|
681
|
+
trigger: 'blur',
|
|
688
682
|
},
|
|
689
683
|
],
|
|
690
684
|
idBack: [
|
|
691
685
|
{
|
|
692
686
|
required: true,
|
|
693
|
-
message:
|
|
694
|
-
trigger:
|
|
687
|
+
message: '请上传法人身份证国徽照',
|
|
688
|
+
trigger: 'blur',
|
|
695
689
|
},
|
|
696
690
|
],
|
|
697
691
|
},
|
|
698
|
-
}
|
|
692
|
+
}
|
|
699
693
|
},
|
|
700
694
|
methods: {
|
|
701
695
|
onCancel() {},
|
|
702
696
|
formSubmit() {},
|
|
703
697
|
uploadEd(value) {
|
|
704
|
-
console.log(value)
|
|
705
|
-
console.log(this.formList)
|
|
698
|
+
console.log(value)
|
|
699
|
+
console.log(this.formList)
|
|
706
700
|
},
|
|
707
701
|
},
|
|
708
|
-
}
|
|
702
|
+
}
|
|
709
703
|
</script>
|
|
710
704
|
|
|
711
705
|
<style lang="less" scoped>
|
|
@@ -724,7 +718,7 @@ export default {
|
|
|
724
718
|
}
|
|
725
719
|
}
|
|
726
720
|
}
|
|
727
|
-
</style>
|
|
721
|
+
</style>
|
|
728
722
|
|
|
729
723
|
<!-- 上传表单 -->
|
|
730
724
|
<!-- <template>
|
package/src/main.js
CHANGED
|
@@ -8,7 +8,7 @@ import testSelectStore from "./component/testSelectStore";
|
|
|
8
8
|
import "../packages/components/style/index.less";
|
|
9
9
|
meixioacomponent.componentConfig.initConfig(store, router);
|
|
10
10
|
meixioacomponent.componentConfig.setUploadPrefix(
|
|
11
|
-
"http://
|
|
11
|
+
"http://gateway.wubangtu.xyz:9999/files/files"
|
|
12
12
|
);
|
|
13
13
|
|
|
14
14
|
Vue.use(ElementUI);
|