12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- /*
- * @Author: code4eat awesomedema@gmail.com
- * @Date: 2023-03-03 16:31:27
- * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-04-26 13:56:05
- * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/service.ts
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- */
- import { request } from 'umi';
- //获取table列表数据
- export const getViewUnitTableData = (params?:{name:string,hide?:string}) => {
- return request('/performance/unit/getViewUnitMap', {
- method: 'GET',
- params
- });
- };
- //获取所有核算单元
- export const getAllCheckUnit = () => {
- return request('/performance/kpi/getUnitList', {
- method: 'GET',
- });
- };
- //检视所有提交
- export const postCheckViewAll = (userId:number) => {
- return request(`/performance/unit/addAllViewUnit?userId=${userId}`, {
- method: 'POST',
- });
- };
- //保存
- export type SaveCheckViewUnitDataType= {
- userId:number,
- unitList:{unitCode:string,unitName:string,unitType:string}[]
- }
- export const saveCheckViewUnit = (data:SaveCheckViewUnitDataType) => {
- return request('/performance/unit/addViewUnit', {
- method: 'POST',
- data
- });
- };
|