Selaa lähdekoodia

最新报修添加处理方案

seimin 2 vuotta sitten
vanhempi
commit
9f1674cbb5

+ 6 - 0
assets/js/controllers/customform/customformCtrl.js

@@ -9195,6 +9195,12 @@ appFormly.config(function config(formlyConfigProvider) {
9195 9195
           api_bpm_data.fetchDataList("incident", fildata).then(function (data) {
9196 9196
             console.log(data);
9197 9197
             if (data) {
9198
+              for (let i = 0; i < data.list.length; i++) {
9199
+                var element = data.list[i];
9200
+                if(element.handleDescription){
9201
+                  element.handleDescription = element.handleDescription.replace(/<[^>]+>/g, '');
9202
+                }
9203
+              }
9198 9204
               $scope.repeatData = data.list;
9199 9205
             }
9200 9206
           });

+ 1 - 0
assets/views/customform/tpl/ui-repeatIncident.html

@@ -22,6 +22,7 @@
22 22
                         <p>创建时间:{{item.acceptDate}}</p>
23 23
                         <p>工单状态:{{item.state.name}}</p>
24 24
                         <p>处理人:{{item.handlingPersonnelUser.name}}</p>
25
+                        <p>处理方案:{{item.handleDescription}}</p>
25 26
                     </div>
26 27
                 </div>
27 28
             </div>