|
@@ -14,6 +14,7 @@
|
|
|
concernedMajors,
|
|
|
removeConcernedMajor,
|
|
|
} from "@/api/webApi/career-other";
|
|
|
+ import { formatDate } from '@/utils'
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
@@ -31,6 +32,9 @@
|
|
|
type: {
|
|
|
label: "专业类型"
|
|
|
},
|
|
|
+ createTime: {
|
|
|
+ label: "收藏时间"
|
|
|
+ },
|
|
|
actions: {
|
|
|
label: "操作",
|
|
|
slot: "column-delete",
|
|
@@ -52,7 +56,10 @@
|
|
|
concernedMajors(this.queryParams).then((res) => {
|
|
|
console.log("concernedMajors res", res);
|
|
|
if (res.code == 200 || res.code == 0) {
|
|
|
- this.dataList = res.rows;
|
|
|
+ this.dataList = res.rows.map(item => {
|
|
|
+ item.createTime = formatDate(item.createTime)
|
|
|
+ return item
|
|
|
+ });
|
|
|
this.total = res.total;
|
|
|
} else {
|
|
|
this.msgError(res.msg || "concernedMajors 请求异常");
|