psj 2 years ago
parent
commit
748f6f3c21

+ 1 - 1
src/components/evaluate/EvaluateCard.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="h100" id="evaluate-card">
-    <div class="black-title">电子证照</div>
+    <div class="black-title"></div>
     <div class="detail_content">
       <div class="single_part" v-for="(item,index) in list" @click="showCommit(item.code)" :key="index" >
         <div :class="item.class">

+ 2 - 0
src/views/electricCard/ElectricCard.vue

@@ -136,6 +136,7 @@ import {getWeek, startTime, endTime, getYear} from "@/commomUse";
 import {mapEletricCardMutations, mapEletricCardState} from "@/units/map-units";
 import ElectricCardTableModel from "@/views/electricCard/c-cpns/ElectricCardTableModel";
 import {MessageBox} from "element-ui";
+import selectConfigModuleByRole from "@/role_button";
 export default {
   name: "ElectricCard",
   components: {ElePagination, MyTable,ElectricCardTableModel},
@@ -255,6 +256,7 @@ export default {
     }
   },
   mounted() {
+    selectConfigModuleByRole(this);
     this.form.date1 = startTime();
     this.form.date2 = endTime();
     this.form.date1 = '';

+ 38 - 3
src/views/home/Login.vue

@@ -133,6 +133,37 @@
             };
         },
         methods: {
+            loadLogin(){
+                if(this.getQueryByName("username") == null || this.getQueryByName("username") == "" ||this.getQueryByName("username") == undefined){
+                    return;
+                }
+                this.loginForm.identifyingCode = this.show_num.join("");
+                this.loginForm.passWord = "Ywtb@123";
+                this.loginForm.userName = this.getQueryByName("username");
+                localStorage.removeItem("ywtb_usercode");
+                localStorage.removeItem("ywtb_username");
+                localStorage.removeItem("ywtb_unitcode");
+                localStorage.removeItem("ywtb_unitname");
+                localStorage.removeItem("ywtb_lasttime");
+                localStorage.removeItem("ywtb_role");
+                localStorage.removeItem("ywtb_userkeycode");
+                localStorage.removeItem("ywtb_changetime");
+                localStorage.removeItem("ywtb_role_uuid");
+                localStorage.removeItem("tempConfigButtonMap");
+                this.submitForm();
+            },
+            getQueryByName(name){
+                var url = window.location.toString().toLocaleLowerCase();
+                url.replace("?","?");
+                var temp = url.split("?");
+                var paras = temp[1].split("&");
+                var para = {};
+                for(var i = 0 ; i < paras.length ;i++){
+                    var temp_para = paras[i].split("=");
+                    para[temp_para[0]] = decodeURI(temp_para[1]);
+                }
+                return para[name];
+            },
             //提交登录
             submitForm() {
                 this.message_text = null;
@@ -268,7 +299,8 @@
                     this.selectConfigModuleByRole();
                     return;
                 })
-            },selectConfigModuleByRole(){//判断当前页面上的所有模块 当前角色是否配置使用
+            },
+            selectConfigModuleByRole(){//判断当前页面上的所有模块 当前角色是否配置使用
                 this.$request({
                     url:"http://10.81.66.9:9250/ptjkInterface/selectAllZymlRoleModuleByRoleCode?appkey="+localStorage.getItem("ywtb_userkeycode"),
                     method:'post',
@@ -286,7 +318,8 @@
                         this.selectConfigButtonByRole_01(tempConfigButtonMap);
                     }
                 })
-            },selectConfigButtonByRole_01(tempConfigButtonMap){
+            },
+            selectConfigButtonByRole_01(tempConfigButtonMap){
                 this.$request({
                     url:"http://10.81.66.9:9250/ptjkInterface/selectConfigButtonByRole?appkey="+localStorage.getItem("ywtb_userkeycode"),
                     method:'post',
@@ -305,7 +338,8 @@
                     this.$router.push('/origion/home')
                     return;
                 })
-            },draw() {
+            },
+            draw() {
                 var canvas_width = this.canvas.width;
                 var canvas_height = this.canvas.height;
                 var canvas = document.getElementById("myCanvas");//获取到canvas的对象,演员
@@ -361,6 +395,7 @@
         mounted() {
             this.canvas = document.getElementById("myCanvas");
             this.draw();
+            this.loadLogin();
             //this.context = this.canvas.getContext("2d");
 
             //this.createStar(true);