Commit 11da8045 authored by xcc's avatar xcc

工位选则

parent 7b8171a3
...@@ -153,8 +153,14 @@ ...@@ -153,8 +153,14 @@
methods: { methods: {
// 工位切换 // 工位切换
gongweiFunc(o,i){ gongweiFunc(o,i){
fetch('http://127.0.0.1:8180/stage-api/base/site/selectListSite',
this.gongweiList= ( JSON.parse(JSON.stringify(this.gongweiList)) ).map((o)=> Object.assign({},o,{active:false}) ) {method: 'GET', headers: {'Authorization': 'Bearer_b3e1b7b2-51c8-451b-944b-dccf3491ad32'}})
.then(response => response.json())
.then(data => {
this.gongweiList=data.data.map((o)=> Object.assign({},o,{active:false,lable:o.siteName}));
})
.catch(error => console.error('Error:', error));
// this.gongweiList= ( JSON.parse(JSON.stringify(this.gongweiList)) ).map((o)=> Object.assign({},o,{active:false}) )
this.$nextTick(()=>{ this.$nextTick(()=>{
const _data=JSON.parse(JSON.stringify(this.gongweiList)) const _data=JSON.parse(JSON.stringify(this.gongweiList))
...@@ -195,9 +201,6 @@ ...@@ -195,9 +201,6 @@
<script> <script>
$(document).ready(function() { $(document).ready(function() {
var iframe1 = document.getElementById('myiframe1').contentWindow; var iframe1 = document.getElementById('myiframe1').contentWindow;
var iframe2 = document.getElementById('myiframe2').contentWindow; var iframe2 = document.getElementById('myiframe2').contentWindow;
var iframe3 = document.getElementById('myiframe3').contentWindow; var iframe3 = document.getElementById('myiframe3').contentWindow;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment