| | |
| | | optionTABS: { |
| | | column: [ |
| | | { |
| | | icon: "el-icon-info", |
| | | // icon: "el-icon-info", |
| | | label: "保安单位基本信息", |
| | | prop: "tab1", |
| | | }, |
| | | { |
| | | icon: "el-icon-info", |
| | | // icon: "el-icon-info", |
| | | label: "保安单位出资人员", |
| | | prop: "tab2", |
| | | }, |
| | | { |
| | | icon: "el-icon-info", |
| | | // icon: "el-icon-info", |
| | | label: "主要管理人员信息", |
| | | prop: "tab3", |
| | | }, |
| | |
| | | const data = res.data.data; |
| | | this.page2.total = data.total; |
| | | this.data2 = data.records; |
| | | console.log(this.data2); |
| | | // console.log(this.data2); |
| | | this.loading2 = false; |
| | | }); |
| | | }, |
| | | //派遣记录 |
| | | saveLock(name, val) { |
| | | window.localStorage.setItem(name, val); |
| | | }, |
| | | readLock(name) { |
| | | return window.localStorage.getItem(name); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | // this.Ourdata = data; |
| | | // this.onLoad1(this.page1); //第二个表格不会自动执行 |
| | | // this.onLoad2(this.page2); //第三个表格不会自动执行 |
| | | this.typeTABS = this.optionTABS.column[0]; |
| | | if (this.$route.query.row) { |
| | | var row = this.$route.query.row; |
| | | var row = {}; |
| | | if (this.readLock("danweidata") != null) { |
| | | row = JSON.parse(this.readLock("danweidata")); |
| | | this.obj0.title = row.enterprisename + "基本信息"; |
| | | for (var k in row) { |
| | | this.obj0[k] = row[k]; |
| | | } |
| | | this.obj0.title = row.enterprisename + "基本信息"; |
| | | this.creditcode = row.creditcode; |
| | | if (this.readLock("danweidataS") != null) { |
| | | var b = JSON.parse(this.readLock("danweidataS")); |
| | | var i = 0; |
| | | for (var k in b) { |
| | | if (b[k].enterprisename == row.enterprisename) { |
| | | i = 1; |
| | | } |
| | | } |
| | | if (i == 1) { |
| | | // console.log("存在"); |
| | | } else { |
| | | // console.log("已删除"); |
| | | |
| | | this.obj0 = {}; |
| | | this.obj0.title = row.enterprisename + "该公司已删除"; |
| | | window.localStorage.removeItem("danweidata"); |
| | | this.creditcode = ''; |
| | | } |
| | | } |
| | | } else { |
| | | // console.log("no"); |
| | | this.obj0.title = "未选择查询单位"; |
| | | } |
| | | }, |
| | | watch: { |
| | | chuzitime() { |
| | | console.log(this.chuzitime, "chuzitime"); |
| | | // console.log(this.chuzitime, "chuzitime"); |
| | | }, |
| | | }, |
| | | }; |