| | |
| | | }) |
| | | return arr; |
| | | } |
| | | // 获取字典表2 |
| | | export async function getCodeList(code){ |
| | | let arr; |
| | | await myrequest({ |
| | | method: 'get', |
| | | url: `/sccg/dict/queryByCode?code=${code}` |
| | | }) |
| | | .then(res => { |
| | | arr = res.data; |
| | | }) |
| | | return arr; |
| | | } |
| | | export async function myDownLoad(arr){ |
| | | let fileName = arr.headers['content-disposition']; |
| | | console.log(fileName); |
| | |
| | | } |
| | | return; |
| | | } |
| | | // 获取年月日时分秒 |
| | | export function getNowDate(time){ |
| | | const result = new Date(time); |
| | | let yy = result.getFullYear(), |
| | | mm = result.getMonth()+1, |
| | | dd = result.getDate(), |
| | | hh = result.getHours(), |
| | | mi = result.getMinutes(), |
| | | ss = result.getSeconds() |
| | | return yy+'-'+ fillTime(mm)+'-'+fillTime(dd)+" "+fillTime(hh)+':'+fillTime(mi) + ':' + fillTime(ss); |
| | | } |
| | | function filterTime(time) { |
| | | if (time < 0) { |
| | | return '已逾期'; |