|
@@ -13,6 +13,13 @@
|
13
|
13
|
class="page-form"
|
14
|
14
|
style="width: 100%;"
|
15
|
15
|
>
|
|
16
|
+ <el-form-item>
|
|
17
|
+ <el-image
|
|
18
|
+ style="width: 200px; height: 200px"
|
|
19
|
+ :src="url"
|
|
20
|
+ :preview-src-list="previewList">
|
|
21
|
+ </el-image>
|
|
22
|
+ </el-form-item>
|
16
|
23
|
<el-form-item prop="state">
|
17
|
24
|
<el-radio-group v-model="form.status">
|
18
|
25
|
<el-radio :label="1">审核通过</el-radio>
|
|
@@ -33,16 +40,13 @@
|
33
|
40
|
|
34
|
41
|
export default {
|
35
|
42
|
name: 'ShopVerify',
|
36
|
|
- components: { },
|
37
|
|
- props: {
|
38
|
|
- },
|
39
|
43
|
data() {
|
40
|
44
|
return {
|
41
|
45
|
dialogVisible: false,
|
42
|
46
|
form: {
|
43
|
47
|
status: null,
|
44
|
48
|
},
|
45
|
|
- updateId: null,
|
|
49
|
+ shop: null,
|
46
|
50
|
rules: {
|
47
|
51
|
status: [
|
48
|
52
|
{ required: true, message: '请选择状态', trigger: 'change' }
|
|
@@ -50,17 +54,17 @@
|
50
|
54
|
}
|
51
|
55
|
}
|
52
|
56
|
},
|
53
|
|
- computed: {},
|
54
|
|
- created() {
|
55
|
|
-
|
56
|
|
- },
|
57
|
|
- mounted() {
|
58
|
|
-
|
|
57
|
+ computed: {
|
|
58
|
+ url() {
|
|
59
|
+ return (this.shop || {}).businessLicense
|
|
60
|
+ },
|
|
61
|
+ previewList() {
|
|
62
|
+ return this.url ? [this.url] : undefined
|
|
63
|
+ }
|
59
|
64
|
},
|
60
|
65
|
methods: {
|
61
|
|
- handle(id) {
|
62
|
|
- console.log(id, "id-----")
|
63
|
|
- this.updateId = id;
|
|
66
|
+ handle(shop) {
|
|
67
|
+ this.shop = shop;
|
64
|
68
|
this.dialogVisible = true
|
65
|
69
|
},
|
66
|
70
|
submitUpdateForm() {
|
|
@@ -77,7 +81,7 @@
|
77
|
81
|
},
|
78
|
82
|
updateUser() {
|
79
|
83
|
const updateParam = {
|
80
|
|
- shopId: this.updateId,
|
|
84
|
+ shopId: this.shop.shopId,
|
81
|
85
|
status: this.form.status
|
82
|
86
|
}
|
83
|
87
|
shopApi.update(updateParam).then(response => {
|
|
@@ -100,7 +104,3 @@
|
100
|
104
|
margin-top: 40px !important;
|
101
|
105
|
}
|
102
|
106
|
</style>
|
103
|
|
-
|
104
|
|
-<style lang="scss" scoped>
|
105
|
|
-
|
106
|
|
-</style>
|