Przeglądaj źródła

上传问题,未解决

gyj 2 lat temu
rodzic
commit
ca09c2fb0f
4 zmienionych plików z 170 dodań i 32 usunięć
  1. 3
    0
      .gitignore
  2. 14
    2
      src/api/home.js
  3. 12
    30
      src/views/room.vue
  4. 141
    0
      src/views/signFor.vue

+ 3
- 0
.gitignore Wyświetl plik

23
 *.sln
23
 *.sln
24
 *.sw?
24
 *.sw?
25
 node_modules
25
 node_modules
26
+<<<<<<< HEAD
26
 node_modules
27
 node_modules
27
 node_modules
28
 node_modules
28
 node_modules
29
 node_modules
30
+=======
31
+>>>>>>> ce7123d0f78fb925333f45cb0f43791061dc0431
29
 /dist
32
 /dist

+ 14
- 2
src/api/home.js Wyświetl plik

32
 }
32
 }
33
 //根据id查询密文信息
33
 //根据id查询密文信息
34
 export function getEncryptInfoByid(caseId) {
34
 export function getEncryptInfoByid(caseId) {
35
-        return axios.get(`tiaojie/shortMessage/getMeetingInfo?authId=${caseId}`);
36
-}
35
+        return axios.get(`${baseUrl}/shortMessage/getMeetingInfo?authId=${caseId}`);
36
+}
37
+// 案件列表
38
+export function caseApplicationList(param) {
39
+    return axios.get(`${baseUrl}/caseApplication/list?caseId=${param}`);
40
+  }
41
+// 签收案件
42
+export function msCaseSign(data) {
43
+        return axios.post(`${baseUrl}/mssignSeal/msCaseSign`, data);
44
+}
45
+//根据案件id获取附件
46
+export function fileList(caseAppliId,annexTypeList) {
47
+    return axios.get(`${baseUrl}/common/fileList?caseAppliId=${caseAppliId}&annexTypeList=${annexTypeList}`);
48
+  }

+ 12
- 30
src/views/room.vue Wyświetl plik

47
         <div :class="userClassPhone" id="localStream">
47
         <div :class="userClassPhone" id="localStream">
48
           <div class="userNamePhone">{{ userId }}</div>
48
           <div class="userNamePhone">{{ userId }}</div>
49
         </div>
49
         </div>
50
-        <div
51
-          :class="userClassPhone"
52
-          v-for="(item, index) in userList"
53
-          :key="index"
54
-          :id="item"
55
-        >
50
+        <div :class="userClassPhone" v-for="(item, index) in userList" :key="index" :id="item">
56
           <div class="userNamePhone">{{ item }}</div>
51
           <div class="userNamePhone">{{ item }}</div>
57
         </div>
52
         </div>
58
       </div>
53
       </div>
60
     <!-- 语音转文字弹窗 -->
55
     <!-- 语音转文字弹窗 -->
61
     <el-drawer title="会议内容" :visible.sync="textVisible" :modal="false">
56
     <el-drawer title="会议内容" :visible.sync="textVisible" :modal="false">
62
       <div style="margin-left: 20px; margin-bottom: 10px">
57
       <div style="margin-left: 20px; margin-bottom: 10px">
63
-        <div
64
-          style="
58
+        <div style="
65
             width: 100%;
59
             width: 100%;
66
             display: flex;
60
             display: flex;
67
             justify-content: space-around;
61
             justify-content: space-around;
153
           </div>
147
           </div>
154
         </div>
148
         </div>
155
       </div>
149
       </div>
156
-      <quill-editor
157
-        ref="myQuillEditor"
158
-        v-model="contentValue"
159
-        :options="editorOption"
160
-        @blur="onEditorBlur($event)"
161
-        @focus="onEditorFocus($event)"
162
-        @ready="onEditorReady($event)"
163
-      ></quill-editor>
164
-      <el-button
165
-        class="updataBtn"
166
-        @click="updataClick"
167
-        type="primary"
168
-        :disabled="!updataFlag"
169
-        >确认修改内容</el-button
170
-      >
150
+      <quill-editor ref="myQuillEditor" v-model="contentValue" :options="editorOption" @blur="onEditorBlur($event)"
151
+        @focus="onEditorFocus($event)" @ready="onEditorReady($event)"></quill-editor>
152
+      <el-button class="updataBtn" @click="updataClick" type="primary" :disabled="!updataFlag">确认修改内容</el-button>
171
     </el-drawer>
153
     </el-drawer>
172
   </div>
154
   </div>
173
 </template>
155
 </template>
174
-  
156
+
175
 <script>
157
 <script>
176
 import { getUsersig, reserveConferenceList } from "@/api/home";
158
 import { getUsersig, reserveConferenceList } from "@/api/home";
177
 import {
159
 import {
483
           } else if (item.annexType == 12) {
465
           } else if (item.annexType == 12) {
484
             this.resFile.push(item);
466
             this.resFile.push(item);
485
           } else if (item.annexType == 7) {
467
           } else if (item.annexType == 7) {
486
-            this.mediateFile.push(item);
468
+            this.mediateFile.push(item)
487
           }
469
           }
488
         });
470
         });
489
       });
471
       });
717
   },
699
   },
718
 };
700
 };
719
 </script>
701
 </script>
720
-  
702
+
721
 <style scoped>
703
 <style scoped>
722
 .roompage {
704
 .roompage {
723
   width: 100%;
705
   width: 100%;
882
   position: absolute;
864
   position: absolute;
883
   bottom: 8px;
865
   bottom: 8px;
884
 }
866
 }
867
+
885
 .fileList {
868
 .fileList {
886
   /* max-height: 300px; */
869
   /* max-height: 300px; */
887
   /* overflow-y: scroll; */
870
   /* overflow-y: scroll; */
888
 }
871
 }
872
+
889
 .list {
873
 .list {
890
   display: flex;
874
   display: flex;
891
   flex-wrap: wrap;
875
   flex-wrap: wrap;
892
 }
876
 }
877
+
893
 .applicant,
878
 .applicant,
894
 .res,
879
 .res,
895
 .mediate {
880
 .mediate {
898
   margin-bottom: 10px;
883
   margin-bottom: 10px;
899
   color: #38393b;
884
   color: #38393b;
900
 }
885
 }
901
-</style>
902
-  
903
-  
904
-  
886
+</style>

+ 141
- 0
src/views/signFor.vue Wyświetl plik

1
+<template>
2
+    <div class="signFor">
3
+        <div>
4
+            <el-row style="height: 40px;line-height: 40px;text-align: center;">
5
+                <el-col :span="8"><div>案件编号</div></el-col>
6
+                <el-col :span="16"><div>{{ dataList.caseNum }}</div></el-col>
7
+            </el-row>
8
+            <hr>
9
+            <el-row style="height: 40px;line-height: 40px;text-align: center;">
10
+                <el-col :span="8"><div>申请人</div></el-col>
11
+                <el-col :span="16"><div>{{ dataList.applicationName }}</div></el-col>
12
+            </el-row>
13
+            <hr>
14
+            <el-row style="height: 40px;line-height: 40px;text-align: center;">
15
+                <el-col :span="8"><div>被申请人</div></el-col>
16
+                <el-col :span="16"><div>{{ dataList.respondentName }}</div></el-col>
17
+            </el-row>
18
+            <hr>
19
+            <el-row style="height: 40px;line-height: 40px;text-align: center;">
20
+                <el-col :span="8"><div>调解员</div></el-col>
21
+                <el-col :span="16"><div>{{ dataList.mediatorName }}</div></el-col>
22
+            </el-row>
23
+            <hr>
24
+            <el-row style="height: 40px;line-height: 40px;text-align: center;">
25
+                <el-col :span="8"><div>调解方式</div></el-col>
26
+                <el-col :span="16"><div>{{ dataList.mediationMethodName }}</div></el-col>
27
+            </el-row>
28
+            <hr>
29
+            <el-row style="height: 40px;line-height: 40px;text-align: center;">
30
+                <el-col :span="8"><div>调解时间</div></el-col>
31
+                <el-col :span="16"><div>{{ dataList.hearDate }}</div></el-col>
32
+            </el-row>
33
+            <hr>
34
+            <el-row style="height: 40px;line-height: 40px;text-align: center;">
35
+                <el-col :span="8"><div>案件状态</div></el-col>
36
+                <el-col :span="16"><div>{{ dataList.caseStatusName }}</div></el-col>
37
+            </el-row>
38
+            <hr>
39
+            <el-row style="height: 40px;line-height: 40px;text-align: center;">
40
+                <el-col :span="8"><div>创建时间</div></el-col>
41
+                <el-col :span="16"><div>{{ dataList.createTime }}</div></el-col>
42
+            </el-row>
43
+            <hr>
44
+            <el-row style="height: 40px;line-height: 40px;text-align: center;">
45
+                <el-col :span="7"><div>调解书</div></el-col>
46
+                <el-col :span="15"><div v-for="(item,index) in fileList" :key="index" style="color: blue; cursor: pointer"  @click="toPreview(item.annexPath)">{{ item.annexName }}</div></el-col>
47
+            </el-row>
48
+            <hr>
49
+            <el-row>
50
+                <el-col :span="24">
51
+                    <div style="width: 90px; margin: 30px auto;">
52
+                        <el-button type="primary" @click="getMsCaseSign(caseId)" v-if="showSign" icon="el-icon-edit">签收</el-button>
53
+                    </div>
54
+                </el-col>
55
+            </el-row>
56
+        </div>
57
+    </div>
58
+    
59
+</template>
60
+
61
+<script>
62
+import { getEncryptInfoByid,caseApplicationList,msCaseSign,fileList } from "@/api/home";
63
+export default {
64
+    name: "signFor",
65
+    components: {},
66
+    data() {
67
+        return {
68
+            dataList: [],
69
+            loading: false,
70
+            token:'',
71
+            caseId:'',
72
+            showSign:true,
73
+            fileURL: 'http://121.40.189.20:8002' + "/API",
74
+            fileList:[]
75
+
76
+        };
77
+    },
78
+    created() {
79
+        console.log(this.fileURL)
80
+    },
81
+    methods: {
82
+        /**获取链接参数 */
83
+        async getEncryptInfoByidFn(data) {
84
+            await getEncryptInfoByid(data).then((res) => {
85
+                this.caseId = res.caseId
86
+                sessionStorage.setItem('token',res.token)
87
+            });
88
+        },
89
+        // 获取案件列表
90
+        async getList(params){
91
+            await caseApplicationList(params).then(res =>{
92
+                res.rows.forEach(item => {
93
+                    this.dataList = item;
94
+                });
95
+            })
96
+        },
97
+        // 案件签收
98
+        async getMsCaseSign(params){
99
+            console.log(params)
100
+            let caseIds = {
101
+                caseId:params
102
+            }
103
+            await msCaseSign(caseIds).then(res =>{
104
+                console.log(res)
105
+                this.$message({
106
+                    message: '签收成功',
107
+                    type: 'success'
108
+                });
109
+                this.showSign = false
110
+            })
111
+        },
112
+        // 查看附件
113
+        async getFileList(caseAppliIds,annexTypeList){
114
+            fileList(caseAppliIds,annexTypeList).then(res=>{
115
+                this.fileList = res.data;
116
+                console.log(this.fileList)
117
+            })
118
+        },
119
+        toPreview(val){
120
+            console.log(val)
121
+            window.open(this.fileURL + val)
122
+        }
123
+    },
124
+    async mounted() {
125
+        let routeParams = this.$route.query;
126
+        await this.getEncryptInfoByidFn(routeParams.authId)
127
+        await this.getList(this.caseId)
128
+        // await this.getList("5461248676208928")
129
+        let caseAppliIds = this.caseId
130
+        let annexTypeList = 7
131
+        await this.getFileList(caseAppliIds,annexTypeList)
132
+    }
133
+};
134
+</script>
135
+
136
+<style scoped>
137
+    .signFor{
138
+        margin-top: 30px;
139
+        width: 100%;
140
+    }
141
+</style>