提交 dcef33fd authored 作者: 钟是志's avatar 钟是志

31406 辅导员考核满意度调查问卷

上级 762ce3a1
...@@ -110,11 +110,11 @@ class AuditPage extends Component { ...@@ -110,11 +110,11 @@ class AuditPage extends Component {
big: 4, big: 4,
small: 4, small: 4,
}, },
}, ...this.context.locationState?.tab1Props?.search,
},
tableRowKey: 'id', tableRowKey: 'id',
columns, columns,
}; };
console.log(this.context.locationState?.tab2Props?.search?.field);
const tab2 = { const tab2 = {
search: { search: {
field: {}, field: {},
...@@ -165,8 +165,6 @@ class AuditPage extends Component { ...@@ -165,8 +165,6 @@ class AuditPage extends Component {
render() { render() {
const { workId, dataBaseId, addFields, searchCondition } = this.props; const { workId, dataBaseId, addFields, searchCondition } = this.props;
// const { locationState } = useContext(CreateC);
// console.log(locationState);
return ( return (
<PageHeaderWrapper title=""> <PageHeaderWrapper title="">
<ListTab <ListTab
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
position: absolute; position: absolute;
z-index: 10; z-index: 10;
right: 0; right: 0;
top: 64px; top: 164px;
cursor: pointer; cursor: pointer;
} }
import { getToken } from '@/utils/authority';
import { getHeaders } from '@/webPublic/zyd_public/utils/getHeaders';
const token = getToken();
export default function fetchJSON(url, body) {
if (url.indexOf('token=') <= -1) {
url = url + '?token=' + token;
}
return fetch(url, {
method: 'post',
body: JSON.stringify(body),
credentials: 'omit', // 确保浏览器不在请求中包含凭据 // 用这个本地访问北电科会跨域
mode: 'cors',
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
...getHeaders(url).headers,
},
})
.then(function(res) {
return res.json();
})
.then(function(data) {
console.log(data);
return data;
});
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论