'use strict'; import { ApiTable, basicAction } from '$utils' export function getConsoleToollink () { //获取常用工具 return dispatch => basicAction({ type: 'get', dispatch: dispatch, actionType: 'GET_CONSLE_TOOLLINK', url: `${ApiTable.consoleToollink}`, msg: { option: '获取常用工具' }, reducer: { name: '' } }); } export function putConsoleToollink (data) { //编辑常用工具 return dispatch => basicAction({ type: 'put', dispatch: dispatch, data, actionType: 'PUT_CONSLE_TOOLLINK', url: `${ApiTable.consoleToollink}`, msg: { option: '编辑常用工具' }, reducer: { name: '' } }); } export function deleteConsoleToollink (orgId) { //删除常用工具 return dispatch => basicAction({ type: 'delete', dispatch: dispatch, actionType: 'DELETE_CONSLE_TOOLLINK', url: `${ApiTable.deleteConsoleToollink.replace('{linkId}', orgId)}`, msg: { option: '删除常用工具' }, reducer: { name: '' } }); } export function geteteConsoleCount (query) { //工作台数量查询 return dispatch => basicAction({ type: 'get', dispatch: dispatch, query, actionType: 'GET_CONSLE_COUNT', url: `${ApiTable.geteteConsoleCount}`, msg: { option: '工作台数量查询' }, reducer: { name: '' } }); }