fix: 🧩 修复bug

This commit is contained in:
2025-03-28 16:55:37 +08:00
parent 2694a0c905
commit e0f8d6c574
35 changed files with 165 additions and 101 deletions

View File

@@ -97,6 +97,7 @@ const dataStore = reactive<any>({
const getProductBuypassListSave = async (params: any) => {
const result = await getProductBuypassListSaveApi(params);
if (result?.code === 0) {
useMsg("success", result?.msg);
// proTableRef?.value?.getTableList();
// console.log(result?.data);
}
@@ -105,6 +106,7 @@ const getProductBuypassListSave = async (params: any) => {
const getProductBuypassUpdate = async (params: any) => {
const result = await getProductBuypassUpdateApi(params);
if (result?.code === 0) {
useMsg("success", result?.msg);
// console.log(result?.data);
}
};
@@ -136,17 +138,16 @@ const handleInputOrChange = (it: any, scope: any, itIndex: any) => {
platform_id = item.id;
}
});
//更新
if (link_id) {
//添加
if (!link_id) {
getProductBuypassListSave({
id: link_id,
param: {
platform_id,
link
}
product_id: scope.row.id,
platform_id,
link
});
} else {
//添加
// 更新
getProductBuypassUpdate({
id: link_id,
param: {
@@ -177,7 +178,10 @@ const handleExport = () => {
//导出接口
const getProductBuypassListExport = async () => {
const result = await getProductBuypassListExportApi(dataStore.ruleForm);
const result = await getProductBuypassListExportApi({
...proTableRef?.value?.searchParam,
...proTableRef?.value?.pageable
});
await useExport(result);
};

View File

@@ -53,7 +53,7 @@
<el-radio :value="0" :label="0"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="是否推荐" style="width: 440px">
<el-form-item label="热门" style="width: 440px">
<el-radio-group v-model="_ruleFormParam.is_hot">
<el-radio :value="1" :label="1"></el-radio>
<el-radio :value="0" :label="0"></el-radio>
@@ -63,7 +63,7 @@
<el-form-item label="SEO标题">
<el-input v-model="_ruleFormParam.seo_title" style="width: 440px" />
</el-form-item>
<el-form-item label="SEO关键">
<el-form-item label="SEO关键">
<el-input v-model="_ruleFormParam.seo_keywords" style="width: 440px" />
</el-form-item>
<el-form-item label="SEO描述">

View File

@@ -118,7 +118,7 @@ export const BASIC_INFO_FORM_DATA: FormItem[] = [
prop: "seo_keyword",
placeholder: "请输入",
type: "input",
label: "SEO关键: "
label: "SEO关键: "
},
{
prop: "seo_desc",

View File

@@ -14,12 +14,12 @@
<el-tab-pane label="图片信息" name="imgInfo">
<imgInfo :imgInfoData="dataStore.imgInfoData" ref="imgInfoRef" :attrList="dataStore.attrList" />
</el-tab-pane>
<el-tab-pane label="详细内容" name="third">
<el-tab-pane label="产品详情" name="third">
<div style="width: 1280px; margin: 0 auto">
<WangEditor v-model:value="dataStore.detail" />
</div>
</el-tab-pane>
<el-tab-pane label="相关信息及下载" name="related">
<el-tab-pane label="相关信息" name="related">
<!-- <related ref="relatedRef" :data="dataStore.related" /> -->
<div style="margin-bottom: 16px">
<el-button type="primary" size="small" @click="handleRelatedAdd()">添加行</el-button>

View File

@@ -52,7 +52,7 @@ import ProTable from "@/components/ProTable/index.vue";
import { integerRexg } from "@/utils/regexp/index";
import { useMsg } from "@/hooks/useMsg";
import { useExport } from "@/hooks/useExport";
const h = import.meta.env.VITE_APP_API_BASE_UPLOAD_URL;
import { h } from "@/utils/url";
//列表接口
//getProductDelApi
import {
@@ -85,7 +85,10 @@ const handleExport = () => {
};
//导出接口
const getProductListExport = async () => {
const result = await getProductListExportApi(dataStore.ruleForm);
const result = await getProductListExportApi({
...proTableRef?.value?.searchParam,
...proTableRef?.value?.pageable
});
await useExport(result);
};
//上下架
@@ -128,9 +131,6 @@ const handleInput = (row: any) => {
//按钮点击事件
const handleBtnClick = (type: any, row: any) => {
// if (type === "删除") {
// // getProductDel(row.id);
// }
//添加SUK和删除暂时无法操作
if (type == "添加SUK" || type === "删除") {
return false;

View File

@@ -26,7 +26,7 @@
<script setup lang="ts" name="productRecycleIndex">
import ProTable from "@/components/ProTable/index.vue";
import { messageBox } from "@/utils/messageBox";
const h = import.meta.env.VITE_APP_API_BASE_UPLOAD_URL;
import { h } from "@/utils/url";
//列表接口
import { getProductTrashListApi, getProductTrashDelApi, getProductTrashRestoreApi } from "@/api/modules/productRecycle";
//深拷贝方法