|
@@ -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);
|