From 19f5949491976905f3cd3fd53407ff4898080a46 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期二, 12 三月 2024 17:07:58 +0800 Subject: [PATCH] bug修复 --- src/api/data.js | 56 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/api/data.js b/src/api/data.js index 9678b60..5936ae6 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -1,48 +1,48 @@ // 閲囪喘鐘舵�� -const purchaseStatus=[ - {id:1,name:"寰呯‘璁�"}, - {id:2,name:"寰呭叆搴�"}, - {id:3,name:"宸插叆搴�"}, - {id:4,name:"宸插畬鎴�"}, - {id:5,name:"宸插彇娑�"} +const purchaseStatus = [ + { id: 1, name: "寰呯‘璁�" }, + { id: 2, name: "寰呭叆搴�" }, + { id: 3, name: "灏辩华" }, + { id: 4, name: "宸插畬鎴�" }, + { id: 5, name: "宸插彇娑�" } ] // 璐ㄦ鍗曠姸鎬� -const qualityStatus=[ +const qualityStatus = [ { - name:'寰呰川妫�', - id:1, + name: "寰呰川妫�", + id: 1 }, { - name:'宸插畬鎴�', - id:2, + name: "宸插畬鎴�", + id: 2 } ] // 閫�璐у崟鐘舵�� -const returnedStatus=[ +const returnedStatus = [ { - name:'寰呭彂璐�', - id:1, + name: "寰呭彂璐�", + id: 1 }, { - name:'寰呯鏀�', - id:2, + name: "寰呯鏀�", + id: 2 }, { - name:'寰呭彂璐�', - id:3, + name: "寰呭彂璐�", + id: 3 }, { - name:'宸插畬鎴�', - id:4, - }, + name: "宸插畬鎴�", + id: 4 + } ] -export const getDataByType = type => { - if(type =='purchaseStatus'){ - return purchaseStatus; - }else if(type=='qualityStatus'){ - return qualityStatus; - }else if(type=='returnedStatus'){ - return returnedStatus; +export const getDataByType = (type) => { + if (type == "purchaseStatus") { + return purchaseStatus + } else if (type == "qualityStatus") { + return qualityStatus + } else if (type == "returnedStatus") { + return returnedStatus } } -- Gitblit v1.8.0