chenhaozhe
2026-01-15 9e825bb9263ed29897bfaf467bfd0f86da8d3e5f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { CommonUtils } from "./common"
 
export async function getEmpList() {
    return new Promise(async (resolve, reject) => {
        // 获取职员数据
        try {
            let res = await CommonUtils.doRequest2Async({
                url: '/PublicPageMethod/UserList',
                data: {
                    sWhere: " where 1=1",
                }
            })
        
            let {
                data,
                count,
                Message
            } = res.data
            if (count == 1) {
                resolve(data)
            } else {
                CommonUtils.showTips({
                    title: '温馨提示',
                    message: Message
                })
                reject()
                
            }
        } catch (err) {
            CommonUtils.showTips({
                title: '温馨提示',
                message: err
            })
            reject()
        }
    })   
}