|
|
|
@ -81,12 +81,15 @@ |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="orderContent" label="订单内容" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-popover trigger="hover" placement="top" style='width: 500px'> |
|
|
|
|
<el-popover trigger="hover" placement="top" style='width: 500px' v-if='scope.row.orderContent.length >14'> |
|
|
|
|
<p> {{ scope.row.orderContent }}</p> |
|
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
|
<el-tag size="medium" class='tags'>{{ scope.row.orderContent }}</el-tag> |
|
|
|
|
</div> |
|
|
|
|
</el-popover> |
|
|
|
|
<span v-else> |
|
|
|
|
{{ scope.row.orderContent }} |
|
|
|
|
</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="orderAmount" label="订单金额(元)" align="center"> |
|
|
|
@ -180,7 +183,6 @@ export default { |
|
|
|
|
if (val.length > 5) { |
|
|
|
|
val = 5; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
getData() { |
|
|
|
|
let data = { |
|
|
|
@ -253,18 +255,16 @@ export default { |
|
|
|
|
handleDelete(row) { |
|
|
|
|
this.$confirm("确定要删除吗?", "提示", { |
|
|
|
|
type: "warning" |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
var arr = []; |
|
|
|
|
arr.push(row.orderId); |
|
|
|
|
this.$post(this.api.orderDelete, { ids: arr }).then(res => { |
|
|
|
|
this.$message.success("删除成功"); |
|
|
|
|
this.getData(); |
|
|
|
|
}).catch(res => { |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.catch(() => { |
|
|
|
|
}).then(() => { |
|
|
|
|
var arr = []; |
|
|
|
|
arr.push(row.orderId); |
|
|
|
|
this.$post(this.api.orderDelete, { ids: arr }).then(res => { |
|
|
|
|
this.$message.success("删除成功"); |
|
|
|
|
this.getData(); |
|
|
|
|
}).catch(res => { |
|
|
|
|
}); |
|
|
|
|
}).catch(() => { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 续签 |
|
|
|
|
handleRenew(row) { |
|
|
|
@ -285,15 +285,14 @@ export default { |
|
|
|
|
// 批量删除 |
|
|
|
|
this.$confirm("确定要删除吗?", "提示", { |
|
|
|
|
type: "warning" |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
this.$post(this.api.orderDelete, { ids: this.multipleSelection }).then(res => { |
|
|
|
|
this.multipleSelection = []; |
|
|
|
|
this.$message.success("删除成功"); |
|
|
|
|
this.getData(); |
|
|
|
|
}).catch(err => { |
|
|
|
|
}); |
|
|
|
|
}).then(() => { |
|
|
|
|
this.$post(this.api.orderDelete, { ids: this.multipleSelection }).then(res => { |
|
|
|
|
this.multipleSelection = []; |
|
|
|
|
this.$message.success("删除成功"); |
|
|
|
|
this.getData(); |
|
|
|
|
}).catch(err => { |
|
|
|
|
}); |
|
|
|
|
}).catch(err => { |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("请先选择订单 !"); |
|
|
|
|