feat(goodsList): 移除置顶置底操作

This commit is contained in:
woody 2025-07-22 17:03:22 +08:00
parent a1e914aee0
commit 1e410fb30e
2 changed files with 2 additions and 52 deletions

View File

@ -467,22 +467,7 @@ export function waresMove(params) {
params params
}) })
} }
// 商品置顶
export function waresTop(params) {
return request({
url: '/sale/manage/wares/floating-roof',
method: 'get',
params
})
}
// 商品置底
export function waresBottom(params) {
return request({
url: '/sale/manage/wares/botton-up',
method: 'get',
params
})
}
// 邮费模板列表 // 邮费模板列表
export function postageList(params) { export function postageList(params) {
return request({ return request({

View File

@ -660,24 +660,7 @@
> >
{{ '下移' }} {{ '下移' }}
</div> --> </div> -->
<div
v-hasButtons="['GoodsListTop']"
type="text"
size="small"
style="color: #c73030"
@click="topEdit(scope.row.pkWares)"
>
{{ '置顶' }}
</div>
<div
v-hasButtons="['GoodsListBottom']"
type="text"
size="small"
style="color: #c73030"
@click="topEdit1(scope.row.pkWares)"
>
置底
</div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -935,24 +918,6 @@ export default {
this.getDataList() this.getDataList()
}) })
}, },
topEdit(id) {
api
.waresTop({
waresId: id
})
.then((res) => {
this.getDataList()
})
},
topEdit1(id) {
api
.waresBottom({
waresId: id
})
.then((res) => {
this.getDataList()
})
},
// //
getDataList() { getDataList() {
this.loading = true this.loading = true