Commit 14fecb6c by zhaochengxiang

bug

parent 9dd616a1
......@@ -25,18 +25,12 @@ function* request(args) {
yield call(callback, rs)
} catch (ex) {
error && error(ex);
if (ex) {
if (ex?.ApiError) {
if (ex?.ApiError?.cnMessage) {
showErrorNotifaction('温馨提示', ex.ApiError.cnMessage, 5);
} else if (ex?.response?.data) {
let newData = {};
try {
newData = JSON.parse(ex?.response?.data);
showErrorNotifaction('温馨提示', newData.ApiError?.cnMessage, 5);
} catch(error) {
showErrorNotifaction('温馨提示', ex?.response?.data, 5);
}
}
} else {
showErrorNotifaction('温馨提示', '连接失败,当前页面加载异常。', 5);
}
}
}
......
......@@ -11,7 +11,7 @@ import { DataModelerRoleAdmin, DataModelerRoleUser, DataModelerRoleReader } from
//内网深交所环境 isSzseEnv true
//元曜公网环境 isSzseEnv false
export const isSzseEnv = false;
export const isSzseEnv = true;
export const inputWidth = 180;
......
......@@ -186,6 +186,15 @@ const ModelTable = (props) => {
width: 100,
ellipsis: true,
filter: false,
render: (editor, record) => {
const user = users?.filter((user)=>user.pernr===editor);
if (user && user.length > 0) {
return <Tooltip title={user[0].nachn?`${user[0].nachn}(${user[0].pernr})`:user[0].pernr}>
<Text ellipsis={true}>{user[0].nachn?`${user[0].nachn}(${user[0].pernr})`:user[0].pernr}</Text>
</Tooltip>
}
return '';
}
}
const actionCol = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment