+
-
未上传身份证照片,无法查看
-
+
未上传身份证照片
+
@@ -116,6 +180,7 @@ import { userBillApi } from "../../../../api/userinfo";
import {
getUserApplyOrderStatusById,
formatDateYMDHMS,
+ isEmptyCheck,
} from "../../../../utils/commonUtil";
export default {
@@ -128,100 +193,21 @@ export default {
// 组件状态值
data() {
return {
- tablenodata: {
- // 空状态文本内容
- emptyText: () => (
-
-
-

-
-
暂无数据
-
- ),
- },
isspinning: false,
idcardimg: "", // 回显的身份证图片url
isdiymodalshow: false, // 控制身份证图片显示
scaleNum: 1, // 身份证图片显示倍率
rotateNum: 0,
+ searchvalue: "", // 搜索框检索信息
pagination: {
pageNum: 1,
- pageSize: 6,
+ pageSize: 10,
total: null, //分页配置
- statusTag: 0,
+ status: -1,
+ keys: "",
},
- columns: [
- {
- title: "序号",
- dataIndex: "index",
- key: "index",
- scopedSlots: { customRender: "index" },
- ellipsis: true,
- width: 60,
- },
- {
- title: "姓名",
- dataIndex: "userName",
- key: "userName",
- ellipsis: true,
- width: 120,
- scopedSlots: { customRender: "userName" },
- },
- {
- title: "电话",
- dataIndex: "tel",
- key: "tel",
- width: 120,
- ellipsis: true,
- },
- {
- title: "报名企业",
- dataIndex: "storeName",
- key: "storeName",
- width: 120,
- ellipsis: true,
- },
- {
- title: "报名岗位",
- dataIndex: "storeJobName",
- key: "storeJobName",
- width: 120,
- ellipsis: true,
- },
- {
- title: "面试时间",
- dataIndex: "interviewTime",
- key: "interviewTime",
- width: 150,
- ellipsis: true,
- },
- {
- title: "政策",
- dataIndex: "policy",
- key: "policy",
- width: 120,
- ellipsis: true,
- },
- {
- title: "状态",
- dataIndex: "statusTag",
- key: "statusTag",
- ellipsis: true,
- width: 160,
- },
- {
- title: "操作",
- dataIndex: "operate",
- key: "operate",
- ellipsis: true,
- width: 160,
- scopedSlots: { customRender: "operate" },
- },
- ],
- data: [],
+
+ billList: [],
};
},
// 计算属性
@@ -265,7 +251,7 @@ export default {
},
async getBill() {
console.log("click");
- console.log(this.pagination.statusTag);
+ console.log(this.pagination.status);
try {
this.isspinning = true;
const { data } = await userBillApi(this.pagination);
@@ -273,8 +259,8 @@ export default {
if (data.status === 200) {
// console.log();
- this.data = data.data.recordList;
- this.data.forEach((item, index) => {
+ this.billList = data.data.recordList;
+ this.billList.forEach((item, index) => {
console.log(item);
if (item.sex === 1) {
item.sex = "男";
@@ -283,13 +269,39 @@ export default {
} else {
item.sex = "未知";
}
+ // if (index % 2 === 0) {
+ // item.status = 60;
+ // }
+ if (!isEmptyCheck(item.tel)) {
+ let first = item.tel.slice(0, 3);
+ let second = item.tel.slice(3, 7);
+ let thirdly = item.tel.slice(7, 12);
+ console.log(first);
+ console.log(second);
+ console.log(thirdly);
+ item.tel = first + " " + second + " " + thirdly;
+ }
+ if (item.status === 60 || item.status === 70) {
+ item.isDown = true;
+ } else {
+ item.isDown = false;
+ }
item.statusTag = getUserApplyOrderStatusById(item.status);
item.interviewTime = formatDateYMDHMS(item.interviewTime);
+ // item.updateTime = formatDateYMDHMS(item.updateTime);
+ // item.createTime = formatDateYMDHMS(item.createTime);
+ item.updateTime = isEmptyCheck(item.updateTime)
+ ? "2022-03-16 14:19"
+ : formatDateYMDHMS(item.updateTime);
+ item.createTime = isEmptyCheck(item.createTime)
+ ? "2022-03-16 14:19"
+ : formatDateYMDHMS(item.createTime);
item.index = index + 1;
});
- console.log(this.data);
+ console.log(this.billList);
console.log(true);
this.pagination.total = data.data.recordCount;
+ this.totop();
}
} catch (error) {
console.log(error);
@@ -298,10 +310,11 @@ export default {
},
resetpag() {
this.pagination = {
+ //分页配置
pageNum: 1,
- pageSize: 6,
- total: null, //分页配置
- statusTag: this.pagination.statusTag,
+ pageSize: 10,
+ total: null,
+ status: this.pagination.status,
};
this.getBill();
},
@@ -400,6 +413,44 @@ export default {
imgbox1.style.transform = `rotate(${this.rotateNum}deg)`;
this.mousewhell(e);
},
+
+ resetsearch(e) {
+ console.log(e);
+ if (e.target.value.length === 0) {
+ this.pagination.keys = "";
+
+ this.getBill();
+ }
+ },
+ onSearch() {
+ this.getBill();
+ },
+ changepage(num) {
+ console.log(Math.ceil(this.pagination.total / this.pagination.pageSize));
+ if (
+ (this.pagination.pageNum === 1 && num === -1) ||
+ (this.pagination.pageNum ===
+ Math.ceil(this.pagination.total / this.pagination.pageSize) &&
+ num === 1)
+ ) {
+ if (num === -1) {
+ this.$message.warning("已经到第一页了");
+ } else {
+ this.$message.warning("已经到最后一页了");
+ }
+ return;
+ } else {
+ this.pagination.pageNum += num;
+ }
+ this.getBill();
+ },
+ totop() {
+ // 返回顶部
+ // console.log(window);
+ document.body.scrollTop = 0;
+ document.documentElement.scrollTop = 0;
+ // window.body.scrollY = 0;
+ },
},
};
@@ -407,11 +458,13 @@ export default {