This commit is contained in:
wpf 2023-08-06 18:28:13 +08:00
parent 83dd177a42
commit b3019b2cfa

View File

@ -98,6 +98,7 @@
<banquetFuneral v-if="item.id==21" :datas="item.datas" :readonly="true" ref="demandRef21"></banquetFuneral> <banquetFuneral v-if="item.id==21" :datas="item.datas" :readonly="true" ref="demandRef21"></banquetFuneral>
</block> </block>
</block> </block>
<u-empty v-if="formData.datas.length==0" icon="/static/img/empty/data.png" text="没有数据"></u-empty>
</view> </view>
</u-skeleton> </u-skeleton>
</view> </view>
@ -165,6 +166,7 @@
category_id: 1, category_id: 1,
category_child: 1, category_child: 1,
data_type: '1', data_type: '1',
datas: []
}, },
} }
@ -178,7 +180,9 @@
let res = await informationDetails(id); let res = await informationDetails(id);
uni.$u.sleep(500).then(() => { uni.$u.sleep(500).then(() => {
this.skeleton = false; this.skeleton = false;
this.formData = res.data; Object.keys(res.data).forEach(key=>{
this.formData[key]=res.data[key];
})
}) })
}, },
toastShow() { toastShow() {