| | |
| | | |
| | | |
| | | |
| | | export const getCountTypeNumber = () => { |
| | | export const getCountTypeNumber = (params) => { |
| | | return http.request({ |
| | | url: '/blade-task/task/countTypeNumber', |
| | | method: 'GET', |
| | | params: { |
| | | ...params |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | } |
| | | }, |
| | | getCount() { |
| | | getCountTypeNumber().then(res => { |
| | | let roleType = 0 |
| | | if (uni.getStorageSync('activeRole').roleAlias === 'wgy') { |
| | | roleType = 1 |
| | | } |
| | | getCountTypeNumber({ |
| | | neiCode: uni.getStorageSync("siteInfo").id, |
| | | roleType: roleType |
| | | }).then(res => { |
| | | if (res.code == 200) { |
| | | let data = res.data; |
| | | this.countInfo = res.data; |