Commit cc06c559 by zhujian

fix

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