瀏覽代碼

[Feat 0000] 瓦斯地点巡检页面添加地点上移下移功能

houzekong 3 周之前
父節點
當前提交
e0c243183e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/vent/gas/gasInspectNonfc/index2.vue

+ 2 - 2
src/views/vent/gas/gasInspectNonfc/index2.vue

@@ -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();
     }