123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>选择疾病</title>
- <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
- <link rel="stylesheet" type="text/css" href="../../../css/cross.ui.css" />
- <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
- <link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
- <link rel="stylesheet" type="text/css" href="../css/select-patient.css" />
- </head>
- <body class="m0">
- <div id="app" class="c-t-center" style="height: 100%;" v-cloak>
- <div style="overflow: hidden; height: calc(100% - 60px);">
- <ul class="disease-list c-h100 p0 m0 pl20 pr10 clearfix" style="overflow: auto;">
- <li class="fl mr10 plr20 ptb5 c-border b-r-3 mt20 cur-pit" :class="{'active':index == selectIndex}" v-for="(disease, index) in diseaseArr" :key="index" @click="selectFn(index)">{{disease.diseaseName}}</li>
- </ul>
- </div>
- <div class="ptb20">
- <span class="c-fff btn cur-pit plr30 ptb5 bgc-12b7f5 b-r-3" @click="sure()">确 认</span>
- </div>
- </div>
- <script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../js/jquery-2.2.4.js"></script>
- <script src="../../../plugins/layer/layer.min.js"></script>
- <script src="../../../plugins/toastr/toastr.min.js"></script>
- <script src="../../../js/bootstrap.min.js"></script>
- <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../api/http-request.js" type="text/javascript"></script>
- <script src="../../../api/recover_api.js" type="text/javascript"></script>
- <script type="text/javascript">
- var doctorType = (JSON.parse(window.localStorage.getItem('wlyyAgent'))||{}).doctorType
- var httpData=GetRequest()
- function showSuccessMessage(msg) {
- layer.msg(msg, {
- icon: 1
- })
- }
-
- function showErrorMessage(msg) {
- layer.msg(msg, {
- icon: 5
- })
- }
-
- function showWarningMessage(msg) {
- layer.msg(msg, {
- icon: 2
- })
- }
-
- function showInfoMessage(msg) {
- layer.msg(msg, {
- icon: 6
- })
- }
-
- selectVue = new Vue({
- el: "#app",
- data: {
- selectIndex: null,
- diseaseArr: null
- },
- mounted: function() {
- this.findTeamDiseaseRelation()
- },
- methods: {
- selectFn: function(index) {
- this.selectIndex = index + ''
- },
- sure: function() {
- if(!this.selectIndex) {
- showWarningMessage("请选择疾病!")
- return false;
- }
- top.recoverVue.newPlan(this.diseaseArr[this.selectIndex], httpData.templateId)
- top.layer.close(top.recoverVue.selectDiseaseIndex)
- },
- findTeamDiseaseRelation: function() {
- var vm = this,
- loadding = layer.load(0, {shade: false}),
- params = {
- teamCode: httpData.teamCode
- }
- recoverAPI.findTeamDiseaseRelation(params).then(function(res) {
- layer.close(loadding)
- if(res.status == 200) {
- vm.diseaseArr = res.data
- } else {
- showErrorMessage(res.msg);
- }
- })
- }
- }
- })
- </script>
- </body>
- </html>
|