Browse Source

科室控制台

luolei 5 years ago
parent
commit
15d2ed1e4b
4 changed files with 19 additions and 6 deletions
  1. 4 2
      src/html/index.html
  2. 1 2
      src/js/console.js
  3. 0 2
      src/js/index.js
  4. 14 0
      webpack.config.js

+ 4 - 2
src/html/index.html

@@ -10,7 +10,9 @@
     {{if subMenuList.length}}
         <li class="list-1"><p>${name}</p>
     {{else}}
-        <li class="page" code="${code}">${name}
+        {{if showStatus==1}}
+            <li class="page" code="${code}">${name}
+        {{/if}}
     {{/if}}
         <ul>
             {{each subMenuList}}
@@ -39,7 +41,7 @@
               <ul></ul>
               <div class="copy-right">©杭州朗通信息技术有限公司</div></div>
           <div class="main" id="mainBox">
-              <iframe src="./console.html" frameborder="0" id="contentIframe"></iframe>
+              <iframe src="./deptConsole.html" frameborder="0" id="contentIframe"></iframe>
           </div>
       </div>
     </div>

+ 1 - 2
src/js/console.js

@@ -134,7 +134,6 @@ function initConsole(result){
 }
 //获取图表数据
 function getBarData(type){
-    console.log(slideType,'797979898')
     if(hasData('FUNC000045')){
         post('/console/getAverageDayNum',{//平均住院天数
             "type": type||1//1月2年
@@ -416,7 +415,7 @@ function lineChart(dataX,dataY){
             containLabel: true
         },
         title:[{
-            text: '百分比',
+            text: dataX.length>0?'百分比':'',
             top: 15,
             left: 0,
             textStyle: {

+ 0 - 2
src/js/index.js

@@ -78,7 +78,6 @@ function getMenu(){
       userInfo = data.userLoginDTO
       setCookie("hospital",data.basHospitalInfoDTO.name)
       getAllCode(data.menuWrappers);
-      hasData("FUNC000002")?"":$("#changeWord").hide();   //修改密码无权限不显示
     }
   });
 };
@@ -86,7 +85,6 @@ function getAllCode(data){
   let lis = [],personCodeLis=[],deptCodeLis=[],trdObj={}
   for(let i = 0;i < data.length;i++){
     let tmpSon = data[i]
-    lis.push(tmpSon.code)
     if(tmpSon.subMenuList.length > 0){//三层
       for(let j = 0;j<tmpSon.subMenuList.length;j++){//第二层循环
         let tmpGrandSon = tmpSon.subMenuList[j]

+ 14 - 0
webpack.config.js

@@ -16,6 +16,7 @@ module.exports = {
     qcScore:path.resolve(__dirname, 'src/js', 'qcScore.js'),
     login:path.resolve(__dirname, 'src/js', 'login.js'),
     console:path.resolve(__dirname, 'src/js', 'console.js'),
+    deptConsole:path.resolve(__dirname, 'src/js', 'deptConsole.js'),
     moduleManager: path.resolve(__dirname, 'src/js', 'moduleManager.js'),
     itemManager: path.resolve(__dirname, 'src/js', 'itemManager.js'),
     qcList: path.resolve(__dirname, 'src/js', 'qcList.js'),
@@ -61,6 +62,19 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
+    new HtmlWebpackPlugin({
+      title: 'deptConsole.html',
+      template: path.resolve(__dirname, 'src/html', 'deptConsole.html'),
+      filename: 'deptConsole.html',
+      chunks: ['deptConsole', 'vendor', 'common'],
+      hash: true, //防止缓存
+      inject: true,
+      minify: {
+        removeAttributeQuotes: true, //压缩 去掉引号
+        removeComments: true, //移除HTML中的注释
+        collapseWhitespace: true //删除空白符与换行符
+      }
+    }),
     new HtmlWebpackPlugin({
       title: 'itemManager.html',
       template: path.resolve(__dirname, 'src/html', 'itemManager.html'),