You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
function IoTCenter_product() {
|
|
return Vue.component('IoTCenter_product', function (resolve, reject) {
|
|
axios.get("/IoTCenter/product.html").then(function (response) {
|
|
resolve({
|
|
template: response.data,
|
|
data() {
|
|
return {
|
|
model: null
|
|
};
|
|
},
|
|
mounted: function () {
|
|
console.log('当前路由:');
|
|
console.log(this.$route);
|
|
var url = '/IoTCenter/api/v1/product/getDevices?number='+this.$route.query.number;
|
|
var component = this;
|
|
axios.post(url)
|
|
.then(function (response) {
|
|
component.model = response.data;
|
|
})
|
|
.catch(function (error) {
|
|
})
|
|
.finally(function () {
|
|
|
|
});
|
|
},
|
|
methods: {
|
|
}
|
|
})
|
|
});
|
|
});
|
|
} |