From c4f0393ee2ef22eeb180fb384a15316566747259 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 20 三月 2024 10:17:14 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/silk/silk-web --- src/api/data.js | 65 +++++--------------------------- 1 files changed, 10 insertions(+), 55 deletions(-) diff --git a/src/api/data.js b/src/api/data.js index be0d736..deb21f5 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -1,59 +1,14 @@ -// 閲囪喘鐘舵�� -const purchaseStatus=[ - { - name:'宸蹭笅鍗�', - id:1, - }, - { - name:'鍒拌揣璐ㄦ', - id:2, - }, - { - name:'宸插叆搴�', - id:3, - }, - { - name:'宸插畬鎴�', - id:4, - }, -] -// 璐ㄦ鍗曠姸鎬� -const qualityStatus=[ - { - name:'寰呰川妫�', - id:1, - }, - { - name:'宸插畬鎴�', - id:2, - } -] -// 閫�璐у崟鐘舵�� -const returnedStatus=[ - { - name:'寰呭彂璐�', - id:1, - }, - { - name:'寰呯鏀�', - id:2, - }, - { - name:'寰呭彂璐�', - id:3, - }, - { - name:'宸插畬鎴�', - id:4, - }, +// 妫�鏌ラ」鐩悕绉� +const projectOptions = [ + { id: 1, value: "绾ゅ害鍋忓樊" }, + { id: 2, value: "浜屾鍙樺寲" }, + { id: 3, value: "娓呮磥鍒�" }, + { id: 4, value: "娲佸噣鍒�" }, + { id: 5, value: "鏈�澶у亸宸�" } ] -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 == "projectOptions") { + return projectOptions } } -- Gitblit v1.8.0