dingxin 6 lat temu
rodzic
commit
6c925aed78

+ 2
- 0
package.json Wyświetl plik

@@ -17,8 +17,10 @@
17 17
     "element-ui": "^2.10.1",
18 18
     "normalize.css": "^8.0.1",
19 19
     "nprogress": "^0.2.0",
20
+    "v-viewer": "^1.4.2",
20 21
     "vue": "^2.6.6",
21 22
     "vue-echarts": "^4.0.1",
23
+    "vue-photo-preview": "^1.1.3",
22 24
     "vue-router": "^3.0.2",
23 25
     "vuex": "^3.1.0"
24 26
   },

+ 1
- 1
src/config/api.js Wyświetl plik

@@ -399,7 +399,7 @@ const apis = {
399 399
         url: `${commPrefix}/tdSpec/update`
400 400
       },
401 401
       delete: {
402
-        method: 'delete',
402
+        method: 'put',
403 403
         url: `${commPrefix}/tdSpec/delete/:id`
404 404
       },
405 405
     },

+ 4
- 0
src/main.js Wyświetl plik

@@ -14,6 +14,10 @@ import './assets/iconfont.css'
14 14
 
15 15
 Vue.use(Element)
16 16
 
17
+import preview from 'vue-photo-preview'
18
+import 'vue-photo-preview/dist/skin.css'
19
+Vue.use(preview)
20
+
17 21
 Vue.config.productionTip = false
18 22
 Vue.component('v-chart', ECharts)
19 23
 Vue.component('xm-icon', XMIcon)

+ 2
- 4
src/views/carManagement/management.vue Wyświetl plik

@@ -29,10 +29,7 @@
29 29
               prop="carImage"
30 30
               label="车辆图片">
31 31
               <template slot-scope="scope">
32
-              <el-image
33
-                  style="width: 100px; height: 100px"
34
-                  :src="scope.row.carImage"
35
-                  fit="fill"></el-image>
32
+              <el-image :src="scope.row.carImage" preview  style="width: 96px;" ></el-image>
36 33
               </template>
37 34
       </el-table-column>
38 35
           <el-table-column
@@ -154,6 +151,7 @@ export default {
154 151
     },
155 152
     getPage() {
156 153
       this.getManagement(this.formInline);
154
+      this.$previewRefresh()
157 155
     },
158 156
     handleSizeChange(val) {
159 157
       // console.log(`每页 ${val} 条`)

+ 1
- 4
src/views/cart/list.vue Wyświetl plik

@@ -40,10 +40,7 @@
40 40
               align='center'
41 41
               label="驾驶员照片">
42 42
         <template slot-scope="scope">
43
-          <el-image
44
-                  style="width: 100px; height: 100px"
45
-                  :src="scope.row.driverImage"
46
-                  fit="fill"></el-image>
43
+          <el-image style="width: 96px;" :src="scope.row.driverImage" preview fit="fill"></el-image>
47 44
         </template>
48 45
       </el-table-column>
49 46
       <!-- <el-table-column

+ 2
- 0
src/views/followup/list.vue Wyświetl plik

@@ -52,6 +52,7 @@
52 52
       label="头像">
53 53
       <template slot-scope="scope">
54 54
         <el-image
55
+          preview
55 56
           style="width: 100px; height: 100px"
56 57
           :src="scope.row.avatar"
57 58
           fit="fill">
@@ -241,6 +242,7 @@ export default {
241 242
     },
242 243
     getPage() {
243 244
       this.getFollowup(this.formInline)
245
+      this.$previewRefresh()
244 246
       // window.console.log(this.$store)
245 247
       // this.$store.commit('security/foo')
246 248
       // this.$store.dispatch('security/getSecurity')

+ 1
- 0
src/views/goodsManager/GoodsType.vue Wyświetl plik

@@ -160,6 +160,7 @@ export default {
160 160
         }
161 161
 
162 162
         this.$message('操作成功')
163
+        this.getList()
163 164
       }).catch((err) => {
164 165
         this.$message.error(err.message || err)
165 166
       })

+ 1
- 1
src/views/goodsManager/goodManager/index.vue Wyświetl plik

@@ -29,7 +29,7 @@
29 29
         <el-table-column prop="goodsName" label="商品名称"></el-table-column>
30 30
         <el-table-column label="图片" width="300">
31 31
           <template slot-scope="scope">
32
-            <img :src="scope.row.imgUrl" style="width: 96px;" />
32
+            <img :src="scope.row.imgUrl" preview style="width: 96px;" />
33 33
           </template>
34 34
         </el-table-column>
35 35
         <el-table-column label="类型">

+ 1
- 1
src/views/lobby/list.vue Wyświetl plik

@@ -46,7 +46,7 @@
46 46
     </el-table-column>
47 47
     <el-table-column label="头像" width="150" >
48 48
            <template slot-scope="scope">
49
-              <img :src="scope.row.carImage" width="150" class="head_pic"/>
49
+              <img :src="scope.row.carImage" preview width="150" class="head_pic"/>
50 50
           </template>
51 51
     </el-table-column>
52 52
     <el-table-column

+ 1
- 1
src/views/person/list.vue Wyświetl plik

@@ -52,7 +52,7 @@
52 52
           label="照片">
53 53
           <template slot-scope="scope">
54 54
             <div class="avatar">
55
-              <img :src="scope.row.avatar" alt="" />
55
+              <img :src="scope.row.avatar" preview alt="" />
56 56
             </div>
57 57
           </template>
58 58
         </el-table-column>

+ 2
- 1
src/views/security/list.vue Wyświetl plik

@@ -69,7 +69,7 @@
69 69
               prop="carImage"
70 70
               label="车辆图片">
71 71
               <template slot-scope="scope">
72
-              <el-image
72
+              <el-image preview
73 73
                   style="width: 100px; height: 100px"
74 74
                   :src="scope.row.carImage"
75 75
                   fit="fill"></el-image>
@@ -129,6 +129,7 @@ export default {
129 129
     },
130 130
     getPage() {
131 131
       this.getSecurity(this.formInline)
132
+      this.$previewRefresh()
132 133
       // window.console.log(this.$store)
133 134
       // this.$store.commit('security/foo')
134 135
       // this.$store.dispatch('security/getSecurity')