ソースを参照

运输管理 运费管理 运单软删除置顶 页面修改2 by 'zengjun'1

ajun 5 年 前
コミット
f5d30c1bf5
1 ファイル変更9 行追加10 行削除
  1. 9 10
      resources/views/waybill/index.blade.php

+ 9 - 10
resources/views/waybill/index.blade.php

@@ -117,7 +117,6 @@
                                     <a class="dropdown-item" @click="waybillExport(2)" href="javascript:">导出所有页</a>
                                 </div>
                             </span>
-                            @can('运输管理-图片删除')<button type="button" @click="deleteImg()" class="btn btn-sm btn-outline-danger ml-2">删除所选图片</button>@endcan
                         </td>
                     </tr>
                 </table>
@@ -858,7 +857,7 @@
                         "<img src=\""+url+'-common.'+suffix+"\" style='position: relative;left:-50px;' >" +
                         "</a>" +
                         "</div>"+
-                        "<button type='button' class='btn btn-sm btn-danger' onclick='vueList.btnDeleteImg(this)' value='"+id+"' style='position: relative;float: right;margin-right: 51px;margin-top: -30px;' >删除</button>" +
+                        @can('运输管理-图片删除')"<button type='button' class='btn btn-sm btn-danger' onclick='vueList.btnDeleteImg(this)' value='"+id+"' style='position: relative;float: right;margin-right: 51px;margin-top: -30px;' >删除</button>" +@endcan
                         "</div>"+
                         "</div>");
                 },
@@ -891,14 +890,14 @@
                                 tempTip.show("删除失败");
                                 return;
                             }
-                            _this.checkData.forEach(function (id) {
-                                _this.waybills.some(function (waybill) {
-                                    if (waybill.id===id){
-                                        waybill.url='';
-                                        return true;
-                                    }
-                                });
-                            });
+                            // _this.checkData.forEach(function (id) {
+                            //     _this.waybills.some(function (waybill) {
+                            //         if (waybill.id===id){
+                            //             waybill.url='';
+                            //             return true;
+                            //         }
+                            //     });
+                            // });
                             id.forEach(function (id) {
                                 _this.waybills.some(function (waybill) {
                                     if (waybill.id===id){