Просмотр исходного кода

Merge branch 'hcb' of SH-Arbitrate/Arbitrate-Frontend into dev

hanchaobo 2 лет назад
Родитель
Сommit
1e0d9f07b0

+ 8
- 0
src/api/caseFiling/caseFiling.js Просмотреть файл

@@ -7,4 +7,12 @@ export function adjudicationArchives(data) {
7 7
     method: 'get',
8 8
     params: data
9 9
   })
10
+}
11
+//根据案件id查询视频列表
12
+export function videoList(data) {
13
+  return request({
14
+    url: '/video/videoList',
15
+    method: 'get',
16
+    params: data
17
+  })
10 18
 }

+ 10
- 2
src/views/caseFiling/archiveList.vue Просмотреть файл

@@ -62,7 +62,7 @@
62 62
     <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
63 63
       @pagination="getList(queryParams)" />
64 64
     <!-- 弹窗 -->
65
-    <archiveDetailsDialog v-if="showarchiveDetails" :showarchiveDetails="showarchiveDetails" :detailform="detailform"
65
+    <archiveDetailsDialog v-if="showarchiveDetails" :showarchiveDetails="showarchiveDetails" :videoList="videoList" :detailform="detailform"
66 66
       :flagLoading="flagLoading" @cancelpaymentdetails="cancelpaymentdetails" @updataList="updataList">
67 67
     </archiveDetailsDialog>
68 68
   </div>
@@ -70,7 +70,7 @@
70 70
   
71 71
 <script>
72 72
 import { caseApplicationList, selectSignSealUrl } from "@/api/awardManagement/awardManagement";
73
-import { adjudicationArchives } from "@/api/caseFiling/caseFiling";
73
+import { adjudicationArchives, videoList } from "@/api/caseFiling/caseFiling";
74 74
 import archiveDetailsDialog from "./components/archiveDetailsDialog.vue";
75 75
 export default {
76 76
   name: "archiveList",
@@ -97,6 +97,7 @@ export default {
97 97
       detailform: {}, //详情数据
98 98
       showarchiveDetails: false, //详情数据弹框
99 99
       flagLoading: false, //详情弹框loading
100
+      videoList:""
100 101
     };
101 102
   },
102 103
   created() {
@@ -135,6 +136,7 @@ export default {
135 136
     // model框显示
136 137
     showDetail(row) {
137 138
       this.getDetail({ id: row.id });
139
+      this.getvideoList({ caseId: row.id });
138 140
       this.showarchiveDetails = true;
139 141
       this.flagLoading = true;
140 142
     },
@@ -142,6 +144,12 @@ export default {
142 144
     cancelpaymentdetails() {
143 145
       this.showarchiveDetails = false;
144 146
     },
147
+    // 根据id查询视频列表
148
+    getvideoList(data) {
149
+      videoList(data).then(res => {
150
+        this.videoList = res.data;
151
+      })
152
+    },
145 153
     /** 查询详情 */
146 154
     getDetail(parms) {
147 155
       adjudicationArchives(parms).then((res) => {

+ 14
- 1
src/views/caseFiling/components/archiveDetailsDialog.vue Просмотреть файл

@@ -24,6 +24,10 @@
24 24
               :deliveryDataArr="deliveryDataArr"
25 25
             ></expressDeliveryInfo>
26 26
           </el-tab-pane>
27
+          <el-tab-pane label="案件视频" name="four">
28
+            <!-- <div @click="getVideo">chakanshipin</div> -->
29
+            <video style="background-color: #181717;" :src="videoUrl" controls="controls"></video>
30
+          </el-tab-pane>
27 31
         </el-tabs>
28 32
       </div>
29 33
       <div slot="footer" class="dialog-footer">
@@ -38,7 +42,7 @@ import caseInfo from "./caseInfo.vue";
38 42
 import caselogInfo from "./caselogInfo.vue";
39 43
 import expressDeliveryInfo from "./expressDeliveryInfo.vue";
40 44
 export default {
41
-  props: ["showarchiveDetails", "detailform", "flagLoading"],
45
+  props: ["showarchiveDetails", "detailform", "flagLoading","videoList"],
42 46
   components: {
43 47
     caseInfo,
44 48
     caselogInfo,
@@ -51,6 +55,7 @@ export default {
51 55
       caselogDataArr: [], //案件日志
52 56
       deliveryDataArr: [], //快递信息
53 57
       noData: false,
58
+      videoUrl:''
54 59
     };
55 60
   },
56 61
   watch: {
@@ -65,10 +70,18 @@ export default {
65 70
   methods: {
66 71
     handleClick(tab, event) {
67 72
       // console.log(tab, event);
73
+      let headPath = window.location.origin + "/API";
74
+      this.videoUrl = headPath + this.videoList[0].annexPath;
68 75
     },
69 76
     cancel() {
70 77
       this.$emit("cancelpaymentdetails");
71 78
     },
79
+    getVideo(){
80
+      // console.log(this.videoList[0].annexPath,"PPPPPPPPPPPPPPPP");
81
+      let headPath = window.location.origin + "/API";
82
+      this.videoUrl = headPath + this.videoList[0].annexPath;
83
+      // window.open(headPath + this.videoList[0].annexPath)
84
+    }
72 85
   },
73 86
 };
74 87
 </script>

+ 0
- 0
src/views/caseFiling/components/videoList.vue Просмотреть файл