Explorar el Código

修改测试bug

gyj hace 2 años
padre
commit
4d25d5a564
Se han modificado 2 ficheros con 19 adiciones y 9 borrados
  1. 2
    2
      src/api/home.js
  2. 17
    7
      src/views/signFor.vue

+ 2
- 2
src/api/home.js Ver fichero

@@ -43,8 +43,8 @@ export function msCaseSign(data) {
43 43
         return axios.post(`tiaojie/mssignSeal/msCaseSign`, data);
44 44
 }
45 45
 //根据案件id获取附件
46
-export function fileList(caseAppliId,annexTypeList) {
47
-    return axios.get(`tiaojie/common/fileList?caseAppliId=${caseAppliId}&annexTypeList=${annexTypeList}`);
46
+export function fileList(caseAppliId) {
47
+    return axios.get(`tiaojie/common/fileList?caseAppliId=${caseAppliId}`);
48 48
   }
49 49
 // 确定会议结果
50 50
 export function confirmMeetingResult(data) {

+ 17
- 7
src/views/signFor.vue Ver fichero

@@ -42,12 +42,18 @@
42 42
             </el-row>
43 43
             <hr>
44 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)">
47
-                    <span v-if="item.annexType==13">{{ item.annexName }}</span>
45
+                <el-col :span="8"><div>签署前调解书</div></el-col>
46
+                <el-col :span="16"><div v-for="(item,index) in fileList" :key="index" style="color: blue; cursor: pointer"  @click="toPreview(item.annexPath)">
47
+                    <span v-if="item.annexType==7">{{ item.annexName }}</span>
48 48
                     </div></el-col>
49 49
             </el-row>
50 50
             <hr>
51
+             <el-row style="height: 40px;line-height: 40px;text-align: center;"
52
+                <el-col :span="8"><div>签署后调解书</div></el-col>
53
+                <el-col :span="16"><div v-for="(item,index) in fileList" :key="index" style="color: blue; cursor: pointer"  @click="toPreview(item.annexPath)">
54
+                    <div v-if="item.annexType==13"><span>{{ item.annexName }}</span></div>
55
+                    </div></el-col>
56
+            </el-row>
51 57
             <el-row>
52 58
                 <el-col :span="24">
53 59
                     <div style="width: 90px; margin: 30px auto;" v-if="dataList.signFlag==1">
@@ -114,8 +120,9 @@ export default {
114 120
             })
115 121
         },
116 122
         // 查看附件
117
-        async getFileList(caseAppliIds,annexTypeList){
118
-            fileList(caseAppliIds,annexTypeList).then(res=>{
123
+        async getFileList(caseAppliIds){
124
+            fileList(caseAppliIds).then(res=>{
125
+                console.log(res)
119 126
                 this.fileList = res.data;
120 127
                 console.log(this.fileList)
121 128
             })
@@ -131,8 +138,7 @@ export default {
131 138
         await this.getList(this.caseId)
132 139
         // await this.getList("5461248676208928")
133 140
         let caseAppliIds = this.caseId
134
-        let annexTypeList = 7
135
-        await this.getFileList(caseAppliIds,annexTypeList)
141
+        await this.getFileList(caseAppliIds)
136 142
     }
137 143
 };
138 144
 </script>
@@ -142,4 +148,8 @@ export default {
142 148
         margin-top: 30px;
143 149
         width: 100%;
144 150
     }
151
+    /* 允许换行 */
152
+    .flex-wrap {
153
+    flex-wrap: wrap;
154
+    }
145 155
 </style>