chunk-948fee3e.0f25616c.js.map 29 KB

1
  1. {"version":3,"sources":["webpack:///./src/components/Page.vue?edd7","webpack:///./src/components/Page.vue","webpack:///src/components/Page.vue","webpack:///./src/components/Page.vue?7a9f","webpack:///./src/components/Page.vue?94b3","webpack:///./node_modules/_core-js@2.6.12@core-js/modules/es6.function.name.js","webpack:///./src/views/doctor/Index.vue","webpack:///src/views/doctor/Index.vue","webpack:///./src/views/doctor/Index.vue?deef","webpack:///./src/views/doctor/Index.vue?7822","webpack:///./src/views/doctor/Index.vue?6e47"],"names":["render","_vm","this","_c","_self","attrs","page_size","current","total","on","getData","handleSizeChange","staticRenderFns","data","page","props","methods","type","$emit","val","created","component","dP","f","FProto","Function","prototype","nameRE","NAME","configurable","get","match","e","staticClass","_v","$event","model","value","queryParams","name","callback","$$v","$set","expression","phone","staticStyle","handleAdd","directives","rawName","loading","list","scopedSlots","_u","key","fn","scope","row","role","_e","edit","id","del","ref","form","gopage","title","open","rules","_l","$const","doctorRoleList","item","label","hospital_name","slot","submitForm","components","Page","form1","form2","stockList","_this","$confirm","then","$api","delDoctorInfo","res","code","$msgError","message","$msgSuccess","size","$refs","pageButton","_this2","getDoctorsList","_this3","getDoctorInfo","handleAvatarSuccess","file","img","url","beforeAvatarUpload","_this4","validate","valid","editDoctorInfo","msgSuccess","msgError","addDoctorInfo","remoteMethod","query","_this5","getStockSearchList"],"mappings":"2IAAA,W,2DCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,gBAAgB,CAACE,MAAM,CAAC,WAAa,GAAG,YAAYJ,EAAIK,UAAUL,EAAIK,UAAU,GAAG,eAAeL,EAAIM,QAAQ,aAAa,CAAC,GAAG,GAAI,GAAI,GAAI,GAAG,GAAG,GAAG,GAAG,GAAG,KAAK,OAAS,gCAAgC,MAAQN,EAAIO,OAAOC,GAAG,CAAC,iBAAiBR,EAAIS,QAAQ,cAAcT,EAAIU,qBAEhVC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A,IAAAoC,EAAA,KACA,KAAA/B,MAAA,OACA,KAAAmB,KACAa,cAAA,CACArC,OAEAuB,MAAA,SAAAG,GACAU,EAAAjC,KAAAuB,EAAAzE,UACAmF,EAAA9B,MAAA,MAGAgC,oBAAA,SAAAZ,EAAAa,GACA,KAAApC,KAAAqC,IAAAd,EAAAzE,KAAAwF,KAEAC,mBAAA,SAAAH,KAcAxB,WAAA,eAAA4B,EAAA,KACA,KAAAX,MAAA,QAAAY,UAAA,SAAAC,GACAA,IACA,MAAAF,EAAAxC,KAAAH,GACA2C,EAAAnB,KAAAsB,eAAAH,EAAAxC,MAAAoB,MAAA,SAAAG,GACA,GAAAA,EAAAzE,KAAA0E,MACAgB,EAAAI,WAAA,OACAJ,EAAArC,MAAA,EACAqC,EAAA7F,WAEA6F,EAAAK,SAAAtB,EAAAzE,KAAA4E,YAIAc,EAAAnB,KAAAyB,cAAAN,EAAAxC,MAAAoB,MAAA,SAAAG,GACA,GAAAA,EAAAzE,KAAA0E,MACAgB,EAAAI,WAAA,OACAJ,EAAArC,MAAA,EACAqC,EAAA7F,WAEA6F,EAAAK,SAAAtB,EAAAzE,KAAA4E,iBAOAqB,aAAA,SAAAC,GAAA,IAAAC,EAAA,KACA,KAAAD,GACA,KAAA9D,SAAA,EACA,KAAAmC,KACA6B,mBAAA,CACA1E,KAAAwE,IAEA5B,MAAA,SAAAG,GACA0B,EAAAhC,UAAAM,EAAAzE,UACAmG,EAAAtE,KAAAsE,EAAAhC,UAAAM,EAAAzE,WACAmG,EAAA/D,SAAA,MAGA,KAAA+B,UAAA,KAIA5D,QAAA,WACA,KAAAV,YClSmc,I,wBCQ/bW,EAAY,eACd,EACArB,EACAY,GACA,EACA,KACA,KACA,MAIa,aAAAS,E,2CCnBf","file":"js/chunk-948fee3e.0f25616c.js","sourcesContent":["export * from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./Page.vue?vue&type=style&index=0&id=df237d3a&prod&lang=scss&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-pagination',{attrs:{\"background\":\"\",\"page-size\":_vm.page_size?_vm.page_size:20,\"current-page\":_vm.current,\"page-sizes\":[10,20, 30, 40, 50,60,70,80,90,100],\"layout\":\"total,sizes,prev, pager, next\",\"total\":_vm.total},on:{\"current-change\":_vm.getData,\"size-change\":_vm.handleSizeChange}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<style lang=\"scss\">\r\n @import '../style/style.scss';\r\n .el-pagination{\r\n li,button{\r\n border: 1px solid #CACACA !important;\r\n background-color: #fff !important;\r\n }\r\n .active{\r\n border:none !important;\r\n background: #3895FE !important;\r\n }\r\n }\r\n</style>\r\n<template>\r\n <el-pagination\r\n @current-change=\"getData\"\r\n background :page-size='page_size?page_size:20'\r\n @size-change=\"handleSizeChange\"\r\n :current-page=\"current\"\r\n :page-sizes=\"[10,20, 30, 40, 50,60,70,80,90,100]\"\r\n layout=\"total,sizes,prev, pager, next\"\r\n :total=\"total\">\r\n </el-pagination>\r\n</template>\r\n<script>\r\nexport default {\r\n data(){\r\n return{\r\n page:1\r\n }\r\n },\r\n props: {\r\n total:'',\r\n page_size:'',\r\n current:''\r\n },\r\n methods:{\r\n getData(type){\r\n // if(type == 1){\r\n // this.data.pageNumber=this.data.pageNumber-1\r\n // }else if(type == 2){\r\n // this.data.pageNumber=this.data.pageNumber+1\r\n // }\r\n this.page=type\r\n this.$emit('pageChange')\r\n },\r\n handleSizeChange(val){\r\n this.$emit('pageChange',val)\r\n }\r\n },\r\n created(){\r\n }\r\n}\r\n</script>","import mod from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./Page.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./Page.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Page.vue?vue&type=template&id=df237d3a&\"\nimport script from \"./Page.vue?vue&type=script&lang=js&\"\nexport * from \"./Page.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Page.vue?vue&type=style&index=0&id=df237d3a&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('section',{staticClass:\"content\"},[_c('h4',[_vm._v(\"医生列表\")]),_c('el-divider'),_c('el-form',{staticClass:\"filter-form\",attrs:{\"label-width\":\"80px\"}},[_c('el-row',[_c('el-col',{attrs:{\"span\":4}},[_c('el-form-item',{attrs:{\"label\":\"名称\"}},[_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"请输入名称\",\"size\":\"mini\"},on:{\"clear\":function($event){return _vm.getData()}},model:{value:(_vm.queryParams.name),callback:function ($$v) {_vm.$set(_vm.queryParams, \"name\", $$v)},expression:\"queryParams.name\"}})],1)],1),_c('el-col',{attrs:{\"span\":4}},[_c('el-form-item',{attrs:{\"label\":\"手机号\"}},[_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"请输入手机号\",\"size\":\"mini\"},on:{\"clear\":function($event){return _vm.getData()}},model:{value:(_vm.queryParams.phone),callback:function ($$v) {_vm.$set(_vm.queryParams, \"phone\", $$v)},expression:\"queryParams.phone\"}})],1)],1),_c('el-col',{attrs:{\"span\":4}},[_c('el-form-item',{staticStyle:{\"margin-left\":\"10px\"},attrs:{\"label-width\":\"10\"}},[_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":_vm.getData}},[_vm._v(\"筛选\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\",\"icon\":\"el-icon-plus\",\"size\":\"mini\"},on:{\"click\":_vm.handleAdd}},[_vm._v(\"新增医生\")])],1)],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\",\"margin-top\":\"10px\"},attrs:{\"data\":_vm.list,\"height\":\"50vh\"}},[_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"name\",\"label\":\"名称\"}}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"phone\",\"label\":\"手机号\"}}),_c('el-table-column',{attrs:{\"label\":\"医生类型\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.role==1)?_c('span',[_vm._v(\"大医生\")]):_vm._e(),(scope.row.role==2)?_c('span',[_vm._v(\"中医生\")]):_vm._e(),(scope.row.role==3)?_c('span',[_vm._v(\"小医生\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"hospital_name\",\"label\":\"医院\"}}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"ctime\",\"label\":\"创建时间\"}}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"date\",\"label\":\"操作\",\"width\":\"320\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"warning\"},on:{\"click\":function($event){return _vm.edit(scope.row.id)}}},[_vm._v(\"编辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.del(scope.row.id)}}},[_vm._v(\"删除\")])]}}])})],1),_c('Page',{ref:\"pageButton\",attrs:{\"current\":_vm.form.page,\"page_size\":_vm.form.page_size,\"total\":_vm.total},on:{\"pageChange\":_vm.gopage}}),_c('el-dialog',{attrs:{\"title\":_vm.title,\"visible\":_vm.open,\"width\":\"500px\",\"append-to-body\":\"\"},on:{\"update:visible\":function($event){_vm.open=$event}}},[_c('el-form',{ref:\"form\",attrs:{\"model\":_vm.form,\"rules\":_vm.rules,\"label-width\":\"80px\"}},[_c('el-form-item',{attrs:{\"label\":\"名称\",\"prop\":\"name\"}},[_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"请输入名称\"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1),_c('el-form-item',{attrs:{\"label\":\"手机号\",\"prop\":\"phone\"}},[_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"请输入手机号\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"医生类型\",\"prop\":\"role\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择医生类型\",\"filterable\":\"\"},model:{value:(_vm.form.role),callback:function ($$v) {_vm.$set(_vm.form, \"role\", $$v)},expression:\"form.role\"}},_vm._l((_vm.$const.doctorRoleList),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"医院\",\"prop\":\"hospital_name\"}},[_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"请输入医院\"},model:{value:(_vm.form.hospital_name),callback:function ($$v) {_vm.$set(_vm.form, \"hospital_name\", $$v)},expression:\"form.hospital_name\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.submitForm}},[_vm._v(\"确 定\")]),_c('el-button',{on:{\"click\":function($event){_vm.open = false}}},[_vm._v(\"取 消\")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<style lang=\"scss\">\r\n.avatar-uploader .el-upload {\r\n border: 1px dashed #d9d9d9;\r\n border-radius: 6px;\r\n cursor: pointer;\r\n position: relative;\r\n overflow: hidden;\r\n}\r\n\r\n.avatar-uploader .el-upload:hover {\r\n border-color: #409eff;\r\n}\r\n\r\n.avatar-uploader-icon {\r\n font-size: 28px;\r\n color: #8c939d;\r\n width: 178px;\r\n height: 178px;\r\n line-height: 178px;\r\n text-align: center;\r\n}\r\n\r\n.avatar {\r\n width: 178px;\r\n height: 178px;\r\n display: block;\r\n}\r\n</style>\r\n<template>\r\n <section class=\"content\">\r\n <h4>医生列表</h4>\r\n <el-divider></el-divider>\r\n <el-form label-width=\"80px\" class=\"filter-form\">\r\n <el-row>\r\n <el-col :span=\"4\">\r\n <el-form-item label=\"名称\">\r\n <el-input\r\n clearable\r\n @clear=\"getData()\"\r\n v-model=\"queryParams.name\"\r\n placeholder=\"请输入名称\"\r\n size=\"mini\"\r\n ></el-input>\r\n </el-form-item>\r\n </el-col>\r\n <el-col :span=\"4\">\r\n <el-form-item label=\"手机号\">\r\n <el-input\r\n clearable\r\n @clear=\"getData()\"\r\n v-model=\"queryParams.phone\"\r\n placeholder=\"请输入手机号\"\r\n size=\"mini\"\r\n ></el-input>\r\n </el-form-item>\r\n </el-col>\r\n <el-col :span=\"4\">\r\n <el-form-item label-width=\"10\" style=\"margin-left: 10px\">\r\n <el-button type=\"primary\" @click=\"getData\" size=\"mini\">筛选</el-button>\r\n <el-button type=\"primary\" plain icon=\"el-icon-plus\" size=\"mini\" @click=\"handleAdd\">新增医生</el-button>\r\n </el-form-item>\r\n </el-col>\r\n </el-row>\r\n </el-form>\r\n <el-table v-loading=\"loading\" :data=\"list\" style=\"width: 100%; margin-top: 10px\" height=\"50vh\">\r\n <el-table-column align=\"center\" prop=\"name\" label=\"名称\" />\r\n <!-- <el-table-column label=\"图片\">\r\n <template slot-scope=\"scope\">\r\n <el-image style=\"width: 80px; height: 60px\" :src=\"scope.row.img\" :preview-src-list=\"[scope.row.img]\">\r\n </el-image>\r\n </template>\r\n </el-table-column>-->\r\n <el-table-column align=\"center\" prop=\"phone\" label=\"手机号\" />\r\n <el-table-column label=\"医生类型\">\r\n <template slot-scope=\"scope\">\r\n <span v-if=\"scope.row.role==1\">大医生</span>\r\n <span v-if=\"scope.row.role==2\">中医生</span>\r\n <span v-if=\"scope.row.role==3\">小医生</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column align=\"center\" prop=\"hospital_name\" label=\"医院\" />\r\n <el-table-column align=\"center\" prop=\"ctime\" label=\"创建时间\" />\r\n <el-table-column align=\"center\" prop=\"date\" label=\"操作\" width=\"320\">\r\n <template slot-scope=\"scope\">\r\n <el-button @click=\"edit(scope.row.id)\" size=\"mini\" type=\"warning\">编辑</el-button>\r\n <el-button @click=\"del(scope.row.id)\" size=\"mini\" type=\"danger\">删除</el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <Page\r\n ref=\"pageButton\"\r\n :current=\"form.page\"\r\n :page_size=\"form.page_size\"\r\n :total=\"total\"\r\n @pageChange=\"gopage\"\r\n />\r\n <!-- 新增医生 -->\r\n <el-dialog :title=\"title\" :visible.sync=\"open\" width=\"500px\" append-to-body>\r\n <el-form ref=\"form\" :model=\"form\" :rules=\"rules\" label-width=\"80px\">\r\n <el-form-item label=\"名称\" prop=\"name\">\r\n <el-input\r\n clearable\r\n v-model=\"form.name\"\r\n placeholder=\"请输入名称\"\r\n ></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"手机号\" prop=\"phone\">\r\n <el-input\r\n clearable\r\n v-model=\"form.phone\"\r\n placeholder=\"请输入手机号\"\r\n ></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"医生类型\" prop=\"role\">\r\n <el-select\r\n v-model=\"form.role\"\r\n placeholder=\"请选择医生类型\"\r\n filterable\r\n >\r\n <el-option\r\n v-for=\"item in $const.doctorRoleList\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n ></el-option>\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"医院\" prop=\"hospital_name\">\r\n <el-input\r\n clearable\r\n v-model=\"form.hospital_name\"\r\n placeholder=\"请输入医院\"\r\n ></el-input>\r\n </el-form-item>\r\n <!-- <el-form-item label=\"图片\" prop>\r\n <el-upload\r\n class=\"avatar-uploader\"\r\n action=\"/api/admin/uploadfile\"\r\n :data=\"{watermark:0}\"\r\n :show-file-list=\"false\"\r\n :on-success=\"handleAvatarSuccess\"\r\n :before-upload=\"beforeAvatarUpload\"\r\n >\r\n <img v-if=\"form.img\" :src=\"form.img\" class=\"avatar\" />\r\n <i v-else class=\"el-icon-plus avatar-uploader-icon\"></i>\r\n </el-upload>\r\n </el-form-item> -->\r\n </el-form>\r\n <div slot=\"footer\" class=\"dialog-footer\">\r\n <el-button type=\"primary\" @click=\"submitForm\">确 定</el-button>\r\n <el-button @click=\"open = false\">取 消</el-button>\r\n </div>\r\n </el-dialog>\r\n </section>\r\n</template>\r\n<script>\r\nimport Page from \"../../components/Page\";\r\nexport default {\r\n components: {\r\n Page\r\n },\r\n data() {\r\n return {\r\n loading: false,\r\n queryParams: {\r\n page: 1\r\n },\r\n form: {},\r\n form1: {},\r\n form2: {},\r\n list: [{}, {}],\r\n total: 0,\r\n title: \"新增用户\",\r\n open: false,\r\n stockList: [],\r\n rules: {}\r\n };\r\n },\r\n methods: {\r\n del(id) {\r\n this.$confirm(\"确认删除?\", \"提示\", {\r\n type: \"warning\"\r\n }).then(() => {\r\n this.$api\r\n .delDoctorInfo({\r\n id: id\r\n })\r\n .then(res => {\r\n if(!res.data.code){\r\n this.$msgSuccess(\"删除成功\")\r\n this.getData();\r\n }else{\r\n this.$msgError(res.data.message)\r\n }\r\n });\r\n });\r\n },\r\n gopage(size) {\r\n if (size) {\r\n this.queryParams.page_size = size;\r\n }\r\n this.queryParams.page = this.$refs.pageButton.page;\r\n this.getData();\r\n },\r\n getData() {\r\n this.loading = true;\r\n this.$api.getDoctorsList(this.queryParams).then(res => {\r\n this.list = res.data.data.list;\r\n this.total = res.data.data.total;\r\n this.loading = false;\r\n });\r\n },\r\n handleAdd() {\r\n this.open = true;\r\n this.title = \"新增医生\";\r\n this.form = {};\r\n },\r\n edit(id) {\r\n this.title = \"编辑医生\";\r\n this.$api\r\n .getDoctorInfo({\r\n id: id\r\n })\r\n .then(res => {\r\n this.form = res.data.data;\r\n this.open = true;\r\n });\r\n },\r\n handleAvatarSuccess(res, file) {\r\n this.form.img = res.data.url;\r\n },\r\n beforeAvatarUpload(file) {\r\n return;\r\n const isJPG = file.type === \"image/jpeg\";\r\n const isLt2M = file.size / 1024 / 1024 < 2;\r\n\r\n if (!isJPG) {\r\n this.$message.error(\"上传头像图片只能是 JPG 格式!\");\r\n }\r\n if (!isLt2M) {\r\n this.$message.error(\"上传头像图片大小不能超过 2MB!\");\r\n }\r\n return isJPG && isLt2M;\r\n },\r\n /** 提交按钮 */\r\n submitForm() {\r\n this.$refs[\"form\"].validate(valid => {\r\n if (valid) {\r\n if (this.form.id != null) {\r\n this.$api.editDoctorInfo(this.form).then(res => {\r\n if (res.data.code == 0) {\r\n this.msgSuccess(\"成功!\");\r\n this.open = false;\r\n this.getData();\r\n } else {\r\n this.msgError(res.data.message);\r\n }\r\n });\r\n } else {\r\n this.$api.addDoctorInfo(this.form).then(res => {\r\n if (res.data.code == 0) {\r\n this.msgSuccess(\"成功!\");\r\n this.open = false;\r\n this.getData();\r\n } else {\r\n this.msgError(res.data.message);\r\n }\r\n });\r\n }\r\n }\r\n });\r\n },\r\n remoteMethod(query) {\r\n if (query !== \"\") {\r\n this.loading = true;\r\n this.$api\r\n .getStockSearchList({\r\n name: query\r\n })\r\n .then(res => {\r\n this.stockList = res.data.data;\r\n this.$set(this.stockList, res.data.data);\r\n this.loading = false;\r\n });\r\n } else {\r\n this.stockList = [];\r\n }\r\n }\r\n },\r\n created() {\r\n this.getData();\r\n }\r\n};\r\n</script>","import mod from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=b491804e&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=b491804e&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=b491804e&prod&lang=scss&\""],"sourceRoot":""}