tpl-bed-unit.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <keep-alive>
  3. <div style="box-sizing: content-box;" >
  4. <!-- <drag-tool @delete="deleteModule" :is-edit="isEdit" @copy="copyModule" @active="activeModule" :unique="data.unique">-->
  5. <div class="box-card radius" style="box-shadow: 1px 1px 3px 1px #eee" :style="moduleComputedStyle" v-if="isEdit?true:(data.moduleConfig.dataConfig.showOnPatientIn?(bindData.items[childDataIndex].member_id!==null):(bindData.items[childDataIndex].member_id===null))">
  6. <slot></slot>
  7. </div>
  8. <!-- </drag-tool>-->
  9. </div>
  10. </keep-alive>
  11. </template>
  12. <script>
  13. import mixin from '../../mixinnew'
  14. import DragTool from "../DragTool";
  15. export default {
  16. name: "tpl-bed-unit",
  17. components: {DragTool},
  18. mixins: [mixin],
  19. title: '床位单元格',
  20. data(){
  21. return{
  22. }
  23. },
  24. dataTpl: {
  25. tpl_id: 6,
  26. tpl_type: 'BOARD_ITEM',
  27. unique:'',
  28. moduleIconClass:'icon-line-card',
  29. isEdit:true,
  30. moduleConfig:{
  31. moduleStyle: {
  32. borderColor: '#ff0000',
  33. borderWidth:'1px',
  34. borderRadius:'5px',
  35. borderStyle:'solid',
  36. backgroundColor:''
  37. },
  38. styleConfig:{
  39. borderColorWithNurse:'', //边框颜色跟随的护理信息分类
  40. backgroundColorWithNurse:'', //模块背景色跟随的护理信息分类
  41. boxShadowShow:false,
  42. boxShadowColor:''
  43. },
  44. dataConfig:{
  45. showOnPatientIn:true
  46. }
  47. },
  48. children:([])
  49. }
  50. }
  51. </script>
  52. <style scoped>
  53. </style>