|
@@ -35,6 +35,8 @@
|
|
|
<a-popconfirm title="删除内容无法恢复,是否删除" ok-text="确定" cancel-text="取消" @confirm="handleDelCardInfo(record)">
|
|
|
<a class="table-action-link">删除</a>
|
|
|
</a-popconfirm>
|
|
|
+ <a class="table-action-link" @click="moveUp(record)">上移</a>
|
|
|
+ <a class="table-action-link" @click="moveDown(record)">下移</a>
|
|
|
</template>
|
|
|
<template #bodyCell="{ column, text }">
|
|
|
<template v-if="column.dataIndex == 'isSensor'">
|
|
@@ -234,7 +236,6 @@
|
|
|
//列表上移
|
|
|
async function moveUp(param) {
|
|
|
let res = await moveOrderNum({ id: param.id, moveType: 'upp' });
|
|
|
- console.log(res, '向上移动');
|
|
|
if (res) {
|
|
|
queryByIdList();
|
|
|
}
|
|
@@ -242,7 +243,6 @@
|
|
|
//列表下移
|
|
|
async function moveDown(param) {
|
|
|
let res = await moveOrderNum({ id: param.id, moveType: 'bel' });
|
|
|
- console.log(res, '向下移动');
|
|
|
if (res) {
|
|
|
queryByIdList();
|
|
|
}
|