Files
app-govern/common/api/dictionary.js

72 lines
1.5 KiB
JavaScript
Raw Normal View History

2023-08-02 09:10:45 +08:00
import request from '../js/request'
import config from '../js/config'
2023-04-04 09:14:20 +08:00
2023-04-07 08:50:21 +08:00
export function queryDictData(dictTypeName) {
2023-04-04 09:14:20 +08:00
return request({
2023-04-07 08:50:21 +08:00
url: '/dictData/getDicDataByTypeName',
method: 'get',
2023-04-04 09:14:20 +08:00
data: {
2023-04-07 08:50:21 +08:00
dictTypeName,
2023-04-04 09:14:20 +08:00
},
2023-08-02 09:10:45 +08:00
})
2023-04-04 09:14:20 +08:00
}
2023-07-06 14:24:03 +08:00
export function queryDictDataCache(dictTypeName) {
return request({
url: '/system-boot/dictType/dictDataCache',
method: 'get',
2023-08-02 09:10:45 +08:00
})
}
// 字典树接口通过code
export const queryByCode = (code) => {
return request({
url: '/system-boot/dictTree/queryByCode',
method: 'post',
data: {
code,
},
})
}
// 字典树接口
export const queryCsDictTree = (pid) => {
return request({
url: '/system-boot/dictTree/query',
method: 'post',
data: {
pid,
},
})
}
// 字典树接口通过id
export const queryByid = (id) => {
return request({
url: '/system-boot/dictTree/queryByid',
method: 'post',
data: {
id,
},
})
}
// 程序版本
export const queryEdDataPage = () => {
return request({
url: '/cs-device-boot/edData/queryEdDataPage',
method: 'post',
header: {
'Content-Type': 'application/json;charset=UTF-8',
},
data: {
pageNum: 1,
devName: '',
devType: '',
pageSize: 999,
versionStartDate: '',
versionendDate: '',
},
})
}