소스 검색

接口对接

zhangxc 5 년 전
부모
커밋
40d80d91b8
4개의 변경된 파일342개의 추가작업 그리고 3개의 파일을 삭제
  1. 31 0
      src/html/icssIndex.html
  2. 291 0
      src/js/icssIndex.js
  3. 2 0
      src/js/promise.js
  4. 18 3
      webpack.config.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 31 - 0
src/html/icssIndex.html


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 291 - 0
src/js/icssIndex.js


+ 2 - 0
src/js/promise.js

@@ -39,10 +39,12 @@ const config = {
   pushScale: '/api/data/push/pushScale',
   getSysSetInfoDatas: '/api/data/sysSet/getSysSetInfoDatas',
   getMr: '/api/data/mr/getMr',
+  getMr2: '/api/data/mrv2/getMr',
   getVersion: '/api/data/versionInfo/getVersionInfoAlls',
   getStaticKnowledge: '/api/data/search/getStaticKnowledge',
   getStaticScale: '/api/data/search/getScale',
   dictionaryInfo: '/api/data/dictionaryInfo/getList', //字典信息
+  getPushSet:'/api/data/pushSet/getPushSet', //获取推送配置
   ruleTypeMap:{     //大数据推送参数featureType对应
     '22':'1,2',
     '11':'3',

+ 18 - 3
webpack.config.js

@@ -18,6 +18,7 @@ module.exports = {
     indexHorizontal: path.resolve(__dirname, 'src/js', 'indexHorizontal.js'),
     staticSearch: path.resolve(__dirname, 'src/js', 'staticSearch.js'),
     emergency: path.resolve(__dirname, 'src/js', 'emergency.js'),
+    icssIndex: path.resolve(__dirname, 'src/js', 'icssIndex.js'),
     vendor: 'lodash'// 多个页面所需的公共库文件,防止重复打包带入
   },
   output: {
@@ -186,6 +187,19 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
+    new HtmlWebpackPlugin({
+      title: 'icssIndex',
+      template: path.resolve(__dirname, 'src/html', 'icssIndex.html'),
+      filename: 'icssIndex.html',
+      chunks: ['icssIndex', 'vendor', 'common'],
+      inject: true,
+      hash: true, //防止缓存
+      minify: {
+        removeAttributeQuotes: true, //压缩 去掉引号
+        removeComments: true, //移除HTML中的注释
+        collapseWhitespace: true //删除空白符与换行符
+      }
+    }),
     new MiniCssExtractPlugin({
       filename: 'css/[name].css',
       chunkFilename: '[id].css'
@@ -287,7 +301,8 @@ module.exports = {
       '/api': proxyHost
     },
     hot: true,
-    openPage:'index.html?age=28&tipsName=血常规&tipsType=12&diseaseId=280&lisJson=&diagJson=急性胰腺炎&diseaseName=糖尿病&pastJson=无心脏病&otherJson=无高血压&pacsJson=腹部B超:无异常,%20报告日期:2019-05-07&sex=男&symptomJson=恶心呕吐腰痛&vitalJson=血压左上肢13/12mmHg&hospitalCode=A001'
-    
-  }
+    // openPage:'index.html?age=28&tipsName=血常规&tipsType=12&diseaseId=280&lisJson=&diagJson=急性胰腺炎&diseaseName=糖尿病&pastJson=无心脏病&otherJson=无高血压&pacsJson=腹部B超:无异常,%20报告日期:2019-05-07&sex=男&symptomJson=恶心呕吐腰痛&vitalJson=血压左上肢13/12mmHg&hospitalCode=A001',
+    openPage:'icssIndex.html?mrId=200408517135001432'
+  },
+  stats: { children: false }
 }