其他分享
首页 > 其他分享> > avue调用接口后给属性赋值

avue调用接口后给属性赋值

作者:互联网

    saveOrder(row, done, loading) {
            returnOrderNumber().then(res => {
                // this.form.checkoutCode = res.data.wareHouseNumber;
                // $set
                this.$set(row, 'returnNumber', res.data.wareHouseNumber);
                const data = Object.assign(row, {
                    returnGoodeString: JSON.stringify(this.infoData),
                })
                console.log(row);
                saveReturnOrder(data).then(() => {
                    this.$message.success('新增成功')
                    this.getList();
                    done();
                }).catch(() => {
                    loading()
                })


            })
        },

this.$set

标签:set,res,avue,接口,loading,done,赋值,data,row
来源: https://www.cnblogs.com/laroux/p/16546703.html