From 8ef76af6a5788eb7c0de4b3f8d65c4d16572ca5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E6=85=95=E6=B6=B5?= <2292559624@qq.com> Date: Sun, 27 Nov 2022 16:43:15 +0800 Subject: [PATCH 1/3] dm --- doc/1.txt | 0 model/m.txt | 0 other/o.txt | 0 src/.idea/.gitignore | 8 - src/.idea/codeStyles/Project.xml | 26 --- src/.idea/codeStyles/codeStyleConfig.xml | 5 - src/.idea/hospital.iml | 9 - .../inspectionProfiles/Project_Default.xml | 6 - src/.idea/jpa-buddy.xml | 6 - src/.idea/libraries/chromedriver_win32.xml | 9 - .../selenium_server_standalone_3_141_59.xml | 9 - src/.idea/misc.xml | 9 - src/.idea/modules.xml | 8 - src/App.vue | 22 -- src/HelloWorld.vue | 113 ---------- src/Home.vue | 20 -- src/HosdataApplication.java | 13 -- src/{controller => }/InController.java | 0 src/{dao => }/InDAO.java | 0 src/{service => }/InService.java | 0 src/{pojo => }/Information.java | 0 src/Login.vue | 91 -------- src/advance/AdvanceIndex.vue | 118 ---------- src/assets/logo.png | Bin 6849 -> 0 bytes src/build/build.js | 41 ---- src/build/check-versions.js | 54 ----- src/build/logo.png | Bin 6849 -> 0 bytes src/build/utils.js | 101 --------- src/build/vue-loader.conf.js | 22 -- src/build/webpack.base.conf.js | 92 -------- src/build/webpack.dev.conf.js | 95 -------- src/build/webpack.prod.conf.js | 149 ------------- src/common/NavMenu.vue | 46 ---- src/config/dev.env.js | 7 - src/config/index.js | 85 ------- src/config/prod.env.js | 4 - src/config/test.env.js | 7 - src/controller/DoctorController.java | 20 -- src/controller/DocyzController.java | 35 --- src/controller/LoginController.java | 49 ---- src/controller/RegisterController.java | 46 ---- src/controller/ShopController.java | 46 ---- src/controller/ZhuController.java | 27 --- src/dao/DocDAO.java | 12 - src/dao/DoctorDAO.java | 10 - src/dao/RegisterDAO.java | 15 -- src/dao/ShopDAO.java | 10 - src/dao/ShopRecordDAO.java | 10 - src/dao/UserDAO.java | 18 -- src/dao/ZhuDAO.java | 12 - src/docrecords/DocrecordIndex.vue | 210 ------------------ src/home/Appindex.vue | 15 -- src/main.js | 21 -- src/pojo/Doctor.java | 40 ---- src/pojo/Docyz.java | 76 ------- src/pojo/Medicine.java | 60 ----- src/pojo/RegisterRecord.java | 74 ------ src/pojo/ShopRecord.java | 48 ---- src/pojo/User.java | 52 ----- src/pojo/Zhuce.java | 52 ----- src/records/RecordIndex.vue | 35 --- src/records/SearchBar.vue | 34 --- src/records/SideMenu.vue | 52 ----- src/records/record.vue | 64 ------ src/register/RegisterIndex.vue | 128 ----------- src/result/Result.java | 19 -- src/router/index.js | 123 ---------- src/s.txt | 0 src/service/DoctorService.java | 21 -- src/service/DocyzService.java | 27 --- src/service/RegisterService.java | 35 --- src/service/ShopService.java | 39 ---- src/service/UserService.java | 38 ---- src/service/ZhuService.java | 23 -- .../SettingIndex.vue => set/setIndex.vue} | 47 +++- src/shop/ShopIndex.vue | 99 --------- src/shoprecords/ShoprecordIndex.vue | 56 ----- src/treatment/TreatmentIndex.vue | 71 ------ src/zhu/ZhuceIndex.vue | 83 ------- 79 files changed, 40 insertions(+), 3087 deletions(-) delete mode 100644 doc/1.txt delete mode 100644 model/m.txt delete mode 100644 other/o.txt delete mode 100644 src/.idea/.gitignore delete mode 100644 src/.idea/codeStyles/Project.xml delete mode 100644 src/.idea/codeStyles/codeStyleConfig.xml delete mode 100644 src/.idea/hospital.iml delete mode 100644 src/.idea/inspectionProfiles/Project_Default.xml delete mode 100644 src/.idea/jpa-buddy.xml delete mode 100644 src/.idea/libraries/chromedriver_win32.xml delete mode 100644 src/.idea/libraries/selenium_server_standalone_3_141_59.xml delete mode 100644 src/.idea/misc.xml delete mode 100644 src/.idea/modules.xml delete mode 100644 src/App.vue delete mode 100644 src/HelloWorld.vue delete mode 100644 src/Home.vue delete mode 100644 src/HosdataApplication.java rename src/{controller => }/InController.java (100%) rename src/{dao => }/InDAO.java (100%) rename src/{service => }/InService.java (100%) rename src/{pojo => }/Information.java (100%) delete mode 100644 src/Login.vue delete mode 100644 src/advance/AdvanceIndex.vue delete mode 100644 src/assets/logo.png delete mode 100644 src/build/build.js delete mode 100644 src/build/check-versions.js delete mode 100644 src/build/logo.png delete mode 100644 src/build/utils.js delete mode 100644 src/build/vue-loader.conf.js delete mode 100644 src/build/webpack.base.conf.js delete mode 100644 src/build/webpack.dev.conf.js delete mode 100644 src/build/webpack.prod.conf.js delete mode 100644 src/common/NavMenu.vue delete mode 100644 src/config/dev.env.js delete mode 100644 src/config/index.js delete mode 100644 src/config/prod.env.js delete mode 100644 src/config/test.env.js delete mode 100644 src/controller/DoctorController.java delete mode 100644 src/controller/DocyzController.java delete mode 100644 src/controller/LoginController.java delete mode 100644 src/controller/RegisterController.java delete mode 100644 src/controller/ShopController.java delete mode 100644 src/controller/ZhuController.java delete mode 100644 src/dao/DocDAO.java delete mode 100644 src/dao/DoctorDAO.java delete mode 100644 src/dao/RegisterDAO.java delete mode 100644 src/dao/ShopDAO.java delete mode 100644 src/dao/ShopRecordDAO.java delete mode 100644 src/dao/UserDAO.java delete mode 100644 src/dao/ZhuDAO.java delete mode 100644 src/docrecords/DocrecordIndex.vue delete mode 100644 src/home/Appindex.vue delete mode 100644 src/main.js delete mode 100644 src/pojo/Doctor.java delete mode 100644 src/pojo/Docyz.java delete mode 100644 src/pojo/Medicine.java delete mode 100644 src/pojo/RegisterRecord.java delete mode 100644 src/pojo/ShopRecord.java delete mode 100644 src/pojo/User.java delete mode 100644 src/pojo/Zhuce.java delete mode 100644 src/records/RecordIndex.vue delete mode 100644 src/records/SearchBar.vue delete mode 100644 src/records/SideMenu.vue delete mode 100644 src/records/record.vue delete mode 100644 src/register/RegisterIndex.vue delete mode 100644 src/result/Result.java delete mode 100644 src/router/index.js delete mode 100644 src/s.txt delete mode 100644 src/service/DoctorService.java delete mode 100644 src/service/DocyzService.java delete mode 100644 src/service/RegisterService.java delete mode 100644 src/service/ShopService.java delete mode 100644 src/service/UserService.java delete mode 100644 src/service/ZhuService.java rename src/{setting/SettingIndex.vue => set/setIndex.vue} (76%) delete mode 100644 src/shop/ShopIndex.vue delete mode 100644 src/shoprecords/ShoprecordIndex.vue delete mode 100644 src/treatment/TreatmentIndex.vue delete mode 100644 src/zhu/ZhuceIndex.vue diff --git a/doc/1.txt b/doc/1.txt deleted file mode 100644 index e69de29..0000000 diff --git a/model/m.txt b/model/m.txt deleted file mode 100644 index e69de29..0000000 diff --git a/other/o.txt b/other/o.txt deleted file mode 100644 index e69de29..0000000 diff --git a/src/.idea/.gitignore b/src/.idea/.gitignore deleted file mode 100644 index 35410ca..0000000 --- a/src/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# 默认忽略的文件 -/shelf/ -/workspace.xml -# 基于编辑器的 HTTP 客户端请求 -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/src/.idea/codeStyles/Project.xml b/src/.idea/codeStyles/Project.xml deleted file mode 100644 index 96f4223..0000000 --- a/src/.idea/codeStyles/Project.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/.idea/codeStyles/codeStyleConfig.xml b/src/.idea/codeStyles/codeStyleConfig.xml deleted file mode 100644 index 79ee123..0000000 --- a/src/.idea/codeStyles/codeStyleConfig.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/.idea/hospital.iml b/src/.idea/hospital.iml deleted file mode 100644 index d6ebd48..0000000 --- a/src/.idea/hospital.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/src/.idea/inspectionProfiles/Project_Default.xml b/src/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 03d9549..0000000 --- a/src/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/.idea/jpa-buddy.xml b/src/.idea/jpa-buddy.xml deleted file mode 100644 index 966d5f5..0000000 --- a/src/.idea/jpa-buddy.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/.idea/libraries/chromedriver_win32.xml b/src/.idea/libraries/chromedriver_win32.xml deleted file mode 100644 index 9beb869..0000000 --- a/src/.idea/libraries/chromedriver_win32.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/src/.idea/libraries/selenium_server_standalone_3_141_59.xml b/src/.idea/libraries/selenium_server_standalone_3_141_59.xml deleted file mode 100644 index 8aa83fc..0000000 --- a/src/.idea/libraries/selenium_server_standalone_3_141_59.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/src/.idea/misc.xml b/src/.idea/misc.xml deleted file mode 100644 index d79bd4e..0000000 --- a/src/.idea/misc.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/.idea/modules.xml b/src/.idea/modules.xml deleted file mode 100644 index e8e7d0d..0000000 --- a/src/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/App.vue b/src/App.vue deleted file mode 100644 index a2a7be5..0000000 --- a/src/App.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - - - diff --git a/src/HelloWorld.vue b/src/HelloWorld.vue deleted file mode 100644 index 1c19f2a..0000000 --- a/src/HelloWorld.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/Home.vue b/src/Home.vue deleted file mode 100644 index d5986c5..0000000 --- a/src/Home.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - - - diff --git a/src/HosdataApplication.java b/src/HosdataApplication.java deleted file mode 100644 index 4d34f26..0000000 --- a/src/HosdataApplication.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.example.hosdata; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication -public class HosdataApplication { - - public static void main(String[] args) { - SpringApplication.run(HosdataApplication.class, args); - } - -} diff --git a/src/controller/InController.java b/src/InController.java similarity index 100% rename from src/controller/InController.java rename to src/InController.java diff --git a/src/dao/InDAO.java b/src/InDAO.java similarity index 100% rename from src/dao/InDAO.java rename to src/InDAO.java diff --git a/src/service/InService.java b/src/InService.java similarity index 100% rename from src/service/InService.java rename to src/InService.java diff --git a/src/pojo/Information.java b/src/Information.java similarity index 100% rename from src/pojo/Information.java rename to src/Information.java diff --git a/src/Login.vue b/src/Login.vue deleted file mode 100644 index f015593..0000000 --- a/src/Login.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - - - diff --git a/src/advance/AdvanceIndex.vue b/src/advance/AdvanceIndex.vue deleted file mode 100644 index c192440..0000000 --- a/src/advance/AdvanceIndex.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - diff --git a/src/assets/logo.png b/src/assets/logo.png deleted file mode 100644 index f3d2503fc2a44b5053b0837ebea6e87a2d339a43..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6849 zcmaKRcUV(fvo}bjDT-7nLI_nlK}sT_69H+`qzVWDA|yaU?}j417wLi^B1KB1SLsC& zL0ag7$U(XW5YR7p&Ux?sP$d4lvMt8C^+TcQu4F zQqv!UF!I+kw)c0jhd6+g6oCr9P?7)?!qX1ui*iL{p}sKCAGuJ{{W)0z1pLF|=>h}& zt(2Lr0Z`2ig8<5i%Zk}cO5Fm=LByqGWaS`oqChZdEFmc`0hSb#gg|Aap^{+WKOYcj zHjINK)KDG%&s?Mt4CL(T=?;~U@bU2x_mLKN!#GJuK_CzbNw5SMEJorG!}_5;?R>@1 zSl)jns3WlU7^J%=(hUtfmuUCU&C3%8B5C^f5>W2Cy8jW3#{Od{lF1}|?c61##3dzA zsPlFG;l_FzBK}8>|H_Ru_H#!_7$UH4UKo3lKOA}g1(R&|e@}GINYVzX?q=_WLZCgh z)L|eJMce`D0EIwgRaNETDsr+?vQknSGAi=7H00r`QnI%oQnFxm`G2umXso9l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rD(w`#O=3*O*w9?biwNoq3WN1`&Wp8TvKj3C z3HR9ssH7a&Vr<6waJrU zdLg!ieYz%U^bmpn%;(V%%ugMk92&?_XX1K@mwnVSE6!&%P%Wdi7_h`CpScvspMx?N zQUR>oadnG17#hNc$pkTp+9lW+MBKHRZ~74XWUryd)4yd zj98$%XmIL4(9OnoeO5Fnyn&fpQ9b0h4e6EHHw*l68j;>(ya`g^S&y2{O8U>1*>4zR zq*WSI_2o$CHQ?x0!wl9bpx|Cm2+kFMR)oMud1%n2=qn5nE&t@Fgr#=Zv2?}wtEz^T z9rrj=?IH*qI5{G@Rn&}^Z{+TW}mQeb9=8b<_a`&Cm#n%n~ zU47MvCBsdXFB1+adOO)03+nczfWa#vwk#r{o{dF)QWya9v2nv43Zp3%Ps}($lA02*_g25t;|T{A5snSY?3A zrRQ~(Ygh_ebltHo1VCbJb*eOAr;4cnlXLvI>*$-#AVsGg6B1r7@;g^L zFlJ_th0vxO7;-opU@WAFe;<}?!2q?RBrFK5U{*ai@NLKZ^};Ul}beukveh?TQn;$%9=R+DX07m82gP$=}Uo_%&ngV`}Hyv8g{u z3SWzTGV|cwQuFIs7ZDOqO_fGf8Q`8MwL}eUp>q?4eqCmOTcwQuXtQckPy|4F1on8l zP*h>d+cH#XQf|+6c|S{7SF(Lg>bR~l(0uY?O{OEVlaxa5@e%T&xju=o1`=OD#qc16 zSvyH*my(dcp6~VqR;o(#@m44Lug@~_qw+HA=mS#Z^4reBy8iV?H~I;{LQWk3aKK8$bLRyt$g?- { - if (err) throw err - webpack(webpackConfig, (err, stats) => { - spinner.stop() - if (err) throw err - process.stdout.write(stats.toString({ - colors: true, - modules: false, - children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build. - chunks: false, - chunkModules: false - }) + '\n\n') - - if (stats.hasErrors()) { - console.log(chalk.red(' Build failed with errors.\n')) - process.exit(1) - } - - console.log(chalk.cyan(' Build complete.\n')) - console.log(chalk.yellow( - ' Tip: built files are meant to be served over an HTTP server.\n' + - ' Opening index.html over file:// won\'t work.\n' - )) - }) -}) diff --git a/src/build/check-versions.js b/src/build/check-versions.js deleted file mode 100644 index 3ef972a..0000000 --- a/src/build/check-versions.js +++ /dev/null @@ -1,54 +0,0 @@ -'use strict' -const chalk = require('chalk') -const semver = require('semver') -const packageConfig = require('../package.json') -const shell = require('shelljs') - -function exec (cmd) { - return require('child_process').execSync(cmd).toString().trim() -} - -const versionRequirements = [ - { - name: 'node', - currentVersion: semver.clean(process.version), - versionRequirement: packageConfig.engines.node - } -] - -if (shell.which('npm')) { - versionRequirements.push({ - name: 'npm', - currentVersion: exec('npm --version'), - versionRequirement: packageConfig.engines.npm - }) -} - -module.exports = function () { - const warnings = [] - - for (let i = 0; i < versionRequirements.length; i++) { - const mod = versionRequirements[i] - - if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { - warnings.push(mod.name + ': ' + - chalk.red(mod.currentVersion) + ' should be ' + - chalk.green(mod.versionRequirement) - ) - } - } - - if (warnings.length) { - console.log('') - console.log(chalk.yellow('To use this template, you must update following to modules:')) - console.log() - - for (let i = 0; i < warnings.length; i++) { - const warning = warnings[i] - console.log(' ' + warning) - } - - console.log() - process.exit(1) - } -} diff --git a/src/build/logo.png b/src/build/logo.png deleted file mode 100644 index f3d2503fc2a44b5053b0837ebea6e87a2d339a43..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6849 zcmaKRcUV(fvo}bjDT-7nLI_nlK}sT_69H+`qzVWDA|yaU?}j417wLi^B1KB1SLsC& zL0ag7$U(XW5YR7p&Ux?sP$d4lvMt8C^+TcQu4F zQqv!UF!I+kw)c0jhd6+g6oCr9P?7)?!qX1ui*iL{p}sKCAGuJ{{W)0z1pLF|=>h}& zt(2Lr0Z`2ig8<5i%Zk}cO5Fm=LByqGWaS`oqChZdEFmc`0hSb#gg|Aap^{+WKOYcj zHjINK)KDG%&s?Mt4CL(T=?;~U@bU2x_mLKN!#GJuK_CzbNw5SMEJorG!}_5;?R>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^*t8Va3HR zg=~sN^tp9re@w=GTx$;zOWMjcg-7X3Wk^N$n;&Kf1RgVG2}2L-(0o)54C509C&77i zrjSi{X*WV=%C17((N^6R4Ya*4#6s_L99RtQ>m(%#nQ#wrRC8Y%yxkH;d!MdY+Tw@r zjpSnK`;C-U{ATcgaxoEpP0Gf+tx);buOMlK=01D|J+ROu37qc*rD(w`#O=3*O*w9?biwNoq3WN1`&Wp8TvKj3C z3HR9ssH7a&Vr<6waJrU zdLg!ieYz%U^bmpn%;(V%%ugMk92&?_XX1K@mwnVSE6!&%P%Wdi7_h`CpScvspMx?N zQUR>oadnG17#hNc$pkTp+9lW+MBKHRZ~74XWUryd)4yd zj98$%XmIL4(9OnoeO5Fnyn&fpQ9b0h4e6EHHw*l68j;>(ya`g^S&y2{O8U>1*>4zR zq*WSI_2o$CHQ?x0!wl9bpx|Cm2+kFMR)oMud1%n2=qn5nE&t@Fgr#=Zv2?}wtEz^T z9rrj=?IH*qI5{G@Rn&}^Z{+TW}mQeb9=8b<_a`&Cm#n%n~ zU47MvCBsdXFB1+adOO)03+nczfWa#vwk#r{o{dF)QWya9v2nv43Zp3%Ps}($lA02*_g25t;|T{A5snSY?3A zrRQ~(Ygh_ebltHo1VCbJb*eOAr;4cnlXLvI>*$-#AVsGg6B1r7@;g^L zFlJ_th0vxO7;-opU@WAFe;<}?!2q?RBrFK5U{*ai@NLKZ^};Ul}beukveh?TQn;$%9=R+DX07m82gP$=}Uo_%&ngV`}Hyv8g{u z3SWzTGV|cwQuFIs7ZDOqO_fGf8Q`8MwL}eUp>q?4eqCmOTcwQuXtQckPy|4F1on8l zP*h>d+cH#XQf|+6c|S{7SF(Lg>bR~l(0uY?O{OEVlaxa5@e%T&xju=o1`=OD#qc16 zSvyH*my(dcp6~VqR;o(#@m44Lug@~_qw+HA=mS#Z^4reBy8iV?H~I;{LQWk3aKK8$bLRyt$g?- { - const notifier = require('node-notifier') - - return (severity, errors) => { - if (severity !== 'error') return - - const error = errors[0] - const filename = error.file && error.file.split('!').pop() - - notifier.notify({ - title: packageConfig.name, - message: severity + ': ' + error.name, - subtitle: filename || '', - icon: path.join(__dirname, 'logo.png') - }) - } -} diff --git a/src/build/vue-loader.conf.js b/src/build/vue-loader.conf.js deleted file mode 100644 index 33ed58b..0000000 --- a/src/build/vue-loader.conf.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict' -const utils = require('./utils') -const config = require('../config') -const isProduction = process.env.NODE_ENV === 'production' -const sourceMapEnabled = isProduction - ? config.build.productionSourceMap - : config.dev.cssSourceMap - -module.exports = { - loaders: utils.cssLoaders({ - sourceMap: sourceMapEnabled, - extract: isProduction - }), - cssSourceMap: sourceMapEnabled, - cacheBusting: config.dev.cacheBusting, - transformToRequire: { - video: ['src', 'poster'], - source: 'src', - img: 'src', - image: 'xlink:href' - } -} diff --git a/src/build/webpack.base.conf.js b/src/build/webpack.base.conf.js deleted file mode 100644 index 1f4f47e..0000000 --- a/src/build/webpack.base.conf.js +++ /dev/null @@ -1,92 +0,0 @@ -'use strict' -const path = require('path') -const utils = require('./utils') -const config = require('../config') -const vueLoaderConfig = require('./vue-loader.conf') - -function resolve (dir) { - return path.join(__dirname, '..', dir) -} - -const createLintingRule = () => ({ - test: /\.(js|vue)$/, - loader: 'eslint-loader', - enforce: 'pre', - include: [resolve('src'), resolve('test')], - options: { - formatter: require('eslint-friendly-formatter'), - emitWarning: !config.dev.showEslintErrorsInOverlay - } -}) - -module.exports = { - context: path.resolve(__dirname, '../'), - entry: { - app: './src/main.js' - }, - output: { - path: config.build.assetsRoot, - filename: '[name].js', - publicPath: process.env.NODE_ENV === 'production' - ? config.build.assetsPublicPath - : config.dev.assetsPublicPath - }, - resolve: { - extensions: ['.js', '.vue', '.json'], - alias: { - 'vue$': 'vue/dist/vue.esm.js', - '@': resolve('src'), - } - }, - module: { - rules: [ - ...(config.dev.useEslint ? [createLintingRule()] : []), - { - test: /\.vue$/, - loader: 'vue-loader', - options: vueLoaderConfig - }, - { - test: /\.js$/, - loader: 'babel-loader', - include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')] - }, - { - test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, - loader: 'url-loader', - options: { - limit: 10000, - name: utils.assetsPath('img/[name].[hash:7].[ext]') - } - }, - { - test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, - loader: 'url-loader', - options: { - limit: 10000, - name: utils.assetsPath('media/[name].[hash:7].[ext]') - } - }, - { - test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, - loader: 'url-loader', - options: { - limit: 10000, - name: utils.assetsPath('fonts/[name].[hash:7].[ext]') - } - } - ] - }, - node: { - // prevent webpack from injecting useless setImmediate polyfill because Vue - // source contains it (although only uses it if it's native). - setImmediate: false, - // prevent webpack from injecting mocks to Node native modules - // that does not make sense for the client - dgram: 'empty', - fs: 'empty', - net: 'empty', - tls: 'empty', - child_process: 'empty' - } -} diff --git a/src/build/webpack.dev.conf.js b/src/build/webpack.dev.conf.js deleted file mode 100644 index 070ae22..0000000 --- a/src/build/webpack.dev.conf.js +++ /dev/null @@ -1,95 +0,0 @@ -'use strict' -const utils = require('./utils') -const webpack = require('webpack') -const config = require('../config') -const merge = require('webpack-merge') -const path = require('path') -const baseWebpackConfig = require('./webpack.base.conf') -const CopyWebpackPlugin = require('copy-webpack-plugin') -const HtmlWebpackPlugin = require('html-webpack-plugin') -const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') -const portfinder = require('portfinder') - -const HOST = process.env.HOST -const PORT = process.env.PORT && Number(process.env.PORT) - -const devWebpackConfig = merge(baseWebpackConfig, { - module: { - rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true }) - }, - // cheap-module-eval-source-map is faster for development - devtool: config.dev.devtool, - - // these devServer options should be customized in /config/index.js - devServer: { - clientLogLevel: 'warning', - historyApiFallback: { - rewrites: [ - { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') }, - ], - }, - hot: true, - contentBase: false, // since we use CopyWebpackPlugin. - compress: true, - host: HOST || config.dev.host, - port: PORT || config.dev.port, - open: config.dev.autoOpenBrowser, - overlay: config.dev.errorOverlay - ? { warnings: false, errors: true } - : false, - publicPath: config.dev.assetsPublicPath, - proxy: config.dev.proxyTable, - quiet: true, // necessary for FriendlyErrorsPlugin - watchOptions: { - poll: config.dev.poll, - } - }, - plugins: [ - new webpack.DefinePlugin({ - 'process.env': require('../config/dev.env') - }), - new webpack.HotModuleReplacementPlugin(), - new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update. - new webpack.NoEmitOnErrorsPlugin(), - // https://github.com/ampedandwired/html-webpack-plugin - new HtmlWebpackPlugin({ - filename: 'index.html', - template: 'index.html', - inject: true - }), - // copy custom static assets - new CopyWebpackPlugin([ - { - from: path.resolve(__dirname, '../static'), - to: config.dev.assetsSubDirectory, - ignore: ['.*'] - } - ]) - ] -}) - -module.exports = new Promise((resolve, reject) => { - portfinder.basePort = process.env.PORT || config.dev.port - portfinder.getPort((err, port) => { - if (err) { - reject(err) - } else { - // publish the new Port, necessary for e2e tests - process.env.PORT = port - // add port to devServer config - devWebpackConfig.devServer.port = port - - // Add FriendlyErrorsPlugin - devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({ - compilationSuccessInfo: { - messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`], - }, - onErrors: config.dev.notifyOnErrors - ? utils.createNotifierCallback() - : undefined - })) - - resolve(devWebpackConfig) - } - }) -}) diff --git a/src/build/webpack.prod.conf.js b/src/build/webpack.prod.conf.js deleted file mode 100644 index 2f17259..0000000 --- a/src/build/webpack.prod.conf.js +++ /dev/null @@ -1,149 +0,0 @@ -'use strict' -const path = require('path') -const utils = require('./utils') -const webpack = require('webpack') -const config = require('../config') -const merge = require('webpack-merge') -const baseWebpackConfig = require('./webpack.base.conf') -const CopyWebpackPlugin = require('copy-webpack-plugin') -const HtmlWebpackPlugin = require('html-webpack-plugin') -const ExtractTextPlugin = require('extract-text-webpack-plugin') -const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') -const UglifyJsPlugin = require('uglifyjs-webpack-plugin') - -const env = process.env.NODE_ENV === 'testing' - ? require('../config/test.env') - : require('../config/prod.env') - -const webpackConfig = merge(baseWebpackConfig, { - module: { - rules: utils.styleLoaders({ - sourceMap: config.build.productionSourceMap, - extract: true, - usePostCSS: true - }) - }, - devtool: config.build.productionSourceMap ? config.build.devtool : false, - output: { - path: config.build.assetsRoot, - filename: utils.assetsPath('js/[name].[chunkhash].js'), - chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') - }, - plugins: [ - // http://vuejs.github.io/vue-loader/en/workflow/production.html - new webpack.DefinePlugin({ - 'process.env': env - }), - new UglifyJsPlugin({ - uglifyOptions: { - compress: { - warnings: false - } - }, - sourceMap: config.build.productionSourceMap, - parallel: true - }), - // extract css into its own file - new ExtractTextPlugin({ - filename: utils.assetsPath('css/[name].[contenthash].css'), - // Setting the following option to `false` will not extract CSS from codesplit chunks. - // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack. - // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, - // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110 - allChunks: true, - }), - // Compress extracted CSS. We are using this plugin so that possible - // duplicated CSS from different components can be deduped. - new OptimizeCSSPlugin({ - cssProcessorOptions: config.build.productionSourceMap - ? { safe: true, map: { inline: false } } - : { safe: true } - }), - // generate dist index.html with correct asset hash for caching. - // you can customize output by editing /index.html - // see https://github.com/ampedandwired/html-webpack-plugin - new HtmlWebpackPlugin({ - filename: process.env.NODE_ENV === 'testing' - ? 'index.html' - : config.build.index, - template: 'index.html', - inject: true, - minify: { - removeComments: true, - collapseWhitespace: true, - removeAttributeQuotes: true - // more options: - // https://github.com/kangax/html-minifier#options-quick-reference - }, - // necessary to consistently work with multiple chunks via CommonsChunkPlugin - chunksSortMode: 'dependency' - }), - // keep module.id stable when vendor modules does not change - new webpack.HashedModuleIdsPlugin(), - // enable scope hoisting - new webpack.optimize.ModuleConcatenationPlugin(), - // split vendor js into its own file - new webpack.optimize.CommonsChunkPlugin({ - name: 'vendor', - minChunks (module) { - // any required modules inside node_modules are extracted to vendor - return ( - module.resource && - /\.js$/.test(module.resource) && - module.resource.indexOf( - path.join(__dirname, '../node_modules') - ) === 0 - ) - } - }), - // extract webpack runtime and module manifest to its own file in order to - // prevent vendor hash from being updated whenever app bundle is updated - new webpack.optimize.CommonsChunkPlugin({ - name: 'manifest', - minChunks: Infinity - }), - // This instance extracts shared chunks from code splitted chunks and bundles them - // in a separate chunk, similar to the vendor chunk - // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk - new webpack.optimize.CommonsChunkPlugin({ - name: 'app', - async: 'vendor-async', - children: true, - minChunks: 3 - }), - - // copy custom static assets - new CopyWebpackPlugin([ - { - from: path.resolve(__dirname, '../static'), - to: config.build.assetsSubDirectory, - ignore: ['.*'] - } - ]) - ] -}) - -if (config.build.productionGzip) { - const CompressionWebpackPlugin = require('compression-webpack-plugin') - - webpackConfig.plugins.push( - new CompressionWebpackPlugin({ - asset: '[path].gz[query]', - algorithm: 'gzip', - test: new RegExp( - '\\.(' + - config.build.productionGzipExtensions.join('|') + - ')$' - ), - threshold: 10240, - minRatio: 0.8 - }) - ) -} - -if (config.build.bundleAnalyzerReport) { - const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin - webpackConfig.plugins.push(new BundleAnalyzerPlugin()) -} - -module.exports = webpackConfig diff --git a/src/common/NavMenu.vue b/src/common/NavMenu.vue deleted file mode 100644 index ffefeda..0000000 --- a/src/common/NavMenu.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/src/config/dev.env.js b/src/config/dev.env.js deleted file mode 100644 index 1e22973..0000000 --- a/src/config/dev.env.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict' -const merge = require('webpack-merge') -const prodEnv = require('./prod.env') - -module.exports = merge(prodEnv, { - NODE_ENV: '"development"' -}) diff --git a/src/config/index.js b/src/config/index.js deleted file mode 100644 index 36f75f7..0000000 --- a/src/config/index.js +++ /dev/null @@ -1,85 +0,0 @@ -'use strict' -// Template version: 1.3.1 -// see http://vuejs-templates.github.io/webpack for documentation. - -const path = require('path') - -module.exports = { - dev: { - - // Paths - assetsSubDirectory: 'static', - assetsPublicPath: '/', - proxyTable: { - '/api': { - target: 'http://localhost:8443', - changeOrigin: true, - pathRewrite: { - '^/api': '' - } - } - }, - - - // Various Dev Server settings - host: 'localhost', // can be overwritten by process.env.HOST - port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined - autoOpenBrowser: false, - errorOverlay: true, - notifyOnErrors: true, - poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- - - // Use Eslint Loader? - // If true, your code will be linted during bundling and - // linting errors and warnings will be shown in the console. - useEslint: true, - // If true, eslint errors and warnings will also be shown in the error overlay - // in the browser. - showEslintErrorsInOverlay: false, - - /** - * Source Maps - */ - - // https://webpack.js.org/configuration/devtool/#development - devtool: 'cheap-module-eval-source-map', - - // If you have problems debugging vue-files in devtools, - // set this to false - it *may* help - // https://vue-loader.vuejs.org/en/options.html#cachebusting - cacheBusting: true, - - cssSourceMap: true - }, - - build: { - // Template for index.html - index: path.resolve(__dirname, '../dist/index.html'), - - // Paths - assetsRoot: path.resolve(__dirname, '../dist'), - assetsSubDirectory: 'static', - assetsPublicPath: '/', - - /** - * Source Maps - */ - - productionSourceMap: true, - // https://webpack.js.org/configuration/devtool/#production - devtool: '#source-map', - - // Gzip off by default as many popular static hosts such as - // Surge or Netlify already gzip all static assets for you. - // Before setting to `true`, make sure to: - // npm install --save-dev compression-webpack-plugin - productionGzip: false, - productionGzipExtensions: ['js', 'css'], - - // Run the build command with an extra argument to - // View the bundle analyzer report after build finishes: - // `npm run build --report` - // Set to `true` or `false` to always turn it on or off - bundleAnalyzerReport: process.env.npm_config_report - } -} diff --git a/src/config/prod.env.js b/src/config/prod.env.js deleted file mode 100644 index a6f9976..0000000 --- a/src/config/prod.env.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict' -module.exports = { - NODE_ENV: '"production"' -} diff --git a/src/config/test.env.js b/src/config/test.env.js deleted file mode 100644 index c2824a3..0000000 --- a/src/config/test.env.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict' -const merge = require('webpack-merge') -const devEnv = require('./dev.env') - -module.exports = merge(devEnv, { - NODE_ENV: '"testing"' -}) diff --git a/src/controller/DoctorController.java b/src/controller/DoctorController.java deleted file mode 100644 index 8c8e811..0000000 --- a/src/controller/DoctorController.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.example.hosdata.controller; - -import com.example.hosdata.pojo.Doctor; -import com.example.hosdata.pojo.RegisterRecord; -import com.example.hosdata.service.DoctorService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -public class DoctorController { - @Autowired - DoctorService doctorService; - - @CrossOrigin - @GetMapping("/api/register") - public List listByDepartment(String department) throws Exception { - return doctorService.listByDepartment(department); - } -} diff --git a/src/controller/DocyzController.java b/src/controller/DocyzController.java deleted file mode 100644 index 833b028..0000000 --- a/src/controller/DocyzController.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.example.hosdata.controller; - -import com.example.hosdata.pojo.Docyz; -import com.example.hosdata.pojo.RegisterRecord; -import com.example.hosdata.service.DocyzService; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -@RestController -public class DocyzController { - @Autowired - DocyzService docService; - - @CrossOrigin - @PostMapping("/api/docrecords") - public Docyz addOrUpdate(@RequestBody Docyz doc) throws Exception { - docService.addOrUpdate(doc); - return doc; - } - - /* @CrossOrigin - @GetMapping("/api/docrecords") - public List listdoctorname() throws Exception { - return docService.listBydoctorname(); - }*/ - - @CrossOrigin - @GetMapping("/api/treatment") - public List listghname() throws Exception { - return docService.listByghname(); - } -} diff --git a/src/controller/LoginController.java b/src/controller/LoginController.java deleted file mode 100644 index e9c637c..0000000 --- a/src/controller/LoginController.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.example.hosdata.controller; - -import com.example.hosdata.pojo.RegisterRecord; -import com.example.hosdata.pojo.User; -import com.example.hosdata.result.Result; -import com.example.hosdata.service.*; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; -import org.springframework.web.util.HtmlUtils; - -import java.util.List; - -@Controller -public class LoginController { - - @Autowired - UserService userService; - - @CrossOrigin - @PostMapping(value = "/api/login") - @ResponseBody - public Result login(@RequestBody User requestUser) { - String username = requestUser.getUsername(); - username = HtmlUtils.htmlEscape(username); - String id = requestUser.getId(); - id = HtmlUtils.htmlEscape(id); - String realname = requestUser.getRealname(); - realname = HtmlUtils.htmlEscape(realname); - - User user = userService.getall(id,username, requestUser.getPassword(),realname); - //String id=requestUser.getId(); - RegisterService.username = username; - DocyzService.ghname = realname; - DocyzService.doctorname = realname; - ShopService.myzh = username; - InService.userna = username; - if (null == user) { - return new Result(400); - } else if(id.equals("医务人员")){ - return new Result(100); - } else if(id.equals("管理员")){ - return new Result(300); - }else { - return new Result(200); - } - } -} - diff --git a/src/controller/RegisterController.java b/src/controller/RegisterController.java deleted file mode 100644 index 145d6a0..0000000 --- a/src/controller/RegisterController.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.example.hosdata.controller; - - -import com.example.hosdata.pojo.RegisterRecord; -import com.example.hosdata.service.DocyzService; -import com.example.hosdata.service.RegisterService; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -import org.springframework.web.util.HtmlUtils; - -import java.util.List; - -@RestController -public class RegisterController { - @Autowired - RegisterService Reservice; - - @CrossOrigin - @GetMapping("/api/records") - public List list() throws Exception { - return Reservice.listByname(); - } - - @CrossOrigin - @GetMapping("/api/docrecords") - public List listdoc() throws Exception { - return Reservice.list(); - } - - /*@CrossOrigin - @PostMapping("/api/docrecords") - public List searchResult(@RequestParam(value="doctor",required=false) String doctor) { - return Reservice.Search(doctor); - }*/ - - - @CrossOrigin - @PostMapping("/api/register") - public RegisterRecord addOrUpdate(@RequestBody RegisterRecord record) throws Exception { - Reservice.addOrUpdate(record); - return record; - } - -} - diff --git a/src/controller/ShopController.java b/src/controller/ShopController.java deleted file mode 100644 index 65955d1..0000000 --- a/src/controller/ShopController.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.example.hosdata.controller; - -import com.example.hosdata.pojo.Medicine; -import com.example.hosdata.pojo.RegisterRecord; -import com.example.hosdata.pojo.ShopRecord; -import com.example.hosdata.service.ShopService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -@RestController -public class ShopController { - - @Autowired - ShopService shopService; - - @ResponseBody - @CrossOrigin - @GetMapping(value = "/api/shop") - public List shop() { - return shopService.MedicineList(); - } - - @CrossOrigin - @PostMapping("/api/shop") - public ShopRecord Add(@RequestBody ShopRecord SR) throws Exception { - shopService.addOrUpdate(SR); - return SR; - } - - @CrossOrigin - @PostMapping("/api/Admin") - public Medicine Update(@RequestBody Medicine medicine) throws Exception { - shopService.Update(medicine); - return medicine; - } - - @CrossOrigin - @GetMapping("/api/shoprecords") - public List listbymyzh() throws Exception { - return shopService.listBymyzh(); - } - -} diff --git a/src/controller/ZhuController.java b/src/controller/ZhuController.java deleted file mode 100644 index 279da7f..0000000 --- a/src/controller/ZhuController.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.example.hosdata.controller; -import com.example.hosdata.pojo.Information; -import com.example.hosdata.pojo.RegisterRecord; -import com.example.hosdata.pojo.Zhuce; -import com.example.hosdata.service.DocyzService; -import com.example.hosdata.service.InService; -import com.example.hosdata.service.RegisterService; - -import com.example.hosdata.service.ZhuService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -import org.springframework.web.util.HtmlUtils; - -import java.util.List; - -@RestController -public class ZhuController { - @Autowired - ZhuService zhuService; - - @CrossOrigin - @PostMapping("/api/zhu") - public Zhuce add(@RequestBody Zhuce zhuce) throws Exception { - zhuService.add(zhuce); - return zhuce; - } -} diff --git a/src/dao/DocDAO.java b/src/dao/DocDAO.java deleted file mode 100644 index 5b90df4..0000000 --- a/src/dao/DocDAO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.example.hosdata.dao; - -import com.example.hosdata.pojo.Docyz; -import org.springframework.data.jpa.repository.JpaRepository; - -import java.util.List; - -public interface DocDAO extends JpaRepository { - List findByGhname(String ghname); - - List findByDoctorname(String doctorname); -} diff --git a/src/dao/DoctorDAO.java b/src/dao/DoctorDAO.java deleted file mode 100644 index 9405b0b..0000000 --- a/src/dao/DoctorDAO.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.example.hosdata.dao; -import java.util.*; -import com.example.hosdata.pojo.Doctor; -import org.springframework.data.domain.Page; -import org.springframework.data.jpa.repository.JpaRepository; - -public interface DoctorDAO extends JpaRepository { - List findAllByDepartment(String department); - List findAllByDoctorname(String doctorname); -} diff --git a/src/dao/RegisterDAO.java b/src/dao/RegisterDAO.java deleted file mode 100644 index c1ef457..0000000 --- a/src/dao/RegisterDAO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.example.hosdata.dao; - - -import com.example.hosdata.pojo.RegisterRecord; -import org.springframework.data.domain.Page; -import org.springframework.data.jpa.repository.JpaRepository; - -import java.util.List; - -public interface RegisterDAO extends JpaRepository { - List findByUsername(String username); - - List findByDoctor(String doctor); - -} diff --git a/src/dao/ShopDAO.java b/src/dao/ShopDAO.java deleted file mode 100644 index d0a9c45..0000000 --- a/src/dao/ShopDAO.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.example.hosdata.dao; - -import com.example.hosdata.pojo.Medicine; -import org.springframework.data.jpa.repository.JpaRepository; - -import java.util.List; - -public interface ShopDAO extends JpaRepository { - List findAllByPlace(String place); -} diff --git a/src/dao/ShopRecordDAO.java b/src/dao/ShopRecordDAO.java deleted file mode 100644 index 55bd1c9..0000000 --- a/src/dao/ShopRecordDAO.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.example.hosdata.dao; - -import com.example.hosdata.pojo.Medicine; -import com.example.hosdata.pojo.ShopRecord; -import org.springframework.data.jpa.repository.JpaRepository; - -import java.util.List; -public interface ShopRecordDAO extends JpaRepository { - List findByMyzh(String myzh); -} diff --git a/src/dao/UserDAO.java b/src/dao/UserDAO.java deleted file mode 100644 index f3e1781..0000000 --- a/src/dao/UserDAO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.example.hosdata.dao; -import com.example.hosdata.pojo.User; -import org.springframework.data.jpa.repository.JpaRepository; -import java.util.List; - -public interface UserDAO extends JpaRepository { - User findByUsername(String username); - - User getByUsernameAndPassword(String username,String password); - - User getByIdAndUsernameAndPassword(String id,String username,String password); - - User getByIdAndUsernameAndPasswordAndRealname(String id,String username,String password,String realname); - -} - -//操作数据库的对象,使用了JPA,无需手动构建SQL语句,而只需要按照规范提供方法的名字即可实现对数据库的增删查改 - diff --git a/src/dao/ZhuDAO.java b/src/dao/ZhuDAO.java deleted file mode 100644 index 140051d..0000000 --- a/src/dao/ZhuDAO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.example.hosdata.dao; - -import com.example.hosdata.pojo.Information; -import com.example.hosdata.pojo.RegisterRecord; -import com.example.hosdata.pojo.User; -import com.example.hosdata.pojo.Zhuce; -import org.springframework.data.domain.Page; -import org.springframework.data.jpa.repository.JpaRepository; - -import java.util.List; -public interface ZhuDAO extends JpaRepository{ -} diff --git a/src/docrecords/DocrecordIndex.vue b/src/docrecords/DocrecordIndex.vue deleted file mode 100644 index 3d12977..0000000 --- a/src/docrecords/DocrecordIndex.vue +++ /dev/null @@ -1,210 +0,0 @@ - - diff --git a/src/home/Appindex.vue b/src/home/Appindex.vue deleted file mode 100644 index 2a0343e..0000000 --- a/src/home/Appindex.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - - diff --git a/src/main.js b/src/main.js deleted file mode 100644 index 471ed03..0000000 --- a/src/main.js +++ /dev/null @@ -1,21 +0,0 @@ -import Vue from 'vue' -import App from './App' -import router from './router' -import ElementUI from 'element-ui' -import 'element-ui/lib/theme-chalk/index.css' - -var axios = require('axios') -axios.defaults.baseURL = 'http://localhost:8443/api' -Vue.prototype.$axios = axios -Vue.config.productionTip = false - -Vue.use(ElementUI) - -/* eslint-disable no-new */ -new Vue({ - el: '#app', - render: h => h(App), - router, - components: { App }, - template: '' -}) diff --git a/src/pojo/Doctor.java b/src/pojo/Doctor.java deleted file mode 100644 index 9160784..0000000 --- a/src/pojo/Doctor.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.example.hosdata.pojo; -import javax.persistence.*; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; - -@Entity -@Table(name = "doctor") -@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) - -public class Doctor { - @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) - @Column(name = "doctorid") - int doctorid; - - String doctorname; - String department; - String worktime; - - public String getDoctorname() { - return doctorname; - } - public void setDoctorname(String doctorname) { - this.doctorname = doctorname; - } - - public String getDepartment() { - return department; - } - public void setDpartment(String department) { - this.department = department; - } - - public String getWorktime() { - return worktime; - } - public void setWorktime(String worktime) { - this.worktime = worktime; - } -} diff --git a/src/pojo/Docyz.java b/src/pojo/Docyz.java deleted file mode 100644 index d2b62e0..0000000 --- a/src/pojo/Docyz.java +++ /dev/null @@ -1,76 +0,0 @@ -package com.example.hosdata.pojo; - -import javax.persistence.*; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; - -@Entity -@Table(name = "docyz") -@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) - -public class Docyz { - @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) - @Column(name = "idnumber") - int idnumber; - - String doctorname; - - String ghname; - int yyh; - String zhengz; - String zhend; - String liaoc; - - - public int getIdnumber() { - return idnumber; - } - public void setIdnumber(int idnumber) { - this.idnumber = idnumber; - } - - public String getDoctorname() { - return doctorname; - } - public void setDoctorname(String doctorname) { - this.doctorname = doctorname; - } - - public String getGhname() { - return ghname; - } - public void setGhname(String ghname) { - this.ghname = ghname; - } - - public int getYyh() { - return yyh; - } - public void setYyh(int yyh) { - this.yyh = yyh; - } - - public String getZhengz() { - return zhengz; - } - public void setZhengz(String zhengz) { - this.zhengz = zhengz; - } - - public String getZhend() { - return zhend; - } - public void setZhend(String zhend) { - this.zhend = zhend; - } - - public String getLiaoc() { - return liaoc; - } - public void setLiaoc(String liaoc) { - this.liaoc = liaoc; - } - -} - diff --git a/src/pojo/Medicine.java b/src/pojo/Medicine.java deleted file mode 100644 index 40ab1b8..0000000 --- a/src/pojo/Medicine.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.example.hosdata.pojo; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; - -import javax.persistence.*; - -@Entity -@Table(name = "medicine") -@JsonIgnoreProperties({"handler","hibernateLazyInitializer"}) - -public class Medicine { - @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) - @Column(name = "id") - int id; - - String name; - int number; - double price; - - String place; - - public int getId() { - return id; - } - - public void setId(int id) { - this.id = id; - } - - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - - public int getNumber() {return number;} - - public void setNumber(int number) { - this.number = number; - } - - - public double getPrice() {return price;} - - public void setPrice(double price) { - this.price = price; - } - - public String getPlace() {return place;} - - public void setPlace(String place) { - this.place = place; - } - -} diff --git a/src/pojo/RegisterRecord.java b/src/pojo/RegisterRecord.java deleted file mode 100644 index 1032245..0000000 --- a/src/pojo/RegisterRecord.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.example.hosdata.pojo; -import javax.persistence.*; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; - -@Entity -@Table(name = "register") -@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) - -public class RegisterRecord { - @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) - @Column(name = "idnum") - int idnum; - - String name; - String department; - String major; - String time; - String doctor; - String username; - - - - public int getIdnum() { - return idnum; - } - public void setIdnum(int idnum) { - this.idnum = idnum; - } - - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - - public String getDepartment() { - return department; - } - public void setDepartment(String department) { - this.department = department; - } - - public String getMajor() { - return major; - } - public void setMajor(String major) { - this.major = major; - } - - public String getTime() { - return time; - } - public void setTime(String time) { - this.time = time; - } - - public String getDoctor() { - return doctor; - } - public void setDoctor(String doctor) { - this.doctor = doctor; - } - - public String getUsername() { - return username; - } - public void setUsername(String username) { - this.username = username; - } - -} diff --git a/src/pojo/ShopRecord.java b/src/pojo/ShopRecord.java deleted file mode 100644 index cfe50f1..0000000 --- a/src/pojo/ShopRecord.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.example.hosdata.pojo; - -import javax.persistence.*; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; - -@Entity -@Table(name = "shoprecord") -@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) - -public class ShopRecord { - @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) - @Column(name = "mid") - int mid; - - String medicine; - int number; - - String myzh; - - public String getMedicine() { - return medicine; - } - public void setMedicine(String medicine) { - this.medicine = medicine; - } - - public int getNumber() {return number;} - public void setNumber(int number) { - this.number = number; - } - - public int getMid() { - return mid; - } - public void setMid(int mid) { - this.mid = mid; - } - - public String getMyzh() { - return myzh; - } - public void setMyzh(String myzh) { - this.myzh = myzh; - } - -} diff --git a/src/pojo/User.java b/src/pojo/User.java deleted file mode 100644 index c041957..0000000 --- a/src/pojo/User.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.example.hosdata.pojo; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; - -import javax.persistence.*; - -@Entity -@Table(name = "user") -@JsonIgnoreProperties({"handler","hibernateLazyInitializer"}) - -public class User { - @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) - @Column(name = "id") - String id; - - String username; - String password; - - String realname; - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public String getRealname() { - return realname; - } - - public void setRealname(String realname) { - this.realname = realname; - } -} diff --git a/src/pojo/Zhuce.java b/src/pojo/Zhuce.java deleted file mode 100644 index 9ad6b5a..0000000 --- a/src/pojo/Zhuce.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.example.hosdata.pojo; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; - -import javax.persistence.*; - -@Entity -@Table(name = "user") -@JsonIgnoreProperties({"handler","hibernateLazyInitializer"}) - -public class Zhuce { - @Id - @GeneratedValue(strategy = GenerationType.IDENTITY) - @Column(name = "id") - String id; - - String username; - String password; - - String realname; - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public String getRealname() { - return realname; - } - - public void setRealname(String realname) { - this.realname = realname; - } -} diff --git a/src/records/RecordIndex.vue b/src/records/RecordIndex.vue deleted file mode 100644 index 344ee7c..0000000 --- a/src/records/RecordIndex.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - - - diff --git a/src/records/SearchBar.vue b/src/records/SearchBar.vue deleted file mode 100644 index 2c971f0..0000000 --- a/src/records/SearchBar.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - - - diff --git a/src/records/SideMenu.vue b/src/records/SideMenu.vue deleted file mode 100644 index 3702c39..0000000 --- a/src/records/SideMenu.vue +++ /dev/null @@ -1,52 +0,0 @@ - - - - - diff --git a/src/records/record.vue b/src/records/record.vue deleted file mode 100644 index 94cab3c..0000000 --- a/src/records/record.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - - - diff --git a/src/register/RegisterIndex.vue b/src/register/RegisterIndex.vue deleted file mode 100644 index dadd6f7..0000000 --- a/src/register/RegisterIndex.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - - diff --git a/src/result/Result.java b/src/result/Result.java deleted file mode 100644 index 6cf46ec..0000000 --- a/src/result/Result.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.example.hosdata.result; - -public class Result { - //响应码 - private int code; - - public Result(int code) { - this.code = code; - } - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - -} diff --git a/src/router/index.js b/src/router/index.js deleted file mode 100644 index cda5260..0000000 --- a/src/router/index.js +++ /dev/null @@ -1,123 +0,0 @@ -import Vue from 'vue' -import Router from 'vue-router' -import AppIndex from '../components/home/AppIndex' -import Login from '../components/Login' -import Home from '../components/Home' -import RegisterIndex from '../components/register/RegisterIndex' -import ShopIndex from '../components/shop/ShopIndex' -import RecordIndex from '../components/records/RecordIndex' -import AdvanceIndex from '../components/advance/AdvanceIndex' -import DocrecordIndex from '../components/docrecords/DocrecordIndex' -import TreatmentIndex from '../components/treatment/TreatmentIndex' -import ShoprecordIndex from '../components/shoprecords/ShoprecordIndex' -import SettingIndex from '../components/setting/SettingIndex' -import ZhuceIndex from '../components/zhu/ZhuceIndex' -import AdminIndex from '../components/Admin/AdminIndex' - -Vue.use(Router) - -export default new Router({ - routes: [ - { - path: '/home', - name: 'Home', - component: Home, - redirect: '/index', - children: [ - { - path: '/index', - name: 'AppIndex', - component: AppIndex, - meta: { - requireAuth: true - } - }, - { - path: '/register', - name: 'RegisterIndex', - component: RegisterIndex, - meta: { - requireAuth: true - } - }, - { - path: '/shop', - name: 'ShopIndex', - component: ShopIndex, - meta: { - requireAuth: true - } - }, - { - path: '/records', - name: 'RecordIndex', - component: RecordIndex, - meta: { - requireAuth: true - } - }, - { - path: '/advance', - name: 'AdvanceIndex', - component: AdvanceIndex, - meta: { - requireAuth: true - } - }, - { - path: '/treatment', - name: 'TreatmentIndex', - component: TreatmentIndex, - meta: { - requireAuth: true - } - }, - { - path: '/shoprecords', - name: 'ShoprecordIndex', - component: ShoprecordIndex, - meta: { - requireAuth: true - } - }, - { - path: '/setting', - name: 'SettingIndex', - component: SettingIndex, - meta: { - requireAuth: true - } - } - ] - }, - { - path: '/docrecords', - name: 'DocrecordIndex', - component: DocrecordIndex, - meta: { - requireAuth: true - } - }, - { - path: '/login', - name: 'Login', - component: Login - }, - { - path: '/zhu', - name: 'ZhuceIndex', - component: ZhuceIndex, - meta: { - requireAuth: true - } - }, - { - path: '/Admin', - name: 'AdminIndex', - component: AdminIndex, - meta: { - requireAuth: true - } - } - ] -}) diff --git a/src/s.txt b/src/s.txt deleted file mode 100644 index e69de29..0000000 diff --git a/src/service/DoctorService.java b/src/service/DoctorService.java deleted file mode 100644 index efb6ccc..0000000 --- a/src/service/DoctorService.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.example.hosdata.service; - -import com.example.hosdata.dao.DoctorDAO; -import com.example.hosdata.pojo.Doctor; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -public class DoctorService { - @Autowired - DoctorDAO doctorDAO; - - public List listByDepartment(String department) { - return doctorDAO.findAllByDepartment(department); - } - - public List listworktime(String doctor) { - return doctorDAO.findAllByDoctorname(doctor); - } -} diff --git a/src/service/DocyzService.java b/src/service/DocyzService.java deleted file mode 100644 index 55cff90..0000000 --- a/src/service/DocyzService.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.example.hosdata.service; - -import com.example.hosdata.dao.DocDAO; -import com.example.hosdata.pojo.Docyz; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import java.util.List; - -@Service -public class DocyzService { - @Autowired - DocDAO docDAO; - static public String ghname; - static public String doctorname; - - public void addOrUpdate(Docyz doc) { - docDAO.save(doc); - } - - public List listByghname() { - return docDAO.findByGhname(this.ghname); - } - - public List listBydoctorname() { - return docDAO.findByDoctorname(this.doctorname); - } -} diff --git a/src/service/RegisterService.java b/src/service/RegisterService.java deleted file mode 100644 index 0864d07..0000000 --- a/src/service/RegisterService.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.example.hosdata.service; - -import com.example.hosdata.dao.RegisterDAO; -import com.example.hosdata.pojo.RegisterRecord; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Sort; -import org.springframework.stereotype.Service; - -import java.util.List; - -@Service -public class RegisterService { - @Autowired - RegisterDAO reDAO; - static public String username; - - public List listByname() { - return reDAO.findByUsername(this.username); - } - - public void addOrUpdate(RegisterRecord record) { - reDAO.save(record); - } - - public List list() { - return reDAO.findAll(); - } - - public List Search(String doctor) { - return reDAO.findByDoctor(doctor); - } - -} - - diff --git a/src/service/ShopService.java b/src/service/ShopService.java deleted file mode 100644 index 1529aa7..0000000 --- a/src/service/ShopService.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.example.hosdata.service; - -import com.example.hosdata.dao.ShopDAO; -import com.example.hosdata.dao.ShopRecordDAO; -import com.example.hosdata.pojo.Medicine; -import com.example.hosdata.pojo.ShopRecord; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -@Service -public class ShopService { - public String place = "药房"; - - static public String myzh; - @Autowired - ShopDAO shopDAO; - - @Autowired - ShopRecordDAO shopRecordDAO; - - public List MedicineList(){ - return shopDAO.findAllByPlace(place); - } - - public void addOrUpdate(ShopRecord shopRecord) { - shopRecordDAO.save(shopRecord); - } - - public void Update(Medicine medicine) { - medicine.setPlace("药房"); - shopDAO.save(medicine); - } - - public List listBymyzh() { - return shopRecordDAO.findByMyzh(this.myzh); - } -} diff --git a/src/service/UserService.java b/src/service/UserService.java deleted file mode 100644 index 11d3c0e..0000000 --- a/src/service/UserService.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.example.hosdata.service; - -import com.example.hosdata.dao.UserDAO; -import com.example.hosdata.pojo.RegisterRecord; -import com.example.hosdata.pojo.User; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -@Service -public class UserService { - @Autowired - UserDAO userDAO; - - public boolean isExist(String username) { - User user = getByName(username); - return null!=user; - } - - public User getByName(String username) { - return userDAO.findByUsername(username); - } - - public User get(String username, String password){ - return userDAO.getByUsernameAndPassword(username, password); - } - - public void add(User user) { - userDAO.save(user); - } - - public User getall(String id, String username, String password, String realname) { - return userDAO.getByIdAndUsernameAndPasswordAndRealname(id,username,password,realname); - } - -} -//在DAO中只定义基础的增删改查操作,而具体操作需要service来完成 diff --git a/src/service/ZhuService.java b/src/service/ZhuService.java deleted file mode 100644 index 668682f..0000000 --- a/src/service/ZhuService.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.example.hosdata.service; - -import com.example.hosdata.dao.InDAO; -import com.example.hosdata.dao.RegisterDAO; -import com.example.hosdata.dao.ZhuDAO; -import com.example.hosdata.pojo.Information; -import com.example.hosdata.pojo.RegisterRecord; -import com.example.hosdata.pojo.Zhuce; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Sort; -import org.springframework.stereotype.Service; - -import java.util.List; - -@Service -public class ZhuService { - @Autowired - ZhuDAO zhuDAO; - - public void add(Zhuce zhuce) { - zhuDAO.save(zhuce); - } -} diff --git a/src/setting/SettingIndex.vue b/src/set/setIndex.vue similarity index 76% rename from src/setting/SettingIndex.vue rename to src/set/setIndex.vue index 79aff7e..9f81bca 100644 --- a/src/setting/SettingIndex.vue +++ b/src/set/setIndex.vue @@ -1,7 +1,7 @@