张延森 4 年前
父节点
当前提交
0dcd04ad4a
共有 2 个文件被更改,包括 22 次插入22 次删除
  1. 18
    18
      src/views/lottery/shop/components/shop-verify.vue
  2. 4
    4
      src/views/lottery/shop/shop-lottery-list.vue

+ 18
- 18
src/views/lottery/shop/components/shop-verify.vue 查看文件

@@ -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>

+ 4
- 4
src/views/lottery/shop/shop-lottery-list.vue 查看文件

@@ -50,7 +50,7 @@
50 50
       </el-table-column>
51 51
       <el-table-column label="操作" align="center" width="240" class-name="operation">
52 52
         <template slot-scope="{row}">
53
-          <el-link type="warning" @click="handVerify(row.shopId)">{{ row.status == 0 ? "审核" : "" }}</el-link>
53
+          <el-link type="warning" @click="handVerify(row)">{{ row.status == 0 ? "审核" : "" }}</el-link>
54 54
           <el-link type="warning" @click="handManage(row.shopId)">财务管理</el-link>
55 55
         </template>
56 56
       </el-table-column>
@@ -159,15 +159,15 @@
159 159
           return ''
160 160
         }
161 161
       },
162
-      handVerify(id) {
162
+      handVerify(row) {
163 163
         this.$nextTick(() => {
164
-          this.$refs.verifyPage.handle(id)
164
+          this.$refs.verifyPage.handle(row)
165 165
         });
166 166
       },
167 167
       handManage(id) {
168 168
         this.$nextTick(() => {
169 169
           // this.$refs.shopLotteryManagePage.handle(id)
170
-this.$router.push("shop-bill-list?customerId=" + id)
170
+          this.$router.push("shop-bill-list?customerId=" + id)
171 171
         });
172 172
       }
173 173
     }