| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- const { post,get } = require('./request')
- module.exports = {
- getDeviceConfigs(data){
- return post({
- url: '/get_device_configs',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- getDeviceTabs(data){
- return get({
- url: '/get_device_tabs',
- data: data,
- })
- },
- getDeviceConfigDetail(data){
- return post({
- url: '/device_config_detail',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- //根据条件查询可执行程序-单条
- getDeviceConfigDetailQuery(data){
- return post({
- url: '/device_config_detail_query',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- //删除
- removeConfig(data){
- return post({
- url: '/remove_config',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- //保存
- saveDeviceConfig(data){
- return post({
- url: '/save_device_config',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- resetDeviceConfig(data){
- return post({
- url: '/reset_config',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- //读取系统配置
- getSysConfig(data){
- return get({
- url: '/get_sys_config',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- //更新系统配置
- updateSysConfigs(data){
- return post({
- url: '/update_sys_configs',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- //更新左右脚配置
- updateLeftRightConfig(data){
- return post({
- url: '/update_left_right_config',
- data: data
- })
- },
- //更新顶部tab名称
- updateTabName(data){
- return post({
- url: '/update_tab_name',
- data: data
- })
- },
- }
|