123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- var app = new Vue({
- el: '#appse',
- data: {
- message: 'Hello Vue!',
- inpute:'',
- tablide:[],
- hyew:false,
- nue:"首页",
- week:'',
- date_show:'',
- ulrw:'',
- mjuede:'',
- hyesfr:'',
- tiles:'',
- heyseks:'',
- },
- created() {
- console.log(234)
- this.getdataTime()
- this.gettablist()
-
- },
- mounted(optio) {
- this.tiles = decodeURI(this.getQueryString("titel"))
- this.heyseks = decodeURI(this.getQueryString("ntitel"))
- this.nue = this.heyseks
-
-
- },
- methods:{
- gettablist(){
- var that = this
- $.ajax({
- url:'https://jyzx.qs163.cn/prod-api/gateway/query/treeselect',
- type:'get',
- data:'',
- dataType:'json',
- success:function(res){
- console.log(res,765)
- if(res.code == 200){
- that.tablide = res.data
- that.hyew = true
- }else{
- that.$message({
- message: res.msg,
- type: 'error'
- });
- }
- console.log(that.tablide,765)
- }
- })
- },
- inpubie(){
- console.log(this.inpute)
- },
- nhyesee(){
- console.log(this.inpute)
- let nhye= this.inpute + ''
-
-
- window.location.href = "ss.html?" + encodeURI(nhye)
-
- },
-
- tabcl(val,index){
- this.nue = index
- if(index == "首页"){
- window.location.href="index.html?ntitel=首页"
- }
- console.log(val,index)
- },
- jeuese(index){
-
- if(index.label=='报告查询'){
- window.location.href="bgcx.html"
- }else if(index.label=='送检登记'){
- window.location.href="wshsj.html"
- }else{
- window.location.href="djdt.html?id=" + index.id +'&titel=' + index.label + '&ntitel=' + this.hyesfr + '&openMode=' + index.openMode
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- },
- dheyfr(val){
- console.log(val)
- this.hyesfr = val
- },
- getdataTime(){
- let wk = new Date().getDay()
- let yy = new Date().getFullYear();
- let mm = new Date().getMonth() + 1;
- let dd = new Date().getDate();
- let weeks = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
- this.week = weeks[wk]
- this.date_show = yy + "年" + mm + "月" + dd + "日"
- },
-
- getQueryString(name) {
- try {
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
- var r = window.location.href.split('?')[1].match(reg);
- console.log(reg,r)
- if(r != null) {
- return r[2];
- }
- return "";
- } catch(e) {
- return "";
- }
- },
-
- }
- })
-
-
-
|