首页 新闻 会员 周边

Vue 请求后端数据后无法显示某个组件

0
[已关闭问题] 关闭于 2022-01-11 10:53

getlist1: function () {
debugger;
var _this = this;
var firstdatas = {};
var dates = new Date();
if (dates.getMonth() == 0) {
_this.first = 11 + "月";
_this.second = 12 + "月";
_this.third = 1 + "月";
} else if (dates.getMonth() == 1) {
_this.first = 12 + "月";
_this.second = 1 + "月";
_this.third = 2 + "月";
} else {
_this.first = dates.getMonth() - 1 + "月";;
_this.second = dates.getMonth() + "月";;
_this.third = dates.getMonth() + 1 + "月";;
}

        $.ajax({
            type: "get",
            url: "Home/GetSOISaleProductType",
            dataType: "json",
            async: true,
            success: function (SaleProductTypedatas) {
                debugger;
                _this.Boxcard = SaleProductTypedatas.ISDBS;
                _this.ISPurchases = SaleProductTypedatas.ISPurchases;
                _this.ISDealerCustomers = SaleProductTypedatas.ISDealerCustomers;
                _this.OrderMasters = SaleProductTypedatas.OrderMasters;
                _this.ISPurchaseumMoney = SaleProductTypedatas.ISPurchaseumMoney;
                _this.tableData = SaleProductTypedatas.tableData;
                _this.options = SaleProductTypedatas.SaleProductTypeone;
                _this.SDDealeroptions = SaleProductTypedatas.SDDealer;
                _this.ManualdeliveryOrder = SaleProductTypedatas.ManualdeliveryOrder;
                _this.NoPD = SaleProductTypedatas.NoPD;
                debugger;
                if (SaleProductTypedatas.ISPDRs == 0) {
                    //$("[id='box1']").show();
                    _this.play = true;
                } else {
                    _this.play = true;
                }
            }
        });
    },
问题补充:

<div :v-if="play" hidden>
<el-row v-for="o in Boxcard" :key="o" style="width:100%;font-size:15px;line-height:40px">
<el-col :span="24">
{{o.Name }}
</el-col>
</el-row>

                        </div>
上天的猪的主页 上天的猪 | 初学一级 | 园豆:18
提问于:2022-01-11 10:36
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册