pc-master #248

Merged
xiaomeng merged 13 commits from pc-master into portal 2025-06-05 06:15:28 +00:00
Showing only changes of commit 9f39e576ec - Show all commits

View File

@ -365,14 +365,20 @@ productId: "",
}, },
methods: { methods: {
dataInit() { dataInit() {
this.api.website_getowpabyowpidMan().then((res) => { this.getProduct()
this.getProductList()
},
getProduct(){
this.api.website_getowpabyowpidMan().then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.tableData = res.data.data.filter( this.tableData = res.data.data.filter(
(item) => item && item.type === 1 (item) => item && item.type === 1
); );
} }
}); });
this.api.website_getowpManagement().then((res) => { },
getProductList(){
this.api.website_getowpManagement().then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.tableData1 = res.data.data; this.tableData1 = res.data.data;
} }
@ -435,7 +441,7 @@ productId: "",
this.Addloading.close(); this.Addloading.close();
if (res.data.code == 200) { if (res.data.code == 200) {
this.$message.success(res.data.msg); this.$message.success(res.data.msg);
this.dataInit(); this.getProduct()
this.addModel = false; this.addModel = false;
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
@ -448,7 +454,7 @@ productId: "",
this.Addloading.close(); this.Addloading.close();
if (res.data.code == 200) { if (res.data.code == 200) {
this.$message.success(res.data.msg); this.$message.success(res.data.msg);
this.dataInit(); this.getProduct()
this.addModel = false; this.addModel = false;
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
@ -472,7 +478,7 @@ productId: "",
this.Addloading.close(); this.Addloading.close();
if (res.data.code == 200) { if (res.data.code == 200) {
this.$message.success(res.data.msg); this.$message.success(res.data.msg);
this.dataInit(); this.getProductList()
this.addModel1 = false; this.addModel1 = false;
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
@ -485,7 +491,7 @@ productId: "",
this.Addloading.close(); this.Addloading.close();
if (res.data.code == 200) { if (res.data.code == 200) {
this.$message.success(res.data.msg); this.$message.success(res.data.msg);
this.dataInit(); this.getProductList()
this.addModel1 = false; this.addModel1 = false;
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
@ -575,7 +581,7 @@ productId: "",
var data = { id: item.id.toString() }; var data = { id: item.id.toString() };
this.api.website_delops(data).then((res) => { this.api.website_delops(data).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.dataInit(); this.getProduct()
this.$message.success(res.data.msg); this.$message.success(res.data.msg);
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
@ -587,7 +593,7 @@ productId: "",
var data = { id: item.id.toString() }; var data = { id: item.id.toString() };
this.api.website_delowp(data).then((res) => { this.api.website_delowp(data).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.dataInit(); this.getProductList()
this.$message.success(res.data.msg); this.$message.success(res.data.msg);
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);