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 f3d2503..0000000 Binary files a/src/assets/logo.png and /dev/null differ diff --git a/src/build/build.js b/src/build/build.js deleted file mode 100644 index 8f2ad8a..0000000 --- a/src/build/build.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict' -require('./check-versions')() - -process.env.NODE_ENV = 'production' - -const ora = require('ora') -const rm = require('rimraf') -const path = require('path') -const chalk = require('chalk') -const webpack = require('webpack') -const config = require('../config') -const webpackConfig = require('./webpack.prod.conf') - -const spinner = ora('building for production...') -spinner.start() - -rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { - 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 f3d2503..0000000 Binary files a/src/build/logo.png and /dev/null differ diff --git a/src/build/utils.js b/src/build/utils.js deleted file mode 100644 index e534fb0..0000000 --- a/src/build/utils.js +++ /dev/null @@ -1,101 +0,0 @@ -'use strict' -const path = require('path') -const config = require('../config') -const ExtractTextPlugin = require('extract-text-webpack-plugin') -const packageConfig = require('../package.json') - -exports.assetsPath = function (_path) { - const assetsSubDirectory = process.env.NODE_ENV === 'production' - ? config.build.assetsSubDirectory - : config.dev.assetsSubDirectory - - return path.posix.join(assetsSubDirectory, _path) -} - -exports.cssLoaders = function (options) { - options = options || {} - - const cssLoader = { - loader: 'css-loader', - options: { - sourceMap: options.sourceMap - } - } - - const postcssLoader = { - loader: 'postcss-loader', - options: { - sourceMap: options.sourceMap - } - } - - // generate loader string to be used with extract text plugin - function generateLoaders (loader, loaderOptions) { - const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader] - - if (loader) { - loaders.push({ - loader: loader + '-loader', - options: Object.assign({}, loaderOptions, { - sourceMap: options.sourceMap - }) - }) - } - - // Extract CSS when that option is specified - // (which is the case during production build) - if (options.extract) { - return ExtractTextPlugin.extract({ - use: loaders, - fallback: 'vue-style-loader' - }) - } else { - return ['vue-style-loader'].concat(loaders) - } - } - - // https://vue-loader.vuejs.org/en/configurations/extract-css.html - return { - css: generateLoaders(), - postcss: generateLoaders(), - less: generateLoaders('less'), - sass: generateLoaders('sass', { indentedSyntax: true }), - scss: generateLoaders('sass'), - stylus: generateLoaders('stylus'), - styl: generateLoaders('stylus') - } -} - -// Generate loaders for standalone style files (outside of .vue) -exports.styleLoaders = function (options) { - const output = [] - const loaders = exports.cssLoaders(options) - - for (const extension in loaders) { - const loader = loaders[extension] - output.push({ - test: new RegExp('\\.' + extension + '$'), - use: loader - }) - } - - return output -} - -exports.createNotifierCallback = () => { - 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 @@