广丰卷烟厂数采质量分析系统
zhuguifei
2026-03-02 80ff784bf60637cd348ae665fc907f7b1e527dd8
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import { request } from '@/service/request';
 
/** 根据字典类型查询字典数据信息 */
export function fetchGetDictDataByType(dictType: string) {
  return request<Api.System.DictData[]>({
    url: `/system/dict/data/type/${dictType}`,
    method: 'get'
  });
}
 
/** 获取字典选择框列表 */
export function fetchGetDictTypeOption() {
  return request<Api.System.DictType[]>({
    url: '/system/dict/type/optionselect',
    method: 'get'
  });
}
 
/** 获取字典类型列表 */
export function fetchGetDictTypeList(params?: Api.System.DictTypeSearchParams) {
  return request<Api.System.DictTypeList>({
    url: '/system/dict/type/list',
    method: 'get',
    params
  });
}
 
/** 新增字典类型 */
export function fetchCreateDictType(data: Api.System.DictTypeOperateParams) {
  return request<boolean>({
    url: '/system/dict/type',
    method: 'post',
    data
  });
}
 
/** 修改字典类型 */
export function fetchUpdateDictType(data: Api.System.DictTypeOperateParams) {
  return request<boolean>({
    url: '/system/dict/type',
    method: 'put',
    data
  });
}
 
/** 批量删除字典类型 */
export function fetchBatchDeleteDictType(dictIds: CommonType.IdType[]) {
  return request<boolean>({
    url: `/system/dict/type/${dictIds.join(',')}`,
    method: 'delete'
  });
}
/** 刷新缓存 */
export function fetchRefreshCache() {
  return request<boolean>({
    url: `/system/dict/type/refreshCache`,
    method: 'delete'
  });
}