From 415ae87cbc1bf1392281e7e314032f129928b14c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=A8=E7=93=9C=E4=B8=80=E5=9D=97=E5=85=AB?=
<2523890936@qq.com>
Date: Wed, 20 Aug 2025 14:26:14 +0800
Subject: [PATCH] bugfix
---
.../customer/approveMangement/approvedPro.vue | 3 +-
.../productMangement/commonBox/index.vue | 106 +++++++++++++++---
.../qualificationReview/apprvedInfo/index.vue | 2 +-
.../views/homePage/ncmatch/mainPage/index.vue | 4 +-
4 files changed, 95 insertions(+), 20 deletions(-)
diff --git a/f/web-kboss/src/views/customer/approveMangement/approvedPro.vue b/f/web-kboss/src/views/customer/approveMangement/approvedPro.vue
index 2e2c80c..3f20d91 100644
--- a/f/web-kboss/src/views/customer/approveMangement/approvedPro.vue
+++ b/f/web-kboss/src/views/customer/approveMangement/approvedPro.vue
@@ -14,7 +14,8 @@ export default {
return {
role:{
role_type:'customer',
- audit_status:'approved'
+ audit_status:'approved,rejected',
+ type:'user'
}
}
},
diff --git a/f/web-kboss/src/views/customer/productMangement/commonBox/index.vue b/f/web-kboss/src/views/customer/productMangement/commonBox/index.vue
index 492c4c2..014a61c 100644
--- a/f/web-kboss/src/views/customer/productMangement/commonBox/index.vue
+++ b/f/web-kboss/src/views/customer/productMangement/commonBox/index.vue
@@ -22,9 +22,15 @@
+
+
+ {{ item.label }}
+
+
-
+
{{ item.label }}
@@ -39,7 +45,7 @@
-
+
审核
上架
下架
导出
item.value === this.role.publish_type);
+ if (selectedItem) {
+ this.searchData.publish_type = selectedItem.publish_type;
+ this.searchData.manager_self = selectedItem.manager_self;
+ }
+ }
+ }
this.getTableData();
},
watch: {
@@ -320,13 +348,27 @@ export default {
this.sendProductVisible = true;
this.sendProductData = item;
},
- handleRadioChange(value) {
- this.searchData.publish_type = this.radioMap[value].publish_type;
- this.searchData.manager_self = this.radioMap[value].manager_self;
- // 切换类型后重新获取数据
- this.searchData.current_page = 1;
- this.getTableData();
- },
+ handleRadioChange(value) {
+ // 根据角色类型选择对应的映射
+ if (this.role.type === 'user') {
+ // 对于 user 类型,在数组中查找对应的项
+ const selectedItem = this.userMap.find(item => item.value === value);
+ if (selectedItem) {
+ this.searchData.publish_type = selectedItem.publish_type;
+ this.searchData.manager_self = selectedItem.manager_self;
+ }
+ } else {
+ // 对于 app 类型,使用 radioMap
+ if (this.radioMap[value]) {
+ this.searchData.publish_type = this.radioMap[value].publish_type;
+ this.searchData.manager_self = this.radioMap[value].manager_self;
+ }
+ }
+
+ // 切换类型后重新获取数据
+ this.searchData.current_page = 1;
+ this.getTableData();
+ },
resetSearch() {
this.searchDate = [];
this.searchData.keyword = "";
@@ -403,7 +445,12 @@ export default {
this.loading = true;
if(to_excel==='1'){
this.searchData.to_excel=to_excel
- reqSearchByMangement({url_link:window.location.href,to_excel:to_excel,publish_type:this.searchData.publish_type}).then(res => {
+ reqSearchByMangement({
+ url_link: window.location.href,
+ to_excel: to_excel,
+ publish_type: this.searchData.publish_type,
+ manager_self: this.searchData.radioType=='4'||this.searchData.radioType=='3'?'single':null
+ }).then(res => {
console.log(res);
if (res.status) {
// 创建一个Workbook对象
@@ -420,7 +467,34 @@ export default {
this.loading = false;
})
}else{
- reqSearchByMangement(this.searchData).then(res => {
+ // 根据角色类型获取对应的 manager_self 值
+ let manager_self = null;
+ let publish_type = null;
+
+ if (this.role.type === 'user') {
+ const selectedItem = this.userMap.find(item => item.value === this.searchData.radioType);
+ if (selectedItem) {
+ publish_type = selectedItem.publish_type;
+ manager_self = this.searchData.radioType=='4'||this.searchData.radioType=='3'?'single':null;
+ }
+ } else if (this.role.type === 'app') {
+ if (this.radioMap[this.searchData.radioType]) {
+ publish_type = this.radioMap[this.searchData.radioType].publish_type;
+ manager_self = this.searchData.radioType=='4'||this.searchData.radioType=='3'?'single':null;
+ }
+ }
+
+ // 构建请求参数,确保传递映射中的值
+ const requestData = {
+ ...this.searchData,
+ publish_type: publish_type,
+ manager_self: manager_self
+ };
+
+ console.log('请求参数:', requestData);
+ requestData.manager_self=this.searchData.radioType=='4'||this.searchData.radioType=='3'?'single':null
+ requestData.publish_type = this.searchData.radioType=='1'||this.searchData.radioType=='3'?'2':'1'
+ reqSearchByMangement(requestData).then(res => {
console.log(res);
if (res.status) {
this.tableData = res.data.product_list;
diff --git a/f/web-kboss/src/views/customer/qualificationReview/apprvedInfo/index.vue b/f/web-kboss/src/views/customer/qualificationReview/apprvedInfo/index.vue
index d249022..d5b42d1 100644
--- a/f/web-kboss/src/views/customer/qualificationReview/apprvedInfo/index.vue
+++ b/f/web-kboss/src/views/customer/qualificationReview/apprvedInfo/index.vue
@@ -19,7 +19,7 @@ export default {
}
},
created(){
- this.initData()
+ // this.initData()
},
}
diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue b/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue
index 7c14c75..173e22e 100644
--- a/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue
+++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue
@@ -274,11 +274,11 @@ export default Vue.extend({
NCMatch
- 您身边的AI管家
+ 算力供需对接平台
- - 全 球 领 先 的 AI 服 务 运 营 商
+ - 海量资源 物美价廉