Browse Source

修改密码权限设置

luolei 5 years ago
parent
commit
31feae03a4
4 changed files with 8 additions and 7 deletions
  1. 3 1
      src/html/index.html
  2. 3 3
      src/js/console.js
  3. 0 1
      src/js/index.js
  4. 2 2
      webpack.config.js

+ 3 - 1
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}}

+ 3 - 3
src/js/console.js

@@ -416,7 +416,7 @@ function lineChart(dataX,dataY){
             containLabel: true
         },
         title:[{
-            text: '百分比',
+            text: dataX.length>0?'百分比':'',
             top: 15,
             left: 0,
             textStyle: {
@@ -570,7 +570,7 @@ function barChartPay(dataX,dataY){
             
         ],
         title:[{
-            text: '分数',
+            text: dataX.length>0?'分数':'',
             top: 15,
             left: 10,
             textStyle: {
@@ -703,7 +703,7 @@ function barChart(data,type){
             containLabel: true
         },
         title:[{
-            text: slideType==1?'天数':'元',
+            text: dataX.length>0?(slideType==1?'天数':'元'):'',
             top: 15,
             left: 10,
             textStyle: {

+ 0 - 1
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();   //修改密码无权限不显示
     }
   });
 };

+ 2 - 2
webpack.config.js

@@ -6,8 +6,8 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
 const CopyWebpackPlugin = require('copy-webpack-plugin');
 const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
 const webpack = require('webpack');
-const proxyHost = "http://192.168.2.236:5858";
-// const proxyHost = "http://192.168.2.241:5858";
+// const proxyHost = "http://192.168.2.236:5858";
+const proxyHost = "http://192.168.2.241:5858";
 // const proxyHost = "http://192.168.3.117:5858";//铁钢
 // const proxyHost = "http://192.168.3.113:5858";//王峰
 module.exports = {