官网页面编写+接口对接
This commit is contained in:
parent
d108544886
commit
9f39e576ec
@ -365,6 +365,10 @@ productId: "",
|
||||
},
|
||||
methods: {
|
||||
dataInit() {
|
||||
this.getProduct()
|
||||
this.getProductList()
|
||||
},
|
||||
getProduct(){
|
||||
this.api.website_getowpabyowpidMan().then((res) => {
|
||||
if (res.data.code == 200) {
|
||||
this.tableData = res.data.data.filter(
|
||||
@ -372,6 +376,8 @@ productId: "",
|
||||
);
|
||||
}
|
||||
});
|
||||
},
|
||||
getProductList(){
|
||||
this.api.website_getowpManagement().then((res) => {
|
||||
if (res.data.code == 200) {
|
||||
this.tableData1 = res.data.data;
|
||||
@ -435,7 +441,7 @@ productId: "",
|
||||
this.Addloading.close();
|
||||
if (res.data.code == 200) {
|
||||
this.$message.success(res.data.msg);
|
||||
this.dataInit();
|
||||
this.getProduct()
|
||||
this.addModel = false;
|
||||
} else {
|
||||
this.$message.error(res.data.msg);
|
||||
@ -448,7 +454,7 @@ productId: "",
|
||||
this.Addloading.close();
|
||||
if (res.data.code == 200) {
|
||||
this.$message.success(res.data.msg);
|
||||
this.dataInit();
|
||||
this.getProduct()
|
||||
this.addModel = false;
|
||||
} else {
|
||||
this.$message.error(res.data.msg);
|
||||
@ -472,7 +478,7 @@ productId: "",
|
||||
this.Addloading.close();
|
||||
if (res.data.code == 200) {
|
||||
this.$message.success(res.data.msg);
|
||||
this.dataInit();
|
||||
this.getProductList()
|
||||
this.addModel1 = false;
|
||||
} else {
|
||||
this.$message.error(res.data.msg);
|
||||
@ -485,7 +491,7 @@ productId: "",
|
||||
this.Addloading.close();
|
||||
if (res.data.code == 200) {
|
||||
this.$message.success(res.data.msg);
|
||||
this.dataInit();
|
||||
this.getProductList()
|
||||
this.addModel1 = false;
|
||||
} else {
|
||||
this.$message.error(res.data.msg);
|
||||
@ -575,7 +581,7 @@ productId: "",
|
||||
var data = { id: item.id.toString() };
|
||||
this.api.website_delops(data).then((res) => {
|
||||
if (res.data.code == 200) {
|
||||
this.dataInit();
|
||||
this.getProduct()
|
||||
this.$message.success(res.data.msg);
|
||||
} else {
|
||||
this.$message.error(res.data.msg);
|
||||
@ -587,7 +593,7 @@ productId: "",
|
||||
var data = { id: item.id.toString() };
|
||||
this.api.website_delowp(data).then((res) => {
|
||||
if (res.data.code == 200) {
|
||||
this.dataInit();
|
||||
this.getProductList()
|
||||
this.$message.success(res.data.msg);
|
||||
} else {
|
||||
this.$message.error(res.data.msg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user