| | |
| | | Vue.prototype.global={ |
| | | polling:null, |
| | | pollingIndex:0, |
| | | timer:30000 |
| | | } |
| | | |
| | | |
| | | let str = window.location.href.substr(window.location.href.indexOf('?') + 1) |
| | | let json = new Object() |
| | |
| | | }, |
| | | connects:function(gongneng,sql,flag,num){ |
| | | $.ajax({ |
| | | url :'http://localhost:8080/gmms/mysqlInsert/mysql.jsp', |
| | | url :'../mysqlInsert/mysql.jsp', |
| | | type : "post",//不局限于get |
| | | data:{"gongneng":gongneng,"sql":sql,'flag':flag,'anquanma':json["anquanma"]}, |
| | | async : true, |
| | |
| | | } |
| | | //gongneng:自定义,sql存储过程,flag标志(0,是用张工之前功能插入,1存储过程查询,2存储过程插入),vals:vue里data参数 |
| | | function loadAjxs1(gongneng,sql,flag,vals){ |
| | | $.post("localhost:8080/gmms/mysqlInsert/mysql.jsp", |
| | | $.post("../mysqlInsert/mysql.jsp", |
| | | {"yemian":"123","gongneng":gongneng,"sql":sql,'flag':flag,'anquanma':json["anquanma"]}, |
| | | function(result){ |
| | | if(flag==2){ |
| | |
| | | |
| | | function loadAjxs(gongneng,sql,flag,vals){ |
| | | $.ajax({ |
| | | url :'http://localhost:8080/gmms/mysqlInsert/mysql.jsp', |
| | | url :'../mysqlInsert/mysql.jsp', |
| | | type : "GET",//不局限于get |
| | | data:{"yemian":"123","gongneng":gongneng,"sql":sql,'flag':flag,'anquanma':json["anquanma"]}, |
| | | async : true, |