vendor.js.map 2.9KB

1
  1. {"version":3,"sources":["uni-app:///utils/getDataConfig.js"],"names":["getDataConfigs","module","field","storeConfigList","store","state","data","configList","moduleConfig","undefined","Aresult","j","length","Atemp","Aconfig","value","content","title","push","i","newConfig","field_name","result","childs","tempconfig","temp","name"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AACO,SAASA,cAAc,CAAEC,MAAM,EAAEC,KAAK,EAAE;EAC7C,IAAIC,eAAe,GAAGC,cAAK,CAACC,KAAK,CAACC,IAAI,CAACC,UAAU;EACjD,IAAIC,YAAY,GAAGL,eAAe,CAACF,MAAM,CAAC;EAC1C,IAAIO,YAAY,IAAIC,SAAS,EAAE;IAC7B,OAAO,KAAK;EACd;EACA,IAAIR,MAAM,KAAK,SAAS,IAAIA,MAAM,KAAK,WAAW,IAAIA,MAAM,KAAK,gBAAgB,IAAIA,MAAM,KAAK,gBAAgB,EAAE;IAChH,IAAIS,OAAO,GAAG,EAAE;IAChB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,YAAY,CAACI,MAAM,EAAED,CAAC,EAAE,EAAE;MAC5C,IAAIE,KAAK,GAAG,EAAE;MACd,IAAIC,OAAO,GAAGN,YAAY,CAACG,CAAC,CAAC;MAC7BE,KAAK,CAAC,IAAI,CAAC,GAAGC,OAAO,CAACC,KAAK;MAC3BF,KAAK,CAAC,OAAO,CAAC,GAAGC,OAAO,CAACE,OAAO;MAChCH,KAAK,CAAC,MAAM,CAAC,GAAGC,OAAO,CAACG,KAAK;MAC7BP,OAAO,CAACQ,IAAI,CAACL,KAAK,CAAC;IACrB;IACA,OAAOH,OAAO;EAChB,CAAC,MAAM;IACL,KAAK,IAAIS,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGX,YAAY,CAACI,MAAM,EAAEO,CAAC,EAAE,EAAE;MAC5C,IAAIC,SAAS,GAAGZ,YAAY,CAACW,CAAC,CAAC;MAC/B,IAAIC,SAAS,CAACC,UAAU,KAAKnB,KAAK,EAAE;QAClC,IAAIoB,MAAM,GAAG,EAAE;QACf,IAAIF,SAAS,CAACG,MAAM,IAAI,IAAI,EAAE;UAC5B,KAAK,IAAIZ,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGS,SAAS,CAACG,MAAM,CAACX,MAAM,EAAED,CAAC,EAAE,EAAE;YAChD,IAAIa,UAAU,GAAGJ,SAAS,CAACG,MAAM,CAACZ,CAAC,CAAC;YACpC,IAAIc,IAAI,GAAG,EAAE;YACbA,IAAI,CAAC,IAAI,CAAC,GAAGD,UAAU,CAACT,KAAK;YAC7BU,IAAI,CAAC,MAAM,CAAC,GAAGD,UAAU,CAACE,IAAI;YAC9BJ,MAAM,CAACJ,IAAI,CAACO,IAAI,CAAC;UACnB;QACF;QACA,OAAOH,MAAM;MACf;IACF;EACF;AACF,C","file":"subpackages/common/vendor.js","sourcesContent":["import store from '@/store'\nexport function getDataConfigs (module, field) {\n var storeConfigList = store.state.data.configList\n var moduleConfig = storeConfigList[module]\n if (moduleConfig == undefined) {\n return false\n }\n if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record') {\n var Aresult = []\n for (var j = 0; j < moduleConfig.length; j++) {\n var Atemp = []\n var Aconfig = moduleConfig[j]\n Atemp['id'] = Aconfig.value\n Atemp['value'] = Aconfig.content\n Atemp['text'] = Aconfig.title\n Aresult.push(Atemp)\n }\n return Aresult\n } else {\n for (var i = 0; i < moduleConfig.length; i++) {\n var newConfig = moduleConfig[i]\n if (newConfig.field_name === field) {\n var result = []\n if (newConfig.childs != null) {\n for (var j = 0; j < newConfig.childs.length; j++) {\n var tempconfig = newConfig.childs[j]\n var temp = []\n temp['id'] = tempconfig.value\n temp['name'] = tempconfig.name\n result.push(temp)\n }\n }\n return result\n }\n }\n }\n}"],"sourceRoot":""}