修改了一些bug

This commit is contained in:
yuanteng 2024-11-05 20:34:10 +08:00
commit 6bd1d4f49f
2 changed files with 57 additions and 66 deletions

View File

@ -54,15 +54,6 @@
<el-button size="small" @click="showDetail(scope.$index, scope.row , 0)"> <el-button size="small" @click="showDetail(scope.$index, scope.row , 0)">
详情 详情
</el-button> </el-button>
<el-popconfirm class="ml-5" confirm-button-text='确定' cancel-button-text='取消' icon="InfoFilled" icon-color="red"
title="是否确认删除" @confirm="deleteProduct(scope.row.id)" width=180>
<template #reference>
<el-button class="ml-5" type="danger">删除</el-button>
</template>
</el-popconfirm>
<el-popconfirm confirm-button-text='确定' cancel-button-text='取消' icon="el-icon-info" icon-color="red"
title="您确定删除吗?">
</el-popconfirm>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

View File

@ -1,61 +1,61 @@
<template> <template>
<!--<div>--> <div>
<!-- <el-input style="width: 200px; height: 30px; margin-right: 10px;" suffix-icon="Search" placeholder="请输入商品名称"--> <el-input style="width: 200px; height: 30px; margin-right: 10px;" suffix-icon="Search" placeholder="请输入商品名称"
<!-- v-model="id"></el-input>--> v-model="id"></el-input>
<!-- <el-button class="ml-5" type="primary" @click="load" style="height: 25px;">搜索</el-button>--> <el-button class="ml-5" type="primary" @click="load" style="height: 25px;">搜索</el-button>
<!-- <el-button type="warning" @click="reset" style="height:25px">重置</el-button>--> <el-button type="warning" @click="reset" style="height:25px">重置</el-button>
<!--</div>--> </div>
<!-- <div style="margin: 15px 0">--> <div style="margin: 15px 0">
<!-- <el-popconfirm class="ml-5" confirm-button-text='确定' cancel-button-text='取消' icon="InfoFilled" icon-color="red"--> <el-popconfirm class="ml-5" confirm-button-text='确定' cancel-button-text='取消' icon="InfoFilled" icon-color="red"
<!-- title="您确定批量删除这些数据吗?" @confirm="delBatch" width=180>--> title="您确定批量删除这些数据吗?" @confirm="delBatch" width=180>
<!-- <template #reference>--> <template #reference>
<!-- <el-button style="height: 25px" class="ml-5" type="danger">批量删除 <el-icon style="margin-left: 5px;">--> <el-button style="height: 25px" class="ml-5" type="danger">批量删除 <el-icon style="margin-left: 5px;">
<!-- <Remove />--> <Remove />
<!-- </el-icon></el-button>--> </el-icon></el-button>
<!-- </template>--> </template>
<!-- </el-popconfirm>--> </el-popconfirm>
<!-- </div>--> </div>
<!-- <el-table :data="tableData" border stripe header-cell-class-name="headerBg"--> <el-table :data="tableData" border stripe header-cell-class-name="headerBg"
<!-- :cell-style="{ 'text-align': 'center', 'font-size': '16px' }" @selection-change="handleSelectionChange"--> :cell-style="{ 'text-align': 'center', 'font-size': '16px' }" @selection-change="handleSelectionChange"
<!-- :header-cell-style="{ 'text-align': 'center' }">--> :header-cell-style="{ 'text-align': 'center' }">
<!-- <el-table-column type="selection" width="55"></el-table-column>--> <el-table-column type="selection" width="55"></el-table-column>
<!-- <el-table-column prop="id" label="订单id" width="80"></el-table-column>--> <el-table-column prop="id" label="订单id" width="80"></el-table-column>
<!-- <el-table-column prop="" label="购买商品名称"></el-table-column>--> <el-table-column prop="goodSnapshot.name" label="商品名称"></el-table-column>
<!-- <el-table-column prop="" label="购买数量" width="180"></el-table-column>--> <el-table-column prop="quantity" label="购买数量" width="180"></el-table-column>
<!-- <el-table-column prop="totalAmount" label="订单总金额"></el-table-column>--> <el-table-column prop="totalAmount" label="订单总金额"></el-table-column>
<!-- <el-table-column prop="" label="下单时间"></el-table-column>--> <el-table-column prop="createTime" label="下单时间"></el-table-column>
<!-- <el-table-column prop="" label="快递单号"></el-table-column>--> <el-table-column prop="orderNumber" label="快递单号"></el-table-column>
<!-- <el-table-column prop="orderStatus" label="订单状态"></el-table-column>--> <el-table-column prop="orderStatus" label="订单状态"></el-table-column>
<!-- <el-table-column label="操作" width="250px">--> <el-table-column label="操作" width="250px">
<!-- <template #default="scope">--> <template #default="scope">
<!-- <el-button size="small" @click="ReviseOrView(scope.$index, scope.row , 0)">--> <el-button size="small" @click="ReviseOrView(scope.$index, scope.row , 0)">
<!-- 编辑--> 编辑
<!-- </el-button>--> </el-button>
<!-- <el-button plain @click="dialogFormVisible = true">--> <el-button plain @click="dialogFormVisible = true">
<!-- 发货--> 发货
<!-- </el-button>--> </el-button>
<!-- <el-popconfirm class="ml-5" confirm-button-text='确定' cancel-button-text='取消' icon="InfoFilled" icon-color="red"--> <el-popconfirm class="ml-5" confirm-button-text='确定' cancel-button-text='取消' icon="InfoFilled" icon-color="red"
<!-- title="是否确认删除" @confirm="deleteProduct(scope.row.id)" width=180>--> title="是否确认删除" @confirm="deleteProduct(scope.row.id)" width=180>
<!-- <template #reference>--> <template #reference>
<!-- <el-button class="ml-5" type="danger">取消订单</el-button>--> <el-button class="ml-5" type="danger">取消订单</el-button>
<!-- </template>--> </template>
<!-- </el-popconfirm>--> </el-popconfirm>
<!-- <el-popconfirm confirm-button-text='确定' cancel-button-text='取消' icon="el-icon-info" icon-color="red"--> <el-popconfirm confirm-button-text='确定' cancel-button-text='取消' icon="el-icon-info" icon-color="red"
<!-- title="您确定删除吗?">--> title="您确定删除吗?">
<!-- </el-popconfirm>--> </el-popconfirm>
<!-- </template>--> </template>
<!-- </el-table-column>--> </el-table-column>
<!-- </el-table>--> </el-table>
<!-- <div style="padding: 10px 0">--> <div style="padding: 10px 0">
<!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"--> <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
<!-- :current-page="searchParams.current" :page-size="searchParams.pageSize" :page-sizes="[5, 10, 15, 20]"--> :current-page="searchParams.current" :page-size="searchParams.pageSize" :page-sizes="[5, 10, 15, 20]"
<!-- :small="null" :disabled="null" :background="null" layout="total, sizes, prev, pager, next, jumper"--> :small="null" :disabled="null" :background="null" layout="total, sizes, prev, pager, next, jumper"
<!-- :total="total" />--> :total="total" />
<!-- </div>--> </div>
<!-- <el-dialog v-model="dialogFormVisible" title="Shipping address" width="500">--> <!-- <el-dialog v-model="dialogFormVisible" title="Shipping address" width="500">-->
<!-- <el-form :model=" null">--> <!-- <el-form :model="">-->
<!-- <el-form-item label="快递单号" :label-width="formLabelWidth">--> <!-- <el-form-item label="快递单号" :label-width="formLabelWidth">-->
<!-- <el-input v-model=" null" autocomplete="off" />--> <!-- <el-input v-model=" " autocomplete="off" />-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </el-form>--> <!-- </el-form>-->
<!-- <template #footer>--> <!-- <template #footer>-->
@ -67,7 +67,7 @@
<!-- </div>--> <!-- </div>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-dialog>--> <!-- </el-dialog>-->
</template> <!--</template>-->
<!--<script lang="ts" setup>--> <!--<script lang="ts" setup>-->
<!--import {ref} from "vue";--> <!--import {ref} from "vue";-->