{"version":3,"sources":["webpack:///./src/pages/manage/doctors/id.vue","webpack:///./src/pages/manage/doctors/id.vue?5206","webpack:///./src/pages/manage/doctors/id.vue?ac21","webpack:///./src/pages/manage/doctors/id.vue?e6c0"],"names":["scopedSlots","_vm","attrs","routeToPage","proxy","item","fn","staticClass","setDefault","Home","Vue","constructor","dataSource","ObjectDataSource","id","this","$route","params","config","className","headers","text","value","sortable","icons","dotsVertical","mdiDotsVertical","resumeDataSource","ListDataSource","pageIndex","pageSize","filter","JSON","stringify","fieldName","fieldValue","resumeCreateItemModel","personId","caption","_this$dataSource$mode","model","fullName","$router","push","name","updateField","$message","_this$dataSource$mode2","to","exact","disabled","__decorate","Component","component","staticRenderFns"],"mappings":"iNAAmL,W,IAAqB,OAA4B,EAAC,WAACA,EAAYC,MAAM,Y,OAAM,EAAC,sBAAO,C,MAAI,C,YAAsB,c,MAAe,EAAC,Q,YAAC,S,cAAc,c,YAA0B,O,gCAA8BC,W,MAAQ,C,WAAW,I,YAAoC,EAAC,K,IAAE,Y,GAAE,UAASA,GAA4E,QAAG,IAAmCA,MAAM,qBAAC,MAAO,CAAG,SAAK,QAAYC,iEAAuE,qBAACC,MAAM,CAAM,SAAe,IAAW,MAAW,gB,CAAoB,SAAQ,GAAc,6B,OAA8B,G,KAAwF,O,GAACJ,W,MAAwB,GAAC,YAAS,C,MAAI,C,MAAWK,eAAK,iBAAE,U,2BAA0B,wB,cAAO,oB,YAAuE,O,IAAG,UAAwC,kBAAG,IAAmB,MAAC,GAAAC,cAAS,CAAED,OAAO,kEAAwBE,UAAY,OAAW,mB,oBAAwF,UAAC,K,UAA+B,UAAWC,C,YAAmB,YAAC,OAAI,2EAAO,IAAC,mBAAO,uC,4FCOvzC,IAAqBC,EAArB,cAAkCC,OAAlCC,c,oBACE,KAAAC,WAA+B,IAAIC,OAAiB,CAClDC,IAAKC,KAAKC,OAAOC,OAAOH,GACxBI,OAAQ,GACRC,UAAW,WAQb,KAAAC,QAAe,CACb,CACEC,KAAM,KACNC,MAAO,KACPC,UAAU,GAEZ,CACEF,KAAM,gBACNC,MAAO,aACPC,UAAU,GAEZ,CACEF,KAAM,YACNC,MAAO,UACPC,UAAU,GAEZ,CACEF,KAAM,eACNC,MAAO,aAET,CACED,KAAM,SACNC,MAAO,kBACPC,UAAU,IAId,KAAAC,MAAa,CACXC,aAAcC,QAGhB,KAAAC,iBAAwB,IAAIC,OAAe,CACzCV,OAAQ,CACNW,UAAW,EACXC,SAAU,GACVC,OAAQC,KAAKC,UAAU,CACrB,CACEC,UAAW,WACXC,YAAapB,KAAKC,OAAOC,OAAOH,OAItCK,UAAW,WAGb,KAAAiB,sBAA6B,CAC3BC,UAAWtB,KAAKC,OAAOC,OAAOH,GAC9BwB,QAAS,IAnDX,cAAW,IAAAC,EACT,OAA4B,QAA5BA,EAAOxB,KAAKH,WAAW4B,aAAK,IAAAD,OAAA,EAArBA,EAAuBE,SAqDhCtC,cACEY,KAAK2B,QAAQC,KAAK,CAChBC,KAAM,SACN3B,OAAQ,CACNH,GAAIC,KAAKC,OAAOC,OAAOH,MAK7B,iBAAiBA,SACTC,KAAKH,WAAWiC,YAAY,CAChCX,UAAW,kBACXC,WAAYrB,IAEdC,KAAK+B,SAAS,0BAGhB,kBAAe,IAAAC,EACb,MAAO,CACL,CACE1B,KAAM,UACN2B,GAAI,KAEN,CACE3B,KAAM,QACN2B,GAAI,mBACJC,OAAO,GAET,CACE5B,KAA2B,QAAvB0B,EAAEhC,KAAKH,WAAW4B,aAAK,IAAAO,OAAA,EAArBA,EAAuBN,SAC7BS,UAAU,MA5FGzC,EAAI0C,eAAA,CADxBC,QACoB3C,WCP2Y,I,YCO5Z4C,EAAY,eACd,EACA,EACAC,GACA,EACA,KACA,KACA,MAIa,aAAAD,E","file":"js/chunk-2d21404c.b95aff7f.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('data-component-item',{attrs:{\"breadcrumbs\":_vm.breadcrumbs,\"title\":_vm.caption,\"view-name\":\"doctor\",\"data-source\":_vm.dataSource},scopedSlots:_vm._u([{key:\"zones\",fn:function(){return [_c('v-menu',{attrs:{\"offset-y\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-btn',_vm._g(_vm._b({attrs:{\"fab\":\"\"}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(_vm._s(_vm.icons.dotsVertical))])],1)]}}])},[_c('v-list',[_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":_vm.routeToPage}},[_c('v-list-item-title',[_vm._v(\"Резюме\")])],1)],1)],1)]},proxy:true},{key:\"body\",fn:function(){return [_c('data-list',{attrs:{\"title\":\"Резюме врача\",\"custom-headers\":_vm.headers,\"custom-create-item-model\":_vm.resumeCreateItemModel,\"data-source\":_vm.resumeDataSource},scopedSlots:_vm._u([{key:\"caption\",fn:function({ item }){return [_c('router-link',{attrs:{\"to\":`/manage/doctors/${_vm.$route.params.id}/zones/resume/${item.id}`}},[_vm._v(\" \"+_vm._s(item.caption)+\" \")])]}},{key:\"isDefault\",fn:function({ item }){return [_c('v-switch',{staticClass:\"pa-0 ma-0\",attrs:{\"hide-details\":\"\",\"input-value\":_vm.dataSource.model.defaultResumeId === item.id},on:{\"change\":function($event){return _vm.setDefault(item.id)}}})]}}])})]},proxy:true}])})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Vue, Component } from \"vue-property-decorator\";\nimport { ObjectDataSource } from \"@/data/Object/ObjecDatatSource\";\nimport {mdiDotsVertical} from \"@mdi/js\";\nimport {ListDataSource} from \"@/data/List/ListDataSource\";\n\n@Component\nexport default class Home extends Vue {\n dataSource: ObjectDataSource = new ObjectDataSource({\n id: +this.$route.params.id,\n config: {},\n className: \"doctor\",\n });\n $message: any;\n\n get caption() {\n return this.dataSource.model?.fullName;\n }\n\n headers: any = [\n {\n text: \"ID\",\n value: \"id\",\n sortable: true,\n },\n {\n text: \"Дата создания\",\n value: \"createDate\",\n sortable: true,\n },\n {\n text: \"Заголовок\",\n value: \"caption\",\n sortable: true,\n },\n {\n text: \"По умолчанию\",\n value: \"isDefault\",\n },\n {\n text: \"Статус\",\n value: \"instanceStateId\",\n sortable: false,\n },\n ];\n\n icons: any = {\n dotsVertical: mdiDotsVertical,\n };\n\n resumeDataSource: any = new ListDataSource({\n config: {\n pageIndex: 1,\n pageSize: 15,\n filter: JSON.stringify([\n {\n fieldName: \"personId\",\n fieldValue: +this.$route.params.id,\n },\n ]),\n },\n className: \"resume\",\n });\n\n resumeCreateItemModel: any = {\n personId: +this.$route.params.id,\n caption: \"\",\n };\n\n routeToPage() {\n this.$router.push({\n name: \"resume\",\n params: {\n id: this.$route.params.id,\n }\n });\n }\n\n async setDefault(id: number) {\n await this.dataSource.updateField({\n fieldName: \"defaultResumeId\",\n fieldValue: id,\n });\n this.$message(\"Поле успешно обновлено\");\n }\n\n get breadcrumbs() {\n return [\n {\n text: \"Главная\",\n to: \"/\",\n },\n {\n text: \"Врачи\",\n to: \"/manage/doctors/\",\n exact: true,\n },\n {\n text: this.dataSource.model?.fullName,\n disabled: true,\n },\n ];\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./id.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./id.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./id.vue?vue&type=template&id=7636cc16\"\nimport script from \"./id.vue?vue&type=script&lang=ts\"\nexport * from \"./id.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/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":""}