main^2
fanfan 6 months ago
parent 30bb1d5cea
commit 145a72236d
  1. 3
      src/views/dataCenter/goods/modules/Update.vue

@ -502,6 +502,7 @@ export default {
methods: {
showEdit(goodsId) {
// ID
GoodsModel.formData.goods = {}
this.visible = true
this.goodsId = goodsId
this.initData()
@ -528,8 +529,10 @@ export default {
// (form-item)
this.$nextTick(() => {
this.form.setFieldsValue(GoodsModel.getFieldsValue2())
this.ruleList = this.formData.goods.rules ? this.formData.goods.rules : []
this.onForceUpdate()
this.$forceUpdate()
})
}
// this.ruleList = record.rule.map((item, index) => { return { ...item, key: index } })

Loading…
Cancel
Save