|
@@ -1,8 +1,8 @@
|
|
<!--
|
|
<!--
|
|
* @Author: PoJun
|
|
* @Author: PoJun
|
|
* @Date: 2023-10-13 10:35:43
|
|
* @Date: 2023-10-13 10:35:43
|
|
- * @LastEditors: XuanJi
|
|
|
|
- * @LastEditTime: 2024-05-08 21:04:39
|
|
|
|
|
|
+ * @LastEditors: PoJun
|
|
|
|
+ * @LastEditTime: 2024-05-08 21:19:37
|
|
* @Message: 事务处理中心
|
|
* @Message: 事务处理中心
|
|
-->
|
|
-->
|
|
<template>
|
|
<template>
|
|
@@ -39,8 +39,8 @@
|
|
<common-card-item label="地址" :text="detailItem?.data.address" :span="24"></common-card-item>
|
|
<common-card-item label="地址" :text="detailItem?.data.address" :span="24"></common-card-item>
|
|
<common-card-item label="企业简介" :text="detailItem?.data.intro" :span="24"></common-card-item>
|
|
<common-card-item label="企业简介" :text="detailItem?.data.intro" :span="24"></common-card-item>
|
|
<common-card-item
|
|
<common-card-item
|
|
- label="产品"
|
|
|
|
- :text="detailItem?.data.productName"
|
|
|
|
|
|
+ label="产品分类"
|
|
|
|
+ :text="detailItem?.productName"
|
|
:span="24"
|
|
:span="24"
|
|
></common-card-item>
|
|
></common-card-item>
|
|
<common-card-item
|
|
<common-card-item
|
|
@@ -179,12 +179,11 @@ export default {
|
|
|
|
|
|
async getProductName(idArray) {
|
|
async getProductName(idArray) {
|
|
try {
|
|
try {
|
|
- // console.log(idArray);
|
|
|
|
const data = await getProductsInfoFromIds({ ids: idArray.join(",") });
|
|
const data = await getProductsInfoFromIds({ ids: idArray.join(",") });
|
|
const productName = data.map(item => {
|
|
const productName = data.map(item => {
|
|
return item.name;
|
|
return item.name;
|
|
});
|
|
});
|
|
- this.detailItem.productName = productName.join(",");
|
|
|
|
|
|
+ this.$set(this.detailItem, "productName", productName.join(","));
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.log(error);
|
|
console.log(error);
|
|
}
|
|
}
|