Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

data.js 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. import store from '@/store'
  2. export function getDataConfig(module, field) {
  3. var storeConfigList = store.getters.configlist
  4. var moduleConfig = storeConfigList[module]
  5. if (moduleConfig == undefined) {
  6. return false
  7. }
  8. if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record' || module == 'dialysis_remark' || module=='catheter_operation' || module=='befor_symptoms') {
  9. var Aresult = []
  10. for (var j = 0; j < moduleConfig.length; j++) {
  11. var Atemp = []
  12. var Aconfig = moduleConfig[j]
  13. Atemp['id'] = Aconfig.value
  14. Atemp['value'] = Aconfig.content
  15. Atemp['text'] = Aconfig.title
  16. Aresult.push(Atemp)
  17. }
  18. return Aresult
  19. } else {
  20. for (var i = 0; i < moduleConfig.length; i++) {
  21. var newConfig = moduleConfig[i]
  22. if (newConfig.field_name === field) {
  23. var result = []
  24. if (newConfig.childs != null) {
  25. for (var j = 0; j < newConfig.childs.length; j++) {
  26. var tempconfig = newConfig.childs[j]
  27. var temp = []
  28. temp['id'] = tempconfig.value
  29. temp['name'] = tempconfig.name
  30. result.push(temp)
  31. }
  32. }
  33. return result
  34. }
  35. }
  36. }
  37. }
  38. export function getDictionaryDataConfig(module, field) {
  39. var storeConfigList = store.getters.dictionary_configlist
  40. var moduleConfig = storeConfigList[module]
  41. if (moduleConfig == undefined) {
  42. return false
  43. }
  44. if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record'|| module=='befor_symptoms') {
  45. var Aresult = []
  46. for (var j = 0; j < moduleConfig.length; j++) {
  47. var Atemp = []
  48. var Aconfig = moduleConfig[j]
  49. Atemp['id'] = Aconfig.value
  50. Atemp['value'] = Aconfig.content
  51. Atemp['text'] = Aconfig.title
  52. Aresult.push(Atemp)
  53. }
  54. return Aresult
  55. } else {
  56. for (var i = 0; i < moduleConfig.length; i++) {
  57. var newConfig = moduleConfig[i]
  58. if (newConfig.field_name === field) {
  59. var result = []
  60. if (newConfig.childs != null) {
  61. for (var j = 0; j < newConfig.childs.length; j++) {
  62. var tempconfig = newConfig.childs[j]
  63. var temp = []
  64. temp['id'] = tempconfig.value
  65. temp['name'] = tempconfig.name
  66. result.push(temp)
  67. }
  68. }
  69. return result
  70. }
  71. }
  72. }
  73. }
  74. export function getManageMentDataConfig(module, field) {
  75. var storeConfigList = store.getters.manage_configlist
  76. console.log("storeConfigListwwowowowowwo",storeConfigList)
  77. var moduleConfig = storeConfigList[module]
  78. if (moduleConfig == undefined) {
  79. return false
  80. }
  81. if (module === 'summary') {
  82. console.log("哈哈哈hhhwowowowoo")
  83. var Aresult = []
  84. for (var j = 0; j < moduleConfig.length; j++) {
  85. var Atemp = []
  86. var Aconfig = moduleConfig[j]
  87. Atemp['id'] = Aconfig.value
  88. Atemp['value'] = Aconfig.content
  89. Atemp['text'] = Aconfig.title
  90. Aresult.push(Atemp)
  91. }
  92. // console.log("Aresultwoowowowowow",Aresult)
  93. return Aresult
  94. } else {
  95. for (var i = 0; i < moduleConfig.length; i++) {
  96. var newConfig = moduleConfig[i]
  97. if (newConfig.field_name === field) {
  98. var result = []
  99. if (newConfig.childs != null) {
  100. for (var j = 0; j < newConfig.childs.length; j++) {
  101. var tempconfig = newConfig.childs[j]
  102. var temp = []
  103. temp['id'] = tempconfig.value
  104. temp['name'] = tempconfig.name
  105. result.push(temp)
  106. }
  107. }
  108. return result
  109. }
  110. }
  111. }
  112. }