From 0d078797e5f25241e31432128b356cd60dab33f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B0=A2=E6=AC=A3=E6=82=A6?= <2289014031@qq.com>
Date: Thu, 29 Aug 2024 17:16:50 +0800
Subject: [PATCH] ok
---
src/views/market/orders/index.vue | 72 +++++++++++++++++++++----------
vue.config.js | 2 +-
2 files changed, 51 insertions(+), 23 deletions(-)
diff --git a/src/views/market/orders/index.vue b/src/views/market/orders/index.vue
index 98d63a6..27436ad 100644
--- a/src/views/market/orders/index.vue
+++ b/src/views/market/orders/index.vue
@@ -6,24 +6,30 @@
查询结果
重置
+
@@ -127,10 +133,31 @@ export default {
},
arr:[],
type:[],
+
Cascader:{ expandTrigger:'hover',value:'id',label:'typeName',children:'parentPOS' },
typeId:[],
startDate: null,
endDate: null,
+
+ options: [{
+ value: ' ',
+ label: '全选'
+ }, {
+ value: '0',
+ label: '待支付'
+ }, {
+ value: '1',
+ label: '已付款'
+ }, {
+ value: '2',
+ label: '未付款'
+ }, {
+ value: '3',
+ label: '售后中(申请退款) '
+ } ,{
+ value: '4',
+ label: '已退款 '
+ }]
};
},
//计算属性 类似于data概念",
@@ -140,7 +167,6 @@ export default {
//方法集合",
methods: {
- },
// 删除
handleDelete(orders){
handleDelete(orders.id).then(
@@ -190,26 +216,28 @@ export default {
},
// 添加跳转路径
add(){
- this.$router.push('index')
+ this.$router.push('add')
},
// 多选框
handleSelectionChange(val) {
this.multipleSelection = val;
},
//商品列表
- selectList(){
+ selectList() {
selectList(this.orders).then(
- res => {
- console.log(res)
- this.arr=res.data.list
- this.orders.total=res.data.total
- }
- )
+ res => {
+ console.log(res)
+ this.arr = res.data.list
+ this.orders.total = res.data.total
+ }
+ )
+ }
},
//生命周期 - 创建完成(可以访问当前this实例)",
created() {
// this.diGui()
- this.selectList()
+ this.selectList()
+ this.selected = this.options[0].value
},
//生命周期 - 挂载完成(可以访问DOM元素)",
mounted() {
diff --git a/vue.config.js b/vue.config.js
index 24fa436..6ab44f3 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -35,7 +35,7 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
- target: `http://21.12.0.10/prod-api/`,
+ target: `http: //21.12.0.10/prod-api/`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''