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

fix: 商品分类传参过滤

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