|
@@ -32,13 +32,13 @@
|
|
|
return {
|
|
|
list: [],
|
|
|
activeIndx:0,
|
|
|
- schemeId:''
|
|
|
+ item:''
|
|
|
}
|
|
|
},
|
|
|
onLoad(opts) {
|
|
|
- this.schemeId = opts.id
|
|
|
+ this.item = JSON.parse(opts.item)
|
|
|
// 查询方案的项
|
|
|
- queryItemBySchemeId({schemeId:opts.id}).then(res=>{
|
|
|
+ queryItemBySchemeId({schemeId:this.item.id}).then(res=>{
|
|
|
console.log(res.data)
|
|
|
if(res.status == 200){
|
|
|
this.list = res.data
|
|
@@ -48,7 +48,7 @@
|
|
|
methods: {
|
|
|
// 选中方案
|
|
|
kpOk(item) {
|
|
|
- uni.$emit("resetTaskKpItem",this.schemeId)
|
|
|
+ uni.$emit("resetTaskKpItem",this.item)
|
|
|
uni.navigateBack({
|
|
|
delta:2
|
|
|
})
|