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

分配

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