renew-progress-filter.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. (function(){
  2. Vue.component('renew-progress-filter',{
  3. template:'<div style="height: 400px;overflow: auto;margin-bottom: 50px;">\
  4. <div class="ml10 filter-title">统计维度</div>\
  5. <div class="div-content">\
  6. <div class="mt20 div-group-btn c-row ml40 mr10">\
  7. <div class="div-btn c-33" :class="{\'active\': lowCode==\'\'}" @click="contentClick(\'\', \'所有居民\')">\
  8. <a href="#" class="f-fs14">所有居民</a>\
  9. </div>\
  10. <div class="div-btn c-33" :class="{\'active\': lowCode==3}" @click="contentClick(3, \'65岁以上签约\')">\
  11. <a href="#" class="f-fs14">65岁以上签约</a>\
  12. </div>\
  13. <div class="div-btn c-33" :class="{\'active\': lowCode==1}" @click="contentClick(1, \'高血压\')">\
  14. <a href="#" class="f-fs14">高血压</a>\
  15. </div>\
  16. </div>\
  17. <div class="mt20 div-group-btn c-row ml40 mr10">\
  18. <div class="div-btn c-33" :class="{\'active\': lowCode==2}" @click="contentClick(2, \'糖尿病\')">\
  19. <a href="#" class="f-fs14">糖尿病</a>\
  20. </div>\
  21. </div>\
  22. </div>\
  23. <div id="footer">\
  24. <div class="c-row btn-wrap c-border-top fr">\
  25. <div class="div-foot-btn mr20" @click="resetClick">\
  26. <a href="#" class="c-666 f-fs16">重置</a>\
  27. </div>\
  28. <div class="div-foot-btn active" @click="confirmClick">\
  29. <a href="#" class="c-666 f-fs16">保存</a>\
  30. </div>\
  31. </div>\
  32. </div>\
  33. </div>',
  34. props:['lowCode', 'analysisName'],
  35. data: function(){
  36. return {
  37. }
  38. },
  39. methods: {
  40. contentClick:function(val, name){
  41. this.lowCode = val;
  42. this.analysisName = name;
  43. },
  44. resetClick:function(){
  45. this.lowCode = "";
  46. },
  47. confirmClick:function(){
  48. var vm = this;
  49. //触发刷新
  50. this.$emit('vuedals:close', {
  51. lowCode: vm.lowCode,
  52. name: vm.analysisName,
  53. contentHtml:$(".div-content").html()
  54. });
  55. }
  56. },
  57. mounted: function(){
  58. if(this.contentHtml){
  59. $(".div-content").html(this.contentHtml);
  60. }
  61. }
  62. });
  63. })()