gaoluyang
6 天以前 adeb8b768926ed50a3fb0857f366d6a0308d2cc0
src/pages/equipmentManagement/ledger/index.vue
@@ -78,25 +78,25 @@
            </view>
          </view>
          
          <!-- 按钮区域,参考 invoiceLedger 的样式 -->
          <!-- 按钮区域 - 替换为 uview-plus 按钮 -->
          <view class="action-buttons">
            <van-button
            <u-button
              type="primary"
              size="small"
              class="action-btn"
              @click="edit(item.id)"
            >
              编辑
            </van-button>
            <van-button
              type="danger"
            </u-button>
            <u-button
              type="error"
              size="small"
              plain
              class="action-btn"
              @click="deleteRow(item.id)"
            >
              删除
            </van-button>
            </u-button>
          </view>
        </view>
      </view>
@@ -119,7 +119,14 @@
import PageHeader from '@/components/PageHeader.vue'
import { getLedgerPage, delLedger } from '@/api/equipmentManagement/ledger'
import useUserStore from "@/store/modules/user"
import { showToast } from 'vant';
// 替换 toast 方法
const showToast = (message) => {
  uni.showToast({
    title: message,
    icon: 'none'
  })
}
const userStore = useUserStore()
@@ -330,7 +337,7 @@
  color: #999;
}
// 按钮样式,参考 invoiceLedger
// 按钮样式
.action-buttons {
  display: flex;
  gap: 12px;