提交 481be456 authored 作者: 袁伟伟's avatar 袁伟伟

fix: 商品分类传参过滤

上级 e32dd4dc
......@@ -7,7 +7,7 @@
>新增</a-button
>
</div>
<a-table :columns="columns" :data-source="data" :pagination="false" :loading="tableLoading">
<a-table :columns="columns" :data-source="data" :pagination="false" :loading="tableLoading" rowKey="id">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'status'">
<span v-if="record.status === 'YES'">启用</span>
......
......@@ -143,6 +143,8 @@
const handleCancel = () => {
formRef.value.resetFields();
formData.lineName = undefined;
formData.lineThirdId = undefined;
emits('update:editId', undefined);
visible.value = false;
};
......
......@@ -97,7 +97,7 @@
// 获取树结构
const getTreeData = () => {
GoodsCategoryApi.tree({ parentId: 0 }).then((res: DataItem[]) => {
GoodsCategoryApi.tree({ parentId: 0, status: 'YES' }).then((res: DataItem[]) => {
classifyTree.value = res;
});
};
......
<template>
<div class=""> 123</div>
</template>
<script lang="ts">
import { ref } from 'vue';
</script>
<style lang="less" scoped></style>
......@@ -15,7 +15,7 @@
<a-tabs v-model:activeKey="activeKey" centered>
<a-tab-pane key="1" tab="器械">
<ul>
<li><bank-outlined /> <span>单件器械-创伤-钉板</span></li>
<li @click="handleGoGoodsList"><bank-outlined /> <span>单件器械-创伤-钉板</span></li>
<li><bank-outlined /> <span>单件器械-髓内钉</span></li>
<li><bank-outlined /> <span>手术动力</span></li>
<li><bank-outlined /> <span>成套器械</span></li>
......@@ -55,10 +55,8 @@
<right-circle-outlined />
</div>
</template>
<div><h3>1</h3></div>
<div><h3>2</h3></div>
<div><h3>3</h3></div>
<div><h3>4</h3></div>
<div><img src="./2.png" alt="" /></div>
<div><img src="./3.jpg" alt="" /></div>
</a-carousel>
</div>
<div class="userInfo">
......@@ -138,15 +136,22 @@
import { ref } from 'vue';
import { BankOutlined, LeftCircleOutlined, RightCircleOutlined, UserOutlined } from '@ant-design/icons-vue';
import { navList } from './schema';
import { useGo } from '/@/hooks/web/usePage';
const go = useGo();
const searchInfo = ref('');
const onSearch = () => {};
const activeKey = ref('1');
const navActiveKey = ref(0);
const navActiveKey = ref(1);
const handleChangeNav = (i) => {
if (i === 0) return;
navActiveKey.value = i;
};
const handleGoGoodsList = () => {
go('/main/store/goods-classify');
};
</script>
<style lang="less" scoped>
......@@ -171,7 +176,7 @@
justify-content: space-between;
.menu {
width: 30%;
width: 25%;
background: #f7f9fa;
ul {
......@@ -189,7 +194,7 @@
}
}
.wrap {
width: 68%;
width: 73%;
margin: 0;
padding: 0;
.nav {
......@@ -232,6 +237,11 @@
div {
height: 100%;
img {
width: 100%;
height: 400px;
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论