{"ast":null,"code":"export default {\n name: \"Hypertension_1\",\n data() {\n return {\n proxy: \"/examServer\",\n url: \"/public_api/v1/api_for_vue_exam_hypertension_1\",\n userName: \"刘松林\",\n sbp: 0,\n dbp: 0,\n result: \"\"\n };\n },\n methods: {\n getResult() {\n const formData = new FormData();\n formData.append(\"userName\", this.userName);\n formData.append(\"sbp\", this.sbp);\n formData.append(\"dbp\", this.dbp);\n let url = this.proxy + this.url;\n let that = this;\n this.axios.post(url, formData, {\n headers: {\n 'Content-Type': 'multipart/form-data'\n }\n }).then(function (response) {\n that.result = response.data;\n }, function (error) {\n console.log(\"有可能是防火墙没有开\");\n console.log(error.data);\n });\n }\n },\n mounted() {\n window.myVue = this;\n }\n};","map":{"version":3,"names":["name","data","proxy","url","userName","sbp","dbp","result","methods","getResult","formData","FormData","append","that","axios","post","headers","then","response","error","console","log","mounted","window","myVue"],"sources":["C:\\exam_app\\app_vue\\src\\components\\Hypertension_1.vue"],"sourcesContent":["\r\n 居民血压管理系统
\r\n {{result}}
\r\n 居民姓名:\r\n sbp:\r\n dbp:\r\n \r\n\r\n\r\n\r\n\r\n"],"mappings":"AAUI,eAAe;EACXA,IAAI,EAAE,gBAAgB;EACtBC,IAAIA,CAAA,EAAE;IACF,OAAM;MACFC,KAAK,EAAC,aAAa;MACnBC,GAAG,EAAC,gDAAgD;MACpDC,QAAQ,EAAC,KAAK;MACdC,GAAG,EAAC,CAAC;MACLC,GAAG,EAAC,CAAC;MACLC,MAAM,EAAC;IACX;EACJ,CAAC;EACDC,OAAO,EAAC;IACJC,SAASA,CAAA,EAAE;MAEP,MAAMC,QAAO,GAAI,IAAIC,QAAQ,CAAC,CAAC;MAE/BD,QAAQ,CAACE,MAAM,CAAC,UAAU,EAAE,IAAI,CAACR,QAAQ,CAAC;MAC1CM,QAAQ,CAACE,MAAM,CAAC,KAAK,EAAE,IAAI,CAACP,GAAG,CAAC;MAChCK,QAAQ,CAACE,MAAM,CAAC,KAAK,EAAE,IAAI,CAACN,GAAG,CAAC;MAEhC,IAAIH,GAAE,GAAI,IAAI,CAACD,KAAK,GAAC,IAAI,CAACC,GAAG;MAC7B,IAAIU,IAAG,GAAI,IAAI;MAEf,IAAI,CAACC,KAAK,CAACC,IAAI,CACXZ,GAAG,EACHO,QAAQ,EACR;QACIM,OAAO,EAAE;UACL,cAAc,EAAE;QACpB;MACJ,CAEJ,CAAC,CAACC,IAAI,CACF,UAAUC,QAAQ,EAAE;QAChBL,IAAI,CAACN,MAAM,GAAEW,QAAQ,CAACjB,IAAI;MAC9B,CAAC,EACD,UAAUkB,KAAK,EAAE;QACbC,OAAO,CAACC,GAAG,CAAC,YAAY,CAAC;QACzBD,OAAO,CAACC,GAAG,CAACF,KAAK,CAAClB,IAAI,CAAC;MAC3B,CACJ;IAEJ;EACJ,CAAC;EACDqB,OAAOA,CAAA,EAAG;IACNC,MAAM,CAACC,KAAK,GAAC,IAAI;EACrB;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}