|  |  |  | 
|---|
|  |  |  | // 新增字典类型 | 
|---|
|  |  |  | export function addType(data) { | 
|---|
|  |  |  | return request({ | 
|---|
|  |  |  | url: '/system/dict/type', | 
|---|
|  |  |  | url: '/system/dict/type/add', | 
|---|
|  |  |  | method: 'post', | 
|---|
|  |  |  | data: data | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | 
|---|
|  |  |  | // 修改字典类型 | 
|---|
|  |  |  | export function updateType(data) { | 
|---|
|  |  |  | return request({ | 
|---|
|  |  |  | url: '/system/dict/type', | 
|---|
|  |  |  | method: 'put', | 
|---|
|  |  |  | url: '/system/dict/type/edit', | 
|---|
|  |  |  | method: 'post', | 
|---|
|  |  |  | data: data | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | // 删除字典类型 | 
|---|
|  |  |  | export function delType(dictId) { | 
|---|
|  |  |  | return request({ | 
|---|
|  |  |  | url: '/system/dict/type/' + dictId, | 
|---|
|  |  |  | method: 'delete' | 
|---|
|  |  |  | url: '/system/dict/type/remove/' + dictId, | 
|---|
|  |  |  | method: 'get' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 刷新字典缓存 | 
|---|
|  |  |  | export function refreshCache() { | 
|---|
|  |  |  | return request({ | 
|---|
|  |  |  | url: '/system/dict/type/refreshCache', | 
|---|
|  |  |  | method: 'delete' | 
|---|
|  |  |  | url: '/system/dict/type/refreshCache/remove', | 
|---|
|  |  |  | method: 'get' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | url: '/system/dict/type/optionselect', | 
|---|
|  |  |  | method: 'get' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|