Commit 0330fa6e by Sweet Zhang

解决来佣和发佣超出页面不能滑动的问题,产品详情页面标题由select改为input,产品列表固定表头和分页,增加按照创建时间排序的功能

parent 58a41c40
......@@ -83,8 +83,8 @@ const router = useRouter()
const { proxy } = getCurrentInstance()
const loginForm = ref({
username: 'admin',
password: '12345',
username: '',
password: '',
rememberMe: false,
code: '',
uuid: ''
......
......@@ -10,6 +10,7 @@
</el-col>
</el-row>
<el-table
height="600"
:data="tableData"
:span-method="objectSpanMethod"
border
......
......@@ -16,7 +16,13 @@
<el-row>
<el-col :span="12">
<div class="commonHeader">产品标题</div>
<el-select
<el-input
v-model="form['apiProductLaunchDto'].title"
placeholder="请输入"
maxlength="20"
show-word-limit
/>
<!-- <el-select
v-model="form['apiProductLaunchDto'].title"
filterable
remote
......@@ -35,7 +41,7 @@
:label="item.productName"
:value="item.productBizId"
/>
</el-select>
</el-select> -->
</el-col>
<el-col :span="24" :class="showNameTip ? '' : 'colBottomGap'">
<div class="nameTip">
......
......@@ -7,7 +7,7 @@
</div>
</el-col>
</el-row>
<el-table :data="tableData" :span-method="objectSpanMethod" border style="width: 100%; margin-top: 20px"
<el-table :data="tableData" :span-method="objectSpanMethod" border style="width: 100%; margin-top: 20px" height="600"
row-key="rowKey">
<!-- 动态生成所有列 -->
<template v-for="column in tableColumns" :key="column.prop">
......
......@@ -19,7 +19,7 @@
</el-form>
<!-- 表格数据 -->
<el-table v-loading="loading" :data="tableList">
<el-table v-loading="loading" :data="tableList" height="600">
<el-table-column label="商品图片" align="center" prop="mainUrls" width="150">
<template #default="scope">
<el-image
......@@ -42,15 +42,15 @@
label="短标题"
prop="shortTitle"
:show-overflow-tooltip="true"
width="150"
width="200"
/>
<el-table-column label="状态" prop="status" align="left">
<el-table-column label="状态" prop="status" align="left" width="100">
<template #default="scope">
<dict-tag :options="product_launch_status" :value="scope.row.status" />
</template>
</el-table-column>
<el-table-column label="创建时间" prop="createTime" align="left">
<el-table-column label="创建时间" prop="createTime" align="left" sortable >
<template #default="scope">
{{ formatIsoToDateTime(scope.row.createTime) }}
</template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment