linwei
2024-01-02 ce3d913083a21d2c07706e2567bffd2a19d80c11
我的任务
2 files modified
18 ■■■■ changed files
api/task/task.js 9 ●●●●● patch | view | raw | blame | history
subPackage/task/index.vue 9 ●●●● patch | view | raw | blame | history
api/task/task.js
@@ -10,11 +10,12 @@
export const getCountTypeNumber = () => {
export const getCountTypeNumber = (params) => {
    return http.request({
        url: '/blade-task/task/countTypeNumber',
        method: 'GET',
        params: {
            ...params
        }
    })
}
}
subPackage/task/index.vue
@@ -187,7 +187,14 @@
                }
            },
            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;