From 1d18ff904468e4a864312bdcf6d7c6a7c0477721 Mon Sep 17 00:00:00 2001 From: Houjie <714924425@qq.com> Date: 星期五, 25 四月 2025 14:57:36 +0800 Subject: [PATCH] 项目提交 --- pages/TaskManager/TaskManagerList.vue | 88 +++++++++++++++++++++++++++++++++++++------ 1 files changed, 75 insertions(+), 13 deletions(-) diff --git a/pages/TaskManager/TaskManagerList.vue b/pages/TaskManager/TaskManagerList.vue index fcacc98..545dfa2 100644 --- a/pages/TaskManager/TaskManagerList.vue +++ b/pages/TaskManager/TaskManagerList.vue @@ -48,11 +48,12 @@ </view> </view> <view class="flex"> - <view class="flex-sub text-light bg-white padding-xs margin-xs radius">娴佺▼鎻忚堪:</view> - <view class="flex-sub bg-white padding-xs margin-xs radius text-right"> - {{item.description}} + <view class="flex-sub text-light bg-white padding-xs margin-xs radius">浠诲姟鍚嶇О:</view> + <view class="flex-sub bg-white padding-xs margin-xs text-orange radius text-right"> + {{item.taskName}} </view> </view> + <view class="flex"> <view class="flex-sub text-light bg-white padding-xs margin-xs radius">娴佺▼鍙戣捣浜�:</view> <view class="flex-sub bg-white padding-xs margin-xs text-blue radius text-right"> @@ -60,13 +61,13 @@ </view> </view> - <view class="flex"> - <view class="flex-sub text-light bg-white padding-xs margin-xs radius">浠诲姟鍚嶇О:</view> + <view class="flex-sub text-light bg-white padding-xs margin-xs radius">娴佺▼鎻忚堪:</view> <view class="flex-sub bg-white padding-xs margin-xs radius text-right"> - {{item.taskName}} + {{item.description}} </view> </view> + </uni-card> </view> </mescroll-uni> @@ -120,7 +121,7 @@ }, computed: { top() { - return this.CustomBar * 2 + 130 + return this.CustomBar * 2 + 50 }, style() { var StatusBar = this.StatusBar; @@ -144,13 +145,74 @@ * @param {Object} item * 璇︽儏椤甸潰 */ + // onClickProductionTask(item) { + // const name = item.category_dictText + // const type= item.taskName + // if (name == '璁惧鐐规' && type =='鐝粍闀跨‘璁�') { + // uni.navigateTo({ + // url: '/pages/ToDoList/ToDoListCheckSure/ToDoListCheckSure?item=' + + // encodeURIComponent(JSON.stringify(item)) + // }) + // }else if(name == '璁惧鍛ㄤ繚' && type =='鐝粍闀跨‘璁�'){ + // uni.navigateTo({ + // url: '/pages/ToDoList/ToDoBaoZhouSure/ToDoBaoZhouSure?item=' + + // encodeURIComponent(JSON.stringify(item)) + // }) + // } + + + + + // }, onClickProductionTask(item) { - uni.navigateTo({ - url: '/pages/TaskManager/TaskManagerDeils/TaskManagerDeils?item=' + - encodeURIComponent(JSON.stringify(item)) - - }) - + const name = item.taskName; + const type = item.category_dictText; + let url = ''; + + switch (true) { + case (name === '鏄惁闇�瑕侀鐢ㄥ浠�' && type === '璁惧缁翠慨'): + url = '/pages/ToDoList/ToDoSpareParts/ToDoSpareParts'; + break; + case (name === '鐐规鎵ц' && type === '璁惧鐐规'): + url = '/pages/ToDoList/ToDoListCheckSure/ToDoListCheckSure'; + break; + case (name === '鍛ㄤ繚鎵ц' && type === '璁惧鍛ㄤ繚'): + url = '/pages/ToDoList/ToDoBaoZhouSure/ToDoBaoZhouSure'; + break; + case (name === '鐝粍闀跨‘璁�' && type === '璁惧鐐规'): + url = '/pages/ToDoList/ToDoListCheckSure/ToDoListCheckSure'; + break; + case (name === '鐝粍闀跨‘璁�' && type === '璁惧鍛ㄤ繚'): + url = '/pages/ToDoList/ToDoBaoZhouSure/ToDoBaoZhouSure'; + break; + case (name === '璁剧鍛樺垵楠�' && type === '璁惧鍛ㄤ繚'): + url = '/pages/ToDoList/ToDoBaoZhouSure/ToDoBaoZhouSure'; + break; + case (name === '璁捐兘閮ㄧ粓楠�' && type === '璁惧鍛ㄤ繚'): + url = '/pages/ToDoList/ToDoBaoZhouSure/ToDoBaoZhouSure'; + break; + case (name === '绠$悊鍛橀鐢ㄥ浠�' && type === '璁惧缁翠慨'): + url = '/pages/ToDoList/ToDoSpareParts/ToDoSpareParts'; + break; + case (name === '鎿嶄綔宸ョ‘璁�' && type === '璁惧缁翠慨'): + url = '/pages/ToDoList/ToDoSpareParts/ToDoSpareParts'; + break; + case (name === '缁翠慨鎵ц' && type === '璁惧缁翠慨'): + url = '/pages/ToDoList/ToDoSpareParts/ToDoSpareParts'; + break; + case (name === '鐐规宸ュ崟' && type === '璁惧鐐规'): + url = '/pages/ToDoList/ToDoListCheckSure/ToDoListCheckSure'; + break; + default: + console.warn(`No URL found for name: ${name} and type: ${type}`); + return; + } + + if (url) { + uni.navigateTo({ + url: `${url}?item=${encodeURIComponent(JSON.stringify(item))}` + }); + } }, search() { -- Gitblit v1.9.3