Commit 11da8045 authored by xcc's avatar xcc

工位选则

parent 7b8171a3
......@@ -66,7 +66,7 @@
showDilog:true,
gongweiList:[
{
lable:"工位111",
......@@ -153,8 +153,14 @@
methods: {
// 工位切换
gongweiFunc(o,i){
this.gongweiList= ( JSON.parse(JSON.stringify(this.gongweiList)) ).map((o)=> Object.assign({},o,{active:false}) )
fetch('http://127.0.0.1:8180/stage-api/base/site/selectListSite',
{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(()=>{
const _data=JSON.parse(JSON.stringify(this.gongweiList))
......@@ -167,12 +173,12 @@
})
})
},
// 确定
submit1(){
const _data=JSON.parse(JSON.stringify(this.gongweiList)).filter(o=>o.active)
// 选中值
......@@ -195,9 +201,6 @@
<script>
$(document).ready(function() {
var iframe1 = document.getElementById('myiframe1').contentWindow;
var iframe2 = document.getElementById('myiframe2').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