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

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

上级 762ce3a1
......@@ -110,11 +110,11 @@ class AuditPage extends Component {
big: 4,
small: 4,
},
},
...this.context.locationState?.tab1Props?.search,
},
tableRowKey: 'id',
columns,
};
console.log(this.context.locationState?.tab2Props?.search?.field);
const tab2 = {
search: {
field: {},
......@@ -165,8 +165,6 @@ class AuditPage extends Component {
render() {
const { workId, dataBaseId, addFields, searchCondition } = this.props;
// const { locationState } = useContext(CreateC);
// console.log(locationState);
return (
<PageHeaderWrapper title="">
<ListTab
......
......@@ -2,6 +2,6 @@
position: absolute;
z-index: 10;
right: 0;
top: 64px;
top: 164px;
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论