From d4d822da8d3e561585f5075cfa28e8bcc7fbe1bb Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期二, 20 八月 2024 09:29:49 +0800
Subject: [PATCH] #
---
pages/home/home.vue | 176 ++++++++++++++++++++++++++++++++++------------------------
1 files changed, 104 insertions(+), 72 deletions(-)
diff --git a/pages/home/home.vue b/pages/home/home.vue
index 8640219..8c40d6c 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -21,21 +21,44 @@
return {
baseUrl: '',
token: '',
+ icon: '',
elements: [],
- elements2: [{
- title: '缁勬墭鍏ュ簱',
- name: 'pakin',
+ elements2: [
+ {
+ title: '骞冲簱涓婃灦',
+ name: 'putin',
color: 'cyan',
cuIcon: 'pullup',
- url: '/pakin/pakin'
+ url: '/flat/putin'
},
{
- title: '璁㈠崟鍏ュ簱',
- name: 'orderPakin',
- color: 'blue',
- cuIcon: 'pullup',
- url: '/order/orderPakin'
+ title: '骞冲簱涓嬫灦',
+ name: 'putout',
+ color: 'orange',
+ cuIcon: 'pulldown',
+ url: '/flat/putout'
},
+ // {
+ // title: '鍐嶆鎷f枡',
+ // name: 'changePallet',
+ // color: 'green',
+ // cuIcon: 'order',
+ // url: '/pakin/pickAgain'
+ // },
+ // {
+ // title: '璁㈠崟鍏ュ簱',
+ // name: 'orderPakin',
+ // color: 'red',
+ // cuIcon: 'pullup',
+ // url: '/order/orderPakin'
+ // },
+ // {
+ // title: '缁勬墭涓婃灦',
+ // name: 'putOn',
+ // color: 'orange',
+ // cuIcon: 'pullup',
+ // url: '/pakin/putOn'
+ // },
// {
// title: '鎵撳嵃',
// name: 'print',
@@ -43,62 +66,62 @@
// cuIcon: 'text',
// url: '/print/print'
// },
- {
- title: '璁㈠崟涓婃灦',
- name: 'orderPutOn',
- color: 'mauve',
- cuIcon: 'pullup',
- url: '/order/orderPutOn'
- },
- {
- title: '璁㈠崟涓嬫灦',
- name: 'orderPutDown',
- color: 'pink',
- cuIcon: 'pulldown',
- url: '/order/orderPutDown'
- },
- {
- title: '搴撳瓨鏌ヨ',
- name: 'stockQuery',
- color: 'brown',
- cuIcon: 'check',
- url: '/stock/stockQuery'
- },
- {
- title: '鐩樼偣',
- name: 'stockCheck',
- color: 'red',
- cuIcon: 'post',
- url: '/stock/stockCheck'
- },
- {
- title: '鍟嗗搧鎵撳嵃',
- name: 'matList',
- color: 'orange',
- cuIcon: 'post',
- url: '/mat/matList'
- },
- {
- title: '琛ヨ揣',
- name: 'restock',
- color: 'yellow',
- cuIcon: 'punch',
- url: '/stock/restock'
- },
- {
- title: '杞叏鏉�',
- name: 'piking',
- color: 'olive',
- cuIcon: 'order',
- url: '/pakin/piking'
- },
- {
- title: '鎹㈡澘缁戝畾',
- name: 'changePallet',
- color: 'green',
- cuIcon: 'order',
- url: '/stock/changePallet'
- },
+ // {
+ // title: '璁㈠崟涓婃灦',
+ // name: 'orderPutOn',
+ // color: 'yellow',
+ // cuIcon: 'pullup',
+ // url: '/order/orderPutOn'
+ // },
+ // {
+ // title: '璁㈠崟涓嬫灦',
+ // name: 'orderPutDown',
+ // color: 'olive',
+ // cuIcon: 'pulldown',
+ // url: '/order/orderPutDown'
+ // },
+ // {
+ // title: '搴撳瓨鏌ヨ',
+ // name: 'stockQuery',
+ // color: 'green',
+ // cuIcon: 'check',
+ // url: '/stock/stockQuery'
+ // },
+ // {
+ // title: '鐩樼偣',
+ // name: 'stockCheck',
+ // color: 'red',
+ // cuIcon: 'post',
+ // url: '/stock/stockCheck'
+ // },
+ // {
+ // title: '鍟嗗搧鎵撳嵃',
+ // name: 'matList',
+ // color: 'orange',
+ // cuIcon: 'post',
+ // url: '/mat/matList'
+ // },
+ // {
+ // title: '琛ヨ揣',
+ // name: 'restock',
+ // color: 'yellow',
+ // cuIcon: 'punch',
+ // url: '/stock/restock'
+ // },
+ // {
+ // title: '杞叏鏉�',
+ // name: 'piking',
+ // color: 'olive',
+ // cuIcon: 'order',
+ // url: '/pakin/piking'
+ // },
+ // {
+ // title: '鎹㈡澘缁戝畾',
+ // name: 'changePallet',
+ // color: 'green',
+ // cuIcon: 'order',
+ // url: '/stock/changePallet'
+ // },
{
title: '閫�鍑虹櫥褰�',
name: 'logOut',
@@ -136,11 +159,12 @@
if (res.data.length < 0) {
break;
}
+ that.getIcon(res.data[i].title)
that.elements.unshift({
title: res.data[i].name,
name: res.data[i].title,
color: that.colorList[i],
- cuIcon: 'safe',
+ cuIcon: that.icon,
url: res.data[i].action
})
}
@@ -148,7 +172,8 @@
title: '閫�鍑虹櫥褰�',
name: 'logOut',
color: 'grey',
- cuIcon: 'exit'
+ cuIcon: 'exit',
+ url: '/login/logOut'
})
} else if (res.code === 403) {
uni.showToast({
@@ -162,11 +187,12 @@
});
}, 1000);
} else if(res.status === 404) {
- uni.showToast({
- title: '404',
- icon: "none",
- position: 'top'
- })
+ that.elements = that.elements2
+ // uni.showToast({
+ // title: '榛樿涓婚〉',
+ // icon: "none",
+ // position: 'top'
+ // })
} else {
uni.showToast({
title: res.msg,
@@ -180,6 +206,12 @@
}
})
},
+ getIcon(e) {
+ const ways = ['pakin','orderPakin','orderPutOn']
+ if (ways.includes(e)) {
+ this.icon = 'pullup'
+ }
+ }
}
}
</script>
--
Gitblit v1.9.1