#131 调解修改短信bug

Спојено
gaogaoyujie споји(ла) 2 комит(е) из gyj у dev пре 2 година

+ 11
- 1
src/views/deliveryRecord/components/emailEdits.vue Прегледај датотеку

@@ -124,12 +124,22 @@ export default {
124 124
     },
125 125
     submitSend() {
126 126
       console.log(this.emailRow.mailContent);
127
-      this.updateSendContentFn({
127
+      if(this.files.annexId){
128
+        this.updateSendContentFn({
128 129
         id: this.emailRow.id,
129 130
         mailContent: this.sendData,
130 131
         caseAttachList:[{annexId:this.files.annexId}],
131 132
         
132 133
       });
134
+      }else{
135
+        this.updateSendContentFn({
136
+        id: this.emailRow.id,
137
+        mailContent: this.sendData,
138
+        caseAttachList:[],
139
+        
140
+      });
141
+      }
142
+      
133 143
      
134 144
     },
135 145
     updateSendContentFn(data) {

+ 6
- 6
src/views/deliveryRecord/smsRecord.vue Прегледај датотеку

@@ -36,7 +36,7 @@
36 36
         <resend :resendVidable="resendVidable" :rowData="rowData" @getList="getList" @cancelSend="cancelSend" :queryParams="queryParams"></resend>
37 37
         <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
38 38
             :limit.sync="queryParams.pageSize"
39
-            @pagination="getList({ caseNum: queryParams.caseNum }, { pageNum: queryParams.pageNum, pageSize: queryParams.pageSize })" />
39
+            @pagination="getList({ caseNum: queryParams.caseNum,pageNum: queryParams.pageNum, pageSize: queryParams.pageSize})" />
40 40
 
41 41
     </div>
42 42
 </template>
@@ -74,7 +74,7 @@ export default {
74 74
     },
75 75
     created() {
76 76
         getDicts("case_status").then(res => {
77
-            this.getList({ caseNum: this.queryParams.caseNum }, { pageNum: this.queryParams.pageNum, pageSize: this.queryParams.pageSize });
77
+            this.getList({ caseNum: this.queryParams.caseNum,pageNum: this.queryParams.pageNum, pageSize: this.queryParams.pageSize});
78 78
         })
79 79
     },
80 80
     methods: {
@@ -100,7 +100,7 @@ export default {
100 100
         /** 搜索按钮操作 */
101 101
         handleQuery() {
102 102
             this.queryParams.pageNum = 1;
103
-            this.getList({ caseNum: this.queryParams.caseNum }, { pageNum: this.queryParams.pageNum, pageSize: this.queryParams.pageSize });
103
+            this.getList({ caseNum: this.queryParams.caseNum,pageNum: this.queryParams.pageNum, pageSize: this.queryParams.pageSize });
104 104
         },
105 105
         /** 重置按钮操作 */
106 106
         resetQuery() {
@@ -108,9 +108,9 @@ export default {
108 108
             this.handleQuery();
109 109
         },
110 110
         // 查询列表数据
111
-        getList(data, params) {
111
+        getList(data) {
112 112
             this.loading = true;
113
-            recordList(data, params).then((response) => {
113
+            recordList(data).then((response) => {
114 114
                 this.dataList = response.rows;
115 115
                 this.dataList.forEach(item => {
116 116
                     if (item.sendStatus == 1) {
@@ -141,7 +141,7 @@ export default {
141 141
         reSendShortMessageFn(valuesRow){
142 142
             reSendShortMessage(valuesRow).then(res=>{
143 143
                 this.$message.success('发送成功');
144
-                this.getList({ caseNum: this.queryParams.caseNum }, { pageNum: this.queryParams.pageNum, pageSize: this.queryParams.pageSize });
144
+                this.getList({ caseNum: this.queryParams.caseNum,pageNum: this.queryParams.pageNum, pageSize: this.queryParams.pageSize });
145 145
             })
146 146
         }
147 147
     },