Parcourir la source

onlyoffice在线编辑

hanchaobo il y a 2 ans
Parent
révision
972c409213

+ 8
- 5
src/views/caseManagement/components/addCase.vue Voir le fichier

@@ -84,7 +84,7 @@
84 84
               </el-select>
85 85
             </el-form-item>
86 86
           </el-col> -->
87
-          <el-col :span="12">
87
+          <el-col :span="12" v-if="buttonFlag">
88 88
             <el-form-item label="申请人案件证据资料上传:" prop="applicantEvidence">
89 89
               <el-upload class="upload-demo" ref="fileupload" accept=".png,.jpg,.doc,.docx,.txt,.pdf"
90 90
                 :action="UploadUrl()" :on-success="handlSuccess" :on-remove="handleRemove" :on-preview="handlePreview"
@@ -97,7 +97,7 @@
97 97
               </el-upload>
98 98
             </el-form-item>
99 99
           </el-col>
100
-          <el-col :span="24" v-if="modelFlag">
100
+          <el-col :span="24" v-if="modelFlag && showEvidence">
101 101
             <el-form-item label="证据:">
102 102
               <div v-for="(item, index) in formData.caseAttachList" :key="index" v-if="item.annexType == 2">
103 103
                 <div style="color: blue; cursor: pointer" @click="fileDetil(item.annexPath)">
@@ -572,6 +572,7 @@ export default {
572 572
       getUserInfoList: {},
573 573
       applicationFlag: null,
574 574
       showmediate: false,
575
+      showEvidence: false,//是否显示证据
575 576
       formZipData: {},
576 577
       nationalityList: [
577 578
         {
@@ -678,6 +679,7 @@ export default {
678 679
         this.formData.caseAttachList.forEach((item) => {
679 680
           if (item.annexType == 2) {
680 681
             this.applicantEvidence.push(item);
682
+            this.showEvidence = true
681 683
           } else if (item.annexType == 6) {
682 684
             // this.respondentEvidence.push(item);
683 685
           } else if (item.annexType == 7) {
@@ -742,9 +744,10 @@ export default {
742 744
       return this.$confirm(`确定移除 ${file.name}?`);
743 745
     },
744 746
     handleRemove(file, fileList) {
745
-      this.caseAttachListArr = this.caseAttachListArr.filter(
746
-        (item) => item.annexId != file.annexId
747
-      );
747
+      let newcaseAttachList = this.formData.caseAttachList.filter(item => 
748
+        item.annexId !== file.response.annexId
749
+      )
750
+      this.formData.caseAttachList = newcaseAttachList
748 751
     },
749 752
     handleExceedZip(files, fileList) {
750 753
       this.$message.warning(`当前限制选择 1 个文件`);

+ 1
- 1
src/views/caseManagement/components/payDialog.vue Voir le fichier

@@ -130,7 +130,7 @@ export default {
130 130
     handleRemove(file, fileList) {
131 131
       (this.submitForm.payOrderList = []),
132 132
       fileList.forEach((item) => {
133
-          this.submitForm.payOrderList.push({ annexId:item.response.data.annexId,annexName:item.response.data.annexName });
133
+          this.submitForm.payOrderList.push({ annexId:item.response.annexId,annexName:item.response.annexName });
134 134
         });
135 135
     },
136 136
     handlePreview(file) {

+ 2
- 2
src/views/caseManagement/components/paymentdetailsDialog.vue Voir le fichier

@@ -14,13 +14,13 @@
14 14
         <el-form-item label="缴费金额:" prop="feePayable">
15 15
           <el-input v-model="form.feePayable" :disabled="true"/>
16 16
         </el-form-item>
17
-        <el-form-item label="申请人缴费凭证:" v-if="form.caseAttachList">
17
+        <el-form-item label="申请人缴费凭证:" v-if="form.caseAttachList&&form.caseAttachList.length>0 ">
18 18
           <div style="color: #104fad;cursor:pointer" v-for="(item, index) in form.caseAttachList" :key="index"
19 19
             @click="preview(item.annexPath)">
20 20
             {{ item.annexName }}
21 21
           </div>
22 22
         </el-form-item>
23
-        <el-form-item label="被申请人缴费凭证:" v-if="form.resCaseAttachList">
23
+        <el-form-item label="被申请人缴费凭证:" v-if="form.resCaseAttachList&&form.resCaseAttachList.length>0">
24 24
           <div style="color: #104fad;cursor:pointer" v-for="(item, index) in form.resCaseAttachList" :key="index"
25 25
             @click="preview(item.annexPath)">
26 26
             {{ item.annexName }}

+ 1
- 1
src/views/caseManagement/components/respondentPay.vue Voir le fichier

@@ -130,7 +130,7 @@
130 130
       handleRemove(file, fileList) {
131 131
         (this.submitForm.payOrderList = []),
132 132
         fileList.forEach((item) => {
133
-            this.submitForm.payOrderList.push({ annexId:item.response.data.annexId,annexName:item.response.data.annexName });
133
+            this.submitForm.payOrderList.push({ annexId:item.response.annexId,annexName:item.response.annexName });
134 134
           });
135 135
       },
136 136
       handlePreview(file) {