转发对象配置,工作人员管理页面联调
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
This commit is contained in:
@@ -15,19 +15,23 @@ export default {
|
|||||||
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
|
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
|
||||||
'/api/': {
|
'/api/': {
|
||||||
// 要代理的地址
|
// 要代理的地址
|
||||||
target: 'http://ks.zhaopinzao8dian.com/api/ks',
|
target: 'http://wykj.cdwsx.com/api',
|
||||||
|
// target: 'http://ks.zhaopinzao8dian.com/api/ks',
|
||||||
// 配置了这个可以从 http 代理到 https
|
// 配置了这个可以从 http 代理到 https
|
||||||
// 依赖 origin 的功能可能需要这个,比如 cookie
|
// 依赖 origin 的功能可能需要这个,比如 cookie
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: { '^/api': '' },
|
pathRewrite: { '^/api': '' },
|
||||||
|
// logLevel: 'debug',
|
||||||
},
|
},
|
||||||
'/profile/avatar/': {
|
'/profile/avatar/': {
|
||||||
target: 'http://ks.zhaopinzao8dian.com/api/ks',
|
target: 'http://wykj.cdwsx.com/api',
|
||||||
|
// target: 'http://ks.zhaopinzao8dian.com/api/ks',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
'/app/': {
|
'/app/': {
|
||||||
// 要代理的地址
|
// 要代理的地址
|
||||||
target: 'http://ks.zhaopinzao8dian.com/api/ks',
|
target: 'http://wykj.cdwsx.com/api',
|
||||||
|
// target: 'http://ks.zhaopinzao8dian.com/api/ks',
|
||||||
// 配置了这个可以从 http 代理到 https
|
// 配置了这个可以从 http 代理到 https
|
||||||
// 依赖 origin 的功能可能需要这个,比如 cookie
|
// 依赖 origin 的功能可能需要这个,比如 cookie
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -12,8 +12,8 @@ import {
|
|||||||
getCmsWechatGroupList,
|
getCmsWechatGroupList,
|
||||||
putCmsWechatGroup
|
putCmsWechatGroup
|
||||||
} from "@/services/application/GroupManagement";
|
} from "@/services/application/GroupManagement";
|
||||||
import {getCmsCommunityUserList} from "@/services/application/Msmanagement";
|
import { getCmsCommunityUserList } from "@/services/application/Msmanagement";
|
||||||
import {DictValueEnumObj} from "@/components/DictTag";
|
import { DictValueEnumObj } from "@/components/DictTag";
|
||||||
|
|
||||||
const handleRemoveOne = async (companyCardId: string) => {
|
const handleRemoveOne = async (companyCardId: string) => {
|
||||||
const hide = message.loading('正在删除');
|
const hide = message.loading('正在删除');
|
||||||
@@ -53,8 +53,8 @@ function ManagementList() {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const getGzrlList = useCallback(async () => {
|
const getGzrlList = useCallback(async () => {
|
||||||
let resData = await getCmsCommunityUserList({current: 1, pageSize: 100})
|
let resData = await getCmsCommunityUserList({ current: 1, pageSize: 100 })
|
||||||
if(resData?.code === 200) {
|
if (resData?.code === 200) {
|
||||||
const opts: DictValueEnumObj = {};
|
const opts: DictValueEnumObj = {};
|
||||||
resData.rows.forEach((item: any) => {
|
resData.rows.forEach((item: any) => {
|
||||||
opts[item.id] = {
|
opts[item.id] = {
|
||||||
@@ -95,7 +95,8 @@ function ManagementList() {
|
|||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
valueType: 'text',
|
valueType: 'text',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
search: false
|
search: false,
|
||||||
|
render: text => (text ? text.substr(0, 10) : '-'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "管理员微信名",
|
title: "管理员微信名",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { request } from '@umijs/max';
|
import { request } from '@umijs/max';
|
||||||
|
|
||||||
export async function getCmsCommunityUserList(params?: API.GroupManagement.Params) {
|
export async function getCmsCommunityUserList(params?: API.GroupManagement.Params) {
|
||||||
return request<API.GroupManagement.Result>(`/api/cms/communityUser`, {
|
return request<API.GroupManagement.Result>(`/api/cms/communityUser/list`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
params: params,
|
params: params,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user