pull/7/head^2
parent
6c66bd1374
commit
67d4b34f21
|
@ -93,7 +93,7 @@
|
|||
<el-button
|
||||
size="mini"
|
||||
type="danger"
|
||||
@click="ordersDelete(scope.row)">删除</el-button>
|
||||
@click="updateByeExist(scope.row)">删除</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
|
@ -108,7 +108,7 @@
|
|||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
:current-page="orders.pageNum"
|
||||
:page-sizes="[2, 4, 6, 8]"
|
||||
:page-sizes="[5, 10, 50, 100]"
|
||||
:page-size="orders.pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="orders.total">
|
||||
|
@ -153,7 +153,16 @@
|
|||
|
||||
|
||||
<script>
|
||||
import { selectList, updateOrders, addordersup, ordersDelete, pay, getOut } from '@/api/market/orders'
|
||||
import {
|
||||
selectList,
|
||||
updateOrders,
|
||||
addordersup,
|
||||
ordersDelete,
|
||||
pay,
|
||||
getOut,
|
||||
updateByeExist,
|
||||
updateByExist
|
||||
} from '@/api/market/orders'
|
||||
import { diGui } from "@/api/market/orders";
|
||||
import axios from 'axios'
|
||||
|
||||
|
@ -229,13 +238,24 @@ export default {
|
|||
)
|
||||
},
|
||||
// 删除
|
||||
ordersDelete(row){
|
||||
ordersDelete(row.ordersId).then(
|
||||
res => {
|
||||
this.$message.success(res.msg)
|
||||
this.selectList()
|
||||
}
|
||||
)
|
||||
|
||||
updateByeExist(row){
|
||||
const result = window.confirm(`你确定要执行此操作吗?`);
|
||||
if (result) {
|
||||
updateByeExist(row.ordersId).then(
|
||||
res => {
|
||||
this.$message.success(res.msg)
|
||||
this.selectList()
|
||||
}
|
||||
)
|
||||
location.reload();
|
||||
// 用户点击确定后的逻辑处理,这里可以使用传入的 id
|
||||
console.log(`用户点击了确定,ID 为 ${row.ordersId}`);
|
||||
} else {
|
||||
// 用户点击取消后的逻辑处理
|
||||
console.log('用户点击了取消');
|
||||
}
|
||||
|
||||
},
|
||||
// 分页
|
||||
handleSizeChange(val) {
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
:current-page="orders.pageNum"
|
||||
:page-sizes="[2, 4, 6, 8]"
|
||||
:page-sizes="[5, 10, 50, 100]"
|
||||
:page-size="orders.pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="orders.total">
|
||||
|
@ -176,34 +176,40 @@ export default {
|
|||
},
|
||||
//复原
|
||||
handleEdit(row){
|
||||
this.$confirm('你确定要执行此操作吗?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
// 用户点击确定后的操作
|
||||
console.log('用户点击了确定');
|
||||
updateByExist(row.ordersId).then(
|
||||
res =>{
|
||||
const result = window.confirm(`你确定要执行此操作吗?`);
|
||||
if (result) {
|
||||
updateByExist(row.ordersId).then(
|
||||
res =>{
|
||||
this.$message.success(res.msg)
|
||||
this.listreclaim()
|
||||
}
|
||||
)
|
||||
location.reload();
|
||||
// 用户点击确定后的逻辑处理,这里可以使用传入的 id
|
||||
console.log(`用户点击了确定,ID 为 ${id}`);
|
||||
} else {
|
||||
// 用户点击取消后的逻辑处理
|
||||
console.log('用户点击了取消');
|
||||
}
|
||||
|
||||
},
|
||||
// 删除
|
||||
ordersDelete(row){
|
||||
const result = window.confirm(`你确定要执行此操作吗?`);
|
||||
if (result) {
|
||||
ordersDelete(row.ordersId).then(
|
||||
res => {
|
||||
this.$message.success(res.msg)
|
||||
this.listreclaim()
|
||||
}
|
||||
)
|
||||
}).catch(() => {
|
||||
// 用户点击取消后的操作
|
||||
location.reload();
|
||||
// 用户点击确定后的逻辑处理,这里可以使用传入的 id
|
||||
console.log(`用户点击了确定,ID 为 ${id}`);
|
||||
} else {
|
||||
// 用户点击取消后的逻辑处理
|
||||
console.log('用户点击了取消');
|
||||
});
|
||||
location.reload();
|
||||
},
|
||||
// 删除
|
||||
ordersDelete(row){
|
||||
ordersDelete(row.ordersId).then(
|
||||
res => {
|
||||
this.$message.success(res.msg)
|
||||
this.listreclaim()
|
||||
}
|
||||
)
|
||||
location.reload();
|
||||
}
|
||||
},
|
||||
// 重置
|
||||
chong(){
|
||||
|
|
Loading…
Reference in New Issue