.
This commit is contained in:
@@ -4,6 +4,19 @@
|
||||
*/
|
||||
const dict = {
|
||||
list({type}) {
|
||||
return red.postX('/dict/list', {type})
|
||||
return red.postX('/dict/list', {type}).then(res => {
|
||||
return res//[{value:"gender",label:"性别"},{value:"status",label:"状态"}]
|
||||
})
|
||||
},
|
||||
|
||||
dictData() {
|
||||
return new Promise(resolve => {
|
||||
let data = {"body":{"gender":[{"id":"Dict/37473773","key":"37473773","label":"女","sysPlatId":"52481227","type":"gender","value":"4"},{"id":"Dict/37473772","key":"37473772","label":"男","sysPlatId":"52481227","type":"gender","value":"2"}],"dict":[{"id":"Dict/37473777","key":"37473777","label":"状态","sysPlatId":"52481227","type":"dict","value":"status"},{"id":"Dict/37473776","key":"37473776","label":"性别","sysPlatId":"52481227","type":"dict","value":"gender"}],"status":[{"id":"Dict/37473775","key":"37473775","label":"删除","sysPlatId":"52481227","type":"status","value":"80"},{"id":"Dict/37473774","key":"37473774","label":"正常","sysPlatId":"52481227","type":"status","value":"10"}]},"code":0,"timestamp":0}
|
||||
data = data.body
|
||||
resolve(data)
|
||||
})
|
||||
|
||||
//return {"body":{"gender":[{"id":"Dict/37473773","key":"37473773","label":"女","sysPlatId":"52481227","type":"gender","value":"4"},{"id":"Dict/37473772","key":"37473772","label":"男","sysPlatId":"52481227","type":"gender","value":"2"}],"dict":[{"id":"Dict/37473777","key":"37473777","label":"状态","sysPlatId":"52481227","type":"dict","value":"status"},{"id":"Dict/37473776","key":"37473776","label":"性别","sysPlatId":"52481227","type":"dict","value":"gender"}],"status":[{"id":"Dict/37473775","key":"37473775","label":"删除","sysPlatId":"52481227","type":"status","value":"80"},{"id":"Dict/37473774","key":"37473774","label":"正常","sysPlatId":"52481227","type":"status","value":"10"}]},"code":0,"timestamp":0}
|
||||
//return red.postX("/dict/data");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user