|
|
|
|
1
|
import store from '@/store'
|
1
|
import store from '@/store'
|
2
|
|
2
|
|
3
|
-export function getDataConfig(module, field) {
|
|
|
|
|
3
|
+export function getDataConfig (module, field) {
|
4
|
var storeConfigList = store.getters.configlist
|
4
|
var storeConfigList = store.getters.configlist
|
5
|
var moduleConfig = storeConfigList[module]
|
5
|
var moduleConfig = storeConfigList[module]
|
|
|
6
|
+ if (moduleConfig == undefined) {
|
|
|
7
|
+ return false
|
|
|
8
|
+ }
|
6
|
if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record') {
|
9
|
if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record') {
|
7
|
var Aresult = []
|
10
|
var Aresult = []
|
8
|
for (var j = 0; j < moduleConfig.length; j++) {
|
11
|
for (var j = 0; j < moduleConfig.length; j++) {
|