|
|
@@ -27,12 +27,6 @@ import { localGet } from "@/utils";
|
|
|
const router = useRouter();
|
|
|
const proTable = ref<ProTableInstance>();
|
|
|
|
|
|
-// 上传情况枚举
|
|
|
-const uploadStatusEnum = [
|
|
|
- { label: "未上传", value: 0 },
|
|
|
- { label: "已上传", value: 1 }
|
|
|
-];
|
|
|
-
|
|
|
const columns = reactive<ColumnProps<any>[]>([
|
|
|
{ prop: "nickName", label: "姓名", minWidth: 300 },
|
|
|
{ prop: "phone", label: "联系方式", width: 300 },
|
|
|
@@ -46,19 +40,6 @@ const columns = reactive<ColumnProps<any>[]>([
|
|
|
order: 2
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- prop: "hasResult",
|
|
|
- label: "上传情况",
|
|
|
- width: 300,
|
|
|
- enum: uploadStatusEnum,
|
|
|
- fieldNames: { label: "label", value: "value" },
|
|
|
- search: { el: "select", props: { placeholder: "请选择" }, order: 1 },
|
|
|
- render: (scope: any) => {
|
|
|
- const status = scope.row.hasResult;
|
|
|
- const statusItem = uploadStatusEnum.find(item => item.value === status);
|
|
|
- return statusItem ? statusItem.label : "-";
|
|
|
- }
|
|
|
- },
|
|
|
{ prop: "operation", label: "操作", fixed: "right", width: 300 }
|
|
|
]);
|
|
|
|