DeptInfoDetail.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <div>
  3. <crumbs title="icss科室维护系统-详情" linkTo="/admin/LT-YXSJWH-KSWH"></crumbs>
  4. <div class="contents">
  5. <table class="deptbox">
  6. <tr>
  7. <td>科室名称:</td>
  8. <td>{{data.name}}</td>
  9. </tr>
  10. <tr>
  11. <td class="desc">描述:</td>
  12. <td>{{data.remark}}</td>
  13. </tr>
  14. </table>
  15. </div>
  16. </div>
  17. </template>
  18. <script type="text/javascript">
  19. import api from '@api/icss.js';
  20. export default{
  21. name:'DeptInfoDetail',
  22. data(){
  23. return{
  24. data:{},
  25. id:''
  26. }
  27. },
  28. created(){
  29. this.id = this.$route.params.id;
  30. this.getDetail();
  31. },
  32. methods:{
  33. getDetail(){
  34. const param = {'id':this.id}
  35. api.getDeptInfoDetials(param).then((res)=>{
  36. let result = res.data;
  37. if(result.code==0){
  38. this.data = result.data;
  39. }else{
  40. console.log(result.msg);
  41. }
  42. })
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="less" scoped>
  48. @import "../../less/admin.less";
  49. .deptbox{
  50. width: 100%;
  51. background: #fff;
  52. padding: 20px 10px 30px;
  53. font-size: 14px;
  54. // color: #545455;
  55. text-align: left;
  56. >tr{
  57. height: 40px;
  58. td:first-child{
  59. text-align: right;
  60. width: 75px;
  61. }
  62. }
  63. .desc{
  64. // vertical-align: top;
  65. }
  66. }
  67. </style>