Commit 5068701c authored by 李苏's avatar 李苏 💬

分配

parent ff516ec4
......@@ -58,6 +58,11 @@
},
data() {
return {
/* 新增*/
open:{
jcnrid:'',
value:''
},
DialogWidth:'60vw',
showDialog: false,
DialogTitle: '分配',
......@@ -94,16 +99,19 @@
let jcnrid=row.id
doQueryFpgw({jcnrid:jcnrid}).then(res=>{
if(res.success){
this.showDialog=true
let gwlist=res.data.records||[]
let newGwlist=[]
gwlist.forEach(e=>{
newGwlist.push(e.gwid)
})
this.$nextTick(()=>{
this.$refs.fp.jcnrid=jcnrid
this.$refs.fp.value=newGwlist
})
this.open.jcnrid=jcnrid
this.open.value=newGwlist
this.showDialog=true
// this.$nextTick(()=>{
// this.$refs.fp.jcnrid=jcnrid
// this.$refs.fp.value=newGwlist
// })
}
})
......
......@@ -24,8 +24,9 @@
default: {}
}
},
async mounted() {
mounted() {
this.value=this.app.open.value
this.jcnrid=this.app.open.jcnrid
},
methods: {
save(){
......@@ -40,7 +41,7 @@
},
data() {
return {
value:[],
value:'',
jcnrid:''
}
}
......
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