1 |
- {"version":3,"sources":["webpack:///./src/components/Page.vue?edd7","webpack:///./src/views/doctor/Index.vue?7bc3","webpack:///./src/components/Page.vue","webpack:///src/components/Page.vue","webpack:///./src/components/Page.vue?7a9f","webpack:///./src/components/Page.vue?94b3","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"],"names":["render","_vm","this","_c","_self","attrs","page_size","current","total","on","getData","handleSizeChange","staticRenderFns","data","page","props","methods","type","$emit","val","created","component","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","remoteMethod","parent_id","doctorList","hospital_name","slot","submitForm","components","Page","form1","form2","_this","$confirm","then","$api","delDoctorInfo","res","code","$msgError","message","$msgSuccess","size","$refs","pageButton","_this2","getDoctorsList","_this3","getDoctorInfo","_this4","validate","valid","editDoctorInfo","msgSuccess","msgError","addDoctorInfo","query","_this5","getDoctorsSearchList"],"mappings":"kHAAA,W,6DCAA,W,kCCAA,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,EAAkB,GCuBP,GACfC,KAAA,WACA,OACAC,KAAA,IAGAC,MAAA,CACAP,MAAA,GACAF,UAAA,GACAC,QAAA,IAEAS,QAAA,CACAN,QAAA,SAAAO,GAM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KAAAsC,EAAAhE,UAAA0B,KACA8C,EAAA7E,MAAAqE,EAAAhE,UAAAL,MACA6E,EAAA/C,SAAA,MAGAH,UAAA,WACA,KAAAoB,MAAA,EACA,KAAAD,MAAA,OACA,KAAAF,KAAA,IAEAJ,KAAA,SAAAC,GAAA,IAAAsC,EAAA,KACA,KAAAjC,MAAA,OACA,KAAAqB,KACAa,cAAA,CACAvC,OAEAyB,MAAA,SAAAG,GACAU,EAAAnC,KAAAyB,EAAAhE,UACA0E,EAAAhC,MAAA,MAIAY,WAAA,eAAAsB,EAAA,KACA,KAAAN,MAAA,QAAAO,UAAA,SAAAC,GACAA,IACA,MAAAF,EAAArC,KAAAH,GACAwC,EAAAd,KAAAiB,eAAAH,EAAArC,MAAAsB,MAAA,SAAAG,GACA,GAAAA,EAAAhE,KAAAiE,MACAW,EAAAI,WAAA,OACAJ,EAAAlC,MAAA,EACAkC,EAAA/E,WAEA+E,EAAAK,SAAAjB,EAAAhE,KAAAmE,YAIAS,EAAAd,KAAAoB,cAAAN,EAAArC,MAAAsB,MAAA,SAAAG,GACA,GAAAA,EAAAhE,KAAAiE,MACAW,EAAAI,WAAA,OACAJ,EAAAlC,MAAA,EACAkC,EAAA/E,WAEA+E,EAAAK,SAAAjB,EAAAhE,KAAAmE,iBAOAlB,aAAA,SAAAkC,GAAA,IAAAC,EAAA,KACA,KAAAD,EAEA,KAAArB,KACAuB,qBAAA,CACAtE,KAAAoE,IAEAtB,MAAA,SAAAG,GACAoB,EAAAjC,WAAAa,EAAAhE,UACAoF,EAAAlE,KAAAkE,EAAAjC,WAAAa,EAAAhE,cAIA,KAAAmD,WAAA,KAIA5C,QAAA,WACA,KAAAV,YCzTmc,I,wBCQ/bW,EAAY,eACd,EACArB,EACAY,GACA,EACA,KACA,KACA,MAIa,aAAAS,E","file":"js/chunk-0097a8aa.19c65986.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&\"","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=802ef30a&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 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\":\"parent_name\",\"label\":\"带教医生\"}}),_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\":\"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),(_vm.form.role == 3)?_c('el-form-item',{attrs:{\"label\":\"带教医生\",\"prop\":\"parent_id\"}},[_c('el-select',{attrs:{\"placeholder\":\"请输入医生姓名\",\"clearable\":\"\",\"filterable\":\"\",\"remote\":\"\",\"remote-method\":_vm.remoteMethod,\"size\":\"mini\"},model:{value:(_vm.form.parent_id),callback:function ($$v) {_vm.$set(_vm.form, \"parent_id\", $$v)},expression:\"form.parent_id\"}},_vm._l((_vm.doctorList),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.name,\"value\":item.id}})}),1)],1):_vm._e(),_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\":\"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\"\r\n >筛选</el-button\r\n >\r\n <el-button\r\n type=\"primary\"\r\n plain\r\n icon=\"el-icon-plus\"\r\n size=\"mini\"\r\n @click=\"handleAdd\"\r\n >新增医生</el-button\r\n >\r\n </el-form-item>\r\n </el-col>\r\n </el-row>\r\n </el-form>\r\n <el-table\r\n v-loading=\"loading\"\r\n :data=\"list\"\r\n style=\"width: 100%; margin-top: 10px\"\r\n height=\"50vh\"\r\n >\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=\"parent_name\" label=\"带教医生\" />\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\"\r\n >编辑</el-button\r\n >\r\n <el-button @click=\"del(scope.row.id)\" size=\"mini\" type=\"danger\"\r\n >删除</el-button\r\n >\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=\"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=\"parent_id\" v-if=\"form.role == 3\">\r\n <el-select\r\n v-model=\"form.parent_id\"\r\n placeholder=\"请输入医生姓名\"\r\n clearable\r\n filterable\r\n remote\r\n :remote-method=\"remoteMethod\"\r\n size=\"mini\"\r\n >\r\n <el-option\r\n v-for=\"item in doctorList\"\r\n :key=\"item.value\"\r\n :label=\"item.name\"\r\n :value=\"item.id\"\r\n >\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\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\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 doctorList: [],\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 /** 提交按钮 */\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 .getDoctorsSearchList({\r\n name: query,\r\n })\r\n .then((res) => {\r\n this.doctorList = res.data.data;\r\n this.$set(this.doctorList, res.data.data);\r\n // this.loading = false;\r\n });\r\n } else {\r\n this.doctorList = [];\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=802ef30a&\"\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=802ef30a&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"],"sourceRoot":""}
|