Compare commits

..

No commits in common. "4a23999d59b4deb2a03c406dfb4c1f09e4f997d3" and "ea2a0b33009e2340478b8d8dc87975082b3a2473" have entirely different histories.

2 changed files with 52 additions and 2 deletions

View File

@ -467,7 +467,22 @@ 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,7 +660,24 @@
> >
{{ '下移' }} {{ '下移' }}
</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>
@ -918,6 +935,24 @@ 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