张延森 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
       class="page-form"
13
       class="page-form"
14
       style="width: 100%;"
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
       <el-form-item prop="state">
23
       <el-form-item prop="state">
17
         <el-radio-group v-model="form.status">
24
         <el-radio-group v-model="form.status">
18
           <el-radio :label="1">审核通过</el-radio>
25
           <el-radio :label="1">审核通过</el-radio>
33
 
40
 
34
   export default {
41
   export default {
35
     name: 'ShopVerify',
42
     name: 'ShopVerify',
36
-    components: { },
37
-    props: {
38
-    },
39
     data() {
43
     data() {
40
       return {
44
       return {
41
         dialogVisible: false,
45
         dialogVisible: false,
42
         form: {
46
         form: {
43
           status: null,
47
           status: null,
44
         },
48
         },
45
-        updateId: null,
49
+        shop: null,
46
         rules: {
50
         rules: {
47
           status: [
51
           status: [
48
             { required: true, message: '请选择状态', trigger: 'change' }
52
             { required: true, message: '请选择状态', trigger: 'change' }
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
     methods: {
65
     methods: {
61
-      handle(id) {
62
-        console.log(id, "id-----")
63
-        this.updateId = id;
66
+      handle(shop) {
67
+        this.shop = shop;
64
         this.dialogVisible = true
68
         this.dialogVisible = true
65
       },
69
       },
66
       submitUpdateForm() {
70
       submitUpdateForm() {
77
       },
81
       },
78
       updateUser() {
82
       updateUser() {
79
         const updateParam = {
83
         const updateParam = {
80
-          shopId: this.updateId,
84
+          shopId: this.shop.shopId,
81
           status: this.form.status
85
           status: this.form.status
82
         }
86
         }
83
         shopApi.update(updateParam).then(response => {
87
         shopApi.update(updateParam).then(response => {
100
     margin-top: 40px !important;
104
     margin-top: 40px !important;
101
   }
105
   }
102
 </style>
106
 </style>
103
-
104
-<style lang="scss" scoped>
105
-
106
-</style>

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

50
       </el-table-column>
50
       </el-table-column>
51
       <el-table-column label="操作" align="center" width="240" class-name="operation">
51
       <el-table-column label="操作" align="center" width="240" class-name="operation">
52
         <template slot-scope="{row}">
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
           <el-link type="warning" @click="handManage(row.shopId)">财务管理</el-link>
54
           <el-link type="warning" @click="handManage(row.shopId)">财务管理</el-link>
55
         </template>
55
         </template>
56
       </el-table-column>
56
       </el-table-column>
159
           return ''
159
           return ''
160
         }
160
         }
161
       },
161
       },
162
-      handVerify(id) {
162
+      handVerify(row) {
163
         this.$nextTick(() => {
163
         this.$nextTick(() => {
164
-          this.$refs.verifyPage.handle(id)
164
+          this.$refs.verifyPage.handle(row)
165
         });
165
         });
166
       },
166
       },
167
       handManage(id) {
167
       handManage(id) {
168
         this.$nextTick(() => {
168
         this.$nextTick(() => {
169
           // this.$refs.shopLotteryManagePage.handle(id)
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
     }