Bladeren bron

Merge branch 'dev' of humingfen/patient-co-management into dev

huangwenjie 7 jaren geleden
bovenliggende
commit
e2ba2b31c5

+ 14 - 16
patient-co-manage/wlyy-manage/src/main/webapp/WEB-INF/views/questionnaire/template/template_advice_js.jsp

@ -146,22 +146,20 @@
                                    codeArr[index].templateCode=templateCode;
                                }
                            });
                            if(codeArr.length != 0){
                                $.ajax({
                                    url: ctx + "/admin/surveyTemplateAdvice/saveOrUpdate",
                                    method: "post",
                                    dataType: "json",
                                    async: false,
                                    data: {jsonData:JSON.stringify(codeArr),templateCode:templateCode},
                                    success: function (result) {
                                        console.log(result)
                                        location.href = ctx + '/admin/surveyTemplate/initial';
                                    },
                                    error: function (data) {
                                        console.log(data)
                                    }
                                });
                            }
                            $.ajax({
                                url: ctx + "/admin/surveyTemplateAdvice/saveOrUpdate",
                                method: "post",
                                dataType: "json",
                                async: false,
                                data: {jsonData:JSON.stringify(codeArr),templateCode:templateCode},
                                success: function (result) {
                                    console.log(result)
                                    location.href = ctx + '/admin/surveyTemplate/initial';
                                },
                                error: function (data) {
                                    console.log(data)
                                }
                            });
                        })
                    }
            }