Commit cc06c559 by zhujian

fix

parent 571f8a6d
......@@ -43,9 +43,9 @@ function StudyTable(props: any) {
useEffect(() => {
console.log(sort,orderFiled)
console.log(sort, orderFiled)
if (sort && orderFiled) {
const _list =[...list];
const _list = [...list];
_list.sort((pre: any, next: any) => {
if (sort === 'ascend') {
return (pre[orderFiled] || 0) - (next[orderFiled] || 0)
......@@ -69,7 +69,7 @@ function StudyTable(props: any) {
function getList() {
Service.Hades('public/hades/getTaskCustomerRecordPage', query).then((res: any) => {
res.result.map((item: any) => {
item.department = item.departmentNameList.map((_item: any) => {
item.department = item.departmentNameList?.map((_item: any) => {
if (_item == '1000') {
return '微信'
} else {
......
......@@ -30,6 +30,7 @@ function ExpiredCourseList(props) {
// 移除未成功开课课程
function deLExpiredCourse(contentId) {
const { taskId } = props.taskId;
Modal.confirm({
content: '你确定要删除该数据内容吗?',
okText: '确定',
......
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