|
@@ -4,6 +4,7 @@
|
|
|
v-model="modalIsShow"
|
|
|
title="校验详情"
|
|
|
:mask-closable="false"
|
|
|
+ footer-hide
|
|
|
width="800"
|
|
|
@on-visible-change="visibleChange"
|
|
|
>
|
|
@@ -29,13 +30,15 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { checkDataDetailList } from "@/api";
|
|
|
+
|
|
|
export default {
|
|
|
name: "check-data-result",
|
|
|
props: {
|
|
|
- content: {
|
|
|
- type: Array,
|
|
|
+ data: {
|
|
|
+ type: Object,
|
|
|
default() {
|
|
|
- return [];
|
|
|
+ return {};
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -95,16 +98,25 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
- visibleChange(visible) {
|
|
|
+ async visibleChange(visible) {
|
|
|
if (visible) {
|
|
|
this.toPage(1);
|
|
|
} else {
|
|
|
this.$emit("on-close");
|
|
|
}
|
|
|
},
|
|
|
+ async getList() {
|
|
|
+ const data = await checkDataDetailList({
|
|
|
+ checkDataId: this.data.id,
|
|
|
+ page: this.current - 1,
|
|
|
+ size: this.size
|
|
|
+ });
|
|
|
+ this.total = data.totalCount;
|
|
|
+ this.students = data.data;
|
|
|
+ },
|
|
|
toPage(page) {
|
|
|
this.current = page;
|
|
|
- this.students = this.content.slice((page - 1) * this.size, this.size);
|
|
|
+ this.getList();
|
|
|
},
|
|
|
toView(row) {
|
|
|
window.open(
|